Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by badmeetsevil- badmeetsevil- is offline
Developer Last Online: Jul 2002 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 10-17-2001 Last Update: Never Installs: 12
 
No support by the author.

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
Code:
eval("standardredirect(\"".gettemplate("redirect_login")."\",\"index.php?s=$session[dbsessionhash]\");");
and replace it with
Code:
eval("standardredirect(\"".gettemplate("redirect_login")."\",\"$HTTP_REFERER\");");
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?

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 10-26-2001, 12:52 PM
badmeetsevil-'s Avatar
badmeetsevil- badmeetsevil- is offline
 
Join Date: Oct 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great. Glad I could help out.
Reply With Quote
  #13  
Old 04-21-2002, 08:57 PM
mashby's Avatar
mashby mashby is offline
 
Join Date: Jan 2002
Location: Nashville, TN - USA
Posts: 736
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And you helped me too badmeetsevil! Thanks for a great thread.
Reply With Quote
  #14  
Old 05-09-2002, 09:49 PM
ThoughtDiver ThoughtDiver is offline
 
Join Date: Apr 2002
Location: Fort Wayne, IN
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 11-23-2002, 10:59 AM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!!!
Reply With Quote
  #16  
Old 11-27-2002, 10:31 AM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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???
Reply With Quote
  #17  
Old 01-02-2003, 06:54 PM
Ember's Avatar
Ember Ember is offline
 
Join Date: Sep 2002
Location: Hereford, England
Posts: 200
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice edition, but the link to rob's hack doesnt work... It keeps saying i'm not allowed to be there (I am logged in)
Reply With Quote
  #18  
Old 03-23-2003, 11:30 AM
Marulatree's Avatar
Marulatree Marulatree is offline
 
Join Date: Nov 2002
Location: London
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
11-27-02 at 12:31 PM glo said this in 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???
I'm getting this as well, can anyone help?
Reply With Quote
  #19  
Old 03-30-2003, 06:03 PM
Marulatree's Avatar
Marulatree Marulatree is offline
 
Join Date: Nov 2002
Location: London
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-23-03 at 01:30 PM Marulatree said this in Post #17


I'm getting this as well, can anyone help?

Me too - Guys can anyone help?
Reply With Quote
  #20  
Old 03-30-2003, 06:50 PM
Marulatree's Avatar
Marulatree Marulatree is offline
 
Join Date: Nov 2002
Location: London
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bother everyone - I want to get this done tonight if possible...


Any help on this will get me to move forward with completing my site...please
Reply With Quote
  #21  
Old 04-07-2003, 06:28 PM
prashidi prashidi is offline
 
Join Date: Apr 2003
Location: Arkansas
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also get this error because for some reason the $referrer is members.php

Anybody know how to solve this problem?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:02 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04743 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete