View Full Version : please help with my dropdowns in custom template
wolfyman
10-17-2005, 12:24 PM
they won't work except from the main page (search, quicklinks, etc)
I really need some help on this one, I have no idea what I did!
brvheart
12-15-2005, 01:44 PM
any help on this would be great, I also have the same issue :(
Cyricx
12-15-2005, 01:57 PM
More info would help us help :)
Where did you put the code, (hooks, templates, which ones), and what code did you put in?
wolfyman
12-15-2005, 07:06 PM
that only took 2 months, I'm impressed! ;)
My problem was simple - I left the class out of one of the div tags in the navbar. might want to reload the original navbar and cross check it carefully, ravenes
brvheart
12-16-2005, 03:15 PM
Thanks wolfyman, sorry to thread crap here...if it is ok, I would like to place this here. Here is the issue, it is with a built temp that someone made and posted on this site:
This is the thread that has the template in it if you wish to view it (https://vborg.vbsupport.ru/showthread.php?t=99450)
Now they put all pop ups etc in the Header instead of the navbar which is perfectly ok, I know how to switch that, but I still can not figure out how to make it work....the Quicklinks and Serach buttons only work on the index.php page, in no other sections will it work, I have racked my brain (not hard to do hehe I am not a coding genius) and can not get it to work. Even if I take all the code from a full working template and replace the code...still does not work.
Header Template
<div align="center">
<!--Header-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#ffffff" width="1"><img src="$stylevar[imgdir_misc]images/spacer.gif" width="1" height="100%" alt="Indevor"></td>
<td bgcolor="#000000" width="1"><img src="$stylevar[imgdir_misc]/images/spacer.gif" width="1" height="100%" alt="Indevor"></td>
<td bgcolor="#ffffff" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="$vboptions[forumhome].php$session[sessionurl_q]">
<img src="$stylevar[imgdir_misc]/images/indevor_03.png" border="0" width="301" height="122" alt="$vboptions[bbtitle]"></a></td>
<td width="100%" class="bg_header">
<img src="$stylevar[imgdir_misc]/images/bg_header.png" width="2" height="122" alt="Indevor"></td>
<td><img src="$stylevar[imgdir_misc]/images/indevor_05.png" width="232" height="122" alt="Indevor"></td>
<td><img src="$stylevar[imgdir_misc]/images/indevor_06.png" width="205" height="122" alt="Indevor"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/indevor_08.png" width="13" height="16" alt="Indevor"></td>
<td width="100%" class="bg_menu">
<!-- Main Menu -->
<!-- nav buttons bar -->
<table cellpadding="0" cellspacing="0" border="0" align="right"><tr>
<if condition="$show['member']">
<td>
<!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="usercp.php$session[sessionurl_q]">
<span class="button_txt">$vbphrase[user_cp]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td></if>
<if condition="$show['registerbutton']">
<td>
<!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="register.php$session[sessionurl_q]" rel="nofollow">
<span class="button_txt">$vbphrase[register]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td></if><td>
<!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="35" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="faq.php$session[sessionurl_q]" accesskey="5"><span class="button_txt">$vbphrase[faq]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td>
<td>
<!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="82" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="memberlist.php$session[sessionurl_q]">
<span class="button_txt">$vbphrase[members_list]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button --></td>
<td>
<!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="60" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="vbookie.php$session[sessionurl_q]">
<span class="button_txt">vBookie</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button --></td>
<td>
<!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="60" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="calendar.php$session[sessionurl_q]">
<span class="button_txt">$vbphrase[calendar]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button --></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="70" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">
<span class="button_txt">$vbphrase[new_posts_nav]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td>
<else />
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="85" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">
<span class="button_txt">$vbphrase[todays_posts]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button --></td>
</if>
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="65" height="16" colspan="4" bgcolor="#000000" id="navbar_search" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">
<span class="button_txt">$vbphrase[search]</span></a>
<script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td></if>
<if condition="$bbuserinfo['userid']">
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="85" height="16" colspan="4" bgcolor="#000000" id="usercptools" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="$show[nojs_link]#usercptools">
<span class="button_txt">$vbphrase[quick_links]</span></a>
<script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button --></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="search.php$session[sessionurl_q]" accesskey="4">
<span class="button_txt">$vbphrase[search]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td>
<if condition="$show['member']">
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="search.php?$session[sessionurl]do=getnew" accesskey="2">
<span class="button_txt">$vbphrase[new_posts_nav]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td>
<else />
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">
<span class="button_txt">$vbphrase[todays_posts]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td></if></if>
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">
<span class="button_txt">$vbphrase[mark_forums_read]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td>
<if condition="$bbuserinfo['userid']">
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1'
,'buddylist','statusbar=no,menubar=no,toolbar=no,s crollbars=yes,resizable=yes,width=250,height=300') ; return false;"><span class="button_txt">$vbphrase[open_buddy_list]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td></if></if>
<if condition="$bbuserinfo['userid']">
<td><!-- Button -->
<table border="0" cellpadding="0" cellspacing="0"><tr>
<td><img src="$stylevar[imgdir_misc]/images/butt_lside.png" width="4" height="16" alt="Indevor"></td>
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
<a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out()"><span class="button_txt">$vbphrase[log_out]</span></a></td>
<td><img src="$stylevar[imgdir_misc]/images/butt_rside.png" width="4" height="16" alt="Indevor"></td>
</tr></table>
<!-- End Button -->
</td></if>
</tr></table>
<!-- / nav buttons bar -->
<!-- End Main Menu-->
</td>
<td><img src="$stylevar[imgdir_misc]/images/indevor_14.png" width="18" height="16" alt="Indevor"></td>
</tr></table>
</td>
</tr>
</table>
</td>
<td bgcolor="#000000" width="1"><img src="$stylevar[imgdir_misc]/images/spacer.gif" width="1" height="100%" alt="Indevor"></td>
<td bgcolor="#ffffff" width="1"><img src="$stylevar[imgdir_misc]/images/spacer.gif" width="1" height="100%" alt="Indevor"></td>
</tr>
</table>
<!--End Header-->
<!--Body-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table_height">
<tr>
<td bgcolor="#ffffff" width="1"><img src="$stylevar[imgdir_misc]/images/spacer.gif" width="1" height="100%" alt="Indevor"></td>
<td bgcolor="#000000" width="1"><img src="$stylevar[imgdir_misc]/images/spacer.gif" width="1" height="100%" alt="Indevor"></td>
<td bgcolor="#ffffff" width="100%" valign="top">
<!-- content table -->
$spacer_open
$_phpinclude_output
that is the header for the template where all Buttons are. Please let me know if you need to see other portions of hte template. It is a very nice Template looks wise, just a pain when we have to chosse a different one to get the quicklinks etc to work. I can also post a link to the site if you want to see what it does. Any help on this would be very helpful and much appreciated.
Cyricx
12-16-2005, 03:29 PM
link to where this template is running?
And at a glance...
you have two classes defined..
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
should be like
<td width="50" height="16" colspan="4" bgcolor="#000000" class="vbmenu_control" nowrap="nowrap">
brvheart
12-16-2005, 03:51 PM
www.ideninfo.com
indevor full_2 ;)
brvheart
12-18-2005, 05:13 PM
link to where this template is running?
And at a glance...
you have two classes defined..
<td width="50" height="16" colspan="4" bgcolor="#000000" class="bg_link" class="vbmenu_control" nowrap="nowrap">
should be like
<td width="50" height="16" colspan="4" bgcolor="#000000" class="vbmenu_control" nowrap="nowrap">
I changed that and it did not fix anything for me...I did not know that define 2 classes had anything to do with the drop downs....does it or where you just pointing that out?
brvheart
12-20-2005, 12:23 PM
here is the .xml file, I have found a few things wrong, but still do not know why the Search and Quicklinks only works on the index.php page :-/ I would be greatful for any help anyone can give me on this.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.