Results 1 to 4 of 4

Thread: Replacement Variables in Admin CP

  1. #1
    Join Date
    Oct 2005
    Posts
    6

    Default Replacement Variables in Admin CP

    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.
    Last edited by vbStartup; 03-12-2008 at 08:01 PM.

  2. #2
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Replacement Variables in Admin CP

    Thank you for pointing this out. If you will look in your forum/includes/vba_cmps_adminfunctions.php file for this line:
    PHP Code:
    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:
    PHP Code:
    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.

  3. #3
    Join Date
    Oct 2005
    Posts
    6

    Default Re: Replacement Variables in Admin CP

    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 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?

  4. #4
    Join Date
    Jan 2004
    Location
    Georgia, USA
    Posts
    34,466

    Default Re: Replacement Variables in Admin CP

    Your best bet would probably be to just upload the .gif images as well so that it can use those in the Admin CP.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies replacement
    By aproape in forum Feedback & Suggestions
    Replies: 4
    Last Post: 01-10-2008, 07:34 PM
  2. header/navbar/footer replacement variables not working
    By drewbe121212 in forum Troubleshooting & Problems
    Replies: 6
    Last Post: 12-12-2007, 12:34 PM
  3. Adding a replacement
    By nymyth in forum "How Do I..." Questions
    Replies: 8
    Last Post: 08-15-2007, 05:01 PM
  4. Style Replacement Variables not parsing with integration
    By vgevolution in forum Bugs From 3.0 RC1
    Replies: 3
    Last Post: 05-20-2007, 02:28 PM
  5. replacement problems
    By agiacosa in forum Troubleshooting & Problems
    Replies: 5
    Last Post: 12-18-2005, 04:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •