The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Calling content.php with a specific query ID from a php script
I am trying to find a way to call content.php with a query string from another php script. Without a query string, a stripped down version of the script, that works, would be:
PHP Code:
So this reads as to what I'm after: PHP Code:
I was also wondering if there is a way to do it within VB, if you look into content.php, you'll see: PHP Code:
Is it possible to define the page number ID before calling the bootstrap.php (or content.php)? Where does the query string get parsed anyway? I'm just starting to work with VB & php, so thank you for any help! |
#2
|
|||
|
|||
I believe you should be able to set parameters by setting $_GET and/or $_REQUEST. It depends on which parameters you're trying to set and how the vb code looks for them.
I don't know exactly what your script does, but maybe you could do what you're trying to do using plugins? |
#3
|
|||
|
|||
Thanks, kh99.
What I'm really trying to do is this: PHP Code:
PHP Code:
I will look into $_REQUEST - but you're right, it depends how VB is looking for things, so that is why I was wondering where it parses the query string? I gave up on that for now after looking in the bootstrap.php since it gets into a lot of PHP code I'm not at all familiar with. |
#4
|
|||
|
|||
Oh, sorry, that's what you were asking. I see now, content.php is different in that it seems to do it's own parsing of the url. It looks like maybe it's in class_core.php, function resolve_request_url(), around line 2070, but I'm not sure. That code looks like it uses one of the values out of $_SERVER that has the url as a string.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|