vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Log out and return to the page you were at (https://vborg.vbsupport.ru/showthread.php?t=24889)

badmeetsevil- 08-10-2001 02:30 PM

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

Admin 08-10-2001 02:44 PM

First of all, what hack are you talking about?
Also, what happends when you log in using that script? Where does it take you?

theflow 08-11-2001 03:38 AM

Firefly, any progress on the requested tweeks for this hack? I can't use it yet in current state. Thank you.

Admin 08-11-2001 02:54 PM

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. :)

theflow 08-11-2001 03:04 PM

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.

Admin 08-11-2001 03:37 PM

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.

Admin 08-11-2001 04:58 PM

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. :(


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

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01088 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete