PDA

View Full Version : How can I get my current location (threadid) in a plugin?


acanuck
12-31-2009, 03:16 AM
I'm trying to get my current threadid location in a plugin.

$vbulletin->db->escape_string($vbulletin->input->clean_gpc('r', 't', TYPE_UINT))

supposedly does that but when I call it I get the error:

Warning: Cannot modify header information - headers already sent by (output started at .../includes/class_bootstrap.php(283) : eval()'d code:178) in .../includes/functions.php on line 3736

Warning: Cannot modify header information - headers already sent by (output started at .../includes/class_bootstrap.php(283) : eval()'d code:178) in .../includes/functions.php on line 3737


So does this mean I can only call it once?
If so how do I get the current threadid?

Lynne
12-31-2009, 02:47 PM
What hook location are you using? It looks to me like you didn't pick a valid one for what you are trying to do.