View Full Version : Show Thread Enhancements - Sticky background color change
Simple template mod, updated from my 3.5.x mod.
ACP -> Styles & Templates -> Style Manager -> Edit Templates -> Threadbit
Find:
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
Replace with:
<!-- Sticky Color -->
<if condition="$thread['sticky'] == 1">
<td class="stickybg" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>
<!-- /Sticky Color -->
Then create the CSS class:
ACP -> Styles & Templates -> Style Manager -> Style Name -> Main CSS -> Additional CSS Definitions
Add the following:
.stickybg
{
background-color: #333333;
}
Change the red code to your new color.
Screenshot:
http://www.metalguitarist.org/chris/vbo_sticky.jpg
SEOvB
02-23-2008, 05:38 PM
thank you :)
MrPHD
02-23-2008, 05:42 PM
Installed and working. Thanks
iogames
02-23-2008, 08:55 PM
Deal Done!
Derek Chai
02-24-2008, 09:43 PM
Can you make it so that I can do any color?
iyihost
02-25-2008, 07:27 PM
change #333333
www.iskeletor.com/renkkodlari.html
Netaudio
02-28-2008, 05:37 PM
*thx*
can you do this so it changes colour of navbar buttons instead...been looking even left a post but no replies...
any help with this i would be very grateful
eg:home,arcade,vbplaza,calendar & chat buttons
synisterk
04-11-2008, 03:50 PM
Was wondering how to do this....Thanks a lot.
Chadi
04-23-2008, 06:54 PM
I already had this done (perhaps another mod - not this one) and had my stickies, subscribed threads, moderated threads, announcements, etc all custom colored. My additional css had this originally...
/* ***** make announcements, stickies, moderated, polls and soft deleted posts pretty ***** */
.announcement {
background-color: #f9e0fb;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.sticky {
background-color: #fefdf0;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.poll {
background-color: #bcdcf2;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.moderated {
background-color: #f9e0fb;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.subscribed {
background-color: #dcf2d4;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
.deleted {
background-color: #ffc1de;
color: #4D528C;
border-left: 1px solid #FFFFFF;
border-top: 1px solid #FFFFFF;
}
The problem is now, it is not working, ineffective basically. The only thing that does work after upgrading vbulletin today is announcements retained its pink background color. I used this mod and modified it to work for sticky, but the rest are ineffective. How can I go about reversing so what I originally had will work?
My threadbit template is:
<tr>
<td class="alt1" id="td_threadstatusicon_$thread[realthreadid]">
$thread[openclose_editable]
<img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" id="thread_statusicon_$thread[realthreadid]" alt="<if condition="$show['threadcount']"><phrase 1="$thread[dot_count]" 2="$thread[dot_lastpost]">$vbphrase[have_x_posts_in_thread_last_y]</phrase></if>" border="" />
</td>
<if condition="$show['threadicons']">
<td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else /> </if></td>
</if>
<!-- Sticky Color -->
<if condition="$thread['sticky'] == 1">
<td class="sticky" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
<else />
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
</if>
<!-- /Sticky Color -->
$thread[title_editable]
<div>
<if condition="$show['moderated'] OR $show['deletedthread'] OR $show['paperclip'] OR $show['subscribed'] OR $show['sticky'] OR $show['rexpires']">
<span style="float:$stylevar[right]">
<if condition="$show['rexpires']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/expires.gif" alt="<phrase 1="$thread[expiredate]" 2="$thread[expiretime]">$vbphrase[expires_on_x_y]</phrase>" /> </if>
<if condition="$show['moderated']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/moderated_small.gif" alt="<phrase 1="$thread[hiddencount]">$vbphrase[x_moderated_posts]</phrase>" /> </if>
<if condition="$show['deletedthread']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/trashcan_small.gif" alt="<phrase 1="$thread[deletedcount]">$vbphrase[x_deleted_posts]</phrase>" /> </if>
<if condition="$show['paperclip']"> <a href="#" onclick="attachments($thread[threadid]); return false"> <img class="inlineimg" src="$stylevar[imgdir_misc]/paperclip.gif" border="0" alt="<phrase 1="$thread[attach]">$vbphrase[x_attachments]</phrase>" /></a> </if>
<if condition="$show['subscribed']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" alt="$vbphrase[you_are_subscribed_to_this_thread]" /> </if>
<if condition="$show['sticky']"> <img class="inlineimg" src="$stylevar[imgdir_misc]/sticky.gif" alt="$vbphrase[sticky_thread]" /> </if>
</span>
</if>
<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&t=$thread[threadid]" id="thread_gotonew_$thread[realthreadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
$thread[movedprefix]
$thread[typeprefix]
$thread[moderatedprefix]
<a href="<if condition="$thread['url']">$thread[url]<else />showthread.php?$session[sessionurl]t=$thread[threadid]</if>$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>
<if condition="$thread['pagenav']">$stylevar[dirmark]<span class="smallfont" style="white-space:nowrap">(<img class="inlineimg" src="$stylevar[imgdir_misc]/multipage.gif" alt="$vbphrase[multipage_thread]" border="0" /> $thread[pagenav]<if condition="$show[pagenavmore]"> ... <a href="showthread.php?$session[sessionurl]t=$thread[threadid]&page=$thread[totalpages]$thread[highlight]">$vbphrase[last_page]</a></if>)</span></if>
</div>
<if condition="$show['rmanage']"><div class="smallfont"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&t=$thread[redirectthreadid]">$vbphrase[manage]</a></span></div></if>
<div class="smallfont">
<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
<if condition="$show['guestuser']">
$thread[postusername]
<else />
<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
</if>
</div>
<if condition="$show['unsubscribe']">
<div class="smallfont">
<a href="newreply.php?$session[sessionurl]do=newreply&t=$thread[threadid]" rel="nofollow">$vbphrase[reply]</a> |
<a href="subscription.php?$session[sessionurl]do=removesubscription&return=ucp&t=$thread[threadid]" rel="nofollow">$vbphrase[unsubscribe]</a>
</div>
</if>
</td>
<if condition="$show['threadmoved']">
<td class="alt2" align="center">-</td>
<else />
<td class="alt2" title="<phrase 1="$thread[replycount]" 2="$thread[views]">$vbphrase[replies_x_views_y]</phrase>">
<div class="smallfont" style="text-align:$stylevar[right]; white-space:nowrap">
$thread[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$thread[lastposttime]</span></if><br />
<phrase 1="member.php?$session[sessionurl]find=lastposter&t=$thread[threadid]" 2="$thread[lastposter]">$vbphrase[by_x]</phrase> <a href="showthread.php?$session[sessionurl]p=$thread[lastpostid]$thread[highlight]#post$thread[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
</div>
</td>
</if>
<if condition="$show['notificationtype']">
<td class="alt1"><div class="smallfont">
<label for="sub$subscribethread[$threadid]">$thread[notification]</label>
</div></td>
<td class="alt2"><input type="checkbox" name="deletebox[$subscribethread[$threadid]]" id="sub$subscribethread[$threadid]" value="yes" /></td>
<else />
<td class="alt1" align="center"><if condition="$show['threadmoved']">-<else /><a href="misc.php?do=whoposted&t=$thread[threadid]" onclick="who($thread[threadid]); return false;">$thread[replycount]</a></if></td>
<td class="alt2" align="center">$thread[views]</td>
<if condition="$show['forumlink']">
<td class="alt1"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></td>
</if>
</if>
<if condition="$show['inlinemod']">
<td class="<if condition="$show['forumlink']">alt2<else />alt1</if>">
<input type="checkbox" name="tlist[$thread[realthreadid]]" id="tlist_$thread[realthreadid]" value="$thread[checkbox_value]" <if condition="$show['disabled']">disabled="disabled"</if> />
</td>
</if>
</tr>
Knightmane
04-29-2008, 08:25 PM
Instead of a color, I assume that you could replace the background color with a custom gradient as well? Just curious...
soundbarrierpro
04-30-2008, 07:26 PM
Installed. Thank you, I like it.
Krumbz
05-03-2008, 09:27 PM
thank you. worked like a charm
ikizbeyin
05-04-2008, 11:47 AM
Installed, working fine, thanks a lot.
bongwater
05-11-2008, 09:50 AM
installed on 3.7.0 gold, click HERE (http://www.ravelinks.com/forums/southern-california-raves-forum/) for a live link
semauae
05-11-2008, 11:25 AM
It just works when I search for threads
but in forumdisplay it doesn't work with me
:)
BarcaMaroc
05-11-2008, 09:08 PM
thanks
siNix
05-11-2008, 09:30 PM
Hi! is it also possible to collour also the other to rows? ( last post, replys, views ) .. i hopse so!
Super Jinni
05-12-2008, 12:33 PM
nice one
thanks
Super Jinni
05-12-2008, 12:46 PM
didn't work with me in the right way
the back ground color is black whatever I set the color in Additional CSS Definitions
I don't know what's wrong..
if you can fix it it will be great
hellfirehooliga
05-19-2008, 04:20 AM
thanks..easy install
Dragon Company
05-24-2008, 03:06 PM
Thanks :)
EhsanAhmad
05-24-2008, 08:36 PM
Installed and works fine but was wondering what do i have to do in threadbit to change the announcement background color like what tag to use isntead of <if condition="$thread['sticky'] == 1"> would it be <if condition="$thread['announcement '] == 1"> or what
SAReefer
07-15-2008, 06:09 PM
awesome hack thanks ;) any way i can change the colour of just the text?
dadoc
07-20-2008, 06:12 AM
I wanted to do this
but at the end I was not able to find this
.stickybg
{
background-color: #333333;
}
Because I have non default skins would that be the problem?
I tried to install it on Crime Case Files
dadoc
07-20-2008, 06:14 AM
awesome hack thanks ;) any way i can change the colour of just the text?
yeah I would love to know how to change text colour especially for the forum descriptions
can someone give us a link or some suggestions?
mahiwal69
07-22-2008, 04:26 AM
<font color="Red">Plss upload link ima wana add it looking nice Mod plss update and reupload it </font>
FazerPaint
07-22-2008, 09:48 AM
Installed and loving it, the members will not miss the stickies now....LOL
Zimbru
08-12-2008, 09:51 AM
Can you make one for new posts too ?
Cant handle myself and i dont know where to modifiy so colors can change in forums aswell when they contain new posts..
Thanks
celikforum
08-12-2008, 10:09 PM
thanx very good
misr.cc
08-27-2008, 12:40 PM
how can I change the color of the word sticky
Daisyboo
08-27-2008, 07:18 PM
Cool, but shame it doesn't go right along, looks a bit odd without the two end bits coloured too.
mortezax
08-28-2008, 05:26 AM
thank you!
BTLSDREDD
09-03-2008, 02:00 AM
will this work with 3.7?
Joshyyy
09-05-2008, 08:47 PM
Very Nice, Thank you :)
UKBusinessLive
09-08-2008, 10:47 PM
Just installed, very easy and a great addition.
SUPER :up::D
harlita
09-13-2008, 08:20 PM
Easy and fast install. Works great.
wwolf27
09-22-2008, 03:50 PM
how can I change the color of the word sticky
This is what I used I my site to get a different color to the word "Sticky"
.stickyprefix {
color:#add color code here;
font-weight:bold;
}
The Dawg
10-25-2008, 01:17 PM
Thanks, works perfectly!
Mr saleki
10-31-2008, 10:59 AM
Install
very nice
raja811
11-06-2008, 11:11 PM
thanks
fariborz khan
01-08-2009, 07:18 PM
i want install this hack but i think when i want upgrade my site i must change this code again can i create a importable poroduct for this usful hack that i dont need change againe when i upgrade my forum?
HaS?R
01-29-2009, 02:12 AM
Looks Great.Thanks.
Dingo14
02-02-2009, 01:54 AM
I wanted to do this
but at the end I was not able to find this
.stickybg
{
background-color: #333333;
}
Because I have non default skins would that be the problem?
I tried to install it on Crime Case Files
you have to add that code to your Additional CSS Definitions for the skin you are adding to
Works great thanks for this
iBetc
06-02-2009, 04:17 AM
For some reasons the stickies are centered now.
Can I correct this? They look a bit awkward when all the other threads are left justified.
iBetc
06-02-2009, 04:38 AM
Correction...
Turns out the "sicky" is the same color as the background color. I tried changing the color of the word 'sticky' but no luck. Any advice?
DesignerDani
06-18-2009, 05:40 PM
Thanks! Just what I needed.
kNeeLy
08-18-2009, 05:50 PM
FYI..this works on 3.7.4 and 3.8.4 :-P
RrCoX22
10-16-2009, 07:38 AM
anyone know to the reason why the word "Sticky:" is no longer viewable? I had this installed on 3.7.4 and upgraded to 3.8.4 and it still works. I just recently created a new vbulletin starting out with 3.8.4 and the word "Sticky:" is not viewable. I even tried add this:
.stickyprefix {
color:#FF4400;
font-weight:bold;
}
into the Additional CSS Definitions and still no luck :(
stefke1974
01-12-2010, 06:01 AM
works great on 3.8.4 , thanks (Click here for preview (http://www.cyberdeals.be))
kNeeLy
01-19-2010, 02:37 AM
fyi:
Just installed this on another 3.8.4 forum and werked with no probs...
profanitytalker
02-25-2011, 12:09 AM
Anyone know how to work this on vB4?
stevo_s
04-16-2011, 10:28 AM
Im using 3.8.4 and getting errors
surely
<td class="alt1" id="td_threadtitle_$thread[realthreadid]" title="$thread[preview]">
should be
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">
?
MagicThemeParks
05-05-2011, 12:46 AM
This worked perfectly on 3.8.7 for a new site I'm setting up :up:
I added an image as the background instead of just color. See here for a demo: United States History Forum (http://www.unitedstateshistoryforum.com/forumdisplay.php?f=2)
Edited: Also remember to add the a:link, a:visited, a:hover, and a:active CSS as well to ensure that your links are showing correctly since you are removing alt1 and replacing it with the new one (stickybg). :up:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.