View Full Version : Replacement Variables in Admin CP
vbStartup
03-12-2008, 06:57 PM
Replacement variables aren't parsed by vbaCMPS. This is noticeable when creating a BB code module and the editor images don't show up.
It'd be nice if you could change this.
Brian
03-13-2008, 10:30 AM
Thank you for pointing this out. If you will look in your forum/includes/vba_cmps_adminfunctions.php file for this line:
print_description_row('<div style="padding-top: 5px">' . $vbphrase[$type] . ' ' . $vbphrase['content'] . ':</div>' . str_replace('"clientscript', '"' . $vbulletin->options['bburl'] . '/clientscript', $messagearea));
And replace with this:
print_description_row('<div style="padding-top: 5px">' . $vbphrase[$type] . ' ' . $vbphrase['content'] . ':</div>' . str_replace('"clientscript', '"' . $vbulletin->options['bburl'] . '/clientscript', process_replacement_vars($messagearea)));
Then that should take care of the problem.
vbStartup
03-13-2008, 03:32 PM
Thank you for this fix.
Also, I've noticed that this uses the default style editor template but the editor image path for the currently selected style. I use the PNG Editor Buttons (http://www.vbulletin.org/forum/showthread.php?t=165720) template edit and this leads to problems with vbA looking for gif images that don't exist. Would you have any suggestions on how to fix this so the vbA editor shows the PNG images?
Brian
03-14-2008, 10:01 AM
Your best bet would probably be to just upload the .gif images as well so that it can use those in the Admin CP.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.