The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
So I have this php page I'm working on... a mod. I've included global.php... everything works on my mod except I'm trying to redirect back to forumdisplay after a database insertion happens.
PHP Code:
I've also tried: - $forum['forumid'] - $threadinfo['forumid'] - $thread['forumid'] None of which give me results. Any ideas? |
#2
|
||||
|
||||
![]()
Well, exactly what forumid is being passed, if any? Where do you define the forumid and what do you call it? A php page that you create doesn't 'belong' to a forum, so you need to pass the variable or define it.
|
#3
|
||||
|
||||
![]()
i guess nothing then... I basically want it to redirect to whatever forum I was in currently.
How can I pass it? |
#4
|
||||
|
||||
![]()
That depends. How are you going from the forum to this page? If it's by a form, you can pass it as a hidden variable in the form. If just by a link, you can pass it in the url.
|
#5
|
||||
|
||||
![]()
I see what your saying I think... ok so I appended this to my button I'm clicking on..
&forumid=$foruminfo[forumid] and I can see the ID reflect now when u hover over the button/link. So that part works. I'm stuck in the .php page tho. Using $vbulletin->GPC['forumid'] in the redirect doesnt work. What am I missing here... PHP Code:
|
#6
|
||||
|
||||
![]()
The following are the globally used variables for forumid.
PHP Code:
|
#7
|
||||
|
||||
![]()
I got it finally, was missing the input hidden part of it... thanks everyone!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|