PDA

View Full Version : Make Sticky Threads Bold


Alan @ CIT
13 Dec 2005, 21:18
This little plugin makes Sticky threads show up as Bold in the thread listing.

If you wish to add additional html markup such as colour, etc - edit the plugin and look for the <strong> </strong> tags - it should be fairly obvious what you need to change.

Small but useful :)

Important: Unfortunately, my leased vBulletin licence has now expired, and I won't be renewing it until September which means I will be unable to reply to this thread, or update this mod until then. I'm hopeful that the great vBulletin.org community will step in to answer any questions in my absence though :) See you all in early September! :D

dbembibre
13 Dec 2005, 21:19
please insert a screenshot of the stickys posts

Alan @ CIT
13 Dec 2005, 21:20
IT's just the thread title, but in bold - is it really that hard to imagine...? :)

Xplorer4x4
13 Dec 2005, 21:29
Wouldn't a plug in have the potential to possibly conflict with another plug in? I would prefer a template edit. Something like this would work I believe(not tested).

Admin CP -> Styles & Templates -> Style Manager -> -> Forum Display Templates -> FORUMDISPLAY

Before $threadbits_sticky add <strong> and after $threadbits_sticky add </strong>

Thanks for the idea either way. :)

Alan @ CIT
13 Dec 2005, 21:34
I can't see a case where a conflit would come into effect with the plugin. Could be wrong though :)

Also, I hate template edits with a passion as it means I have to re-apply them when I upgrade, and I'm way too lazy for that, hence the plugin :D

michaelbenson
13 Dec 2005, 22:45
If computers could kiss you would be wiping off the saliva from your screen right now :)
/me installs, and quickly.

Xplorer4x4
13 Dec 2005, 22:47
I can't see a case where a conflit would come into effect with the plugin. Could be wrong though :)

Also, I hate template edits with a passion as it means I have to re-apply them when I upgrade, and I'm way too lazy for that, hence the plugin :D

Always a possibility. :p

I figuered you would see that. Quit being lazy! ;) Plus with Kirbys new hacks it seems as thought it should be a breeze to merge templates after edits now.

Andyrew
14 Dec 2005, 00:40
Installed and working fine. :)

Paul M
14 Dec 2005, 00:48
Won't this make them look as though they are still unread, even after you have read them ??

Julie
14 Dec 2005, 01:24
Installed and working like a charm. Thanks! :)

Mastar
14 Dec 2005, 02:41
to add red is this what I put?


'<color=red>' '<strong>' . $thread['threadtitle'] . '</strong>''</FONT>';

bigmonay2k
14 Dec 2005, 03:59
Won't this make them look as though they are still unread, even after you have read them ??
good question

Mastar
14 Dec 2005, 04:59
good question


Not if you add color! That is what I'm trying to do.

Alan @ CIT
14 Dec 2005, 07:54
Paul M: It would indeed - the theory is that people will pay more attention to them then :)

Everyone else: thanks for the kind words / installs :)

tidy_boy
14 Dec 2005, 08:38
Cheers alan installed and working

michaelbenson
14 Dec 2005, 14:00
Won't this make them look as though they are still unread, even after you have read them ??
This is how IPB works, and to be honest i prefer this method. Allocating more empasis to these important threads.

Mastar
14 Dec 2005, 15:13
Alan @ CIT, how do I make it red?

Alan @ CIT
14 Dec 2005, 15:52
Master:

Change: $thread['threadtitle'] = '<strong>' . $thread['threadtitle'] . '</strong>';

To: $thread['threadtitle'] = '<span style="color:#FF0000; font-weight:bold;">' . $thread['threadtitle'] . '</span>';

Mastar
14 Dec 2005, 16:04
Master:

Change: $thread['threadtitle'] = '<strong>' . $thread['threadtitle'] . '</strong>';

To: $thread['threadtitle'] = '<span style="color:#FF0000; font-weight:bold;">' . $thread['threadtitle'] . '</span>';

