PDA

View Full Version : reading forumid, threadid, postid from init_startup


mimidov
02-03-2011, 04:21 PM
I am able to read forumid, threadid, and postid (of forumdisplay, showthread, showpost) in init_startup using $_REQUEST[f], $_REQUEST[t], and $_REQUEST[p] respectively.

However, with Friendlyurl is enabled, these $_REQUEST vars are no longer working. How could I extract the forumid, threadid, and postid from the URL in case Friendlyurl option is enabled? Or else, how to know the forumid of a thread or post within init_startup.

Sarteck
02-04-2011, 09:28 PM
Don't quote me on this, but I believe that in the startup there are global variables for them:
$forumid
$threadid
$postid

al3bed
02-04-2011, 10:22 PM
you tried this using GPC function?

Boofo
04-08-2011, 08:53 AM
Is there any way to pull out the usergroupid from init_startup?