Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
toastysquirrel Posted December 27, 2007 Posted December 27, 2007 I could swear I've seen this on forums funning IPB. Basically what I'm after is let's say a Guest is looking at a specific post. They decide they want to comment on it so they login. As my board stands right now, upon successfully logging in they're redirect to the forum's index. I'd prefer it that after they successfully log in, the board automatically sends them *back* to the page they were on when they clicked the "login" button to begin with. Make sense? :) How can I set this up on my board? [EDIT]: Gah! I just realized I meant to post this in the "Invision Power Services > IPS Resources > Peer-to-Peer Technical Support > IP.Board" category instead. Oops :blink:
bfarber Posted December 27, 2007 Posted December 27, 2007 Should happen already. It's possible, however, that your server doesn't set the "REFERRER" header properly, so the login form doesn't know where the user came from. You can submit a ticket to have us check if you like.
wickedfpoop Posted December 27, 2007 Posted December 27, 2007 It should be like that automatically. Basically any action that requires a login when they're not, should redirect back to what they were doing after logging in. The only thing is, they can't click 'Login' at the top, they have to try to do what they were and go to that login page. If they click 'Login' at the top, that will most definately put them on the forum index after they enter their information and login. Wow, I used the word 'login' alot there .... login .. ok I'm done. :)
Logan Posted December 27, 2007 Posted December 27, 2007 I think he means he wants it to redirect to the page they were viewing EVEN if the action didn't require them to login... say if guests are allowed to view posts or the calendar, they should be redirected there after logging in, since that was the last thing they were doing -- makes sense. I agree.
toastysquirrel Posted December 27, 2007 Posted December 27, 2007 It should be like that automatically. Basically any action that requires a login when they're not, should redirect back to what they were doing after logging in. The only thing is, they can't click 'Login' at the top, they have to try to do what they were and go to that login page. If they click 'Login' at the top, that will most definately put them on the forum index after they enter their information and login. Wow, I used the word 'login' alot there .... login .. ok I'm done. :) Ah, I see the difference. Okay, so my board does properly redirect them if they try log on after, say, clicking the "reply" button prior to logging in. It's the "login" button at the top of the page that I was focusing on in my initial post. .Logan pretty much hit the nail on the head.
bfarber Posted December 27, 2007 Posted December 27, 2007 When I click Login at the top of the page it redirects me properly, because it can read the referrer header. Are you using IIS by chance? If so, I don't think it passes this header properly and may be why the button doesn't remember where you clicked from. :)
toastysquirrel Posted December 28, 2007 Posted December 28, 2007 When I click Login at the top of the page it redirects me properly, because it can read the referrer header. Are you using IIS by chance? If so, I don't think it passes this header properly and may be why the button doesn't remember where you clicked from. :) Well it's good to know that it's supposed to do what I want and it's just a matter of something being broken, so to speak. I'm not running IIS, rather it's a Linux based server running: Apache PHP 4.3.9 (I think) MySQL 4.1.20 IPB 2.2.1 If there's any other info I can give that might shed some light, let me know.
Mat Barrie Posted December 28, 2007 Posted December 28, 2007 When I click Login at the top of the page it redirects me properly, because it can read the referrer header. Are you using IIS by chance? If so, I don't think it passes this header properly and may be why the button doesn't remember where you clicked from. :) Never had any issues with IIS/MSSQL setups myself, not sure what you're getting at here :whistle:
bfarber Posted December 28, 2007 Posted December 28, 2007 Never had any issues with IIS/MSSQL setups myself, not sure what you're getting at here :whistle: From the download manager (the anti-leech code checks referrer, and a lot of IIS users end up not being able to download with the setting enabled since the referrer header wasn't getting set).Well it's good to know that it's supposed to do what I want and it's just a matter of something being broken, so to speak. I'd submit a ticket - since this is how the functionality is supposed to work, we can check why it's not working. Could be something like an .htaccess redirect for example that would cause problems. Or if you prefer I can move this topic to the customer-support area.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.