PDA

View Full Version : "post[postid]" how do i make it global??


Smiry Kin's
05-19-2006, 02:15 PM
want to no how to make it work all all over the forun..

thanks

Alan @ CIT
05-19-2006, 03:54 PM
How would you specifiy what postid was in there? $post[postid] is currently only filled with the post id when a post is being viewed.

I suppose you could find out where $post[postid] is being set (probably from a query in showthread.php, but I haven't checked), then do something like

$GLOBALS[postid] = $post[postid]

But I'm not sure why you'd want to (or even if that would work) :)

Thanks,
Alan.

Smiry Kin's
05-19-2006, 04:17 PM
dont get what ya mean where do i enter this?

Alan @ CIT
05-19-2006, 04:18 PM
Silly question, but why do you want to make $post[postid] global?

Smiry Kin's
05-19-2006, 04:46 PM
Silly question, but why do you want to make $post[postid] global?
well im using a hide hack, and i want people to post thank you. say thank you.

so i was puttingi the thank button code inside the hide text, but it doesnt reconize that postid :S