The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
1 simple question
I just want to know what code to put and which template to get the new thread button on the view forum page over postbit just like below.
ty in advance. |
#2
|
||||
|
||||
Find the SHOWTHREAD template,
In there you'll find: <!-- controls above postbits --> Inside that section of code, find: Code:
<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> Code:
<td class="smallfont"><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> <else /> <td class="smallfont"> </td> This is what the section looks like on my template: Code:
<!-- controls above postbits --> <table cellpadding="0" cellspacing="0" border="0" width="25%" style="margin-bottom:3px"> <tr valign="bottom"> <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> <td class="smallfont"><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> <else /> <td class="smallfont"> </td> </if> <if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above postbits --> |
#3
|
|||
|
|||
Looks like this -
ty. |
#4
|
|||
|
|||
any one ?
|
#5
|
|||
|
|||
any answers :-? yet ?
|
#6
|
||||
|
||||
That actually saved without any issues? It looks like it has two extra <else /> tags in there that he added.
|
#7
|
||||
|
||||
It worked on my 3.6 board.
I just now put it into my 3.7 board and tweaked it a bit. The whole thing now looks like this: Code:
<!-- controls above postbits --> <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px"> <tr valign="bottom"> <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> <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> <else /> <td class="smallfont"> </td> </if> <if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if> </tr> </table> <!-- / controls above postbits --> |
#8
|
||||
|
||||
I have a feeling the html is screwed up because of the added else tag. It's hard to know without seeing the real browser page source for that area.
|
#9
|
||||
|
||||
Initially I had the space between the 'Reply' and 'New' buttons just like org knopper but I took out the extraneous "else" as well as the second td class=smallfont tag. Now mine line up perfect. One right next to the other.
One odd thing though, I didn't get the usual "This template has been updated in the following styles..." type message. The one where it lists each template and has Done at the end. Instead, the edit template page simply reloaded and that was it. You can check what it looks like at www.vermontoutdoors.net |
#10
|
||||
|
||||
Yeah, the <else /> is screwing it up for you - you are missing the </td> after the newthread image/link (the browser is smart enough to interpret it correctly, but you'd get errors if you tried to validate the html). I think you can change this line by removing the stuff in red:
Code:
<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> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|