Pragmatism in Code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related...

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that has been used in the blog.
  • Login
Subscribe to this list via RSS Blog posts tagged in indo

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

 

Hits: 2711
Rate this blog entry:
0
Continue reading 0 Comments