PDA

View Full Version : Make Sticky Threads Bold


Alan @ CIT
12-12-2005, 10:00 PM
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
12-13-2005, 07:19 PM
please insert a screenshot of the stickys posts

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

Xplorer4x4
12-13-2005, 07:29 PM
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
12-13-2005, 07:34 PM
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
12-13-2005, 08:45 PM
If computers could kiss you would be wiping off the saliva from your screen right now :)
* michaelbenson installs, and quickly.

Xplorer4x4
12-13-2005, 08:47 PM
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
12-13-2005, 10:40 PM
Installed and working fine. :)

Paul M
12-13-2005, 10:48 PM
Won't this make them look as though they are still unread, even after you have read them ??

Julie
12-13-2005, 11:24 PM
Installed and working like a charm. Thanks! :)

Mastar
12-14-2005, 12:41 AM
to add red is this what I put?

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

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

Mastar
12-14-2005, 02:59 AM
good question


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

Alan @ CIT
12-14-2005, 05:54 AM
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
12-14-2005, 06:38 AM
Cheers alan installed and working

michaelbenson
12-14-2005, 12:00 PM
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
12-14-2005, 01:13 PM
Alan @ CIT, how do I make it red?

Alan @ CIT
12-14-2005, 01:52 PM
Master:

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

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

Mastar
12-14-2005, 02:04 PM
Master:

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

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

Thanks!

rb290
12-15-2005, 04:13 AM
thanks installed, can you tell me how i can make "Sticky:" bold and colored ?

Chris M
12-15-2005, 06:49 AM
You will need to alter the phrase that controls "Sticky" :)

Chris

Mastar
12-15-2005, 10:59 AM
Post #18 (https://vborg.vbsupport.ru/showpost.php?p=848485&postcount=18) takes care of that.

bplinson
12-15-2005, 11:22 AM
Installed and made red!

Snake
12-15-2005, 05:14 PM
Thanks for this!

GoNz00
12-16-2005, 11:11 PM
Great thanks :)

LBSources
12-17-2005, 12:20 AM
works great with the color change even better .. thanks!

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

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

Post #18 (https://vborg.vbsupport.ru/showpost.php?p=848485&postcount=18) takes care of that.

Look there!

Smiry Kin's
12-17-2005, 01:44 PM
Look there!

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

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

Thanks.

dsotmoon
12-17-2005, 06:58 PM
thanks, used the red code, working great!

JohnBee
12-17-2005, 07:21 PM
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
12-17-2005, 09:08 PM
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
12-17-2005, 09:12 PM
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
12-18-2005, 02:43 AM
what code did you use??
Currently using this, everyone likes it.
<span style="color:#0000E6;">' . $thread['threadtitle'] . '</span>

The Chief
12-18-2005, 02:55 AM
insalled, nothing easier :)

* The Chief clicks install

Freak0204
12-18-2005, 03:03 AM
Works great, thanks!

*installed*

sadecosefo
12-18-2005, 05:24 AM
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
12-21-2005, 12:51 PM
Thanks, works great

Alan @ CIT
12-21-2005, 12:54 PM
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
12-21-2005, 07:47 PM
Any chance you can make this specific to forums and usergroups instead of just sticky?

jarcher
12-23-2005, 09:53 PM
cool. .
but I noticed that the word "sticky" is in old red here in this forum:
https://vborg.vbsupport.ru/forumdisplay.php?f=8
where the heck is that at?

aciurczak
12-24-2005, 04:37 PM
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
12-24-2005, 10:59 PM
* Toky0 clicks install!

I really like this hack. :D

JagFan
12-26-2005, 08:06 PM
Installed and working great! Thanks!

firstrebel
12-27-2005, 12:50 PM
Clicks 'install'

Bob

hotwheels
12-30-2005, 09:23 PM
hotwheels clicks *install*

Ryan McBain
12-30-2005, 11:04 PM
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
12-31-2005, 04:32 AM
Works Great, Clicks Install.

Lapsetur
12-31-2005, 06:45 AM
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
01-05-2006, 07:48 AM
Installed :) great

Thanks

Snake
01-05-2006, 11:21 AM
/me installs

sip217
01-06-2006, 07:23 PM
Very cool. Just clicked install. Thanks!

pgac_chris
01-07-2006, 08:10 PM
installed , and made the change for bold & red

thanks :cool:

Mathiau
01-07-2006, 11:13 PM
perfectooooooooooooooooooooo on 3.5.3

SparKeh
01-08-2006, 01:13 AM
installed. cheers

Alan @ CIT
01-08-2006, 07:35 PM
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
01-17-2006, 03:36 PM
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
01-17-2006, 10:47 PM
Working Great.
/me clicks install

MrSquid
01-25-2006, 09:52 PM
installed!

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

Wild-Wing
01-25-2006, 10:41 PM
yea this is a great idea for those that hate editing the templates after updating

gizmosheretwo
01-27-2006, 05:17 PM
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
01-27-2006, 06:02 PM
Thanks :)

Click Install

bigmonay2k
01-28-2006, 03:41 AM
thanx

Skaterscafe.com
02-02-2006, 01:48 AM
Very nice, thank you!

dutchbb
02-03-2006, 07:40 PM
just what I need! thanks alot!

amadergaan
02-06-2006, 11:27 PM
Awesome stuff....thanks!

boatswife
02-09-2006, 12:42 AM
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
02-12-2006, 05:55 PM
Any way to make it red on the forumhome also?

Nathan L
02-13-2006, 11:18 AM
*Clicks Install*

Thanks

Skelp
02-14-2006, 06:59 PM
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
02-23-2006, 08:51 PM
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
02-23-2006, 09:22 PM
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
02-24-2006, 02:57 AM
acp?

Taylor123
02-24-2006, 06:59 AM
acp?
admin cp , i got it....just slow

bugman
02-25-2006, 11:34 AM
Thank you!

BabyNameAddict
03-09-2006, 02:32 AM
Beautiful :nervous:

Treak
03-09-2006, 08:33 AM
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
03-09-2006, 11:13 PM
Bump for the answer to this question!!

gizmosheretwo
03-14-2006, 05:26 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=94328&highlight=sticky+thread)

ddolliver
03-20-2006, 10:50 PM
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
03-21-2006, 09:10 PM
*installs*

good2laugh
03-31-2006, 01:26 PM
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
04-02-2006, 11:18 PM
cant get this to work for some reason. Any ideas what I have done wrong?

rareclownfish
04-03-2006, 01:37 AM
will this work on VB 3.5.4?

Exitilus
04-03-2006, 01:56 AM
Yes.

bloodwrath
04-03-2006, 02:04 AM
clicked install
thanks

rareclownfish
04-25-2006, 12:40 AM
Installed

Brandon Sheley
04-25-2006, 03:14 AM
/me clicks install

thank you

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

Thanks to everyone who installed it :)

Alan.

theFAILURE
05-14-2006, 08:04 PM
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
09-28-2006, 12:31 PM
Will it work on 3.6.1?

bplinson
12-31-2006, 08:41 AM
This IS working on 3.6.4

GateKeper
05-16-2007, 03:45 AM
Just installed on 3.6.5

See no issues so far.