The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]()
Did you try $vbulletin->GPC['f'] or $vbulletin->GPC['forumid'] ? And don't forget to run the variable through the cleaner first.
|
#3
|
|||
|
|||
![]() Quote:
--------------- Added [DATE]1261592583[/DATE] at [TIME]1261592583[/TIME] --------------- Hmm...neither of those return any value. |
#4
|
||||
|
||||
![]()
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( 'f' => TYPE_UINT, 'days' => TYPE_UINT, 'exclude' => TYPE_NOHTML, 'include' => TYPE_NOHTML, 'showposts' => TYPE_BOOL, 'oldmethod' => TYPE_BOOL, 'sortby' => TYPE_NOHTML, 'noannounce' => TYPE_BOOL, 'contenttype' => TYPE_NOHTML, 'type' => TYPE_STR )); |
#5
|
|||
|
|||
![]()
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? |
#6
|
||||
|
||||
![]()
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. |
#7
|
|||
|
|||
![]()
Thanks Lynne....would that just be a matter of adding that line?
|
#8
|
||||
|
||||
![]()
Well, you would have to at least add a line to clean the variable for use.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|