remove "Last Post" "Threads" & "Posts" from title bar of main foru

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ACCLUDE
    New Member
    • Nov 2004
    • 14
    • 3.0.3

    remove "Last Post" "Threads" & "Posts" from title bar of main foru

    Ok, I'm starting to get an understanding of modifying templates but I'm still not quite getting it.

    I tried to remove the words "Last Post" "Threads" & "Posts" from the title bar of all forums on the main page. But I still want them there on the sub-forum pages.

    Here's what I did:

    in Style Manager > Forum Home Templates > forumhome_forumbit_level1_nopost

    I deleted the red lines


    Code:
     <tr align="center">
    <td class="thead">&nbsp;</td>
    <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
    [color=red]<td class="thead" width="175">$vbphrase[last_post]</td>
    <td class="thead">$vbphrase[threads]</td>
    <td class="thead">$vbphrase[posts]</td>[/color]
    <if condition="$vboptions['showmoderatorcolumn']">
    <td class="thead">$vbphrase[moderator] [color=black]</td>[/color]
    </if>
    </tr>
    It looks perfect for the main page, but on the pages displaying the subforums, it leaves a nasty blank spot where I would like the "Last Post" "Threads" & "Posts" to still be displayed above their appropriate columns.


    I know it's nowhere even close to right, but at least I'm trying now


    Also related, for one forum on the main page, I want to get rid of the "Last Post" "Threads" & "Posts" as mentioned above, but also remove the "Forum" text on the same titlebar line. I only wanted to remove it from this one parent forum and not all forums on the main page. Hope that makes sense.
    Last edited by ACCLUDE; Wed 8 Dec '04, 10:37pm.
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Instead of removing the red code, try surrounding it with this conditional:

    Code:
    <tr align="center">
    <td class="thead">&nbsp;</td>
    <td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
    [color=blue]<if condition="THIS_SCRIPT == 'forumdisplay'">[/color]
    [color=red]<td class="thead" width="175">$vbphrase[last_post]</td>
    <td class="thead">$vbphrase[threads]</td>
    <td class="thead">$vbphrase[posts]</td>[/color]
    [color=blue]</if>[/color]
    <if condition="$vboptions['showmoderatorcolumn']">
    <td class="thead">$vbphrase[moderator] </td>
    </if>
    </tr>
    Originally posted by ACCLUDE
    Also related, for one forum on the main page, I want to get rid of the "Last Post" "Threads" & "Posts" as mentioned above, but also remove the "Forum" text on the same titlebar line. I only wanted to remove it from this one parent forum and not all forums on the main page. Hope that makes sense.
    I'm not sure I understand exactly what you want to do, but you can use a conditional like this to exclude a single forum by its forumid:

    Code:
    [color=blue]<if condition="$forum[forumid] != X">[/color]
    CODE
    [color=blue]</if>[/color]
    Where X is the forumid of the forum for which you don't want CODE to show up. It will show up for all other forums.

    This condition will work in the forumhome_forumbit_* templates.

    Comment

    • ACCLUDE
      New Member
      • Nov 2004
      • 14
      • 3.0.3

      #3
      Thanks. It worked perfectly.

      Comment

      • ryancooper
        Member
        • Mar 2003
        • 92

        #4
        I want to hide the last post, threads and posts columns in a forum and sub forum. See Attachment. Can some one help me with what i would need to do?

        I assume I can edit the template and add a if/else statement but I can not figure it out.

        Thanks,
        Ryan C

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...