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: 2.20, 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.5.8 Rating: (14 votes - 4.71 average) Installs: 223
Released: 15 Feb 2006 Last Update: 24 Apr 2007 Downloads: 1919
Not Supported Additional Files  

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 look here.

This uses the vB 3.5 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 is a work in progress and currently a beta version. It was a little rushed as a few people were pushing for it Its missing a couple of planned things like newest member etc, but they will be added in a later version.

This script has been confirmed as working on
  • vB 3.5.x - All Versions
  • vB 3.6.x - All Versions

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

Changelog

Version 2.20 (24th April 2007)
  • Fixed - // in paths bug
  • Fixed - Javascript warning in some browsers
  • Fixed - Tidied up some code
  • Fixed - Avatar display code bug

Version 2.10 (4th June 2006)
  • Fixed - "MySQL Error : Invalid SQL " when using Database thread/forum marking.
  • Fixed - Javascrip error in some versions of IE.

Version 2.00 (16th April 2006)
  • Fixed - "MySQL Error : Unknown column 'newposts' in 'field list' "
  • Fixed - Number of PM's not displaying in all installs.
  • Added - Displays date and time of last login.
  • Added - Total number of saved PM's.
To upgrade just overwrite the existing login_inc.php file with the new one.
You will need to re-edit the path on line 3 and also redo any formatting changes you may have done for the last version.

Version 1.0 (15th Feb 2006)
  • Initial Release


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.

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
Integration with vBulletin Deluxe vB User login and access control on non vB pages Billspaintball vBulletin 3.7 Add-ons 76 06 Jun 2011 22:44
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

  #376  
Old 27 Feb 2008, 05:31
superthang superthang is offline
 
Join Date: Aug 2007
anyone have instruction for 3.7 ? does it safe to overwrite the login_inc ?

thanks for help!
Reply With Quote
  #377  
Old 01 Mar 2008, 04:05
thmst30 thmst30 is offline
 
Join Date: Feb 2008
AWESOME, after a couple hours of messing around I FINALLY got this working in vb 3.6.8. Also now using it in the widget sidebar on a wordpress blog. PERFECT and SEEMLESS integration. However I had to alter the code a bit so it could communicate with the newer version of vb.

Last edited by thmst30; 01 Mar 2008 at 04:45.
Reply With Quote
  #378  
Old 02 Mar 2008, 21:33
txsbmw's Avatar
txsbmw txsbmw is offline
 
Join Date: May 2006
Works fine for me with 3.7 beta 4. I did however have it installed before upgrading. I upgraded and never had to mess with anything, it kept working as normal.
Reply With Quote
  #379  
Old 16 Mar 2008, 19:02
RSmiroldo RSmiroldo is offline
 
Join Date: Mar 2008
Real name: Randy Smiroldo
When I log in on the website and it goes back to the wesbite the login in still there how to I fix this.
Reply With Quote
  #380  
Old 24 Mar 2008, 21:19
thegabriel thegabriel is offline
 
Join Date: May 2006
Password expired - redirect failed - page scrambled

Hi,

I had implemented this code and it was working fine. My password had presently expired and my homepage looks scrambled. It is not redirecting to the forum page where it shows password expiry message.

If I go to the forums page, by typing http://www.example.com/forums then the message shows up.

Can you please guide me on how I could rectify this error?

Thanks,
G
Reply With Quote
  #381  
Old 12 Apr 2008, 10:56
moon_spell moon_spell is offline
 
Join Date: Oct 2007
wow nice i need it ! but for me it does not work! would you please upload the ready and finished php file to download ?

regards
Reply With Quote
  #382  
Old 16 Apr 2008, 16:22
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
hi i keep getting error such as headers already sent. i have my globals on my own php files. but when ever i put your files in it tells me header already sent
Reply With Quote
  #383  
Old 17 Apr 2008, 02:44
RDx321 RDx321 is offline
 
Join Date: Jan 2008
Is there a way that I can track what page the user is currently viewing from the vbulletin who's online page?
Reply With Quote
  #384  
