Log in

View Full Version : phrase variable


culthero
10-11-2004, 01:54 PM
i have a little problem there...

at the top of the forums, the links "search this forum" and "forum tools" have little arrows right of them, which in opera are shown in the line below. i'm trying to display that correctly.

i've removed the following lines from vbulletin_menu.js, which seem to cause that line break in opera.
if (!nowrite)
{
document.write('<img src="' + IMGDIR_MISC + '/menu_open.gif" alt="" border="0" />');
}

now i just want to add that arrow in the template by editing the phrase

<td class="vbmenu_control" id="forumsearch.subforums"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]"><phrase 1="$stylevar[imgdir_misc]">$vbphrase[search_this_forum]</phrase></a> <script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></td>

the phrase itself
Search this Forum <img src="{1}/menu_open.gif" alt="" border="0" />

works fine whereever else in the template i put it, but not in the table where it should be displayed - there the result is

Search this Forum <img src="%1$s/menu_open.gif" alt="" border="0" />

so for whatever reason the phrase isn't parsed correctly when it's placed in this table - what can i do about that? i need the variable in the phrase 'cause that image is different in different styles.

Dean C
10-11-2004, 03:29 PM
I've moved this to General vBulletin Questions for you :)