Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Deluxe vB User login and access control on non vB pages Details »
Deluxe vB User login and access control on non vB pages
Mod Version: 3.00, by Billspaintball (Member) Billspaintball is offline
Developer Last Online: Nov 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.0 RC 1 Rating: (7 votes - 4.71 average) Installs: 113
Released: 21 Mar 2008 Last Update: Never Downloads: 1232
Not Supported Additional Files Re-usable Code Translations  

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=http://www.vbulletin.org/forum/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

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	bpb-loggedin.jpg
Views:	2340
Size:	12.6 KB
ID:	77560   Click image for larger version

Name:	bpb-loggedout.jpg
Views:	2274
Size:	11.1 KB
ID:	77561  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Integration with vBulletin Simple vB User login and access control on non vB pages Billspaintball vBulletin 3.6 Add-ons 188 25 Jan 2013 17:40
Deluxe vB User login and access control on non vB pages Billspaintball vBulletin 3.5 Add-ons 393 13 Jul 2011 22:50
Integration with vBulletin Simple vB User login and access control on non vB pages Billspaintball vBulletin 3.7 Add-ons 55 23 Apr 2011 15:52
Integration with vBulletin Deluxe vB user login and access control for non vB pages - REVISED Mastar vBulletin 3.6 Add-ons 12 15 May 2009 17:17
Simple vB User login and access control on non vB pages Billspaintball vBulletin 3.5 Add-ons 254 31 Jan 2009 11:57

  #46  
Old 20 Jun 2008, 08:06
crippon crippon is offline
 
Join Date: Dec 2007
I get a error Fatal error: Call to a member function query_first_slave() on a non-object in /home/wonderfu/public_html/animesuteki.com/forum/includes/functions.php on line 1270
This is on wordpress header.php
Reply With Quote
  #47  
Old 12 Aug 2008, 23:07
fariborz fariborz is offline
 
Join Date: Sep 2006
This error for what?
Fatal error: Call to a member function query_first_slave() on a non-object in /home/*Censored*/public_html/forum/includes/functions.php on line 1928
Yes, I'm use wordpress too
Reply With Quote
  #48  
Old 26 Aug 2008, 00:06
snunhuck snunhuck is offline
 
Join Date: May 2007
Fatal error: Call to a member function query_read() on a non-object in /home/services/public_html/login_inc.php on line 151

I get that :S
Reply With Quote
  #49  
Old 10 Sep 2008, 10:55
nic_net nic_net is offline
 
Join Date: Aug 2008
Installed. Thanks!
Reply With Quote
  #50  
Old 10 Sep 2008, 11:20
nic_net nic_net is offline
 
Join Date: Aug 2008
Is possible to show the number user and guest online?

Thanks

Last edited by nic_net; 21 Sep 2008 at 17:50.
Reply With Quote
  #51  
Old 13 Sep 2008, 19:16
arakasi arakasi is offline
 
Join Date: Sep 2006
Hm why "if ($vbulletin->userinfo['usergroupid'] == '6,2' )" doesn't work?
Reply With Quote
  #52  
Old 24 Sep 2008, 14:38
jonah1892 jonah1892 is offline
 
Join Date: Jul 2008
was wondering is it possible to get this to automatically redirect the user to the forums once they have logged in on this page

been trying alsorts but can not figure it out at all
Reply With Quote
  #53  
Old 16 Oct 2008, 22:45
lsatblu's Avatar
lsatblu lsatblu is offline
 
Join Date: Sep 2006
Is anyone able to tell me if they are using with script with a cms? I wanted to use it with Expression Engine but this script and that script don't get along.

Can anyone point me in the direction of a good cms that works with this login script?

Thanks.
__________________
last + blue = lsatblu

Tales Otaku Admin - Tales Forums Admin
Reply With Quote
  #54  
Old 17 Oct 2008, 15:46
steveneff steveneff is offline
 
Join Date: Sep 2007
Great mod, my fav so far.

I have this almost working with wordpress, the only problem being when it redirects back to wordpress it doesn't seem to check login status. Works great on my other pages.

Originally Posted by davide101 View Post
I would be a ecstatic if I can find a way to show users browsing non-vb pages in Who's Online. I don't care if it says "Unknown Location", although ideally I will write a plugin that says "Browsing the rest of the site" or something generic. Then I can add a blurb to my universal header that says "x people browsing the site, x chatting live" (updated via cron to reduce load, of course).
Try this, It works but shows all pages that are named index.php as "Viewing Index" in the forum root. This may be a vb thing, if anyone has a fix it would be perfect.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #55  
Old 28 Oct 2008, 06:40
psychotica psychotica is offline
 
Join Date: Dec 2006
For some reason, after trying the troubleshooting steps, the mod still shows that I'm logged in even if I'm not and it won't log me in through the php page on the website even after I've logged out on the forums.
Reply With Quote
  #56  
Old 05 Nov 2008, 03:27
coinwash coinwash is offline
 
Join Date: Nov 2002
Fixed

Last edited by coinwash; 13 Nov 2008 at 17:30.
Reply With Quote
  #57  
Old 12 Nov 2008, 20:14
steveneff steveneff is offline
 
Join Date: Sep 2007
Wordpress fix

I haven't fully tested this and I'm no vbulletin expert but so far it works.

In the login box code find

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

change to

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


It works the same for the other code snippets like no ads for members below.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

note: I have Wordpress/Vbulletin Bridge installed so global.php is already called. if you dont and this doesn't work for you try adding the requre once code to the top of the wordpress index.php

Last edited by steveneff; 12 Nov 2008 at 20:24.
Reply With Quote
  #58  
Old 22 Nov 2008, 12:56
AzzX's Avatar
AzzX AzzX is offline
 
Join Date: Sep 2007
Real name: Aaron
Thanks for that steveneff.

I might try making a widget for this.
Reply With Quote
  #59  
Old 27 Nov 2008, 21:40
MadsK MadsK is offline
 
Join Date: Apr 2008
This might be a stupid question, but where do i put all this code in this file?
Reply With Quote
  #60  
Old 27 Nov 2008, 22:36
FanJournal FanJournal is offline
 
Join Date: Nov 2008
This is a great mod I've been looking for a while now. I'll be sure to tell you how smoothly I configure it.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 10:51.

Layout Options | Width: Wide Color: