vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   How To Separate Sticky and Normal Threads (https://vborg.vbsupport.ru/showthread.php?t=93846)

Xplorer4x4 08-07-2005 10:00 PM

How To Separate Sticky and Normal Threads
 
This tiny template modification will allow you to separate sticky threads from normal threads.

Go to your:
Admin CP -> Styles & Templates -> Style Manager -> ? ? -> Forum Display Templates -> FORUMDISPLAY
Find this code:
PHP Code:

<if condition="$show['threads']">
<!-- 
show threads -->
<if 
condition="$show['stickies']">
$threadbits_sticky
</if>
$threadbits 
<!-- end show threads --> 

Below $threadbits_sticky add this code:
PHP Code:

<tr><td class="thead" colspan="<if condition="$show['threadicons']">7<else />6</if>">&nbsp;</td></tr

Time to Install: 60 Seconds
Templates to modify: 1
Difficulty: 0

If this was useful please click install.

Version1.01
Thanks to Boofo for the corection to add the moderation check box on end.

Boofo 08-08-2005 06:45 AM

Please post this in a text file for those that may need to re-install or upgrade later. ;)

Boofo 08-08-2005 08:59 AM

Shouldn't this:

Quote:

6<else />5</if>
actually be this with the moderation checkbox on the end?

Quote:

7<else />6</if>

Xplorer4x4 08-08-2005 10:30 PM

BTW This is my first hack. Not much of one but meh its a start. :)

I tried my method and yours, and the moderation box shows up either way, so I guess its up to the discrsion of the person installing it.

*Uploads text files*

Should I post this over in the How-To section also?

Boofo 08-08-2005 11:16 PM

The moderation box shows up fine your way. It is just the dividing line underneath it is one cell short with your code. ;)

BlackRabbit1971 08-10-2005 05:59 PM

Works fine for me :)

Logikos 08-10-2005 06:13 PM

Sreenshot?

Lynne 08-10-2005 09:14 PM

I just added this under $threadbits_sticky and it adds the little down arrow in the last column:

Code:

        <tr><td class="thead" colspan="<if condition="$show['threadicons']">6<else />5</if>">&nbsp;</td>

        <if condition="$show['inlinemod']">
                <if condition="$show['popups']">
                        <td class="vbmenu_control" id="imod" align="center"> <script type="text/javascript"> vbmenu_register('imod'); </script> </td>
                <else />
                        <td class="thead" align="center">
                                <input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
                        </td>
                </if>
        </if>
        </tr>


Boofo 08-10-2005 11:36 PM

That still doesn't work for the line underneath. This will solve it.

HTML Code:

  <tr><td class="thead" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7</if><if condition="$show['threadicons'] AND !$show['inlinemod']">6</if><if condition="!$show['threadicons'] AND $show['inlinemod']">6</if><if condition="!$show['threadicons'] AND !$show['inlinemod']">5</if>">&nbsp;</td></tr>

Xplorer4x4 08-11-2005 07:03 AM

Quote:

Originally Posted by Boofo
The moderation box shows up fine your way. It is just the dividing line underneath it is one cell short with your code. ;)

In English? ;) Still learning the ropes here.

I will see baout a screen shot in a day or two.


All times are GMT. The time now is 07:47 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.01064 seconds
  • Memory Usage 1,748KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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