vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Direct Link to the LogIn Page? (https://vborg.vbsupport.ru/showthread.php?t=63951)

jarekn 04-16-2004 11:43 AM

Direct Link to the LogIn Page?
 
Hello,


In my forum I have enabled not logged in users to browse through the threads, when they want to post they get redirected to the LogIn page that prompts for user name and password.

What is the link to that page? When I link to the http://forum.site.com/forum/login.php it displays the main forum page with the threads, I need the link that will link directly to the LogIn page only.

Regards,

JarekN

jarekn 04-18-2004 02:59 AM

Anyone?

AlexanderT 04-18-2004 09:15 AM

It is not an exact link that generates the Login page, but a standard_error redirect.

What you can do is make a new file, e.g. called userlogin.php, copy it to your /forums directory, with the following content:
PHP Code:

<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// is user logged in?
if (!$bbuserinfo['userid']) {
    
print_no_permission();
}
else {
    
$url "index.php?$session[sessionurl]";
    eval(
print_standard_redirect('redirect_login'));
}
?>

That should do the trick :P

Greets
Alex

TouchingVirus 04-18-2004 02:07 PM

Indeed, it works like a charm Alex, nice one ;)

jarekn 04-21-2004 09:48 AM

THANX it is exactly what I needed :squareeyed:

AlexanderT 04-21-2004 02:14 PM

Quote:

Originally Posted by jarekn
THANX it is exactly what I needed :squareeyed:

NP :)


All times are GMT. The time now is 08:21 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.01151 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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