Log in

View Full Version : Navbar Images


douffle
10-02-2008, 03:06 PM
I have Googled all over the place, searched vBulletin.org, as well as many other vBulletin related sites and I cannot find any tips on how to replace the text links in the vBulletin Navbar with images.

Does anyone know how to do this? I believe it requires editing the Navbar template at the <!-- nav buttons bar --> . <!-- /nav buttons bar --> location but I don't know how this is done.

I tried simply replacing this:

<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>

with this:

<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">img src="images/myimage.gif"</a></td>

but that didn't work. :confused:

I then tried using <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">url('images/myimage.gif')</a></td>

but that doesn't work either. :mad:

Can anyone explain how to do this?

Thanks

Cip
10-02-2008, 03:28 PM
This one is almost right:
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">img src="images/myimage.gif"</a></td>

I think what your problem is might be caused by the lack of tags. (I have no idea if this is the proper term, heh.) Try changing the red text into:
<img src="images/myimage.gif">

Lynne
10-02-2008, 03:54 PM
Cip is correct. You weren't using a proper image tag. Make sure your image path is correct. The correct line, using Cip's image tag, would be:
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]"><img src="images/myimage.gif"></a></td>

douffle
10-02-2008, 08:18 PM
:)This one is almost right:
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">img src="images/myimage.gif"</a></td>

I think what your problem is might be caused by the lack of tags. (I have no idea if this is the proper term, heh.) Try changing the red text into:
<img src="images/myimage.gif">

Yes, You are correct. A stupid mistake to say the least! Thank you very much for your help.

I now have just one problem withthe navbar,... I have replaced all of the text links with images but I want to get rid of those two little 'down arrows' next to the "Search" and "Quick Links" buttons. Can you tell me what part of the template code controls these?

Thanks, I really do appreciate your help. :)

Lynne
10-02-2008, 08:43 PM
search "arrows" "titles only" and you get this - Removing arrows from dropdown menu links (https://vborg.vbsupport.ru/showthread.php?t=130532&highlight=arrows)

douffle
10-02-2008, 10:55 PM
search "arrows" "titles only" and you get this - Removing arrows from dropdown menu links (https://vborg.vbsupport.ru/showthread.php?t=130532&highlight=arrows)

Excellent! Thank you very much Lynne. :D :up: