![]() |
Uninstall vBSEO. :)
|
Quote:
Post the first few lines of that page so we can see whats happening. |
Hi,
I'm trying to use this in a page which contains other variables, but they're all being wiped. I've done some general reading on the VBulletin variable cleaning utility, but can't for the life of me figure out what I'm doing wrong. Basically an "id" variable is passed (using the "request" function) with the URL for a simple news script (news.php?action=viewnews&id=5) But with global.php (thus init.php) being used the variable is being wiped. How can I get around that? Code:
switch($_REQUEST['action']) { Thanks |
Nevermind, I discovered just how stupid I was being!
|
Quote:
|
I ended up putting the variable through the vbulletin variable cleaner which sorted things out nicely.
I'm able to log-in and out fine from any page with the includes, but when I attempt to use the user's name/id in the page then I don't get any result. I'm using the following code in the page: Code:
$member_name = $vbulletin->userinfo['username']; Code:
<?php |
Found the problem - it doesn't like being inside a function. Think I'm sorted now!
|
Ok well I keep on getting an error...here it is
Quote:
PHP Code:
I have tried to check it out, but I don't have a clue what it could be... Any help would be much appreciated!!! |
There should be nothing wrong with the functions.php file, the problem will be in the page that has called it.
Have you followed the steps in the troubleshooting guide? https://vborg.vbsupport.ru/showpost....79&postcount=2 Including step 5 with the test code. If you still have problems after this, please post the first few lines of the page you are trying to use this hack on. |
Is it possible to redirect back to the page you accessed the login form from? if so can someone please give me the code to edit?
Thnx |
All times are GMT. The time now is 03:04 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|