vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Yet Another vB Login on non-vB Page (https://vborg.vbsupport.ru/showthread.php?t=91129)

calorie 09-10-2005 03:46 PM

@Disi: Does this happen when you upload example.php and try to login?

Disi 09-10-2005 10:26 PM

Quote:

Originally Posted by calorie
@Disi: Does this happen when you upload example.php and try to login?

nope :(

calorie 09-11-2005 01:32 PM

@Disi: Okay, as example.php works, it seems that whatever edits you made to the file are causing the issue, but without knowing the edits, I cannot say why you have an issue, so just recheck your edits.

Zelda-King 10-30-2005 10:10 AM

Quote:

Originally Posted by Mimoun
After a lot of editing the script I got it fully customized.
You can see it working on my site .
Thanks again calorie I have learned a lot from your script.

I can second that now. :)

mattfl 11-14-2005 09:55 PM

This is great, I'm still kind of new to the whole world of vbulletin and php so I have a question and I'm not sure if it can be done with your script or not.

On my website, i have an members images area that you must login to view the images. I'm also running vbulletin as well.

What I'm wondering, is it possible to use this script as a login page to the images area and have it authenticate the users in the vbulletin database?

Basically, a user registers for an account on my site, the registration process is actually the vbulletin registration process, so the username/password gets added to the vbulletin database tables, I want to be able to use that login to access either the images gallery or the forum, but there will be a seperate login page for the images and then the standard vbulletin forum login. Thanks

calorie 11-16-2005 02:47 AM

@mattfl: It is possible to 'wrap' other PHP scripts in vB authentication, it may or may not take some time and energy, and you might still need to block direct requests to images.

mattfl 11-17-2005 03:38 PM

Quote:

Originally Posted by calorie
@mattfl: It is possible to 'wrap' other PHP scripts in vB authentication, it may or may not take some time and energy, and you might still need to block direct requests to images.

the image gallery is not so much a gallery, but it's basically writing a cookie to the users machine to say that they logged in, and then that is giving them access to view the images. It's not a complete gallery type setup, just kind of a way to tell if the user has registered for our site...basically what we wanted was a way for a user to create one login account that will be for both the images and for the forums.

calorie 11-17-2005 04:17 PM

Try out the example script, stick it somewhere outside your forum directory, and see if it does like you want, as that is probably the best way for you to evaluate it. If you like it, then you'll need to wrap the PHP gallery files some way like username is wrapped in the example script, assuming you want to protect PHP files outside of your forum directory while having the look of a vB page. If you are just looking to determine whether someone is logged in, nothing fancy, then you can stick the following atop the gallery files, and this will work fine for those users who accept cookies:
Code:

define('FWD','/full/path/to/forum'); // <-- set this !!!

define('BWD', (($getcwd = getcwd()) ? $getcwd : '.'));
chdir(FWD);
require_once('./global.php');
chdir(BWD);
if (!$vbulletin->userinfo['userid'])
{
        echo "Not logged in!";
        exit();
}


Bernd Glasstett 12-08-2005 10:33 PM

This is a fine script, however it doesn't replace replacement-variables. Could this be please included too? It's just that we have a lot replacement-variables in our forum.

jeffj 01-24-2006 03:35 PM

I cannot get this working properly on vb3.5

even if I remove header, footer and navbar from the code below - they still show up.

I want to create a small login box like the one used in myvbindex to display on a non vb page via an Iframe...

any ideas?

$src_output = <<<END
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
$headinclude
<title>$vboptions[bbtitle]</title>
</head>
<body onload="$onload">
</body>
</html>
END;


All times are GMT. The time now is 02:57 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.01616 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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