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: 1233
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:	2341
Size:	12.6 KB
ID:	77560   Click image for larger version

Name:	bpb-loggedout.jpg
Views:	2275
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

  #31  
Old 01 May 2008, 03:58
Javi_gray Javi_gray is offline
 
Join Date: May 2007
Originally Posted by Ryan Ashbrook View Post
Add this:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
where do you find those phrases? are they located in one of the templates?
Reply With Quote
  #32  
Old 01 May 2008, 05:13
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
No, none of the code I have posted so far is contained in any templates, only in the file called login_inc.php the mod author provided. (The file you use for the main site)
__________________
Ryan Ashbrook
Reply With Quote
  #33  
Old 01 May 2008, 05:30
Javi_gray Javi_gray is offline
 
Join Date: May 2007
Oh ok. Is there anyway to get all the notifications to show up. Like the ones that come from the dropdown menu.
Reply With Quote
  #34  
Old 02 May 2008, 14:33
croft croft is offline
 
Join Date: Aug 2002
Real name: Ulric Spaak
How can i fix it so when you are logged in it looks like on the forum ? 'Laying down not standing up' ?

And thanks for this
__________________
Dark Angel Battalion
Reply With Quote
  #35  
Old 03 May 2008, 01:59
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Originally Posted by Javi_gray View Post
Oh ok. Is there anyway to get all the notifications to show up. Like the ones that come from the dropdown menu.
Sorry, I don't know, time doesn't permit me to dive into the workings of the notifications menu yet.

Originally Posted by croft View Post
How can i fix it so when you are logged in it looks like on the forum ? 'Laying down not standing up' ?

And thanks for this
If you mean the table, then that all depends on your website's design. You should be able to reference vBulletin's own navbar for examples, shouldn't be too hard.
__________________
Ryan Ashbrook
Reply With Quote
  #36  
Old 08 May 2008, 13:48
croft croft is offline
 
Join Date: Aug 2002
Real name: Ulric Spaak
Originally Posted by Ryan Ashbrook View Post
Sorry, I don't know, time doesn't permit me to dive into the workings of the notifications menu yet.



If you mean the table, then that all depends on your website's design. You should be able to reference vBulletin's own navbar for examples, shouldn't be too hard.
Actually its not that easy, not for me anyway. My navbar template looks nothing like this php file in way o layout or coding Im not a coder guy and could use some help with this if possible ?
__________________
Dark Angel Battalion
Reply With Quote
  #37  
Old 08 May 2008, 21:51
ramsayeg ramsayeg is offline
 
Join Date: Mar 2008
I included global.php and I suddenly had an error with CuteNews:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/content/xxx/html/xxx/private/v3beta/newsconf/inc/functions.inc.php on line 43

The news showed, but this error came up at the top of the page. Is anyone aware of anything?

Update: Well, looks like I have ANOTHER problem and this is about the cookies it seems, as it logs me in but doesn't show. I have using different domains for the site/forums, will it cause me problems to log in in the forums, if I enter a custom Cookie Domain of my website's domain?

Last edited by ramsayeg; 08 May 2008 at 22:11.
Reply With Quote
  #38  
Old 09 May 2008, 20:11
ramsayeg ramsayeg is offline
 
Join Date: Mar 2008
Sorry to bump but, can anyone help me? (read previous post)
Reply With Quote
  #39  
Old 12 May 2008, 21:23
steveheinsch steveheinsch is offline
 
Join Date: Mar 2007
How does this work with vb 3.7 GOLD? I assume fine, but just wanted to check.
Reply With Quote
  #40  
Old 13 May 2008, 04:02
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Originally Posted by croft View Post
Actually its not that easy, not for me anyway. My navbar template looks nothing like this php file in way o layout or coding Im not a coder guy and could use some help with this if possible ?
I'm not great with HTML, sorry.

Originally Posted by ramsayeg View Post
I included global.php and I suddenly had an error with CuteNews:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in /home/content/xxx/html/xxx/private/v3beta/newsconf/inc/functions.inc.php on line 43

The news showed, but this error came up at the top of the page. Is anyone aware of anything?
Unsure, I don't remember htmlspecialchars() being used in it, unfortunately I don't have time to test.

Update: Well, looks like I have ANOTHER problem and this is about the cookies it seems, as it logs me in but doesn't show. I have using different domains for the site/forums, will it cause me problems to log in in the forums, if I enter a custom Cookie Domain of my website's domain?
I'm unsure of this as well, Cookies are not my area of expertise.

Originally Posted by steveheinsch View Post
How does this work with vb 3.7 GOLD? I assume fine, but just wanted to check.
Works perfect, I'm using it right now.
__________________
Ryan Ashbrook
Reply With Quote
  #41  
Old 15 May 2008, 08:10
johan204 johan204 is offline
 
Join Date: Mar 2008
Is it possible to secure pages that are fysical on a different server?
Reply With Quote
  #42  
Old 15 May 2008, 14:17
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by Ryan Ashbrook View Post
I got file based avatars to work.


Individual users may need to tweak the avatar paths based on their settings, however this will probably work for most.

Nice

I had not quite worked that one out.

Will update the next version with this fix.
Reply With Quote
  #43  
Old 15 May 2008, 14:19
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by ramsayeg View Post
I have using different domains for the site/forums, will it cause me problems to log in in the forums, if I enter a custom Cookie Domain of my website's domain?
Most likely.
See the troubleshooting guide - 2nd post in this thread, for things to try, that may help.
Reply With Quote
  #44  
Old 15 May 2008, 14:19
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by steveheinsch View Post
How does this work with vb 3.7 GOLD? I assume fine, but just wanted to check.
Sure does
Reply With Quote
  #45  
Old 16 May 2008, 18:37
davide101 davide101 is offline
 
Join Date: Dec 2005
First, I adore this mod and have been using it for years to control advertising and have universal site banner that displays avatars, pms, and other goodies to logged in members.

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).

Is this possible? I've searched extensively on multiple occasions but have never come across code that does this. If not, are there other mods, code tidbits, or pointers that could get me going in the right direction? I have a feeling that putting this type of information on the site would increase our stickiness for search engine traffic.
__________________
David Edelman
Diabetes Forum
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 02:33.

Layout Options | Width: Wide Color: