redirection suite and phpbb fetch all
-----
| Author | Message | |
|---|---|---|
|
HB. |
||
| Thu Apr 12, 2007 8:15 pm Post subject: redirection suite and phpbb fetch all | ||
|
I'm having some troubles with the redirection suite and phpbb fetch all. I'll try to explain as much as possible.
I have my test forum at mysite.a1forums.com/phpbb. I have a testing home page at mysite.a1forums.com/index1.php. The testing index page has a snippet of code from the phpbb fetch all portal.php that contains the login portion of the script. My problem is once I enter my username and password into the login box and click login, I'm being taken to a 404 page, now 404 page link is http://www.mysite.a1forums.com/home/mysite/public_html/phpbb/login.php I can't seem to get rid of the /home/mysite/public_html/phpbb, which is the root to my phpbb forum. I tried applying the Redirection Suite - redirect() enhancement, but that didn't help. I'm trying to accomplish after members login at that home page, they will be directed back to that page but logged into the forum. Can anyone please help me with this, I've spent some time reading over the fetch all support page, but they are shutdown. If you need for me to post some code of anything just let me know what to provide. Thank you very much |
||
|
Thoul |
||
| Fri Apr 13, 2007 6:03 am Post subject: Re: redirection suite and phpbb fetch all | ||
|
You probably have your phpbb root path set like this:
Code: $phpbb_root_path = '/home/mysite/public_html/phpbb';
Instead, you should use a relative path like so: Code: $phpbb_root_path = './phpbb';
|
||
|
HB. |
||
| Fri Apr 13, 2007 9:35 am Post subject: Re: redirection suite and phpbb fetch all | ||
|
In my many attempts of trying to get it work, I think I tried that because I read the examples. I'll try again and let you know. Thanks for the reply
|
||
|
HB. |
||
| Fri Apr 13, 2007 9:43 am Post subject: Re: redirection suite and phpbb fetch all | ||
|
Well, at least I'm one step closer. I still get a 404 page but this time the link has a sid
this is the url after logging in http://www.mysite.a1forums.com/phpbb/index1.php?sid=7ac6e2977d2759cd65605bb22d603601 error displaying because that page isn't there Not Found The requested URL /phpbb/index1.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Now I notice that I'm logged in when I visit the forum, but I'm to direct the member back to the index after logging in. So I guess the redirect would have to be mysite.a1forums.com/index1.php instead of mysite.a1forums.com/phpbb/index1.php Do you have any suggestions? |
||
|
Thoul |
||
| Fri Apr 13, 2007 12:10 pm Post subject: Re: redirection suite and phpbb fetch all | ||
|
In your login form, make sure you you have the following:
[code]<input type="hidden" name="redirect" value="/index1.php" /> <input type="hidden" name="outside" value="1" />[c/ode] I'm not actually sure if the /index1.php in the first line here is right; it's been years since I worked with redirection suite and logins like this. But anyway, you are most likely missing the "outside" line. If you don't have that, add it. If you do have it, then try value="../index1.php" in the "redirect" line. |
||
|
HB. |
||
| Fri Apr 13, 2007 2:51 pm Post subject: | ||
|
Thanks Thoul,
here is a part of the login code, should I replace anything or just add what you said to it? Code: <input type="hidden" name="redirect" value="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" />
<input type="hidden" name="sid" value="<?php echo $userdata['session_id']; ?>" /> <input type="hidden" name="outside" value="1" /> <div align="center"><input type="submit" class="mainoption" name="login" value="<?php echo $lang['Login']; ?>" /> <br /> <br /> <a href="<?php echo append_sid($phpbb_root_path . 'profile.php?mode=sendpassword'); ?>"><?php echo $lang['Forgotten_password']; ?></a></div> |
||
|
HB. |
||
| Sat Apr 14, 2007 4:02 am Post subject: Re: redirection suite and phpbb fetch all | ||
|
Thanks a whole lot Thoul, I got it to work, and you have helped me greatly!!
I was just looking over your website for a way to donate to you. You can expect a donation from me within the next 2 days. Thank you very much again |
||
|
Thoul |
||
| Sat Apr 14, 2007 10:14 pm Post subject: Re: redirection suite and phpbb fetch all | ||
|
No problem, I'm glad you got it sorted out.
HB. wrote: I was just looking over your website for a way to donate to you. You can expect a donation from me within the next 2 days. Thank you very much again
Thanks. |
||
|
HB. |
||
| Tue Apr 17, 2007 4:56 pm Post subject: Re: redirection suite and phpbb fetch all | ||
|
I found the donation link and sent a small donation. Thank you again
|
||
Page 1 of 1