Announcement

Collapse
No announcement yet.

I Help In Removing The ''Threads / Posts Last Post'' Section

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

  • TheLastSuperman
    replied
    Originally posted by Maksi View Post
    Hello TheLastSuperman,

    Thank you. I will use your plugin. This looks like a great plugin. I was hoping to remove the actual section as well.
    [ATTACH=CONFIG]59993[/ATTACH]

    Thank you for taking the time to create the plugin you've created. Much appreciated. The support on this forum is awesome. Thank you once again TheLastSuperman.

    Best Regards
    Maksi
    I had one mistake, I accidentally left out a closing } in the css code as shown:

    Code:
    .threadlist {
    border-top: 1px solid #c4c4c4;
    }
    So the full example would be:

    PHP Code:
    if ($GLOBALS[forumid] == '2') {
    $hidecolumnheaders '<style type="text/css">
    .threadlisthead.table {
    display:none !important;
    }
    .threadlist {
    border-top: 1px solid #c4c4c4;
    }
    </style>'
    ;

    $template_hook[headinclude_bottom_css] .= $hidecolumnheaders;

    Leave a comment:


  • Maksi
    replied
    Hello TheLastSuperman,

    Thank you. I will use your plugin. This looks like a great plugin. I was hoping to remove the actual section as well.
    Click image for larger version

Name:	hidecssbasedonforumidplugindemo1.png
Views:	1
Size:	49.6 KB
ID:	3689369

    Thank you for taking the time to create the plugin you've created. Much appreciated. The support on this forum is awesome. Thank you once again TheLastSuperman.

    Best Regards
    Maksi


    Originally posted by TheLastSuperman View Post
    Well I could walk you through editing the template for this and the whole spill about template conditionals or we can just skip all that and make this new plugin

    > AdminCP > Plugins & Products > Plugin Manager > *Scroll to find the link [Add New Plugin]

    [ATTACH=CONFIG]59991[/ATTACH]

    Product: vBulletin
    Hook Location: parse_templates
    Title: Hide CSS Elements based on forumid
    Execution Order: 5
    Plugin Code:
    PHP Code:
    if ($GLOBALS[forumid] == '2') {
    $hidecolumnheaders '<style type="text/css">
    .threadlisthead.table {
    display:none !important;
    }
    .threadlist {
    border-top: 1px solid #c4c4c4;
    </style>'
    ;

    $template_hook[headinclude_bottom_css] .= $hidecolumnheaders;

    That will actually hide the entire header portion however we must also add a top border to threadlist otherwise it looks silly without one.

    Demo:
    [ATTACH=CONFIG]59992[/ATTACH]

    Leave a comment:


  • TheLastSuperman
    replied
    Originally posted by Maksi View Post
    Thank you TheLastSuperman. Is there a way to make it so that I could choose which forums show the ''Threads / Posts Last Post'' and which ones don't? I would like to only remove it on one forum and the subforums within that one forum.

    Regards
    Maksi
    Well I could walk you through editing the template for this and the whole spill about template conditionals or we can just skip all that and make this new plugin

    > AdminCP > Plugins & Products > Plugin Manager > *Scroll to find the link [Add New Plugin]

    Click image for larger version

Name:	hidecssbasedonforumidplugin.png
Views:	1
Size:	40.9 KB
ID:	3689367

    Product: vBulletin
    Hook Location: parse_templates
    Title: Hide CSS Elements based on forumid
    Execution Order: 5
    Plugin Code:
    PHP Code:
    if ($GLOBALS[forumid] == '2') {
    $hidecolumnheaders '<style type="text/css">
    .threadlisthead.table {
    display:none !important;
    }
    .threadlist {
    border-top: 1px solid #c4c4c4;
    }
    </style>'
    ;

    $template_hook[headinclude_bottom_css] .= $hidecolumnheaders;

    That will actually hide the entire header portion however we must also add a top border to threadlist otherwise it looks silly without one.

    Demo:
    Click image for larger version

Name:	hidecssbasedonforumidplugindemo.png
Views:	1
Size:	59.1 KB
ID:	3689368
    Last edited by TheLastSuperman; Wed 13th Jun '12, 10:17am.

    Leave a comment:


  • Maksi
    replied
    Originally posted by TheLastSuperman View Post
    Add this to the additional.css template:
    Code:
    span.forumthreadpost, span.forumlastpost {
    display:none !important;
    }
    Thank you TheLastSuperman. Is there a way to make it so that I could choose which forums show the ''Threads / Posts Last Post'' and which ones don't? I would like to only remove it on one forum and the subforums within that one forum.

    Regards
    Maksi

    Leave a comment:


  • TheLastSuperman
    replied
    Add this to the additional.css template:
    Code:
    span.forumthreadpost, span.forumlastpost {
    display:none !important;
    }

    Leave a comment:


  • I Help In Removing The ''Threads / Posts Last Post'' Section

    Hello Everyone,

    I need help removing the ''Threads / Posts Last Post'' section only on certain forums. Is there a way to do this? Also, one of the green checks for the ''subscribe to this forum'' don't show on my site. It the very first forum. Could anyone please tell me why the green check doesn't show.

    Click image for larger version

Name:	threadpost1.png
Views:	1
Size:	7.0 KB
ID:	3723834

    Please let me know the steps I would need to take to remove the ''Threads / Posts Last Post''.

    Thanks
    Attached Files
    Last edited by Maksi; Tue 12th Jun '12, 5:06pm.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X