PDA


View Full Version : How can I get the forums/home in my navbar if I have images in my header template?


GamingVidz.com
08-04-2005, 05:41 AM
I saw the post further down that relates to this, and then I followed Brian's post to the thing that Zachery made to make the forums/home thing work, but my code is a lot different from that as apparently my images are in the header template.

So, how do I get this bad boy working?

Here is my navbar code:

<!-- begin ambience header-->
<div align="center">
<table bgcolor="#f7f7f7" width="755" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr><td align="left" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_ls.jpg" width="287" height="159" alt="" /></td>
<td width="170" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_mid.jpg" width="170" height="159" alt="" /></td>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_rs.jpg" width="287" height="159" alt="" /></td>
<td width="100%" height="159" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/header_top_x.jpg"><img src="$stylevar[imgdir_misc]/header_top_x.jpg" width="100%" height="159" alt="" /></td>
</tr>
</table>

<table bgcolor="#f7f7f7" width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif">
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="174" height="25" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif"><img src="$stylevar[imgdir_misc]/ambience_nav_ls.gif" width="174" height="25" alt="" /></td>
<td width="51" height="25" align="left" valign="top"><a href="$vboptions[forumhome].php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_home.gif" alt="" width="51" height="25" border="0" /></a></td>
<td width="62" height="25" align="left" valign="top"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_cp.gif" alt="" width="62" height="25" border="0" /></a></td>

<if condition="$show['registerbutton']">
<td width="65" height="25" align="left" valign="top"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_reg.gif" alt="" width="65" height="25" border="0" /></a></td>
<else />
<td width="65" height="25" align="left" valign="top" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/q_links.gif" alt="" width="65" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>



<td width="60" height="25" align="left" valign="top"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_members.gif" alt="" width="60" height="25" border="0" /></a></td>
<td width="69" height="25" align="left" valign="top"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_calendar.gif" alt="" width="69" height="25" border="0" /></a></td>
<td width="57" height="25" align="left" valign="top" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_search.gif" alt="" width="57" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td width="42" height="25" align="left" valign="top"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_faq.gif" alt="" width="42" height="25" border="0" /></a></td>
<td width="100%" height="25" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif"><img src="$stylevar[imgdir_misc]/ambience_nav_rs.gif" width="100%" height="25" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end ambience header-->





<!-- begin main inner table area-->
<table border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#F7F7F7">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EDEDED">
<tr>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td>
<td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td>
</tr>
</table>
<!-- content table -->
<table bgcolor="#f7f7f7" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open

$_phpinclude_output

mholtum do your thing lol. You said you'd just fix my code for me. I just posted a new thread as I kinda hijacked it.

I thought that if I simply made another image that was the exact same dimensions as home, then couldn't you modify the code somehow to make it be when you're in the forums the image is home and if your home the image would be forum. Is that possible to swap images like that, similar to what others have described?

Suppose the image name is ambience_nav_forum.gif and the other image (this one I already have is ambience_nav_home.gif) Then jus work your magic please :)

mholtum
08-04-2005, 06:43 AM
Ok, I am really drunk do to the fact that aI hve to put my Rottie down tomorrow morning but see if this wrks

<!-- begin ambience header-->
<div align="center">
<table bgcolor="#f7f7f7" width="755" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr><td align="left" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_ls.jpg" width="287" height="159" alt="" /></td>
<td width="170" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_mid.jpg" width="170" height="159" alt="" /></td>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_rs.jpg" width="287" height="159" alt="" /></td>
<td width="100%" height="159" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/header_top_x.jpg"><img src="$stylevar[imgdir_misc]/header_top_x.jpg" width="100%" height="159" alt="" /></td>
</tr>
</table>

<table bgcolor="#f7f7f7" width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif">
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="174" height="25" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif"><img src="$stylevar[imgdir_misc]/ambience_nav_ls.gif" width="174" height="25" alt="" /></td>
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com"><img src="path_to_to_home.gif"><else /><a href="http://yoursite.com/forums"><img src="/path_to_forum.gif"></if></a></td>
<td width="62" height="25" align="left" valign="top"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_cp.gif" alt="" width="62" height="25" border="0" /></a></td>

<if condition="$show['registerbutton']">
<td width="65" height="25" align="left" valign="top"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_reg.gif" alt="" width="65" height="25" border="0" /></a></td>
<else />
<td width="65" height="25" align="left" valign="top" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/q_links.gif" alt="" width="65" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>



<td width="60" height="25" align="left" valign="top"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_members.gif" alt="" width="60" height="25" border="0" /></a></td>
<td width="69" height="25" align="left" valign="top"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_calendar.gif" alt="" width="69" height="25" border="0" /></a></td>
<td width="57" height="25" align="left" valign="top" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_search.gif" alt="" width="57" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td width="42" height="25" align="left" valign="top"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_faq.gif" alt="" width="42" height="25" border="0" /></a></td>
<td width="100%" height="25" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif"><img src="$stylevar[imgdir_misc]/ambience_nav_rs.gif" width="100%" height="25" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end ambience header-->





<!-- begin main inner table area-->
<table border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#F7F7F7">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EDEDED">
<tr>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td>
<td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td>
</tr>
</table>
<!-- content table -->
<table bgcolor="#f7f7f7" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open

$_phpinclude_output





<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://yoursite.com"><img src="path_to_to_image.gif"><else /><a href="http://yoursite.com/forums"><img src="/path_to_image.gif"></if></a></td>



No garuntees

GamingVidz.com
08-04-2005, 07:45 AM
Ok, I'll test it tomorrow, thanks! I'll let you know how it goes... must sleep now...

GamingVidz.com
08-04-2005, 10:24 PM
Thanks for trying, it didn't work though. what it did was add a highlight around the home gif and screw up the bar where all my links are. And then it also placed another one called home in my upper left module.

