vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Display Enhancements - [OzzModz] Separate Sticky Threads Collapsible (https://vborg.vbsupport.ru/showthread.php?t=297654)

ozzy47 10-07-2013 05:35 PM

There is settings to remove them.

Bubble #5 10-07-2013 05:52 PM

The only settings I saw removed the one UNDER that area, or, both at the top (but just need one removed)...

The one that needs to be removed is the one ABOVE the word "Sticky". See screenshot below:

ozzy47 10-07-2013 07:19 PM

Ahh, I see, you want the stock one removed, no there is no option for that, but you could edit the FORUMHOME template, and find this bit of code:

Code:

            <div class="threadlisthead table">
                <div>
                <span class="threadinfo">
                    <span class="threadtitle">
                        <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_title}}" rel="nofollow">{vb:rawphrase title}{vb:raw sortarrow.title}</a> /
                        <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a>
                    </span>
                </span>
                <vb:if condition="$show['search_engine']">

                    <span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount} / {vb:rawphrase views}</span>
                    <span class="threadlastpost td">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</span>
                <vb:else />

                    <span class="threadstats td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_replycount}}" rel="nofollow">{vb:rawphrase replies}{vb:raw sortarrow.replycount}</a> / <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_views}}" rel="nofollow">{vb:rawphrase views}{vb:raw sortarrow.views}</a></span>
                    <span class="threadlastpost td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_flastpost}}" rel="nofollow">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</a></span>
                    <vb:if condition="$show['inlinemod']"><span class="threadimodimod td"></span></vb:if>
                </vb:if>
                </div>
            </div>

And change it to this:

Code:

            <vb:comment><div class="threadlisthead table">
                <div>
                <span class="threadinfo">
                    <span class="threadtitle">
                        <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_title}}" rel="nofollow">{vb:rawphrase title}{vb:raw sortarrow.title}</a> /
                        <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a>
                    </span>
                </span>
                <vb:if condition="$show['search_engine']">

                    <span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount} / {vb:rawphrase views}</span>
                    <span class="threadlastpost td">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</span>
                <vb:else />

                    <span class="threadstats td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_replycount}}" rel="nofollow">{vb:rawphrase replies}{vb:raw sortarrow.replycount}</a> / <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_views}}" rel="nofollow">{vb:rawphrase views}{vb:raw sortarrow.views}</a></span>
                    <span class="threadlastpost td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_flastpost}}" rel="nofollow">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</a></span>
                    <vb:if condition="$show['inlinemod']"><span class="threadimodimod td"></span></vb:if>
                </vb:if>
                </div>
            </div></vb:comment>

Don't forget to mark as installed if you are using the mod. :)

Bubble #5 10-07-2013 10:23 PM

Not all forums have stickies, so wouldn't there need to be a conditional?

ozzy47 10-07-2013 10:33 PM

Hmm, good point, ok replace the code with this:

Code:

        <vb:if condition="!$show['stickies']">
            <div class="threadlisthead table">
                <div>
                <span class="threadinfo">
                    <span class="threadtitle">
                        <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_title}}" rel="nofollow">{vb:rawphrase title}{vb:raw sortarrow.title}</a> /
                        <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a>
                    </span>
                </span>
                <vb:if condition="$show['search_engine']">

                    <span class="threadstats td">{vb:rawphrase replies} {vb:raw sortarrow.replycount} / {vb:rawphrase views}</span>
                    <span class="threadlastpost td">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</span>
                <vb:else />

                    <span class="threadstats td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_replycount}}" rel="nofollow">{vb:rawphrase replies}{vb:raw sortarrow.replycount}</a> / <a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_views}}" rel="nofollow">{vb:rawphrase views}{vb:raw sortarrow.views}</a></span>
                    <span class="threadlastpost td"><a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_flastpost}}" rel="nofollow">{vb:rawphrase last_post_by}{vb:raw sortarrow.lastpost}</a></span>
                    <vb:if condition="$show['inlinemod']"><span class="threadimodimod td"></span></vb:if>
                </vb:if>
                </div>
            </div>
        </vb:if>


tanzeelniazi 10-08-2013 11:40 AM

very nice Mod Thanks Dear
1 Question
How to Changer Color
Name (Sticky Threads )
Name (Normal Threads)

ozzy47 10-08-2013 11:51 AM

Edit the Stylevars found in the group Ozzy47Mods

DemOnstar 10-08-2013 03:40 PM

A ha, so you did settle for the oZZmodZ label...

Here we are, shaping the future in our own individual ways...

Wise choice...
You work well.....

ozzy47 10-08-2013 10:13 PM

Yeah I thought about it and decided to switch, plus made the logo. :)

Disco_Stu 01-16-2014 04:51 PM

Very nice. Works great with 4.2.0 PL2. Thanks!


All times are GMT. The time now is 01:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01404 seconds
  • Memory Usage 1,754KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete