View Full Version : Redirection after login
azarl
12-16-2005, 06:41 AM
Hi
After login on the main CMPS page, I get get redirected to the forums. Is it possible to redirect to the CMPS page after a sucessful login?
azarl
12-19-2005, 05:53 PM
Bump
Brian
12-20-2005, 01:17 PM
As far as I know you should be redirected to the page that you logged in from. Does it redirect you to the forum's index if you login from a different page?
azarl
12-21-2005, 04:56 AM
Thanks. Don't know what I've done, bone it seems OK now. I removed the login from the Navbar template.
FamilyCorner
12-29-2005, 09:34 AM
Hi
After login on the main CMPS page, I get get redirected to the forums. Is it possible to redirect to the CMPS page after a sucessful login?
i have a smiliar problem.
After logging in from anywhere, admin panel, boards, doesn't matter, I get a page that says:
Thank you for logging in, FamilyCorner.
Click here if your browser does not automatically redirect you.
I HAVE to click the link to go where I need to go, it NEVER redirects :(
Brian
12-29-2005, 01:16 PM
Sounds like you may have modified your 'STANDARD_REDIRECT' template. The only thing I can suggest would be to check that template and make sure you're using the default. If that doesn't help then you would need to ask on vbulletin.com as that wouldn't have anything to do with the CMPS.
FamilyCorner
12-29-2005, 02:09 PM
Sounds like you may have modified your 'STANDARD_REDIRECT' template. The only thing I can suggest would be to check that template and make sure you're using the default. If that doesn't help then you would need to ask on vbulletin.com as that wouldn't have anything to do with the CMPS.
I checked and that template has never been edited, it's still the default. My redirection worked fine before installing CMPS, so I'm guessing that VBulletin will send me back over here.
If it helps at all, I did set up all my pages so that CMPS shows up everywhere, not just the homepage. And I use the forum index page, not the CMPS index page on the main forum.
I really am hoping you can help me, I know that VB will turn me away since it all worked fine before adding the CMPS :( I'm happy to answer any questions or give you access if you need it to help me trouble shoot this problem.
Thanks in advance! (I love the program!)
Brian
12-30-2005, 04:00 PM
You may want to double check that the code you've added to your functions.php file to integrate the CMPS with your forum pages is correct. I know the code in the users manual has been changed a couple of time over the last few months to fix problems like this, so it may just be that you're using some outdated code and that's what's causing the problem.
FamilyCorner
12-30-2005, 04:21 PM
You may want to double check that the code you've added to your functions.php file to integrate the CMPS with your forum pages is correct. I know the code in the users manual has been changed a couple of time over the last few months to fix problems like this, so it may just be that you're using some outdated code and that's what's causing the problem.
Thank you for responding Brian :) I went back to the instructions file from when I installed CMPS and I don't see anything about editing the functions.php file anywhere. I know Iwouldn't have changed anything on my own, I'm just not knowledgeable enough about it to take that chance.
Is there a section of that file that I can copy and paste for you that might help solve this puzzle?
Brian
12-30-2005, 04:25 PM
Sure. Just search the file for 'VBA_PORTAL', and paste from about 3 lines above that to 10 lines below that here for me and I can tell you if it's the correct code or not. :)
FamilyCorner
12-30-2005, 04:43 PM
Sure. Just search the file for 'VBA_PORTAL', and paste from about 3 lines above that to 10 lines below that here for me and I can tell you if it's the correct code or not. :)
Thank you!!
function print_output($vartext, $sendheader = true)
{
global $pagestarttime, $querytime, $vbulletin;
global $vbphrase, $stylevar;
if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT'))
{
define('SKIP_OUTPUT', true);
global $home;
print_portal_output($home, $vartext);
}
if ($vbulletin->options['addtemplatename'])
{
if ($doctypepos = @strpos($vartext, $stylevar['htmldoctype']))
{
$comment = substr($vartext, 0, $doctypepos);
$vartext = substr($vartext, $doctypepos + strlen($stylevar['htmldoctype']));
$vartext = $stylevar['htmldoctype'] . "\n" . $comment . $vartext;
}
}
Brian
12-30-2005, 04:48 PM
Yup, looks like that would be the problem. Try replacing this line:
if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT'))
With this:
if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP'))
And see if that helps.
FamilyCorner
12-30-2005, 05:01 PM
YES!! That did it, thank you SOOOO much!!
tommyxv
09-23-2006, 10:26 PM
I am having the same problem with a fresh vb 3.6.x and vba 2.2.0 install. It redirects you to the forum index after logging into the portal page. HOW DO YOU FIX IT?
tommyxv
09-26-2006, 02:58 PM
BUMP :eek:
Zachery
09-26-2006, 06:00 PM
Brian provided a fix above, does it not work?
tommyxv
10-06-2006, 02:11 PM
No becuase I have not touch any vb files to use that fix. vba 2.0 never did this on my other site and after upgrading to vba 2.2 and vb 3.6, it still never done this.
On the site that this is happening, it is a fresh vb 3.6.2 and vba 2.2 install. :(
Zachery
10-06-2006, 05:16 PM
Ok, but you refuse to do the fix so what can we do?
tommyxv
10-29-2006, 04:45 PM
Ok, but you refuse to do the fix so what can we do?
Your missing the point. That fix does not apply to my situations since i have not hacked any vb files. I have not touched or hacked the functions.php file to integrate the CMPS.
Am i missing something here? :confused:
Brian
10-30-2006, 11:14 AM
I know it's possible, though I can't remember what I had to change to get it to work here and other places. I've just spent over 20 minutes trying to figure it out, but so far I haven't found a way to change the redirect. The best thing I can suggest would be to post on vbulletin.com's support forums and ask them what needs to be done so that you will be redirected to the page you were viewing instead of the forum index when logging in.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.