Help: alternative login - redirects
Let me start by saying support in these forums are awseome. Thanks a lot.
I've run into another little snag with iFrames and Login's
I have setup 3 alternative logins (Facebook, Twitter and Google)
Ok, so when I login using built in nodebb eveyrthing is fine (no redirects)
However, when I login with one of the alternatives logins it redirects me to the URL that I have in the iFrame main nodebb home page.
So I loss the whole forum in my site look
Any one know a way to stop the redirect or redirect to the page that has the iFrame in it rather the the iFrame page it self..
http://lifewithtech.net/forum (is my main forum page with iFrame I want ppl to stay on that)
http://forum.lifewithtech.net:4567 (is the page the iFrame points to, which is what it redirects to after login)
@tfraley What's the reason you want to use iFrame? Is it simply because you want the same header and footer as your main site?
For the most part I would like it to flow and feel as though it's part of the site. Keeping the headed footer and menus etc..
Squares pace being a bit of a walled garden I do not have access to everything. I have accepted the when I moved over from Wordpress 2 years ago. Wanted to spend less time managing a site and more time creating content.
@tfraley it's probably easier then to have that added to the header and footer templates in the theme instead of trying to make it work with iframes..
Things wouldn't be consistent, Seeing I don't have access say to the menu code and other things. Yha I can put a logo up there and mimic basic CSS things. I don't mind people going to the main forum page but my only current thing is the redirect after using an alternitive login. I think if I can figure out a fix for that I should be fine with the way it it.
Then you're looking to modifying core, so please make sure you use
git stashto undo your changes temporarily (and
git stash popto reapply them), whenever you upgrade NodeBB
The line to edit is here: https://github.com/NodeBB/NodeBB/blob/master/src/routes/authentication.js#L60
You are the man that did it.
And thank you for the github refresher I will make sure to make notations for future updates..