DeeEmm

Pragmatism in code

Waxing lyrical about life the universe and everything software related since lunchtime 2006.

Dolphin - Include instructions on the 'Add Site' page

The sites module in Dolphin sometiumes does not create the thumbnail, often refreshing the page fixes this. To display a simple tip to your members about this do the following...

Edit

/modules/sites/classes/BxSitesFormAdd.php

find

 

            'inputs' => array(
                'url' => array(
                    'type' => 'text',
                    'name' => 'url',
                    'caption' => _t('_bx_sites_form_url'),
                    'required' => true,
                    'checker' => array (
                        'func' => 'length',
                        'params' => array(1,100),
                        'error' => _t('_bx_sites_form_field_err'),
                    ),
                    'db' => array(
                        'pass' => 'Xss'
                    ),
                    'display' => true,
                )

change it to

 

             'inputs' => array(
                'url' => array(
                    'type' => 'text',
                    'name' => 'url',
                    'caption' => _t('_bx_sites_form_url'),
                    'required' => true,
                    'checker' => array (
                        'func' => 'length',
                        'params' => array(1,100),
                        'error' => _t('_bx_sites_form_field_err'),
                    ),
                    'db' => array(
                        'pass' => 'Xss'
                    ),
                    'display' => true,
                ),                
           'Tip' => array(
'type' => 'value',
'caption' => 'Tip',
'value' => 'After you hit submit, a thumbnail should automatically be created.
If you do not see it - refresh your browser.',
)

/DM

 

Dolphin - Hide banners from guests
Dolphin - Hide Menu Bar from Guests

Related Posts

 

Comments

No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Guest
Sunday, 25 June 2017
If you'd like to register, please fill in the username, password and name fields.

Captcha Image