![]() |
Finding the forumid from a getnew search string
I need to pull the forumid variable from the getnew search string:
eg search.php?do=getnew&f=139 I always thought this would be $_GET["f"] but it's not. How can I use this variable? Basically I need to do a check to see if it exists. What I want to do is show something extra on the results page if the string is just search.php?do=getnew compared to where a forum is specified eg search.php?do=getnew&f=139 |
Did you try $vbulletin->GPC['f'] or $vbulletin->GPC['forumid'] ? And don't forget to run the variable through the cleaner first.
|
Quote:
--------------- Added [DATE]1261592583[/DATE] at [TIME]1261592583[/TIME] --------------- Hmm...neither of those return any value. |
Sounds like something else is wrong with your code. You can see this right in the search page:
Code:
$vbulletin->input->clean_array_gpc('r', array( |
That's really odd....
Mine is like this: PHP Code:
I am not sure I am hooking this into the right area of the file. As a test I have tried simply setting a simple variable, eg $test= 3; by hacking it into that area of the file, and it does not spit out if you put $test in the template. So that might be my problem, am I looking in the wrong area? I am right after PHP Code:
Am I making any sense? |
Whoops, I was looking at the vb4 file.
It doesn't look like that variable gets passed for getnew. So, you would have to add it yourself. |
Thanks Lynne....would that just be a matter of adding that line?
|
Well, you would have to at least add a line to clean the variable for use.
|
All times are GMT. The time now is 01:01 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|