Archive for myfreeforum.org Before posting please check the "stickies" in the support forums.
Please ask questions in real English and not "txt". You will get a better response.
Please do not ask support questions via PMs.
 



       myfreeforum.org Forum Index -> PhpBB2 General Support
I'm_Hackin'_Bored!

Separating Topic's

PLEASE ENTER THE FOLLOWING>>>>

URL: http://hbclanserver.myfreeforum.org/

Active Template: myff_hbclanserver4

Searched on: Separating announcements, separating categories, Modules, splitting, ect.

Topics I found useful and referred too...

TOPIC 1

TOPIC 2

Now ask your question in clear English without "txt" speak>>>>

I have been trying to separate my forums into categories. I have 2 things here. Separating the subforums into a "Sub-Forum" Category and separating the announcements and stickies into a "Important Topics" Category. The sub-Forums by itself works and is what I currently use on my forum. When I go to separate the attatchments and stickies it works but only on the first topic in my forum(in my case: "General Server Discussion"), on the rest of the forum the topics all disappear. I'm sure there is a mistake in my code but I'm not sure where I messed up. If anyone can take a look and see if they can find anything that would be great, thank you. Any questions are welcome.

This is my viewforum_body.tpl with sub-forums and announcements/stickies categorized.
Spoiler:

Code:
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="96%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
     <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
     <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
   </tr>
   <tr>
     <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
     <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo;  <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
     <td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
   </tr>
  </table>
<!-- IF S_SUBFORUMS >0 -->
<table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sub Forums&nbsp;</th>

<th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>

<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- ENDIF -->
<!-- END topicrow -->

</table>
<!-- ENDIF -->
  <table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
   <tr>
     <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE != "Sub-forum: " -->
   <tr>
     <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="26" height="26" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{CELL1_OVER}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{CELL1}" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
      {topicrow.GOTO_PAGE}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
     <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
     <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- BEGIN switch_no_topics -->
   <tr>
     <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
   </tr>
   <!-- END switch_no_topics -->
   <tr>
     <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="cattitle">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
      <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
      </span></td>
   </tr>
  </table>
<img src="templates/myff_hbclanserver4/images/nav_shadow.gif" width="95%" height="8">
  <table width="96%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo;  <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
     <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
      </td>
   </tr>
   <tr>
     <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
   </tr>
  </table>
</form>

