Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Yet Another vB Login on non-vB Page Details »»
Yet Another vB Login on non-vB Page
Version: 1.00, by calorie calorie is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 1 Rating:
Released: 06-25-2005 Last Update: Never Installs: 65
 
No support by the author.

This is not a plugin, nor is it a code modification. It is a separate script, so just configure the attached script, FTP it to wherever, and then call it from your browser. Once you test it out, you can edit the script to show whatever content you desire. Look at the code to see where to set your content. If you don't like this script, try mcahill's vB login on a non-vB page here.

If you use this script, click the install button. This allows you to receive update notices, should any be sent. It is also a nice way to say thanks!

Fine Print: Obviously, use at your own risk. Support is not guaranteed. This script may not be redistributed!

25 Jul 2005: added $session to make_page_content global list

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 09-10-2005, 03:46 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@Disi: Does this happen when you upload example.php and try to login?
Reply With Quote
  #33  
Old 09-10-2005, 10:26 PM
Disi Disi is offline
 
Join Date: Aug 2005
Location: Germany
Posts: 62
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by calorie
@Disi: Does this happen when you upload example.php and try to login?
nope
Reply With Quote
  #34  
Old 09-11-2005, 01:32 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #35  
Old 10-30-2005, 10:10 AM
Zelda-King's Avatar
Zelda-King Zelda-King is offline
 
Join Date: Nov 2002
Location: London, England
Posts: 674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #36  
Old 11-14-2005, 09:55 PM
mattfl mattfl is offline
 
Join Date: Oct 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #37  
Old 11-16-2005, 02:47 AM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@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.
Reply With Quote
  #38  
Old 11-17-2005, 03:38 PM
mattfl mattfl is offline
 
Join Date: Oct 2005
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #39  
Old 11-17-2005, 04:17 PM
calorie calorie is offline
 
Join Date: May 2003
Posts: 2,804
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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();
}
Reply With Quote
  #40  
Old 12-08-2005, 10:33 PM
Bernd Glasstett's Avatar
Bernd Glasstett Bernd Glasstett is offline
 
Join Date: Sep 2002
Location: Waldshut-Tiengen Germany
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #41  
Old 01-24-2006, 03:35 PM
jeffj jeffj is offline
 
Join Date: Jul 2002
Location: Chesapeake Bay
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:08 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.09142 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete