![]() |
|
Mod Options |
![]() |
|||||||||||||||||||
[RELEASE-addon] Homepage Login on Non-VB Page -- Addon
![]() Developer Last Online: Jul 2002 ![]() ![]() ![]() This modification is in the archives.
Here's a little mini-addon to a very popular hack by RobAC. You can view the original hack here.
When Rob released this hack, it would log you in, and bring you to the Forums home. This was very fustrating to some, who put the logon on their mainpage, and it'd bring them to the Forums Home, and not back to where they logged in. I decided to do it myself, and found it pretty simple. What this little addon will do, is when you login, it'll bring you back to the page you were previously on when you logged on. So, lets say you had Rob's login code on your mainpage, and you logged in, it'd bring you back to your mainpage saying "Welcome Back, Username". This will work with any page since it uses "$HTTP_REFERER". "$HTTP_REFERER" is just a little code that tracks the last page you've been on. To install this, you'll need to change one line in your member.php. Find
and replace it with
Once you do this, this should bring you back to the page you were on while logging in. ![]() Thanks Rob for the great hack! ![]() Does this work for you? Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
[RELEASE v2] Homepage Login on non-vB page | RobAC | vBulletin 2.x Full Releases | 60 | 24 Mar 2003 11:12 |
Comments |
#2
|
||||
|
||||
Thanks, I'll try it!
![]() Btw, both these hacks would work on say, a block on PHPnuke? No members have liked this post.
|
#3
|
|||
|
|||
No problem. I'm glad it's helped out. I apologize for not updating it with more features, but I just haven't had the time. I've got a few major projects I'm trying to roll out on my own site and haven't been here in the support forums much.
Looks like a cool feature! ![]() No members have liked this post.
|
#4
|
||||
|
||||
![]()
Thanks!
I'm looking for this for quite sometime now. ![]() No members have liked this post.
|
#5
|
||||
|
||||
Hehe. No problem. Rob did all the work, I just edited a very little part of it.
No members have liked this post.
|
#6
|
||||
|
||||
badmeetsevil-
Now that we have the login return to the referrer page can you do one for logout too? ![]() It would be a complete package then won't you think instead of going to the forum cookies clear page which is irritating. No members have liked this post.
|
#7
|
||||||||
|
||||||||
Here you go certify.
The following code will return you to your previous page when you log out of your Forums. Open the template "error_cookieclear" and change this
to this
This should work. Tell me if it doesn't. ![]() No members have liked this post.
|
#8
|
||||
|
||||
![]()
Thanks, I'll try it now!
![]() No members have liked this post.
|
#9
|
||||
|
||||
Is it working correctly? I only tested it a bit on my forums, but it seems to be working fine.
No members have liked this post.
|
#11
|
||||
|
||||
Great. Glad I could help out.
No members have liked this post.
|
#12
|
||||
|
||||
And you helped me too badmeetsevil! Thanks for a great thread.
No members have liked this post.
|
#13
|
|||
|
|||
Everything works except the redirect after you log in... It wants to take me to the path:
http://www.site.com/forums/://www.site.com/forums/member.php?s=&s=e98eeae106620a081645e7295b9dd4f9 It's like it's repeating a portion of the URL and then at the end there are even two "s" params being passed. Can anyone give me a hint where to look? Thanks, Scott No members have liked this post.
|
#14
|
||||
|
||||
thanks Bad meets Evil!
I havent tested it yet, but once i complete my webwelcome hack i will let u know! I have already clicked install!!! No members have liked this post.
|
#15
|
||||
|
||||
Hi guys, the hack now always seems to send me back to the "request password" screen?
Even when logging in from withn the vB index page? Any ideas why this is doing it??? No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:04.