What happened? How can I fix this? :(


<!-- begin ambience header-->
<div align="center">
<table bgcolor="#f7f7f7" width="755" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr><td align="left" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_ls.jpg" width="287" height="159" alt="" /></td>
<td width="170" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_mid.jpg" width="170" height="159" alt="" /></td>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_rs.jpg" width="287" height="159" alt="" /></td>
<td width="100%" height="159" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/header_top_x.jpg"><img src="$stylevar[imgdir_misc]/header_top_x.jpg" width="100%" height="159" alt="" /></td>
</tr>
</table>

<table bgcolor="#f7f7f7" width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif">
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="174" height="25" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif"><img src="$stylevar[imgdir_misc]/ambience_nav_ls.gif" width="174" height="25" alt="" /></td>
<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://www.gamingvidz.com"><img src="$stylevar[imgdir_misc]/ambience_nav_home.gif"><else /><a href="http://www.gamingvidz.com/forum"><img src="$stylevar [imgdir_misc]/ambience_nav_forum.gif"></if></a></td>
<td width="62" height="25" align="left" valign="top"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_cp.gif" alt="" width="62" height="25" border="0" /></a></td>

<if condition="$show['registerbutton']">
<td width="65" height="25" align="left" valign="top"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_reg.gif" alt="" width="65" height="25" border="0" /></a></td>
<else />
<td width="65" height="25" align="left" valign="top" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/q_links.gif" alt="" width="65" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>



<td width="60" height="25" align="left" valign="top"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_members.gif" alt="" width="60" height="25" border="0" /></a></td>
<td width="69" height="25" align="left" valign="top"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_calendar.gif" alt="" width="69" height="25" border="0" /></a></td>
<td width="57" height="25" align="left" valign="top" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_search.gif" alt="" width="57" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td width="42" height="25" align="left" valign="top"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_faq.gif" alt="" width="42" height="25" border="0" /></a></td>
<td width="100%" height="25" align="left" valign="top" style="background-image: url($stylevar[imgdir_misc]/ambience_nav_x.gif"><img src="$stylevar[imgdir_misc]/ambience_nav_rs.gif" width="100%" height="25" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end ambience header-->





<!-- begin main inner table area-->
<table border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#F7F7F7">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EDEDED">
<tr>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td>
<td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td>
</tr>
</table>
<!-- content table -->
<table bgcolor="#f7f7f7" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open

$_phpinclude_output




<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://www.gamingvidz.com"><img src="$stylevar[imgdir_misc]/ambience_nav_home.gif"><else /><a href="http://www.gamingvidz.com/forum"><img src="$stylevar [imgdir_misc]/ambience_nav_forum.gif"></if></a></td>

mholtum
08-04-2005, 10:47 PM
hmm.. give me abit.. I am not up to coding tonight

GamingVidz.com
08-04-2005, 11:10 PM
Ok, heh it's so crucial because I basically have no link to my forums lol. I wish I knew coding, thank you for the help so far. Anyone else no what's up?

GamingVidz.com
08-05-2005, 01:18 AM
If anyone could help with this it'd be greatly appreciated heh. I really need this thing to work like tonight if possible. Because I should be getting a ton of people coming to the site tomorrow. Because as it is right now, I have a home button and that home button just goes to the front page. But then when I go to the forums and press home again, it goes to the home of the forums... please help me :(

mholtum
08-05-2005, 01:21 AM
why not just create a "forums" button and have it display all the time? Then when you get the code figured out change it. It may be a couple days before I can get to it

GamingVidz.com
08-05-2005, 01:30 AM
I don't know how to do that heh, that would be fine, but I have no idea how to.

Do you?

mholtum
08-05-2005, 01:35 AM
If you send me the psd files and the fonts I can whip that out for you. SHouldnt take more than a couple mins. What is the name of your style? Ambience? I may have that one.

GamingVidz.com
08-05-2005, 01:53 AM
I think I got the image all right, but I simply need help with the coding

see my site:

www.gamingvidz.com

See how currently that forum image has like an extra little bar there?

mholtum
08-05-2005, 02:40 AM
here:Just fix the path to your forums and the forum image name

<!-- begin ambience header-->
<div align="center">
<table bgcolor="#f7f7f7" width="755" border="0" align="center" cellpadding="0" cellspacing="0" class="border">
<tr><td align="left" valign="top">

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_ls.jpg" width="287" height="159" alt="" /></td>
<td width="170" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_mid.jpg" width="170" height="159" alt="" /></td>
<td width="287" height="159" align="left" valign="top"><img src="$stylevar[imgdir_misc]/header_top_rs.jpg" width="287" height="159" alt="" /></td>
<td width="100%" height="159" align="left" valign="top" style="background-image: url('$stylevar[imgdir_misc]/header_top_x.jpg')"><img src="$stylevar[imgdir_misc]/header_top_x.jpg" width="100%" height="159" alt="" /></td>
</tr>
</table>

<table bgcolor="#f7f7f7" width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url('$stylevar[imgdir_misc]/ambience_nav_x.gif')">
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="174" height="25" align="left" valign="top" style="background-image: url('$stylevar[imgdir_misc]/ambience_nav_x.gif')"><img src="$stylevar[imgdir_misc]/ambience_nav_ls.gif" width="174" height="25" alt="" /></td>
<td width="62" height="25" align="left" valign="top"><a href="path_to_forums"><img src="$stylevar[imgdir_misc]/forums.gif" alt="" width="62" height="25" border="0" /></a></td>
<td width="62" height="25" align="left" valign="top"><a href="usercp.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_cp.gif" alt="" width="62" height="25" border="0" /></a></td>
<if condition="$show['registerbutton']">
<td width="65" height="25" align="left" valign="top"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_reg.gif" alt="" width="65" height="25" border="0" /></a></td>
<else />
<td width="65" height="25" align="left" valign="top" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/q_links.gif" alt="" width="65" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>



<td width="60" height="25" align="left" valign="top"><a href="memberlist.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_members.gif" alt="" width="60" height="25" border="0" /></a></td>
<td width="69" height="25" align="left" valign="top"><a href="calendar.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_calendar.gif" alt="" width="69" height="25" border="0" /></a></td>
<td width="57" height="25" align="left" valign="top" id="navbar_search"><a href="search.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_search.gif" alt="" width="57" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
<td width="42" height="25" align="left" valign="top"><a href="faq.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_faq.gif" alt="" width="42" height="25" border="0" /></a></td>
<td width="100%" height="25" align="left" valign="top" style="background-image: url('$stylevar[imgdir_misc]/ambience_nav_x.gif')"><img src="$stylevar[imgdir_misc]/ambience_nav_rs.gif" width="100%" height="25" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<!-- end ambience header-->





<!-- begin main inner table area-->
<table border="0" width="100%" cellpadding="10" cellspacing="0" bgcolor="#F7F7F7">
<tr><td>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#EDEDED">
<tr>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/ls_main_table_top.gif" width="12" height="8" alt="" /></td>
<td width="100%" align="left" valign="top"><img src="$stylevar[imgdir_misc]/expand_main_table.gif" width="100%" height="8" alt="" /></td>
<td width="12" align="left" valign="top"><img src="$stylevar[imgdir_misc]/rs_main_table_top.gif" width="12" height="8" alt="" /></td>
</tr>
</table>
<!-- content table -->
<table bgcolor="#f7f7f7" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>



$spacer_open

$_phpinclude_output




<td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="http://www.gamingvidz.com"><img src="$stylevar[imgdir_misc]/ambience_nav_home.gif"><else /></a><a href="http://www.gamingvidz.com/forum"><img src="$stylevar [imgdir_misc]/ambience_nav_forum.gif"></if></a></td>

GamingVidz.com
08-05-2005, 02:54 AM
So I just need to change the image path or can I just post that code directly in?

GamingVidz.com
08-05-2005, 04:01 AM
I put it in, but I don't think it changed anything, look here:

www.gamingvidz.com

It's still messed up. That code made the forum code a broken link and added an extra home button right above the google ad.

How about I just add one more simple button that is forum to the header? Whenever I do it, it always screws up lol.

GamingVidz.com
08-05-2005, 05:55 AM
NM I figured out a way it works