![]() |
how do i make it so that when people log in, it takes them to the main portal page (ie: mysite.com/index.php) instead of directly into the forums? (ie: mysite.com/forums)
thanks in advance :glasses: |
It should already take them to the index page if you followed the instructions in the install file and made the modifications to your member.php file. ;)
|
i made the proper modifications as instructed, but it doesnt seem to be working correctly..where can i start looking for this redirecting problem?
thanks tigga.. |
If you made that modification to member.php and uploaded the file then it will work as it's supposed to.
|
//header("Location: $url");
$url = str_replace("\"", "", $url); eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");"); } else { $bbuserinfo=getuserinfo($userid); eval("standardredirect(\"".gettemplate("redirect_l ogin")."\",\"\$url\");"); } does this look right?...should it be double like that?..looks like the code inputs twice... :bored: i just went over the proceedures to see if everything is correct in member.php...but im alittle confused about the code showing up twice here... |
Yes, that's the way it should look. It's not doing anything twice as there is an } else { statement before the last line.
|
i appreciate your help tigga, but what else can i look at cause it doesnt appear to be directing them to the portal after sign in..thanks
|
If you'd like to PM me with the FTP info and url to your site I'll take a look and see what the problem is.
|
..as of for the second part for the member.php editing, does this look correct?
$session['sessionhash']=md5(uniqid(microtime())); $session['dbsessionhash']=$session['sessionhash']; $DB_site->query("INSERT INTO session (sessionhash,userid,host,useragent,lastactivity,st yleid) VALUES ('".addslashes($session['sessionhash'])."','0','".addslashes($session['host'])."','".addslashes($session['useragent'])."','".time()."','0')"); vbsetcookie("sessionhash",$session['sessionhash'],0); eval("standardredirect(\"".gettemplate("error_cook ieclear")."\",\"\$url\");"); |
Quote:
will do :cheeky: |
All times are GMT. The time now is 04:06 AM. |
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:
|