The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
Replace Navbar Link with Image
I'm doing something totally wrong here, and if someone could give me a little help I'd really really appreciate it.
I'm trying to replace some navbar links with images, and it's not working. I'm using an edited template and a plugin. vbcms_navbar_link: HTML Code:
<vb:if condition="$vboptions['selectednavtab'] == 'vbcms'"> <li class="selected"> <a class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a> <ul class="floatcontainer"> {vb:raw template_hook.vbcms_navbar_start} <vb:if condition="$links"> <vb:each from="links" value="link"> <li><a href="{vb:raw link.url}"><vb:if condition="$pngexists"><img src="$pngexists" border="0" /><vb:else />{vb:raw link.title}</vb:if></a></li> </vb:each> <vb:else /> <li class="hidden"> </li> </vb:if> {vb:raw template_hook.vbcms_navbar_end} </ul> </li> <vb:else /> <li><a class="navtab" href="{vb:raw vboptions.site_tab_url}{vb:raw session.sessionurl_q}">{vb:rawphrase site}</a></li> </vb:if> Plugin: PHP Code:
Other than that, should this work? Thanks! Chani --------------- Added [DATE]1268684680[/DATE] at [TIME]1268684680[/TIME] --------------- I just realized that I have this in the wrong forum. Could a moderator please move it to vB4 programming? Thanks! --------------- Added [DATE]1268704502[/DATE] at [TIME]1268704502[/TIME] --------------- using the same template, I've read a little more about template variables, but I'm still trying to figure this out. Forgive my ignorance in programming. PHP Code:
Again, please forgive my ignorance here, but how do you translate the template variable {vb:raw link.title} to php for my plugin? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|