Log in

View Full Version : $foruminfo[forumid] in posticonbit template


Parabolart
01-28-2005, 09:34 PM
What do i have to change/add in the functions_newpost.php so that i can make a condition statement in posticonbit template that includes the forumid of that post?

Xenon
01-29-2005, 12:04 PM
$threadinfo[forumid] or $thread[forumid] should work without any changes

Parabolart
01-29-2005, 03:09 PM
$threadinfo[forumid] or $thread[forumid] should work without any changes
it doesn't :(

Xenon
01-29-2005, 03:39 PM
global $thread, $threadedmode, $tachyusers, $SHOWQUICKREPLY, $onload;

it is globalized, so $thread does work, if it doesn't your condition itself is incorrect

Parabolart
01-29-2005, 04:04 PM
global $thread, $threadedmode, $tachyusers, $SHOWQUICKREPLY, $onload;

it is globalized, so $thread does work, if it doesn't your condition itself is incorrect
it works in the showthread template, but i want the condition icon specific.. in the posticonbit or posticon templates, but it doesn't work there.

Xenon
01-29-2005, 04:10 PM
ouch, sorry, no idea, what i have read ^^

ok, find that line:
global $DB_site, $session, $bbuserinfo, $stylevar, $vboptions;

and below add
global $threadinfo, $foruminfo;

sorry ;)

Parabolart
01-29-2005, 04:43 PM
thanks a lot :D

Xenon
01-30-2005, 03:47 PM
you're welcome :)