![]() |
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.
https://vborg.vbsupport.ru/external/2008/11/77.jpg ty in advance. |
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 /> This is what the section looks like on my template: Code:
<!-- controls above postbits --> |
|
any one ?
|
any answers :-? yet ?
|
That actually saved without any issues? It looks like it has two extra <else /> tags in there that he added.
|
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 --> |
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.
|
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 |
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> |
Quote:
|
The html looks correct now.
Just like most html tags, you have a beginning and end tag. For columns, the tag is <td>. So, every time you have a beginning <td>, you must have an ending td </td>. You were missing the end td tag, </td>. |
Thanks for taking a look. :)
|
All times are GMT. The time now is 07:14 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|