Recent Topics

1 Mar 21, 2012 03:52    

I am creating custom skin to integrate b2evo into my website.

Trying to style the forms I am getting major clashes with the div class='info'
that is generated by the form class.

Is there a way to change the $template parameter 'inputstart' from the _item_comment_form_inc.php file I am including in my skin or do I have to change the _form.class.php file .... which is bad idea because it will get overwritten during upgrades etc...

This is the line in the _item_comment_form_inc that creates the offending div class 'info'

$Form->info_field( T_('User'), '<strong>'.$current_User->get_preferred_name().'</strong>'
			.' '.get_user_profile_link( ' [', ']', T_('Edit profile') ) );

Thanks,

2 Mar 21, 2012 05:03

You cannot globally override this setting, what you can do is change the property of the Form object.

$Form->infostart = '<div class="whatever">';
$Form->info( ... );

I don't think it's a good idea to add this string in each and every form in your skin. Why don't you just pick another class name in your CSS?

3 Mar 21, 2012 05:08

Thanks Sam - worked a treat.

... so simple


Form is loading...