The Arcive of vBulletin Modifications Site. |
|
The "Make Stickies Bold / Prefix Remove" Hack Details »»
|
|||||||||||||||||||||||||||
|
The "Make Stickies Bold / Prefix Remove" Hack
Developer Last Online: Nov 2023
-/\-/\-/\-/\-/\-/\-/\-/\-/\-/\-
Make Stickies Bold Hack By Shaolyen email: John@eovie.com msn: John@eovie.com -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/- Introduction ---------------------------- Ok, just a quick one as per the request here: https://vborg.vbsupport.ru/showthrea...threadid=49935 Nothing special I'm afraid - it simply gets rid of the "Sticky:" prefix and makes the thread title bold instead. It has its uses - I've been driven mad by the number of times I've been asked what a "Sticky" is, at least now they see the bold text and know it's an important thread. Sticky behavior is unchanged (they still stay at the top, lol) ---------------------------- A big thanks to Link14716 for pointing out my stupidity! It's fairly simple, I can't see there being many problems with this one. Tested on vB 2.3.0, fresh install. Show Your Support
|
|||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Why not do this?
![]() Code:
if ($thread[sticky] == 1) {
$thread[title] = "<b>$thread[title]</b>";
}
|
|
#3
|
||||
|
||||
|
lol, good point - I'll update instructions.
I always go the long way round
|
|
#4
|
||||
|
||||
|
Cool hack!
This is a little addition. You can specify a colour in the Admin CP (vB Options -> Forumdisplay) for stickies (i.e red), and use this code instead: Then all you have to do is change the colour via admin CP to change its color
|
|
#5
|
|||
|
|||
|
I'm running 2.2.8 and this works perfectly! Though i did try assassingod's hack and it not only made it bold, but changed the post icon to the text also. :\
No worries, thank you very much Shaolyen! -WoodiE |
|
#6
|
|||
|
|||
|
worked great on 2.3.0
Thanks |
|
#7
|
|||
|
|||
|
Thanks for this cool, but small mod!!!
I am no PHP expert at all, but how would it be possible to place a small post-it icon before the thread that is sticky. I have taken the liberty of attaching a gif, if anyone can do this. Thanks! |
|
#8
|
||||
|
||||
|
You'd use this:
|
|
#9
|
||||
|
||||
|
Or better yet...
Code:
if ($thread[sticky] == 1) {
$thread[title] = "<b>$thread[title]</b>";
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
}
|
|
#10
|
|||
|
|||
|
Thanks Assassingod, just what I needed!
|
![]() |
|
|