View Full Version : forumhome/forumdisplay New Threads button question


kall
20th August 2004, 02:47 PM
Does anyone have any idea why I get a New Threads button on this forumdisplay.php for only one sub-forum and not others?

http://forums.nzboards.com/forumdisplay.php?f=14&styleid=23

As far as I can remember, I only made the edits to forumhome_level2_post so can't work out why it is showing on forumdisplay.php at all...not that I would mind if it was showing on all of them.

gthelp.com
21st August 2004, 02:36 AM
check your template ... it looks like you have an error in your condtional statement(s)

eg. look at your source code
<else>
</else>

kall
21st August 2004, 03:59 AM
Thanks for having a look. :)

Now, the question remains, which template? Or, 'how exactly does the forumhome_level2_post template affect what is shown forumdisplay.php?'

The conditional in forumhome_level2_post is as follows: (with a bit of what comes before and after it)


<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px">
$forum[subforums]</div></if>
<if condition="$forum[forumid]!=16 AND $forum[forumid]!=17 AND $forum[forumid]!=18 AND $forum[forumid]!=19">

<div style="float: right; right:0; top:0;">
<a href="newthread.php?$session[sessionurl]do=newthread&amp;f=$forum[forumid]"><img src="images/misc/forumhome/startnew.gif" alt="Start New Thread" border="0" vspace="2 px" hspace="2 px" align="left"/></a>
<a href="search.php?$session[sessionurl]do=getnew&amp;f=$forum[forumid]"><img src="images/misc/forumhome/viewnew.gif" alt="Get New Threads" border="0" vspace="2 px" hspace="2 px" align="left"/></a>
</div></if><else />
</td>
<td class="alt2" width="200" nowrap="nowrap">$forum[lastpostinfo]</td>

gthelp.com
21st August 2004, 10:21 PM
if you look closely you will find <else />

You have to find why the <else /> is there ... it could just be remnants of some modifications that you made or it could be part of a coditional.

kall
22nd August 2004, 12:38 AM
I should have mentioned this in my last post, but removal of that <else /> does nothing.

:)

What forumhome_ templates are used in forumdisplay?