PDA

View Full Version : Forum Tools, Seach This Forum, etc menus not popping open after template mod


SilentNoise
11-29-2007, 03:05 AM
I'm in the middle of a style build right now and have a question... here's the situation:

My site will have a highly customized header template and I'm removing the "$navbar" line from every template that would regularly use it
(I'm just replacing it with a <br />).

I haven't had a problem with anything up until I went clicking around and noticed that as soon as I remove "$navbar" from the FORUMDISPLAY template, my Forum Tools, Search This Forum, etc menus no long pop up when I click on them...... this is the one and only template that I'm having any issues with. As soon as I go into a thread, the Thread Tools, Search This Thread, etc menus work perfectly fine and I've removed the $navbar code from that template as well, so I don't get it.


If I put the $navbar line back into FORUMDISPLAY it'll work again, but that's not what I'm after.
Is there anything else I can do to get the Forum Tools menus to show up but still remove the navbar from the FORUMDISPLAY template?


BTW, I'm running vB v3.6.8 RC2

--------------- Added 28 Nov 2007 at 22:29 ---------------

Never mind... figured it out. I think I've just been looking at code for too long at this point.



Left $navbar in the FORUMDISPLAY template and modded the navbar template instead.

Deleted most of the navbar template except for the code at the very end of it:


<!-- PAGENAV POPUP -->

<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>

<!-- / PAGENAV POPUP -->