Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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>
    <td class="thead" width="175">$vbphrase[last_post]</td>
    <td class="thead">$vbphrase[threads]</td>
    <td class="thead">$vbphrase[posts]</td>
    <if condition="$vboptions['showmoderatorcolumn']">
    <td class="thead">$vbphrase[moderator] </td>
    </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 8th Dec '04, 11:37pm.

  • #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>
    <if condition="THIS_SCRIPT == 'forumdisplay'">
    <td class="thead" width="175">$vbphrase[last_post]</td>
    <td class="thead">$vbphrase[threads]</td>
    <td class="thead">$vbphrase[posts]</td>
    </if>
    <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:
    <if condition="$forum[forumid] != X">
    CODE
    </if>
    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


    • #3
      Thanks. It worked perfectly.

      Comment


      • #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...
        X