vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   External Login on non 3.5.0 page (https://vborg.vbsupport.ru/showthread.php?t=94492)

Paul_Hollibone 08-17-2005 11:36 AM

External Login on non 3.5.0 page
 
Hello all, I am in a diddle of a pickle at the moment.

I recently upgraded to vBulletin 3.5.0 from 3.0.8. All was fine till I realised the code I had on my site (an external login script) would not function. So I have come to you guys with a request.

I am after a External Login Code which can be placed on my .php page, which will let users login, then be re-directed back to the page they logged in from, with a little messege which says "Welcome back Paul_Hollibone, Click Here to Logout".

Now something like this is absolutoly mandatory, as a vital function for members logged in only cannot be used (due to some sort of cookies conflict with the code, and 3.5.0), meaning they cannot access the area I like to call "The Memories Sector", so has anyone attempted to make another code for this function, or is anyone able to?

Thanks in advance,
Paul.

XdePloppy 08-18-2005 07:18 AM

Same question here. Is there a way? I used this:

Code:

require_once('/home/customer/domains/bla.com/public_html/forum/global.php');

error_reporting(E_ALL & ~E_NOTICE);
if (!in_array($bbuserinfo['usergroupid'], array(6))) print_no_permission();

but that doesn't work anymore

Marco van Herwaarden 08-18-2005 07:21 AM

That would never have worked. Do a chdir to your forumhome directory and then require ./global.php

XdePloppy 08-18-2005 08:02 AM

Quote:

Originally Posted by MarcoH64
That would never have worked. Do a chdir to your forumhome directory and then require ./global.php

I does m8 ;), i made an symlink of includes dir to the dir where my script is in ;)
:D, but not with 3.5 :(

Marco van Herwaarden 08-18-2005 11:44 AM

3.5 Don't work with relative paths anymore (except for the initial load og global.php). Full paths are used.


All times are GMT. The time now is 04:26 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.00963 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_code_printable
  • (1)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