The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Moving 'largereplybutton' to navbar
Hello, I'm trying to modify my template to show the reply, closed and new thread buttons inside the navbar. I thought it was working ok, but today i closed a thread and realized the closed button isn't shown, instead, i have the reply button.
This is my navbar table, i want it to look alike webhostingtalk.com forums: Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="alt1" width="100%"><div style="font-weight:bold" class="pspace"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /> <a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a> » $navbits[breadcrumb] $navbits[lastelement]</div></td> <if condition="$show['largereplybutton']"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$FIRSTPOSTID" rel="nofollow"><if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if></a></td> <else /> <td class="smallfont"> </td> </if> <if condition="$show['newthreadlink']"> <td class="alt1"><a href="newthread.php?$session[sessionurl]do=newthread&f=$foruminfo[forumid]" rel="nofollow"><img src="$stylevar[imgdir_button]/newthread.gif" alt="$vbphrase[post_new_thread]" border="0" /></a><else /></td></if> </tr> </table> Thank you in advance |
#2
|
||||
|
||||
You have inverted the code, as far as I can see..
Code:
<if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /><else /><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /></if> Code:
<if condition="$show['closethread']"><img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /><else /><img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /></if> |
#3
|
|||
|
|||
Thanks for answering, that's exactly what I thought, so I tried changing that, but if I do it, then every post shows the 'closed thread' button.
This is the default code in showthread template: Code:
<if condition="$show['largereplybutton']"> <td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&noquote=1&p=$LASTPOSTID" rel="nofollow"> <if condition="$show['closethread']"> <img src="$stylevar[imgdir_button]/reply.gif" alt="$vbphrase[reply]" border="0" /> <else /> <img src="$stylevar[imgdir_button]/threadclosed.gif" alt="$vbphrase[closed_thread]" border="0" /> </if></a></td> <else /> <td class="smallfont"> </td> </if> |
#4
|
||||
|
||||
Oh, it's right. Zorry.
Then you could try to check your images folder. Maybe you've inverted some buttons.. changing the name. |
#5
|
|||
|
|||
Hmm... actually, every image seems to be ok, maybe there is a trick to move that button into the navbar, but haven't been able to make it work as i want.
|
#6
|
||||
|
||||
Zorry but I can't help you, obmob.
|
#7
|
||||
|
||||
Where is your forum? Maybe I can help if I see it.
|
#8
|
|||
|
|||
Thanks triky.
Oh, thanks gotlinks, there are a couple. www.anizeen.com in english www.ositobarrigon.com in spanish |
#9
|
||||
|
||||
Well what you need to do is somehow define the large reply button only if your viewing a thread, I am not sure how to do that exactly but thats how it should be done.
|
#10
|
|||
|
|||
Yeah, i took the code from showthread, but it seems it only works inside that template.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|