The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Using Global.php on a dynamic Non-VB Page
Currently, I'm using this modification (Simple vB User Login). It works well and does great to login and logout. In fact the script works absolutely fine.
However, on my main website, I am experiencing a unique problem whereby each time I click on a dynamic link (index.php?p=whatever_page), it immediately goes to (index.php?p=faq) which is listed first in a long list of id's. I checked the code in the file where I have listed all of my id's and it seems to work correctly (and it also works correctly when I comment out the global.php file). I was able to isolate the conflicting problem, whenever I utilize and declare my global.php at the top site, it seems to cause this minute error. I was wondering if someone could enlighten me about what is exactly conflicting. I can post full-length codes of both files, if needed. But I'm struggling with this. Here is a snippet of my get_id file. PHP Code:
|
#2
|
|||
|
|||
You should be quoting each case, since it is a string you are evaluating:
PHP Code:
|
#3
|
||||
|
||||
<font face="Tahoma">I changed it, to match the example you provided. However, I am having the same problem as before, it just happens to skip right to the first available case I define. Also, if I comment out the inclusion of global.php, then and only then does the switch statement work.
I'm not sure what causes this problem, but I know that the conflict occurs the moment these two are running simultaneously. Maybe if you guys could point me as to why this is occurring.</font> |
#4
|
|||
|
|||
Can you post the entire file?
|
#5
|
||||
|
||||
Here is my main index.php file. The beginning part of the page is where I declare the global.php. Once I declare it, any time I click on any of my links on the site, it automatically redirects to my first defined case, in this case, faq.php.
PHP Code:
PHP Code:
--------------- Added [DATE]1225757446[/DATE] at [TIME]1225757446[/TIME] --------------- I know it's a great deal to deal with but if any hints or assistance can be made, I would greatly appreciate it. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|