![]() |
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:
PHP Code:
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. |
Please post this in a text file for those that may need to re-install or upgrade later. ;)
|
Shouldn't this:
Quote:
Quote:
|
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? |
The moderation box shows up fine your way. It is just the dividing line underneath it is one cell short with your code. ;)
|
Works fine for me :)
|
Sreenshot?
|
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>"> </td> |
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>"> </td></tr> |
Quote:
I will see baout a screen shot in a day or two. |
That was English. ;)
|
I don't see why you'd need the dropdown arrow on the sticky divider bar, one is enough and two become redundant in my opinion.....
The pupose for this hack seemed evident from the start, "a single divider bar between sticky's and regular threads"...!! Nice job Xplorer4x4 |
That's all I wanted. ;)
I just wanted it to allow for the right amount of columns depending on what was enabled for all usergroups. Hence, the if conditions. ;) |
thanks it's nice
|
Quote:
- Sid |
Screenshot please !
|
|
Quote:
Would this not be better (2 if conditions)? HTML Code:
<tr><td class="thead" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7<else /><if condition="($show['threadicons'] AND !$show['inlinemod']) OR (!$show['threadicons'] AND $show['inlinemod'])">6<else />5</if></if>"> </td></tr> HTML Code:
<tr><td class="thead" colspan="<if condition="$show['threadicons'] AND $show['inlinemod']">7<else /><if condition="($show['threadicons'] AND !$show['inlinemod']) OR (!$show['threadicons'] AND $show['inlinemod'])">6<else />5</if></if>"><img src="$vboptions[cleargifurl]" width="1" height="1" alt="" /></td></tr> |
Quote:
|
Quote:
Using the thin one and it works great :) |
great thanks, tidies things up a bit more :)
|
You know the bar above it after you add the separating bar? It has "Thread/Thread Starter" in it? On the left of it there is a white line that goes straight down with the columns. How do I add those lines in the bar that I just added from this mod?
|
Works great, also works for 3.5 RC3
|
Quote:
http://img383.imageshack.us/img383/4868/untitled8cj.jpg ut2007world.com |
The box i was refering to is on the other end. I should update this using umm was it Krby's(i think) method, but I haven;t gotten arounf to it. lol.
This will work fine in 3.5 GOLD! |
thanks looks gud
|
looks gud thanks m8 :)
works fine with vb 3.5.0 |
Quote:
|
I like... Installed. Thx.
|
Works great, thanks for this.
|
If you have a look at the one from 3.x.x then you can have text on them lines such as Sticky Threads and Normal Threads... just to make it look a bit nicer ;0
|
<a href="http://www.hulkforum.com/forumdisplay.php?f=13" target="_blank">http://www.hulkforum.com/forumdisplay.php?f=13</a>
works great on mine. |
Installed, thank you. ;)
|
wow, just today i was looking at a non-vb board that had this and wondered if we had it for vb :) i will definitely use this!
btw, could anybody tell me how i might make the bg color of the sticky threads a different color? EDIT: nm i found the different color sticky bg here :) https://vborg.vbsupport.ru/showthrea...511#post756511 |
Just installed this hack! It works great; thanks.
|
Installed. Thanks
|
mandatory request for Screen shot. :p
(sorry...me n00birific) :( |
SWEET!
thanks :) |
Quote:
If you really need a screen shot I can post one tommorow. Sorry I am forgetful. |
don(t work for me :(
|
All times are GMT. The time now is 04:49 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|