<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="96%" cellspacing="0" border="0" align="center" cellpadding="0">
   <tr>
      <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
         <tr>
            <td width="25" align="left"><img src="templates/myff_hbclanserver4/images/folder_new.gif" alt="{L_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder.gif" alt="{L_NO_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_announce.gif" alt="{L_ANNOUNCEMENT}" width="26" height="26" /></td>
            <td class="gensmall">{L_ANNOUNCEMENT}</td>
         </tr>
         <tr>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_new_hot.gif" alt="{L_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_hot.gif" alt="{L_NO_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_sticky.gif" alt="{L_STICKY}" width="26" height="26" /></td>
            <td class="gensmall">{L_STICKY}</td>
         </tr>
         <tr>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock_new.gif" alt="{L_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
            <td>&nbsp;&nbsp;</td>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock.gif" alt="{L_NO_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
         </tr>
      </table></td>
      <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
   </tr>
</table>

admin (no pm's please)

Your forum is wider than a 1280 screen   I think you need to deal with a problem like that before messing about more with the template.
I'm_Hackin'_Bored!

Im not sure what you are getting at with this. My forum is viewed very nicly to my screen and I have viewed it from other computer's as well. Not to mention compliments on how nicely it fits. How is it to big? =S Can you explain better maybe? Since I can view it on a very small screen and still see it all. How can I fix this "problem"?

EDIT: I think I know what happened, the size should be fixed or at-least a lot better.

Also with the code I know it's a simple error.
admin (no pm's please)

It is the right size now
I'm_Hackin'_Bored!

Yay :P Thanks. Any help with the code? I think I messed up the IF statements somehow but whenever I change from what I have, it seems the board disappears. Thanks again.
admin (no pm's please)

The trick here is to post the template with only the control structures, strip out the code between them.

I'm bleary eyed looking at it, and I can't see the issue because of all that code! It looks to me like you have only two loops, when you plainly need 3 one for each section you want to show, maybe I'm wrong? lose the code and the issue will stand out. e.g. keep the loops, the ifs and endifs lines, strip the rest. (OF COURSE NOT IN THE ACTUAL EDITED TEMPLATE!, JUST WHAT YOU POST HERE).
I'm_Hackin'_Bored!

Gah, somehow I originally posted the wrong code. This is the code i'm working with

Spoiler:

Code:
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="96%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
     <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
     <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
   </tr>
<table border="0" cellpadding="2" cellspacing="1" width="96%" class="forumline">
   <!-- IF S_ANNOUNCEMENTS  > 0 -->
   <tr>
      <th colspan="2">Important Topics</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1-->
   <tr>
      <td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></a></td>
      <td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.GLOBAL_ANNOUNCEMENTS}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
         {topicrow.GOTO_PAGE}</span></td>
      <td class="row2" align="center"><span class="gensmall">{topicrow.REPLIES}</span></td>
      <td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.TOPIC_AUTHOR}&nbsp;</span></td>
      <td class="row2" align="center"><span class="gensmall">{topicrow.VIEWS}</span></td>
      <td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
         {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
 <!-- ENDIF -->
   <!-- END topicrow -->
<table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
<!-- IF S_SUBFORUMS > 0 -->
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sub Forums&nbsp;</th>

<th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>

<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- ENDIF -->
<!-- END topicrow -->
   <!-- ELSE --><!-- ENDIF -->
 <!-- ENDIF -->
   <!-- IF S_ANNOUNCEMENTS  > 0 -->
  <table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
   <tr>
     <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN topicrow -->
<!-- IF  topicrow.S_TOPIC_TYPE == 0  -->
   <tr>
     <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="26" height="26" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{CELL1_OVER}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{CELL1}" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
      {topicrow.GOTO_PAGE}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
     <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
     <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- ELSE --><!-- ENDIF -->
   <!-- BEGIN switch_no_topics -->
   <tr>
     <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
   </tr>
   <!-- END switch_no_topics -->
   <tr>
     <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="cattitle">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
      <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
      </span></td>
   </tr>
  </table>
<img src="templates/myff_hbclanserver4/images/nav_shadow.gif" width="95%" height="8">
  <table width="96%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo;  <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
     <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
      </td>
   </tr>
   <tr>
     <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
   </tr>
  </table>
</form>

<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="96%" cellspacing="0" border="0" align="center" cellpadding="0">
   <tr>
      <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
         <tr>
            <td width="25" align="left"><img src="templates/myff_hbclanserver4/images/folder_new.gif" alt="{L_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder.gif" alt="{L_NO_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_announce.gif" alt="{L_ANNOUNCEMENT}" width="26" height="26" /></td>
            <td class="gensmall">{L_ANNOUNCEMENT}</td>
         </tr>
         <tr>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_new_hot.gif" alt="{L_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_hot.gif" alt="{L_NO_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_sticky.gif" alt="{L_STICKY}" width="26" height="26" /></td>
            <td class="gensmall">{L_STICKY}</td>
         </tr>
         <tr>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock_new.gif" alt="{L_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
            <td>&nbsp;&nbsp;</td>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock.gif" alt="{L_NO_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
         </tr>
      </table></td>
      <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
   </tr>
</table>



Then taking your tip here it is stripped...

Code:

   <!-- IF S_ANNOUNCEMENTS  > 0 -->

   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1-->

 <!-- ENDIF -->
   <!-- END topicrow -->  

<!-- IF S_SUBFORUMS > 0 -->

<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->

<!-- ENDIF -->
<!-- END topicrow -->

   <!-- ELSE --><!-- ENDIF -->
 <!-- ENDIF -->
   <!-- IF S_ANNOUNCEMENTS  > 0 -->

   <!-- BEGIN topicrow -->

<!-- IF  topicrow.S_TOPIC_TYPE == 0  -->


<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- ELSE --><!-- ENDIF -->
   <!-- BEGIN switch_no_topics -->

   <!-- END switch_no_topics -->


Still unsure of my mistake. This code works on the first forum thread very nicely, but the rest of the forum disappears when it's used.
admin (no pm's please)

Code:

<!-- IF S_ANNOUNCEMENTS  > 0 -->

   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1-->

 <!-- ENDIF -->
   <!-- END topicrow -->  

<!-- IF S_SUBFORUMS > 0 -->


We can see a mistake there. You will only  get to the last line there, if there is an announcement, there needs to be an ENDIF before the subforums IF.
I'm_Hackin'_Bored!

Placing an  ENDIF  before the IF subforum causes all topics to disappear. =/
admin (no pm's please)

and this is not a surprise as you only have two loops, one going through announcements and one going through the sub-forums.
I'm_Hackin'_Bored!

I must need help with the last one then. I can't figure this out, I have done trial and error, I don't know how many times. It gets it just the way I want but does not show in all topics still. I must need help with the last loop. =/

I left it on the forum at the moment so you can see what exactly is happening, I will change it back to normal once you respond.

Working in this topic... HERE

Other Topics look like this... HERE
admin (no pm's please)

Looking at broken results won't help.

Have you added another loop to the template code? Do you actually understand the code?

That is really the crux of the matter. Anyone can miss an ENDIF in the full code, in the stripped code if you understand what the code does then it should have been noticed. To put in the main topics loop is trivial but only if you have an understanding of what the code does.
I'm_Hackin'_Bored!

I must not understand the Main Topics Loop at all. But I know the loop's are, IF statement then begin the topic, pick out what you want to show in the table, end if, and then end topic. Is this not right? I also found the following code a bit better but still has missing topics in places...

Code:

   <!-- IF S_ANNOUNCEMENTS  > 0 -->

   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1-->
 
 <!-- ENDIF -->
   <!-- END topicrow -->

 <!-- ENDIF -->
 
<!-- IF S_SUBFORUMS > 0 -->

<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->

<!-- ENDIF -->
<!-- END topicrow -->

 <!-- ENDIF -->
   <!-- IF S_ANNOUNCEMENTS  > 0 -->

   <!-- BEGIN topicrow -->

<!-- IF  topicrow.S_TOPIC_TYPE == 0  -->

<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- ELSE --><!-- ENDIF -->

   <!-- BEGIN switch_no_topics -->
Sigh...
I'm_Hackin'_Bored!

OK, I'm very close now, only a few sections don't have all the normal topics and announcements/stickies. But the sub-forums appear everywhere they are suppose too.

Stripped code... Where am I going wrong now?

Code:

   <!-- IF S_ANNOUNCEMENTS  >0 -->
 
   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1-->

 <!-- ENDIF -->
   <!-- END topicrow -->

 <!-- ELSE --><!-- ENDIF -->

<!-- IF S_SUBFORUMS >0 -->

<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->

<!-- ENDIF -->
<!-- END topicrow -->

   <!-- ELSE --><!-- ENDIF -->

   <!-- BEGIN topicrow -->

<!-- IF  topicrow.S_TOPIC_TYPE == 0  -->

<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- BEGIN switch_no_topics -->

   <!-- END switch_no_topics -->
admin (no pm's please)

that looks more like it:

But you may be missing spaces:

Code:

  <!-- IF S_ANNOUNCEMENTS  >0 -->
 
   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1-->



>0 and 1--> are wrong. They should be > 0 and  1 -->
I'm_Hackin'_Bored!

I went through and fixed these but it seems it had little or no difference. The last two tables on the index do not show all topics yet. Everything else seems to work fine except for the occasional missing topic which I believe are "polls" I'm sure I can solve this by including them in a IF statement. But there is still the issues of topics not showing up. =/ Almost there.
I'm_Hackin'_Bored!

Any more suggestions? It works nicely but the last 2 tables on the index still have missing post's for some reason. I have gone over it and messed with this for quite some time now.

Any help would be great.

In case, here is my newest code
Code:
   <!-- IF S_ANNOUNCEMENTS  > 0 -->

   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1 -->

 <!-- ENDIF -->
   <!-- END topicrow -->

 <!-- ELSE --><!-- ENDIF -->

<!-- IF S_SUBFORUMS > 0 -->

<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->

<!-- ENDIF -->
<!-- END topicrow -->

   <!-- ELSE --><!-- ENDIF -->

   <!-- BEGIN topicrow -->

<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->

<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- BEGIN switch_no_topics -->

   <!-- END switch_no_topics -->
admin (no pm's please)

There is no longer anything obviously wrong.

So it may once again need the whole code posted along with screenshots of the forum without the code and with the code etc.

Probably the knowledge that you have of exactly what goes missing would be enough to logically figure out what must be wrong.
I'm_Hackin'_Bored!

Ok, here we go :P

http://hbclanserver.myfreeforum.org/

Current working myff_hbclanserver4/viewforum_body.tpl file

Spoiler:

Code:
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="96%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
     <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
     <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
   </tr>
   <tr>
     <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
     <td align="left" valign="middle" class="nav" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo;  <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
     <td align="right" valign="bottom" class="nav" nowrap="nowrap"><span class="gensmall"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></span></td>
   </tr>
  </table>
<!-- IF S_SUBFORUMS >0 -->
<table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sub Forums&nbsp;</th>

<th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>

<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- ENDIF -->
<!-- END topicrow -->

</table>
<!-- ENDIF -->
  <table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
   <tr>
     <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE != "Sub-forum: " -->
   <tr>
     <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="26" height="26" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{CELL1_OVER}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{CELL1}" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
      {topicrow.GOTO_PAGE}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
     <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
     <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- BEGIN switch_no_topics -->
   <tr>
     <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
   </tr>
   <!-- END switch_no_topics -->
   <tr>
     <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="cattitle">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
      <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
      </span></td>
   </tr>
  </table>
<img src="templates/myff_hbclanserver4/images/nav_shadow.gif" width="95%" height="8">
  <table width="96%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo;  <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
     <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
      </td>
   </tr>
   <tr>
     <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
   </tr>
  </table>
</form>

<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="96%" cellspacing="0" border="0" align="center" cellpadding="0">
   <tr>
      <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
         <tr>
            <td width="25" align="left"><img src="templates/myff_hbclanserver4/images/folder_new.gif" alt="{L_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder.gif" alt="{L_NO_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_announce.gif" alt="{L_ANNOUNCEMENT}" width="26" height="26" /></td>
            <td class="gensmall">{L_ANNOUNCEMENT}</td>
         </tr>
         <tr>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_new_hot.gif" alt="{L_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_hot.gif" alt="{L_NO_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_sticky.gif" alt="{L_STICKY}" width="26" height="26" /></td>
            <td class="gensmall">{L_STICKY}</td>
         </tr>
         <tr>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock_new.gif" alt="{L_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
            <td>&nbsp;&nbsp;</td>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock.gif" alt="{L_NO_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
         </tr>
      </table></td>
      <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
   </tr>
</table>



New myff_hbclanserver4/viewforum_body.tpl file that causes the topics to disappear

Spoiler:

Code:
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="96%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
     <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
     <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
   </tr>

<table border="0" cellpadding="2" cellspacing="1" width="96%" class="forumline">
   <!-- IF S_ANNOUNCEMENTS  > 0 -->
   <tr>
      <th colspan="2">Important Topics</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1 -->
   <tr>
      <td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></a></td>
      <td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.GLOBAL_ANNOUNCEMENTS}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
         {topicrow.GOTO_PAGE}</span></td>
      <td class="row2" align="center"><span class="gensmall">{topicrow.REPLIES}</span></td>
      <td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.TOPIC_AUTHOR}&nbsp;</span></td>
      <td class="row2" align="center"><span class="gensmall">{topicrow.VIEWS}</span></td>
      <td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
         {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
 <!-- ENDIF -->
   <!-- END topicrow -->
 <!-- ELSE --><!-- ENDIF -->

<table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
<!-- IF S_SUBFORUMS > 0 -->
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sub Forums&nbsp;</th>

<th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>

<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- ENDIF -->
<!-- END topicrow -->

   <!-- ELSE --><!-- ENDIF -->

  <table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
   <tr>
     <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>

   <!-- BEGIN topicrow -->
<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->

   <tr>
     <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="26" height="26" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{CELL1_OVER}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{CELL1}" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
      {topicrow.GOTO_PAGE}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
     <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
     <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- BEGIN switch_no_topics -->
   <tr>
     <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
   </tr>
   <!-- END switch_no_topics -->
   <tr>
     <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="cattitle">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
      <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
      </span></td>
   </tr>
  </table>
<img src="templates/myff_hbclanserver4/images/nav_shadow.gif" width="95%" height="8">
  <table width="96%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo;  <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
     <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
      </td>
   </tr>
   <tr>
     <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
   </tr>
  </table>
</form>

<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td align="right">{JUMPBOX}</td>
  </tr>
</table>

<table width="96%" cellspacing="0" border="0" align="center" cellpadding="0">
   <tr>
      <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
         <tr>
            <td width="25" align="left"><img src="templates/myff_hbclanserver4/images/folder_new.gif" alt="{L_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder.gif" alt="{L_NO_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_announce.gif" alt="{L_ANNOUNCEMENT}" width="26" height="26" /></td>
            <td class="gensmall">{L_ANNOUNCEMENT}</td>
         </tr>
         <tr>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_new_hot.gif" alt="{L_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_hot.gif" alt="{L_NO_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_sticky.gif" alt="{L_STICKY}" width="26" height="26" /></td>
            <td class="gensmall">{L_STICKY}</td>
         </tr>
         <tr>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock_new.gif" alt="{L_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
            <td>&nbsp;&nbsp;</td>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock.gif" alt="{L_NO_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
         </tr>
      </table></td>
      <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
   </tr>
</table>



Images 1 through 5 that show the forum topics BEFORE the new code.

Spoiler:

ONE

TWO

THREE

FOUR

FIVE




Images 1 through 5 AFTER the code is set in place.

Spoiler:

ONE

TWO

THREE

FOUR

FIVE



Hope this helps  Wink
admin (no pm's please)

Very hard to piece together, you have to think of what might be needed to help.

You have not even told me what disappears? Given the sheer number of images that is not exactly obvious.

Have you tried putting debug bits in the template so that you know which bit is displaying as a result of which bit of code?
I'm_Hackin'_Bored!

Debuggin doesn't help much when everything work's fine in most of the forum but not all of it. =/ It's not like it's breaking the whole forum it only affects specific threads. Which I included in the pics.

Stickies and announcements are what disappears but sub-forums remain ok all in all.

However as I said numerous times SOME of the forum does have the stickies and announcements properly displayed.

This is one of the most drastic changes and easiest to see....

The sticky here disappears... you may also notice the "page 1 of 0" bit.

BEFORE



AFTER


I will debug some more but I don't think at this point I will find anything since the debug will show where it is working and won't show where it isn't. The whole code must be being read to work in some area's. But i'll try again.
admin (no pm's please)

<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->

only shows normal topics.
<!-- IF  topicrow.S_TOPIC_TYPE == 0 or  topicrow.S_TOPIC_TYPE == 1 -->

will show stickies as well.

define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);
I'm_Hackin'_Bored!

Just to verify, the debug lines show up where there are no problems. But in the places where topics disappear the debug lines are missing.

So the whole code is being read just not working with the whole forum which I already knew. =/


EDIT: Wow your response was fast. Sorry for this post. I did not see you posted.
I'm_Hackin'_Bored!

Changing my line to

<!-- IF  topicrow.S_TOPIC_TYPE == 0 or  topicrow.S_TOPIC_TYPE == 1 or topicrow.S_TOPIC_TYPE == 2 or topicrow.S_TOPIC_TYPE == 3 -->

Appears to fix alot of it and makes them appear but now announcements and stickies appear in the separate table AND in the normal topics. I only want them to appear in the "Important Topics" Table.

Also there is one instance of stickies being labeled as regular topics.
admin (no pm's please)

Please try and understand what the change to the IF line has done. You can't write code and this is code without understanding.
I'm_Hackin'_Bored!

I understand that this is picking out what is to be displayed... but I only want normal post's displayed in the last table. Since Announcements and stickies are to be displayed in the first table and then subforums.
admin (no pm's please)

So why have you bunged in an IF statement that will pick up all topic types?
I'm_Hackin'_Bored!

admin (no pm's please) wrote:
<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->

only shows normal topics.
<!-- IF  topicrow.S_TOPIC_TYPE == 0 or  topicrow.S_TOPIC_TYPE == 1 -->

will show stickies as well.

define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);


I don't understand why, to me it doesn't make sense, I originally had

<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->

which would pick out normal topics like I wanted. But you suggested stickies as well. That did not help me so I did all. But all it is doing is picking out all topics. I don't want that. There must be something else causing the previous code to not work as I only want normal topics to show in the last table. I did not question you I just did what was suggested unless I took it the wrong way than please correct me.
admin (no pm's please)

I'm_Hackin'_Bored! wrote:
admin (no pm's please) wrote:
<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->

only shows normal topics.
<!-- IF  topicrow.S_TOPIC_TYPE == 0 or  topicrow.S_TOPIC_TYPE == 1 -->

will show stickies as well.

define('POST_NORMAL', 0);
define('POST_STICKY', 1);
define('POST_ANNOUNCE', 2);
define('POST_GLOBAL_ANNOUNCE', 3);


I don't understand why, to me it doesn't make sense, I originally had

<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->

which would pick out normal topics like I wanted. But you suggested stickies as well. That did not help me so I did all. But all it is doing is picking out all topics. I don't want that. There must be something else causing the previous code to not work as I only want normal topics to show in the last table. I did not question you I just did what was suggested unless I took it the wrong way than please correct me.


My point is that you won't get anywhere by layering one bug on top of another in your code. Sticking in a blatantly wrong IF statement is going to help how?

It does not matter if putting in the correct code make things look worse, at least it is the correct code and when you fix the main bug whatever it might be then things will come right.

Sticking in code you should know to be wrong only confuses things even more.
I'm_Hackin'_Bored!

ok, So what else can be done furthur to catch this bug out? Debugging lines don't show me anything more that I don't already know. For some reason the Announcement and Sticky Statements are not getting read in some forum sections and the last table does not always show topics as well. I'm still lost as to why it works but not in all of the forum.
admin (no pm's please)

Well we are back to posting the code without known bugs and showing the simplest case you can find of where it shows up wrong.
I'm_Hackin'_Bored!

Just please. Can I have more help? I even started over from scratch and I have had no luck. I messed with the code at least 4 other different ways and they all have issues with specific topics. I don't understand, can you please answer me "Why does the code work but not in all area's?" I don't see how it's possible. I can't remedy my own problem if it randomly works and doesn't work, it's as if the code does not matter to the problem. I'm stuck back to the original code with the fewest problems but still the same one's mentioned several times before. Im really getting discouraged at this time. This should not be this difficult.

Spoiler:

Code:
<form method="post" action="{S_POST_DAYS_ACTION}">
  <table width="96%" cellspacing="2" cellpadding="2" border="0" align="center">
   <tr>
     <td align="left" valign="bottom" colspan="2"><a class="maintitle" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><br /><span class="gensmall"><b>{L_MODERATOR}: {MODERATORS}<br /><br />{LOGGED_IN_USER_LIST}</b></span></td>
     <td align="right" valign="bottom" nowrap="nowrap"><span class="gensmall"><b>{PAGINATION}</b></span></td>
   </tr>
<table border="0" cellpadding="2" cellspacing="1" width="96%" class="forumline">
   <!-- IF S_ANNOUNCEMENTS  > 0 -->
   <tr>
      <th colspan="2">Important Topics</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN topicrow -->
<!-- IF topicrow.S_TOPIC_TYPE == 2 ||   topicrow.S_TOPIC_TYPE == 3 ||   topicrow.S_TOPIC_TYPE == 1 -->
   <tr>
      <td height="34" class="row1"><a href="{topicrow.U_VIEW_TOPIC}"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></a></td>
      <td class="row1" width="100%">{topicrow.NEWEST_POST_IMG}<span class="topictitle">{topicrow.GLOBAL_ANNOUNCEMENTS}</span><a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a><span class="gensmall"><br />
         {topicrow.GOTO_PAGE}</span></td>
      <td class="row2" align="center"><span class="gensmall">{topicrow.REPLIES}</span></td>
      <td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.TOPIC_AUTHOR}&nbsp;</span></td>
      <td class="row2" align="center"><span class="gensmall">{topicrow.VIEWS}</span></td>
      <td class="row3" align="center" nowrap="nowrap"><span class="gensmall">&nbsp;{topicrow.LAST_POST_TIME}&nbsp;<br />
         {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
 <!-- ENDIF -->
   <!-- END topicrow -->
 <!-- ELSE --><!-- ENDIF -->
<table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
<!-- IF S_SUBFORUMS > 0 -->
<tr>
<th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;Sub Forums&nbsp;</th>
<th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
</tr>
<!-- BEGIN topicrow -->
<!-- IF topicrow.TOPIC_TYPE == "Sub-forum: " -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{topicrow.GOTO_PAGE}</span></td>
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
</tr>
<!-- ENDIF -->
<!-- END topicrow -->
   <!-- ELSE --><!-- ENDIF -->
  <table border="0" cellpadding="4" cellspacing="1" width="96%" class="forumline">
   <tr>
     <th colspan="2" align="center" height="25" class="thCornerL" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_REPLIES}&nbsp;</th>
     <th width="100" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_AUTHOR}&nbsp;</th>
     <th width="50" align="center" class="thTop" nowrap="nowrap">&nbsp;{L_VIEWS}&nbsp;</th>
     <th align="center" class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
   </tr>
   <!-- BEGIN topicrow -->
<!-- IF  topicrow.S_TOPIC_TYPE == 0 -->
   <tr>
     <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="26" height="26" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
     <td class="row1" width="100%" onMouseOver="this.style.backgroundColor='{CELL1_OVER}'; this.style.cursor='hand';" onMouseOut=this.style.backgroundColor="{CELL1}" onclick="window.location.href='{topicrow.U_VIEW_TOPIC}'"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
      {topicrow.GOTO_PAGE}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
     <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
     <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
     <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
   </tr>
<!-- ENDIF -->
   <!-- END topicrow -->
   <!-- BEGIN switch_no_topics -->
   <tr>
     <td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
   </tr>
   <!-- END switch_no_topics -->
   <tr>
     <td class="catBottom" align="center" valign="middle" colspan="6" height="28"><span class="cattitle">{L_DISPLAY_TOPICS}:&nbsp;{S_SELECT_TOPIC_DAYS}&nbsp;
      <input type="submit" class="liteoption" value="{L_GO}" name="submit" />
      </span></td>
   </tr>
  </table>
<img src="templates/myff_hbclanserver4/images/nav_shadow.gif" width="95%" height="8">
  <table width="96%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="left" valign="middle" width="50"><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" /></a></td>
     <td align="left" valign="middle" width="100%"><span class="nav">&nbsp;&nbsp;&nbsp;<a href="{U_INDEX}" class="nav">{L_INDEX}</a> &raquo;  <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
     <td align="right" valign="middle" nowrap="nowrap"><span class="gensmall">{S_TIMEZONE}</span><br /><span class="nav">{PAGINATION}</span>
      </td>
   </tr>
   <tr>
     <td align="left" colspan="3"><span class="nav">{PAGE_NUMBER}</span></td>
   </tr>
  </table>
</form>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
   <td align="right">{JUMPBOX}</td>
  </tr>
</table>
<table width="96%" cellspacing="0" border="0" align="center" cellpadding="0">
   <tr>
      <td align="left" valign="top"><table cellspacing="3" cellpadding="0" border="0">
         <tr>
            <td width="25" align="left"><img src="templates/myff_hbclanserver4/images/folder_new.gif" alt="{L_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder.gif" alt="{L_NO_NEW_POSTS}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_announce.gif" alt="{L_ANNOUNCEMENT}" width="26" height="26" /></td>
            <td class="gensmall">{L_ANNOUNCEMENT}</td>
         </tr>
         <tr>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_new_hot.gif" alt="{L_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_hot.gif" alt="{L_NO_NEW_POSTS_HOT}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_HOT}</td>
            <td>&nbsp;&nbsp;</td>
            <td width="25" align="center"><img src="templates/myff_hbclanserver4/images/folder_sticky.gif" alt="{L_STICKY}" width="26" height="26" /></td>
            <td class="gensmall">{L_STICKY}</td>
         </tr>
         <tr>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock_new.gif" alt="{L_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NEW_POSTS_LOCKED}</td>
            <td>&nbsp;&nbsp;</td>
            <td class="gensmall"><img src="templates/myff_hbclanserver4/images/folder_lock.gif" alt="{L_NO_NEW_POSTS_LOCKED}" width="26" height="26" /></td>
            <td class="gensmall">{L_NO_NEW_POSTS_LOCKED}</td>
         </tr>
      </table></td>
      <td align="right"><span class="gensmall">{S_AUTH_LIST}</span></td>
   </tr>
</table>

I'm_Hackin'_Bored!

Ok, If it helps. The area's that cause problems and have missing post's are area's that don't have regular topic's in them. The area's with problem's only have subforums and/or stickies and/or announcements. I believe this to be the key.
admin (no pm's please)

I don't have time to look now.

Remember that this is just a cosmetic effect but one that needs programming ability.

I have given you a lot of help already, but what we don't do, is go onto people forums and do it for them.

As this is just cosmetic it is not something we can consider a support priority or even within the realms of what we should support.

I will try and have a look later.
I'm_Hackin'_Bored!

I thought I would come back to say, I started over completely and re-wrote all the Statements the way I wanted it to work and it works now. No missing topics, anywhere.  There must of been a bad line somewhere causing it to not work properly.

I know it depends on templates and such but there maybe should be some kind of guide done on this since this cosmetic effect seems to be wanted a lot and there isnt a very clear guide anywhere. Maybe even built into the forums as an option to choose how your topic tables are layed out? Not demanding anything, only an idea. Probably difficult with so many types of templates.

Thanks for your help anyway didn't mean to waste your time if I did.
admin (no pm's please)

The problem is as you have found out that this is very much programming, one missing space and you will have something that does not work, and since the code has to be worked into a template no guide can give a copy and paste of what to write.

It is also extraordinarily hard for me or anyone else to spot every error just by looking a the code

Well done for solving it though

       myfreeforum.org Forum Index -> PhpBB2 General Support
Page 1 of 1
Create your own free forum | Buy a domain to use with your forum