View Full Version : Using Forum ID in functions_newpost.php
Olli460
07-07-2007, 08:58 AM
Hello. im editing some code and was wondering how i can get the forum ID in functions_newpost.php
ragtek
07-07-2007, 09:30 AM
what exactly do you want to make?
in functions_newpost.php are some funktions:D nothing else
the forumid is normaly in $foruminfo array
Olli460
07-07-2007, 10:30 AM
I want is the forum id variable usable within the "build_new_post" function. It is echoable with $_REQUEST['f'] however whenever I try to envoke it I get an error that the variable is not defined/allowed within the function
Dismounted
07-07-2007, 11:07 AM
Have you tried $vbulletin->GPC['f']?
Olli460
07-08-2007, 10:35 AM
Have you tried $vbulletin->GPC['f']?
Yeah tried that, didnt work. Any other suggestions
Dismounted
07-08-2007, 11:48 AM
$vbulletin->input->clean_gpc('r', 'f', TYPE_UINT);
Then use $vbulletin->GPC['f'].
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.