vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Simple vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=173693)

texas_txu 05-14-2008 06:23 AM

still running into issues...the login page that is generated makes links for the registration page and the login script to the /music/log.php etc...rather than /forums/login.php. even the logo is messed up

justchil 05-15-2008 06:36 PM

Super simple and works great!

pdblizzard 05-15-2008 06:52 PM

Quote:

Originally Posted by texas_txu (Post 1519087)
still running into issues...the login page that is generated makes links for the registration page and the login script to the /music/log.php etc...rather than /forums/login.php. even the logo is messed up

Maybe if you post more information, i.e., the php code with your path statements (the part you're supposed to customize) we can help you out.

texas_txu 05-16-2008 07:07 AM

Quote:

Originally Posted by longin_inc.php
<?php
// Version 2.00
// Released March 21st, 2008
// For vB 3.7.x
// Edit the line below to show path to your forums
$forumpath = "./forums/";

also tried with
$forumpath = "https://www.mydomain.com/forums/"; (yes secure domain)
$forumpath = "c:\domains\mydomain\wwwroot\forums"; (IIS Server nomenclature)

and my php test file looks like (in mydomain.com/forums/music with login_inc in mydomain.com/:
Quote:

<?php
$curdir = getcwd ();
chdir('../forums');
require_once('../forums/global.php');
echo getcwd();
chdir ($curdir);
echo getcwd();
?>

....

<?php
echo getcwd();
require_once('../login_inc.php');
?>

berry05 05-18-2008 01:08 PM

i did this hack and got this error...

Unable to add cookies, header already sent.
File: /home/content/b/e/r/berry05/html/tyler.php
Line: 3

and i did what the troubleshooting told me to do also...

oz_girl 05-31-2008 11:59 PM

This si another awesome mod, will it be to hard for a newbie to use?

fsbmax 08-03-2008 09:04 PM

i keep getting errors :s

Warning: chdir() [function.chdir]: No such file or directory (errno 2) in /home/fragreel/public_html/td2142/template/header.inc.php on line 4

Warning: require_once(/home/fragreel/td2142/forum/global.php) [function.require-once]: failed to open stream: No such file or directory in /home/fragreel/public_html/td2142/template/header.inc.php on line 5

Fatal error: require_once() [function.require]: Failed opening required '/home/fragreel/td2142/forum/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fragreel/public_html/td2142/template/header.inc.php on line 5

Hereward 08-04-2008 06:31 AM

I wonder if its possible to see a working example rather than just the code snippets?

PHP Code:

<?php
If ($vbulletin->userinfo['userid']!=0)
    {    
    echo 
"Your logged in so we can display this";
    } else {
    echo 
"Your not logged in so we display this";
    }
?>

I am looking to create a page (within a separate CMS) which checks to see if the current user is authenticated against the forum. This code above looks promising but it seems incomplete.

I am wondering, where is the variable $vbulletin created? Does it need to be declared as a global?

cheers (:

ramsayeg 08-06-2008 11:22 PM

have some problems with this, the form works OK but when it returns to the page it still doesn't show me as logged on...

I did everything in the instructions... anyone cares to help?

ramsayeg 08-07-2008 07:34 AM

anyone?

I even managed to lock myself out by changing the cookie domain etc. and then had to reverse it by using tools.php. I'd love some ideas....


All times are GMT. The time now is 03:42 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.01034 seconds
  • Memory Usage 1,740KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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