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 -> PhpBB3 General Support
Zudane

Subforum glitch

Okay, not sure if something was changed or not, but I just noticed this...

With the code I posted earlier in the webpage design section, I found there was a small problem with it, and I can't figure out why.

The index looked fine, but when a forum with a subforum was opened, the entire table got thrown off like it wasn't there.  I could remove the <table> tag and there would be no change, I had to move that tag to the before the begin forumrow tag.  But it only did this in the sub forums.

I narrowed it down looking through the viewforum_body template, and the problem was fixed just by removing the include forumlist_body.html bit from the subforum section, so I know the problem has to be within that one, or related to it.  I just can't figure it out!

Any ideas or help?  Is there a separate name for the subforum categories? Perhaps the
Code:
   <!-- IF forumrow.S_IS_CAT -->
is where the error is, because in the the subforum that category might not exist, so it never executes the start of the table... but I'm not sure what to add to it, perhaps  
Code:
  <!-- IF (forumrow.S_IS_CAT or forumrow.S_FIRST_ROW) -->
would do it?
Zudane

Okay, so using the S_FIRST_ROW does give the table there, but it also gives the first row of the subforums as a category style.  Showing the header bar and only the name - not posts/threads/last post or any of that.

Any other ideas?
admin (no pm's please)

The only subforum flag is S_HAS_SUBFOUM which is set when there are no sub forums, otherwise the index page and the forums part of the view forum page both use the same forumlist_body.tpl file.
Zudane

Any ideas to get around this?

I need the table tag inside the S_IS_CAT command to get separate tables on in the index, but if the table tag is inside the S_IS_CAT it doesn't initialize when the subforum hits, but the end of the table tag still does, making the forum with a subforum appear at the bottom of the page, under the left-side portal - and the Subforum list is outside of a table, and completely unorganized.
admin (no pm's please)

Well you just replace the INCLUDE of the forum list body with your own template code.
Zudane

Don't quite think this is what you meant.. but I had an epiphany.  If it doesn't initialize the table code since it's not a category.. why not just put the table tag inside the S_IF_SUBFORUM?

Tried that, and it worked... so I just added this into the viewforum_body template

Code:
<table class="tablebg" cellspacing="1" width="100%">
        <tr>
            <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
            <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
            <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
            <th>&nbsp;{L_LAST_POST}&nbsp;</th>
   </tr>


Went between
Code:
<!-- IF S_HAS_SUBFORUM -->

   <!-- INCLUDE forumlist_body.html -->


so it automatically starts the table, and adds the header bar. ^_^  Finished code for the subforum looks like this...


Code:
<!-- IF S_HAS_SUBFORUM -->
<table class="tablebg" cellspacing="1" width="100%">
        <tr>
            <th colspan="2">&nbsp;{L_FORUM}&nbsp;</th>
            <th width="50">&nbsp;{L_TOPICS}&nbsp;</th>
            <th width="50">&nbsp;{L_POSTS}&nbsp;</th>
            <th>&nbsp;{L_LAST_POST}&nbsp;</th>
   </tr>
   <!-- INCLUDE forumlist_body.html -->
   <br clear="all" />
<!-- ENDIF -->

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