Old 22 Apr 2008, 18:43
sflmkv sflmkv is offline
 
Join Date: May 2007
can anyone give me some quick assistance... I tried my test.php and it works fine.
when I place in wordpress sidebar I get this error:

Fatal error: Call to a member function on a non-object in /home/content/?/?/?/?????/html/login_inc.php on line 299

any ideas what could be going on I'm using 3.6.8?

Last edited by sflmkv; 22 Apr 2008 at 18:58.
Reply With Quote
  #385  
Old 24 Apr 2008, 18:06
Kitmitsu's Avatar
Kitmitsu Kitmitsu is offline
 
Join Date: Jun 2006
Is there anyway to display a default avatar instead of a blank space when a logged in user has no avatar?

Great mod by the way.
Reply With Quote
  #386  
Old 27 Apr 2008, 08:22
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by thmst30 View Post
AWESOME, after a couple hours of messing around I FINALLY got this working in vb 3.6.8. Also now using it in the widget sidebar on a wordpress blog. PERFECT and SEEMLESS integration. However I had to alter the code a bit so it could communicate with the newer version of vb.
You would make a few people very happy if you listed the steps on how to do this with wordpress.

Originally Posted by superthang View Post
anyone have instruction for 3.7 ? does it safe to overwrite the login_inc ?

thanks for help!
There is a 3.7 version of this released in the 3.7 mods section.

Originally Posted by thegabriel View Post
Hi,

I had implemented this code and it was working fine. My password had presently expired and my homepage looks scrambled. It is not redirecting to the forum page where it shows password expiry message.

If I go to the forums page, by typing http://www.example.com/forums then the message shows up.

Can you please guide me on how I could rectify this error?

Thanks,
G
Have you looked at section 5 in the troubleshooting guide?

Originally Posted by moon_spell View Post
wow nice i need it ! but for me it does not work! would you please upload the ready and finished php file to download ?

regards
Huh???

Originally Posted by CommanderFluffy View Post
hi i keep getting error such as headers already sent. i have my globals on my own php files. but when ever i put your files in it tells me header already sent
See section 1 of the troubleshooting guide.
Even a single blank character above the code will cause this error.
Reply With Quote
  #387  
Old 27 Apr 2008, 08:25
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Real name: Bill
Originally Posted by RDx321 View Post
Is there a way that I can track what page the user is currently viewing from the vbulletin who's online page?
Not easily.
This is not designed to do this.

Originally Posted by Kitmitsu View Post
Is there anyway to display a default avatar instead of a blank space when a logged in user has no avatar?

Great mod by the way.
Should be easy enough to do with a conditional in the code.
I might add it to the next update.
Reply With Quote
  #388  
Old 12 Jul 2008, 11:14
[email protected] echo@ is offline
 
Join Date: Jun 2008
Unhappy

Hi I have installed and successfully got the script running, this works fine in a stand alone php file, great.

Now i am trying to integrate with a directory script (called indexu ) that use's smarty as a template engine.

With smarty the php call changes from <?php to <%php%> so this is the code I have at the very beginning of my header file


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

and my index file calls the mod as follows


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


all paths are correct but when i browse the page with the mod enabled i am presented with the following error.


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

this points to my vbulletin functions.php file


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

As you can imagine I have spoke to the indexu support forums, as it seems the mod works fine , just doesnt work when combined with indexu script, which I cant understand why.
But have been told to post over here. The original thread is here http://www.nicecoder.com/community/s...ead.php?t=7159 .


I hope some one can shed some light on this one. Thank you
Reply With Quote
  #389  
Old 26 Aug 2008, 09:35
jellybaby jellybaby is offline
 
Join Date: Jul 2005
Does anyone have this working on Joomla?
__________________

Reply With Quote
  #390  
Old 15 Oct 2008, 10:21
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
Perfect, works great.

Thanks!
__________________
Guitar For Beginners & Beyond
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 12:02.

Layout Options | Width: Wide Color: