Log in

View Full Version : Coloured Topic Title


totalgamerz
06-29-2009, 09:22 AM
Hey guys,
Does anyone know a way in which I can colour my topic titles? So it stands out from the rest of the registered users topics.

Thanks in advance!

DragonBlade
06-29-2009, 09:59 AM
Off the top o' my head, I'd say add an extra field to the "thread" table called "threadcolor" and make a plugin that will wrap tags around the title if the colour field is set. But then you have to enter a colour for each thread....

Unless I'm reading that wrong and you just want to colour all threads made by you as a different colour. That'll be easy.

Open up your AdminCP, go to Plugins & Products, click "Add New Plugin". Product you can leave a vBulletin (unless you wanna make a new Product for this, but you can do that at any time, really).

The Hook Location you should select is "threadbit". Title it "Coloured Titles fer me! Yay!" Leave the Execution order at default (5). Enter this code for the plugin itselfif ($thread['postuserid'] == INSERTYOURUSERID) {$thread['threadtitle'] = '<span style="color: INSERTCOLORCODEHERE;">' . $thread['threadtitle'] . '</span>';}

Set it to "Yes" to turn it on, test it out, and bada bing bada boom, coloured title, yay! :3

--------------- Added 1246273228 at 1246273228 ---------------

Oh, note, replace INSERTYOURUSERID and INSERTCOLORCODEHERE, of course. ;)

totalgamerz
06-29-2009, 10:44 PM
Thanks very much :) Could I quickly ask,

Which threadbit are we talking about? Such as threadbit_display or?
Also does this only work once u submit a new thread or will it update threads I have already made?

Thanks :)

--------------- Added 1246320378 at 1246320378 ---------------

I have resolved this issue!

Thanks very much for your time