PDA


View Full Version : Image Path Issue in VBA modules WYSIWYG Editor


eljeffe
08-20-2005, 08:44 PM
I've read the other thread regarding this topic, but my issue is a bit different.

I prefer to not hardcode any URLs into my templates or style variables, because I want one place to manage my fixed URLs. For this purpose, I have chosen to use vBulletin's Replacement Variables feature.

I have created a Replacement Variable called style_image_path_text which contains the URL to the images directory for a particular style. For the purposes of discussion, let's just say it is set to "http://www.mydoman.com/forums/images"

In my style variable for the WYSIWYG buttons, I have "style_image_path_text/editor"

The problem I am having is when I use VBA's module editor -- in this case, the Welcome Message module. None of the buttons show up, and the URL that is put in place of the images (using the bold.gif as an example) is showing as "http://www.mydomain.com/forums/admincp/style_image_path_text/editor/bold.gif"

I'd like to find out how I can do what I want in VBA.

All suggestions are appreciate.

Regards,

Jeff

Brian
08-21-2005, 04:12 PM
The only way that's going to work is to change the path for your 'Text Editor Controls Folder', or by modifying the code in your vba_cmps_admin.php file.

eljeffe
08-21-2005, 04:15 PM
Yep, that's what I ended up doing. Thanks.

Is there a way you can put this in the "wishes for future enhancements"? It would be nice if vBA could use vB replacement variables