Go Back   vb.org Archive > vBulletin Modifications > vBulletin 5.x Modifications > vBulletin 5.x Products & Extensions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Member List for VB5 Details »»
Member List for VB5
Version: .15, by wdwms wdwms is offline
Developer Last Online: Apr 2015 Show Printable Version Email this Page

Category: Add-On Releases - Version: 5.0.0 Rating:
Released: 03-29-2013 Last Update: 04-06-2013 Installs: 26
Additional Files  
No support by the author.

This is an add-on that does NOT plug into VB5's API. This is a stand-alone file that utilizes the VB5 header and footer system to wrap my implementation of the member list with the look/feel of your VB site. You may need to edit colors and such; that is up to you to change. But it is compatible with the out of the box VB5 style.

This is running at this URL:
www.diecastmodelaircraft.com/memberlist.php

We have a more customized version running here:
www.diecastmodelaircraft.com/memberlist

Instructions:
1. Upload all files in the upload directory to the root of your VB5 install
2. Edit memberlist.php as follows
Your Site URL
Maximum Number of users per page
Display for Logged Out Users
3. These settings are obtained from your vb install config file, you should not have to modify these
Mysql Host
Database User
Database Password
Database Name
Database Prefix (if any)
4. Load http://www.yoursite.com/memberlist.php

Optional:
Add the following lines to .htaccess

Code:
RewriteEngine on
RewriteRule ^(memberlist)$ /memberlist.php [QSA,L]
RewriteRule ^(memberlist)/$ /memberlist.php [QSA,L]
Now you can access your memberlist by going to the url:
Load http://www.yoursite.com/memberlist

Questions? Comments?
Email: todd@aero-pro.net

Donations are gladly accepted for this work:
paypal@aero-pro.net

If you install it, let us know so we can see how it works on other sites.

Revision Info:
.10 - First Release
.11 - Created Zip file w/different paths.
.12 - Adjusted paths for images to be relative; modified link to use profile; added ability to work with databases with prefix.
.13 - Better db prefix handling; removed un-needed DB variable.
.14 - Added ability to display list only for logged in users; misc bug fixes, added link to this thread for support. Expanded readme.txt.
.15 - Fixed bug for show member list for users who aren't logged in. System now uses core/includes/config.php for mysql settings.

Download Now

File Type: zip memberlist-v.15.zip (78.3 KB, 316 views)

Screenshots

File Type: png screenshot.png (61.2 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Lynne, newbie2007

Comments
  #22  
Old 04-01-2013, 07:02 PM
CheeseMan316 CheeseMan316 is offline
 
Join Date: Mar 2013
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hope you don't mine me making a quick change, and I'm not trying to take any credit here, but I found an interim solution until you release the v.14 "official" page. We are releasing the site to our members tonight so I wanted to get something.

I added:

Code:
//show only registered users 
//I know membergroupids could be wrong, but all of the users who aren't in the primary
//group id 2 (registered) that I want to appear start with 2 so it works
$custom_group_mask = " (usergroupid = 2 or membergroupids like '2,%') and ";
//validate the user session cookie against the session db to ensure a valid user id is returned
//and it is for the current IP address.
$session_check = "exists (select 1 from ".$vb_prefix."session where userid != 0 and host='".$_SERVER['REMOTE_ADDR']."' and sessionhash = '".$_COOKIE["bbsessionhash"]."') and ";


Then I modified the queries to be as follows:

Code:
$query ="Select * from ".$vb_prefix."user where ".$custom_group_mask.$session_check." username like $like order by username";
$query ="Select * from ".$vb_prefix."user where ".$custom_group_mask.$session_check." username like $like order by username LIMIT $from, $max_results";
Reply With Quote
  #23  
Old 04-01-2013, 07:21 PM
wdwms wdwms is offline
 
Join Date: May 2002
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CheeseMan316 View Post
Hope you don't mine me making a quick change, and I'm not trying to take any credit here, but I found an interim solution until you release the v.14 "official" page. We are releasing the site to our members tonight so I wanted to get something.
I just released .14 with your wish granted..

The code actually takes the bbsessionhash cookie and looks up if the user is logged in via the session table.

Let me know if this is what you are after.
Reply With Quote
  #24  
Old 04-01-2013, 07:45 PM
CheeseMan316 CheeseMan316 is offline
 
Join Date: Mar 2013
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #25  
Old 04-05-2013, 11:26 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi ... a little problem all im getting is ...You must be logged in to access the member list... and i am..ive done something wrong ..any suggestions . thanks
Reply With Quote
  #26  
Old 04-05-2013, 12:26 PM
wdwms wdwms is offline
 
Join Date: May 2002
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by doctorsexy View Post
Hi ... a little problem all im getting is ...You must be logged in to access the member list... and i am..ive done something wrong ..any suggestions . thanks
In memberlist.php, what do you have:
$showto_loggedout

set too in the config?
Reply With Quote
  #27  
Old 04-05-2013, 01:26 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$showto_loggedout = 1;
Reply With Quote
  #28  
Old 04-05-2013, 05:53 PM
wdwms wdwms is offline
 
Join Date: May 2002
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can get by this by changing

PHP Code:
if ($loggedin && $showto_loggedout
to

PHP Code:
$loggedin=1
if ($loggedin
But please email me directly, i'd like to find out why your are seeing this.
Reply With Quote
  #29  
Old 04-06-2013, 06:11 AM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi..with that all im getting is a white page... the joys of vb5
Reply With Quote
  #30  
Old 04-06-2013, 11:31 AM
wdwms wdwms is offline
 
Join Date: May 2002
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't have your mysql settings configured correctly. Remove the line error_reporting(0); run the script again and email me the errors: todd@aero-pro.net
Reply With Quote
  #31  
Old 04-06-2013, 12:44 PM
doctorsexy's Avatar
doctorsexy doctorsexy is offline
 
Join Date: Mar 2011
Location: earth
Posts: 383
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi ..done that and no errors just says ...You must be logged in to access the member list.
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:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04682 seconds
  • Memory Usage 2,342KB
  • 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
  • (3)bbcode_code
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete