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
  #32  
Old 05-01-2008, 01:58 AM
Javi_gray Javi_gray is offline
 
Join Date: May 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ryan Ashbrook View Post
Add this:

PHP Code:
echo ( "You currently have <a href=\"" $forumpath "profile.php?do=buddylist\">" vb_number_format $vbulletin->userinfo['friendreqcount'] ) . "</a> friendship requests." ); 
where do you find those phrases? are they located in one of the templates?
Reply With Quote
  #33  
Old 05-01-2008, 03:13 AM
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Location: Cincinnati, Ohio
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)
Reply With Quote
  #34  
Old 05-01-2008, 03:30 AM
Javi_gray Javi_gray is offline
 
Join Date: May 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #35  
Old 05-02-2008, 12:33 PM
croft croft is offline
 
Join Date: Aug 2002
Location: Sweden
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #36  
Old 05-02-2008, 11:59 PM
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Location: Cincinnati, Ohio
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
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.
Reply With Quote
  #37  
Old 05-08-2008, 11:48 AM
croft croft is offline
 
Join Date: Aug 2002
Location: Sweden
Posts: 304
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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 ?
Reply With Quote
  #38  
Old 05-08-2008, 07:51 PM
ramsayeg ramsayeg is offline
 
Join Date: Mar 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #39  
Old 05-09-2008, 06:11 PM
ramsayeg ramsayeg is offline
 
Join Date: Mar 2008
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bump but, can anyone help me? (read previous post)
Reply With Quote
  #40  
Old 05-12-2008, 07:23 PM
steveheinsch steveheinsch is offline
 
Join Date: Mar 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How does this work with vb 3.7 GOLD? I assume fine, but just wanted to check.
Reply With Quote
  #41  
Old 05-13-2008, 02:02 AM
Ryan Ashbrook's Avatar
Ryan Ashbrook Ryan Ashbrook is offline
 
Join Date: Dec 2002
Location: Cincinnati, Ohio
Posts: 422
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

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

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

Quote:
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.
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 07:45 AM.


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.09714 seconds
  • Memory Usage 2,323KB
  • Queries Executed 27 (?)
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_php
  • (8)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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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