View Full Version : Editing BB Code Module Issue
paul41598
06-06-2005, 02:07 PM
I made a BB code module and put in my html. However now its showing HTML code on my homepage. So i went back in and set it to "allow HTML", but everytime I hit save and go back to edit it, it defaults to NO again.
I cant get the settings to save. Is this a bug or..?
Thanks!
paul41598
06-06-2005, 02:08 PM
actually, if I delete it, then make a new one too, all the values are default to yes. If I keep it like that, then save, then go back, there all NO. Argh
Brian
06-06-2005, 02:16 PM
If you'll look in your admincp/vba_cmps_admin.php file for this code:
construct_cmps_settings('module');
Add this right below it:
if ($module['inctype'] == 'bb_code')
{
$module['options'] = serialize($setting);
}
Then look in your includes/vba_cmps_include_bottom.php file for this code:
$home["$mods[modid]"]['content'] = parse_bbcode2($mods['filename'], $mod_options['allow_html'], $mod_options['allow_image_code'], $mod_options['allow_smilies'], 1);
And add this right above it:
$mod_options = unserialize($mods['options']);
That should take care of the problem.
paul41598
06-06-2005, 02:21 PM
That brilliantly solved every issue I had with HTML and BB Code. Nice Fast response. Thanks again for the Quick Fix! :D
MotoUp
06-14-2005, 12:58 PM
Brian, that worked for me too to allow me to save changes, however, when I save a template, doesn't matter which one, I'm getting an Invalid Argument. But it's flashing too fast on the screen so I can't read the whole thing.
MotoUp
06-14-2005, 01:00 PM
Okay, I took a quick screen shot of it, here it is...
Warning: Invalid argument supplied for foreach() in /includes/adminfunctions_vba_cmps.php on line 634
I hope that helps.
Brian
06-14-2005, 01:31 PM
http://www.vbadvanced.com/forum/showthread.php?t=8513
MotoUp
06-14-2005, 01:34 PM
Thank you. Sorry about that, I searched, but didn't see it.
Lorenzo
06-27-2005, 06:21 PM
I'm having the same problem it's still showing HTML and all, I've done everything you listed but yet still works
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.