Thanks!

rb290
15 Dec 2005, 06:13
thanks installed, can you tell me how i can make "Sticky:" bold and colored ?

Chris M
15 Dec 2005, 08:49
You will need to alter the phrase that controls "Sticky" :)

Chris

Mastar
15 Dec 2005, 12:59
Post #18 (http://www.vbulletin.org/forum/showpost.php?p=848485&postcount=18) takes care of that.

bplinson
15 Dec 2005, 13:22
Installed and made red!

Snake
15 Dec 2005, 19:14
Thanks for this!

GoNz00
17 Dec 2005, 01:11
Great thanks :)

LBSources
17 Dec 2005, 02:20
works great with the color change even better .. thanks!

Smiry Kin's
17 Dec 2005, 15:31
could any one implaint the colour into the script would be nice to know how its done, i have been trying.. :(

Mastar
17 Dec 2005, 15:35
could any one implaint the colour into the script would be nice to know how its done, i have been trying.. :(

Post #18 (http://www.vbulletin.org/forum/showpost.php?p=848485&postcount=18) takes care of that.

Look there!

Smiry Kin's
17 Dec 2005, 15:44
Look there!

Yes i know, i checked, i mean into the installer..

would just be nice to know, im sure its simple.

Thanks.

dsotmoon
17 Dec 2005, 20:58
thanks, used the red code, working great!

JohnBee
17 Dec 2005, 21:21
Thank you! installed and working.

I modded it a bit further, RED /BOLD is just to harsh on my layout so I increased the red saturation to a deeper none bold color this way it will still register when there is a new post within that sticky.

Once again good job!

Smiry Kin's
17 Dec 2005, 23:08
Thank you! installed and working.

I modded it a bit further, RED /BOLD is just to harsh on my layout so I increased the red saturation to a deeper none bold color this way it will still register when there is a new post within that sticky.

Once again good job!

what code did you use??

Smiry Kin's
17 Dec 2005, 23:12
Master:

Change: $thread['threadtitle'] = '<strong>' . $thread['threadtitle'] . '</strong>';

To: $thread['threadtitle'] = '<span style="color:#FF0000; font-weight:bold;">' . $thread['threadtitle'] . '</span>';

duhh sorry dumb moment, didnt relise it was to edited the xml file lol, anyways thanks people, upload your XML, to share, heres the red one.

JohnBee
18 Dec 2005, 04:43
what code did you use??
Currently using this, everyone likes it.
<span style="color:#0000E6;">' . $thread['threadtitle'] . '</span>

The Chief
18 Dec 2005, 04:55
insalled, nothing easier :)

/me clicks install

Freak0204
18 Dec 2005, 05:03
Works great, thanks!

*installed*

sadecosefo
18 Dec 2005, 07:24
Awesome. Super easy. I did get an error when I mistakenly tried to upload as "plugin" instead of "product" (my bad) but beyond that it was easy as pie. Thumbs up, thank you and *clicks install*.

AWI
21 Dec 2005, 14:51
Thanks, works great

Alan @ CIT
21 Dec 2005, 14:54
Hi all,

As of right now, I'm going away on holiday for 2 weeks :)

I will answer any questions, fix any bugs, deal with any comaplaints, and test any suggestions when I return in January :)

Happy Holidays all!

Alan.

Zilvia
21 Dec 2005, 21:47
Any chance you can make this specific to forums and usergroups instead of just sticky?

jarcher
23 Dec 2005, 23:53
cool. .
but I noticed that the word "sticky" is in old red here in this forum:
http://www.vbulletin.org/forum/forumdisplay.php?f=8
where the heck is that at?

aciurczak
24 Dec 2005, 18:37
If you go to Phrase Manager within your AdminCP, search for: "sticky". One of the phrases that will come up is sticky_thread_prefix. If you change it from

Sticky:

to

<b><i>Sticky:</b></i>

it will then be bold and in italics. You can add whatever HTML you want around the text to color it or modify it in other ways.

Toky0
25 Dec 2005, 00:59
/me clicks install!

I really like this hack. :D

JagFan
26 Dec 2005, 22:06
Installed and working great! Thanks!

firstrebel
27 Dec 2005, 14:50
Clicks 'install'

Bob

hotwheels
30 Dec 2005, 23:23
hotwheels clicks *install*

Ryan McBain
31 Dec 2005, 01:04
Wouldn't a plug in have the potential to possibly conflict with another plug in? I would prefer a template edit. Something like this would work I believe(not tested).

Admin CP -> Styles & Templates -> Style Manager -> -> Forum Display Templates -> FORUMDISPLAY

Before $threadbits_sticky add <strong> and after $threadbits_sticky add </strong>

Thanks for the idea either way. :)

That doesn't work...at least not for me....

XtremeOffroad
31 Dec 2005, 06:32
Works Great, Clicks Install.

Lapsetur
31 Dec 2005, 08:45
Good work but people will not understand if there is a new post in the thread. Also the color should change when there is new post

Devil Woman
05 Jan 2006, 09:48
Installed :) great

Thanks

Snake
05 Jan 2006, 13:21
/me installs

sip217
06 Jan 2006, 21:23
Very cool. Just clicked install. Thanks!

pgac_chris
07 Jan 2006, 22:10
installed , and made the change for bold & red

thanks :cool:

Mathiau
08 Jan 2006, 01:13
perfectooooooooooooooooooooo on 3.5.3

SparKeh
08 Jan 2006, 03:13
installed. cheers

Alan @ CIT
08 Jan 2006, 21:35
Hi all,

I have now returned from my holidays, hope you all had a good <insert-seasonal-holiday-name-here> :)

I'll start answering any questions, fixing any bugs, and adding any new features next week, but I've got a lot of hacks to update, so it might not be immediate :)

Thanks,
Alan.

Shanoon
17 Jan 2006, 17:36
Good Lord, thank you for this!

I have a big problem with spam at my forum (it's an animanga discussion forum... rabid fangirls, etc etc), so it's nice to be able to bold "DO NOT SPAM" sticky threads so there's at least a glimmer of hope that people will listen. :]

but yes, thank you!

Caveman2k2
18 Jan 2006, 00:47
Working Great.
/me clicks install

MrSquid
25 Jan 2006, 23:52
installed!

In the words of the best TV dad ever... "This thing is frickin' sweet!"

Wild-Wing
26 Jan 2006, 00:41
yea this is a great idea for those that hate editing the templates after updating

gizmosheretwo
27 Jan 2006, 19:17
Just a thought:
Would it be possible to highlight the whole cell table of sticky's?

For example when you do modding, & place a check it comes up with a nice noticable yellow. (Would be good to have that around the whole cell/table with what ever colour you wanted.)

A bit like ebay featured ads?

Anyone any ideas?
Cheers

Allan
27 Jan 2006, 20:02
Thanks :)

Click Install

bigmonay2k
28 Jan 2006, 05:41
thanx

Skaterscafe.com
02 Feb 2006, 03:48
Very nice, thank you!

dutchbb
03 Feb 2006, 21:40
just what I need! thanks alot!

amadergaan
07 Feb 2006, 01:27
Awesome stuff....thanks!

boatswife
09 Feb 2006, 02:42
Thank you for the color code!
*clicks install*

Master:

Change: $thread['threadtitle'] = '<strong>' . $thread['threadtitle'] . '</strong>';

To: $thread['threadtitle'] = '<span style="color:#FF0000; font-weight:bold;">' . $thread['threadtitle'] . '</span>';

KevinL
12 Feb 2006, 19:55
Any way to make it red on the forumhome also?

Nathan L
13 Feb 2006, 13:18
*Clicks Install*

Thanks

Skelp
14 Feb 2006, 20:59
Installed and loving it.

