login with vbulletin
-
Hello my dear friends
I designed a site with WordPress. And for its forum I used vBulletin 4. I designed it in this way:
When a user wants to log up in this forum, He/She connects to the log up part. I put the code bellow on the top of my pages (which are not in WordPress) to check the user has log in or not.
PHPcode:
$curdir = getcwd();
chdir(‘/home/httpd/html/forums/’);
require_once(‘/home/httpd/html/forums/global.php’);
chdir ($curdir);
require_once(‘../../forums/login_inc_ext_pages.php’);
//forum user validationchdir($curdir);
//switch back to real current directory
//echo getcwd ();?>And page “ login_inc_ext_pages.php ” has the code bellow:
PHPcode:
$forumpath = “http://www.domain.com/forums/”;
if ($vbulletin->userinfo[‘userid’]==0)
{ header( ‘Location: http://www.domain.com/login/’ ) ;
exit;}These codes work in the pages which are not in WordPress. But now that I want use them in WordPress, It don’t let me to log in and every time the page redirects to >>
http://www.domain.com/login
It’s so odd!
Can you please help me?!
Thanks a lotThe blog I need help with is: (visible only to logged in users)
-
I designed a site with WordPress. And for its forum I used vBulletin
Then I’d say you need to be over here:
- The topic ‘login with vbulletin’ is closed to new replies.