The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
With vb 3.0.7 I could include global.php to give me access to things like bbuserinfo and such, which many of the scripts on my site work off of.
Now if I include it, I no longer have access to those variables, and it messes up my .htaccess settings so that everything is redirected to the main page. Any solutions? |
#2
|
|||
|
|||
![]()
It still works the same, but the names of the variables have changed. See the topics on moving from 3.0 to 3.5 in the 3.5 tutorials section.
|
#3
|
||||
|
||||
![]()
okay I will look into the variable changes, but any help on the .htaccess thing? The specific .htaccess that isnt working is the following:
RewriteEngine On RewriteCond %{REQUEST_URI} !(index\.php|media|forums|layout|gamingextreme|inc ludes|news|archive|dave) RewriteRule ^(.*)\.html$ index.php?id=site/$1 Basically just makes http://www.ffextreme.com/index.php?id=ff6 look like http://www.ffextreme.com/ff6.html When I include the global.php, it redirects all of the pages to the main page for some reason. |
#4
|
|||
|
|||
![]()
What is the exact code of your script?
|
#5
|
||||
|
||||
![]()
through the process of trial and error I figured out what the problem is, but I dont know how to fix it.
Basically if I include global.php, if I try to pass any variables through the URL, for example. index.php?id=blah or index.php?page=blah they dont get passed, they just are NULL values. Any idea why it does this? |
#6
|
|||
|
|||
![]()
You will have to use $vbulletin->input->clean_array_gpc or $vbulletin->input->clean_gpc on them.
|
#7
|
||||
|
||||
![]()
how exactly do you use that function?
|
#8
|
|||
|
|||
![]() PHP Code:
PHP Code:
|
#9
|
||||
|
||||
![]()
Okay I did that, now the variable is always giving the value 0. Is there a certain place I need to put the clean_array_gpc?
|
#10
|
|||
|
|||
![]()
You might need to use TYPE_STR instead of TYPE_INT if it is not an integer var.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|