I tried to figure out how to add the code to to this mod to make the "Sticky" prefix modify the same as the thread title but couldn't figure it out. Maybe one of the gurus can :squareeyed:

Thanks bunches.

Taylor123
23 Feb 2006, 22:51
i downloaded the file but I've never used a plugin before, all the mods i've done before have been very self explanatory in text files

i just need a walk through guide more or less

i click plugin system > add new plugin but then what?

what is my hook location and do i upload everything in this file for the plugin php code?

Eriond
23 Feb 2006, 23:22
i believe it is just go to acp, select plugin system then click manage products then add/import new product and select the product cit boldsticky.xml file it will then install automatically.

very new to all this so if it is wrong i am sure someone will correct me :)

Taylor123
24 Feb 2006, 04:57
acp?

Taylor123
24 Feb 2006, 08:59
acp?
admin cp , i got it....just slow

bugman
25 Feb 2006, 13:34
Thank you!

BabyNameAddict
09 Mar 2006, 04:32
Beautiful :nervous:

Treak
09 Mar 2006, 10:33
Installed!! works great! how do you make the Word "Sticky" itself bold abd black! and what template is it under so i can edit as such?

Treak
10 Mar 2006, 01:13
Bump for the answer to this question!!

gizmosheretwo
14 Mar 2006, 19:26
Just a thought:
Would it be possible to highlight the whole cell table of sticky's?

For example when you do modding, & place a check it comes up with a nice noticable yellow. (Would be good to have that around the whole cell/table with what ever colour you wanted.)

A bit like ebay featured ads?

Anyone any ideas?
Cheers
To any other users reading this I managed to find exactly what I was looking for.

HACK HERE (http://www.vbulletin.org/forum/showthread.php?t=94328&highlight=sticky+thread)

ddolliver
21 Mar 2006, 00:50
Problem with the Plugin:


I just noticed that the board now has an on-the-fly title change, where if you double click in the blank space next to a thread title, you can immediately change the text in the title.

However, this causes a problem with the new sticky color format. When double clicking next to a sticky, the format code gets inserted into the thread text, and does not go away (in fact, it pushes thread text off and truncates the end of it).

Screenshot here (click for larger pic):
http://www.thebaskins.com/pics/Misc/nloc_bug

It's no problem for me to change the text back. I'll just leave it that way for awhile so it can be examined.

Why does a double click to the left of the sicky title allow change, and add html code in front of the thread title??:surprised:

Thanks,

...Dwight...

ashley53680
21 Mar 2006, 23:10
*installs*

good2laugh
31 Mar 2006, 15:26
Master:

Change: $thread['threadtitle'] = '<strong>' . $thread['threadtitle'] . '</strong>';

To: $thread['threadtitle'] = '<span style="color:#FF0000; font-weight:bold;">' . $thread['threadtitle'] . '</span>';

Cheers for this, off to click <install>
:D

cat4m
03 Apr 2006, 01:18
cant get this to work for some reason. Any ideas what I have done wrong?

rareclownfish
03 Apr 2006, 03:37
will this work on VB 3.5.4?

Exitilus
03 Apr 2006, 03:56
Yes.

bloodwrath
03 Apr 2006, 04:04
clicked install
thanks

rareclownfish
25 Apr 2006, 02:40
Installed

Brandon Sheley
25 Apr 2006, 05:14
/me clicks install

thank you

Alan @ CIT
14 May 2006, 21:40
Wow, I'm impressed. A simple little 1 line hack got 316 installs to date.

Thanks to everyone who installed it :)

Alan.

theFAILURE
14 May 2006, 22:04
Nice, easy and effective.

Hopefully we'll get less noob questions on the board.

Now I can say:

PLEASE READ THE RED STICKY

Eagle Creek
28 Sep 2006, 14:31
Will it work on 3.6.1?

bplinson
31 Dec 2006, 10:41
This IS working on 3.6.4

GateKeper
16 May 2007, 05:45
Just installed on 3.6.5

See no issues so far.