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

Reply
 
Thread Tools
Deluxe vB User login and access control on non vB pages Details »»
Deluxe vB User login and access control on non vB pages
Version: 3.00, by Billspaintball Billspaintball is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 3.7.0 RC 1 Rating:
Released: 03-20-2008 Last Update: Never Installs: 115
Re-useable Code Additional Files Translations  
No support by the author.

Hack Description

This is the deluxe version of the user authentication and access control system I use on the non vB pages on my website.
For the simple no frills version [URL=https://vborg.vbsupport.ru/showthread.php?t=173693look here.[/URL]

This uses the vB 3.7 login system to log you in and out. It allows you to move between your forums and other pages on your site while remaining logged in.

It allows you to do things such as restrict pages by usergroup, display different content depending on a user being logged in or not.
For example, you can have banner Adds displying to non members only, and/or let members access to specific content.

It also displays the logged in users Avatar, number of unread PM's, New posts since last visit, total posts and total threads.
It also allows you to specify a maximum Avatar size, and resize any avatars larger than that, while keeping their height/width ratios in proportion!
Its very handy if you allow large avatars, but want a small format display on your non forum pages.

If the user is not logged in, a login box is displayed, along with total posts and total threads in the forums.

I will try and offer support, but work and family commitments mean I dont have much free time.

This code is a mix of my own, and pieces I have used from other hacks that are floating around.


This script has been confirmed as working on
  • vB 3.7 RC1

Known Bugs
Will not display Avatars correctly if they are kept in the file system (database avatars are fine)

Change log

Version 3.00 (21st March 2008)
  • Initial release for vB 3.7.x


Click on Install
If you have this script installed then please click on the install link because;
  • You will get notified if any security issues are reported.
  • You will get notified when there are any upgrades to this script
  • It gives me a warm fuzzy feeling and motivates me to develop more

Donations
First of all, to be clear. This script is 100% free.

However if you feel an urge to donate I'm not going to say no.
Donations can be made at http://www.billspaintball.com/vb3/bd_donate.php

Show Your Support

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

Comments
  #62  
Old 11-29-2008, 12:32 AM
ViciousCode ViciousCode is offline
 
Join Date: Oct 2008
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get the same error

Code:
Fatal error: Call to a member function query_read() on a non-object in /home/services/public_html/login_inc.php on line 151
Reply With Quote
  #63  
Old 12-17-2008, 10:27 AM
ptiteuf ptiteuf is offline
 
Join Date: May 2008
Location: BELGIQUE
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
grieve for English but it was translated with google, voila I have a vBulletin license and your script "vB Deluxe User login and access control on non vB pages" because I'm interested me was that the root of my site there I have a system that manages the login. could you tell me if your latest version works for vBulletin 3.7.4 pl1. and say the modifications because I'm new to php.

Thank you in advance
Reply With Quote
  #64  
Old 01-03-2009, 04:00 PM
reimic reimic is offline
 
Join Date: Dec 2004
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I always get

Quote:
Fatal error: Call to a member function query_read() on a non-object in /var/www/******/blog/login_inc.php on line 152
If someone could fix that for me, i am willing to pay! Please consider me! apfelphone @mac.com
Reply With Quote
  #65  
Old 01-08-2009, 11:00 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just testing and helping a guy out, cause im a asp guy..
but i got it working on a test page..

http://www.evisystems.org/test.php

running on a win2k box with php 5 something..

dont use all those ///// on a windows server.
apache perhaps,, baah who uses that.. (Just kidding. )

Code:
<?php
$curdir = getcwd ();
chdir('yourforumfolder');
require_once('yourforumfolder/global.php');
chdir ($curdir);
?>
edit yourfolder url.

Howewer its only really usefull when u add your profile img and such..
missing a few pointers in the readme, but it works.. Nice job..

Works on 3.8 gold - MArked as installed cause i love the mod!
Reply With Quote
  #66  
Old 01-19-2009, 03:55 PM
Wstar Wstar is offline
 
Join Date: Aug 2008
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having trouble with this. I have added the following code

Code:
$curdir = getcwd ();
chdir('/nfs/c02/h04/mnt/40498/domains/dev.scotthermanfitness.com/html/forum');
require_once('/nfs/c02/h04/mnt/40498/domains/dev.scotthermanfitness.com/html/forum/global.php');
chdir ($curdir);
When I load the page up, it goes right to the forum page telling me im not logged in. Its like its forwarding me to the forum.

Any ideas?
Reply With Quote
  #67  
Old 01-23-2009, 07:12 AM
AzzX's Avatar
AzzX AzzX is offline
 
Join Date: Sep 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ViciousCode View Post
i get the same error

Code:
Fatal error: Call to a member function query_read() on a non-object in /home/services/public_html/login_inc.php on line 151
Replace $db with $vbulletin->db on line 151 and 152
Reply With Quote
  #68  
Old 01-28-2009, 01:43 AM
BlackJacket's Avatar
BlackJacket BlackJacket is offline
 
Join Date: Nov 2008
Location: 070108111114105100100
Posts: 364
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need help. I have been at this for hours and i still have not figured it out.

I want this page to only be displayed to moderators and administrators. But its not working when i try to input ANY of the php scripts included with this hack.

PLEASE HELP!
Reply With Quote
  #69  
Old 01-29-2009, 12:05 PM
AzzX's Avatar
AzzX AzzX is offline
 
Join Date: Sep 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit : It Does seem to work with Vb 3.8
Reply With Quote
  #70  
Old 03-16-2009, 01:56 PM
Aresetyr Aresetyr is offline
 
Join Date: Jun 2008
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there any way to get this working under joomla 1.5? I am sitting here, trying to get it work with the jumi component, but won't really work

ps: with vb 3.8!
Reply With Quote
  #71  
Old 03-24-2009, 06:46 PM
Davey-UK's Avatar
Davey-UK Davey-UK is offline
 
Join Date: Feb 2003
Location: Sheffield-UK
Posts: 244
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has worked fantastically for me for months now, but am now trying to add newest members etc via another mod called vBexternal.

Everything works fin apart from when i have both scripts on the same page, the login form shows up on my page instead of the welcome message, even though i am logged in on the forum page.

If i remove the vBexternal include from the page, it all works fine..

I have to add
Code:
require_once('./vBExternal.php');
to the top of the page, and wondered if you can only use "include_once" a certain number of times in one page, but i am thinking its more likely to be a set cookie problem

Any ideas please?
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 09:03 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04715 seconds
  • Memory Usage 2,316KB
  • 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
  • (5)bbcode_code
  • (2)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
  • (3)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