Log in

View Full Version : show date prefix or sth in input file in the new_thread


LiLSnooP
07-20-2007, 09:31 PM
hi i would like to an able my users add date to they threads
so i write little hack...

if you also wat to join this hack please advanced this 3 step....

first of all i write little script php in hoock

Go to ...

Plugins & Products > Plugin Manager > [Add New Plugin] > ....

....edit file...

Product: vBulletin
Hook Location: newthread_start
Title: threaddate
Execution Order: 5
Plugin PHP Code: ob_start();
echo date ("[j.m.y]");
$threaddate = ob_get_contents();
ob_end_clean();

Plugin is active: YES

screen shout for fools :
http://img53.imageshack.us/img53/5814/screen1yk3.png


and afterwards

go to:

Styles & Templates > Search in Templates > (write $subject)

and then edit newthread template:


place this:

$threaddate

before it:

$subject

NOTE: remember about spaces "value="$threaddate $subject"

screen for you:

http://img217.imageshack.us/img217/3338/screen2ls6.png




That's all folk's
work perfectly
with 3.0.x and 3.6.8

screenshout:

http://img217.imageshack.us/img217/8499/screen3li8.png