Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

Reply
 
Thread Tools
Details »»

Version: , by Admin (Coder) Admin is offline
Developer Last Online: Nov 2024 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-07-2001 Last Update: Never Installs: 2
 
No support by the author.

This hack was requested by theflow for God knows how many times.
I'm surprised no one has ever came up with a way to do this, as it's very simple.

Description: This hack lets you place a log out link on any of your pages, and it makes you go back to where you clicked the link from after you have logged out.

Files to edit: member.php.

Templates to add: redirect_logout.

Templates to edit: Any that you want to put the logout link on.

Tested on: vBulletin v2.0.3.

Installation:
1) Open members.php and find
PHP Code:
  eval("standarderror(\"".gettemplate("error_cookieclear")."\");"); 
and replace it with
PHP Code:
  $url $HTTP_REFERER;
  eval(
"standardredirect(\"".gettemplate("redirect_logout")."\",\"$url\");"); 
2) Add a template called redirect_logout and put
Code:
All cookies cleared. Please wait.
or, as a matter of fact, any other message you want to be displayed.

3) Place
Code:
<smallfont><a href="member.php?s=$session[sessionhash]&action=logout">Log Out</a></smallfont>
on any template you want to give the option to log out.

Enjoy this, and please feedback!

Show Your Support

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

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

Is there anyway to have an outside VB log in script, which does this? I know there's one already out, but me and a bunch of the others requested a "go whatever URL you want" after logging in script. Maybe you can mix the scripts together, and see what you come up with! :-D
Reply With Quote
  #13  
Old 08-10-2001, 02:44 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all, what hack are you talking about?
Also, what happends when you log in using that script? Where does it take you?
Reply With Quote
  #14  
Old 08-11-2001, 03:38 AM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Firefly, any progress on the requested tweeks for this hack? I can't use it yet in current state. Thank you.
Reply With Quote
  #15  
Old 08-11-2001, 02:54 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

theflow, you can edit the message at the bottom in the standardredirect template. Use $url for the place you were coming from and $bburl for the forum's index.
Reply With Quote
  #16  
Old 08-11-2001, 03:04 PM
theflow theflow is offline
 
Join Date: Aug 2002
Location: San Francisco
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
theflow, you can edit the message at the bottom in the standardredirect template. Use $url for the place you were coming from and $bburl for the forum's index.
I don't know how to write code, and I am wanting the 2 options to be there, but I also want it to auto-redirect you to where you were after 5 seconds.

I also want to get the "Unregistered" pre-fill text removed from all username entry screens.

I also want to hold the unregistered "screen name" from a preview screen to a Submit action.
Reply With Quote
  #17  
Old 08-11-2001, 03:37 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To remove Unregistered open sessions.php in your admin folder and replace
PHP Code:
  $bbuserinfo['username']=iif ($loginusername=="","Unregistered",htmlspecialchars($loginusername)); 
with
PHP Code:
  $bbuserinfo['username']=iif ($loginusername=="","",htmlspecialchars($loginusername)); 
In your standardredirect template replace
PHP Code:
<smallfont><a href="$url">Click here if you do not want to wait any longer<br>
        (or if 
your browser does not automatically forward you)</a></smallfont
with
PHP Code:
<smallfont><a href="$url">Click here to come back to where you came from</a><br>
<
a href="$bburl">Click here to go to the forum index</a></smallfont
and that's it.

As for holding the new name to the preview screen it's complicated, I'm still trying to figure it all out.
Reply With Quote
  #18  
Old 08-11-2001, 04:58 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I've been trying to find out how to do this for over an hour now, and I just can't do it... I think you'll need a real expert for this one. Sorry.
Reply With Quote
Reply

Thread Tools

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 03:29 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.04171 seconds
  • Memory Usage 2,281KB
  • Queries Executed 22 (?)
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
  • (6)bbcode_php
  • (1)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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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