PDA

View Full Version : Stickys and other thread Prefixes as templates...


Dean C
06-01-2002, 10:18 AM
I have several styles on my board ... and when i customize the HTML in the vbulletin options to give them a nice feel and stand out .. it looks ncie on some styles and ugly on others...

hence the need for my stickys to be templates so i can customize them for that styles needs...

NOTE: I reall need this hack so can some1 plzzzzz make it :D

Thanks in Advance :)

Xenon
06-01-2002, 10:50 AM
not tested, but should work:

add template stickytext content: Sticky: or whatever you want

then open forumdisplay.php and find

if ($thread[sticky] == 1) {
$thread[typeprefix]=$stickythreadprefix.$thread[typeprefix];
}


replace with

if ($thread[sticky] == 1) {
$thread[typeprefix]=gettemplate("stickytext").$thread[typeprefix];
}

Dean C
06-01-2002, 12:29 PM
IT WORKS !!!

u shud release this to every1 ... its a fantastic hack ...!

Admin
06-01-2002, 12:34 PM
An easier approach, without editing any files, is set the prefix to {stickyprefix} in vBulletin Options, then set up a replacement variable for {stickyprefix} in each style. That's how I do it here.

Dean C
06-01-2002, 05:24 PM
geez lol... firefly always comes up with the best option lol..

is there anythin u dont kno how to do ! lol

thanks mate ! :D

Xenon
06-02-2002, 12:09 PM
grr Chen ;)

btw. What happened to the idea with the minihacks subforum to the requestforum? ^^

gmarik
05-17-2003, 08:34 PM
Chen, will you release it as a hack?
Because I don't get what are you speaking about...

filburt1
05-17-2003, 08:35 PM
This thread is a year old. Please don't bump such ancient topics.

Xenon
05-18-2003, 09:49 AM
@gmarik: that is no hack at all.
it's just the use of replacement variables of vb.

if you don't know how to use them you should read the vb manual.

Boofo
05-18-2003, 09:59 AM
Yesterday at 04:35 PM filburt1 said this in Post #8 (https://vborg.vbsupport.ru/showthread.php?postid=396340#post396340)
This thread is a year old. Please don't bump such ancient topics.

Oftentimes we don't notice these older threads until someone relies to them. Old or not, they do have some good stuff sometimes. ;)