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
Deluxe vB User login and access control on non vB pages Details »»
Deluxe vB User login and access control on non vB pages
Version: 2.20, by Billspaintball Billspaintball is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

Version: 3.5.8 Rating:
Released: 02-14-2006 Last Update: 04-23-2007 Installs: 223
Additional Files  
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 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

Show Your Support

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

Comments
  #382  
Old 04-12-2008, 08:56 AM
moon_spell moon_spell is offline
 
Join Date: Oct 2007
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #383  
Old 04-16-2008, 02:22 PM
CommanderFluffy CommanderFluffy is offline
 
Join Date: Nov 2006
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #384  
Old 04-17-2008, 12:44 AM
RDx321 RDx321 is offline
 
Join Date: Jan 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #385  
Old 04-22-2008, 04:43 PM
sflmkv sflmkv is offline
 
Join Date: May 2007
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #386  
Old 04-24-2008, 04:06 PM
Kitmitsu's Avatar
Kitmitsu Kitmitsu is offline
 
Join Date: Jun 2006
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #387  
Old 04-27-2008, 06:22 AM
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Location: Bathurst, Au
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.

Quote:
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.

Quote:
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?

Quote:
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???

Quote:
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
  #388  
Old 04-27-2008, 06:25 AM
Billspaintball's Avatar
Billspaintball Billspaintball is offline
 
Join Date: Sep 2003
Location: Bathurst, Au
Posts: 649
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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.

Quote:
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
  #389  
Old 07-12-2008, 09:14 AM
echo@ echo@ is offline
 
Join Date: May 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

PHP Code:
<%php%>
$curdir getcwd ();
chdir('/home/essext/public_html/forums');
require_once(
'/home/essext/public_html/forums/global.php');
chdir ($curdir)
<%/
php%> 
and my index file calls the mod as follows

PHP Code:
<%php%>
require_once(
'/home/essext/public_html/forums/login_inc.php');
<%/
php%> 

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

HTML Code:
Fatal error: Call to a member function query_first_slave() on a non-object in /home/essext/public_html/forums/includes/functions.php on line 1303
this points to my vbulletin functions.php file

PHP Code:
$user $vbulletin->db->query_first_slave(
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
  #390  
Old 08-26-2008, 07:35 AM
jellybaby jellybaby is offline
 
Join Date: Jul 2005
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have this working on Joomla?
Reply With Quote
  #391  
Old 10-15-2008, 08:21 AM
tamborinegal's Avatar
tamborinegal tamborinegal is offline
 
Join Date: Sep 2005
Location: Australia
Posts: 119
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Perfect, works great.

Thanks!
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 11:07 PM.


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.09247 seconds
  • Memory Usage 2,329KB
  • 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_html
  • (3)bbcode_php
  • (7)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
  • (1)pagenav_pagelinkrel
  • (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