View Full Version : [3.0.x] 'SHOWTHREAD' Template Change


Oblivion Knight
20th November 2004, 01:43 AM
Ever noticed that if you use the "postbit_legacy" template instead of "postbit", the reply/closed button and pagenav aren't separated from the bottom post of each thread? Is this annoying you? Fear not, I have a fix (though it's somewhat sloppy)!


Open up your SHOWTHREAD template, find:
<td class="smallfont"><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID"><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>Replace it with:
<td class="smallfont"><div style="padding-top:3px; "><a href="newreply.php?$session[sessionurl]do=newreply&amp;noquote=1&amp;p=$LASTPOSTID"><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></div></td>Now, find:
<if condition="$show['pagenav']"><td align="$stylevar[right]">$pagenav</td></if>Replace it with:
<if condition="$show['pagenav']"><td align="$stylevar[right]"><div style="padding-top:3px; ">$pagenav</div></td></if>
You're done! Screenshots attached, much improved - I'm sure you'll agree.. :)

HiDeo
20th November 2004, 01:47 AM
Nice modification, I make it in my test forum ;)

Tony
20th November 2004, 03:34 AM
Nice mod OK, thank you for sharing. :)

Daniel C
20th November 2004, 04:04 AM
Ok am I blind or can i not see a difference in the screenshots?

Floris
20th November 2004, 10:58 AM
Nice of you to share with us, 150 karma points for you! :)

Oblivion Knight
20th November 2004, 11:05 AM
Ok am I blind or can i not see a difference in the screenshots?You're blind.. :)

There's a 3px gap between the table border and the reply button & pagenav in the "AFTER" screenshot. I guess this is probably less visible on screen resolutions higher than 1024x768.. I don't know.