vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Code Question (https://vborg.vbsupport.ru/showthread.php?t=61910)

SEShady 02-25-2004 05:19 PM

Code Question
 
This is a hack that logic made. I am trying to get it to redirect to the login page. I don't want it to go to the register page. I am currently running 2.3.4. Here is the code in his original hack:

PHP Code:

// start
if ($bbuserinfo[userid]==0) {
    eval(
"standardredirect(\"".gettemplate("redirect_gotoregister")."\",\"register.php?s=$session[sessionhash]&action=signup\");");

// end 

Can someone give me some help?

Thanks,
shady

Zachery 02-25-2004 05:27 PM

Quote:

Originally Posted by SEShady
This is a hack that logic made. I am trying to get it to redirect to the login page. I don't want it to go to the register page. I am currently running 2.3.4. Here is the code in his original hack:

Can someone give me some help?

Thanks,
shady

Your best off asking in the correct thread, and please either remove the code or put it into a code / php box

SEShady 02-25-2004 06:06 PM

Roger that, but could you explain how to put it into a code/php box? The reason I asked it here, was because I wanted it to do something different than what is was originally meant to do, and wonderd if anyone could tell me.

Thanks,
Shady

Zachery 02-25-2004 07:12 PM

Quote:

Originally Posted by SEShady
Roger that, but could you explain how to put it into a code/php box? The reason I asked it here, was because I wanted it to do something different than what is was originally meant to do, and wonderd if anyone could tell me.

Thanks,
Shady

Becaise guests can see the code so we put it into the box.

SEShady 02-26-2004 05:56 PM

How, not why. I figured it out though.

Thanks,
Shady


All times are GMT. The time now is 05:57 AM.

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.01459 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete