PDA

View Full Version : Some way of knowing if a thread is sticky in SHOWTHREAD>


BirdOPrey5
08-18-2010, 01:19 AM
I see $show['sticky'] is used in threadbit but when I use it in the SHOWTHREAD template it's always false, even if the thread is in fact a sticky.

What I really need is to use it in the showthread_start hook in a plugin... Any way of letting me use it in there or an alternate way to know if I'm in a sticky?

Thanks.

Lynne
08-18-2010, 02:07 AM
$thread['sticky'] should be valid (or $threadinfo['sticky']) so use that.

BirdOPrey5
08-18-2010, 02:25 AM
Thanks... $threadinfo['sticky'] worked!