Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forum Members (membelist.php) Details »»
Forum Members (membelist.php)
Version: 1.2.0, by BirdOPrey5 (Senior Member) BirdOPrey5 is offline
Developer Last Online: Aug 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.1.x Rating:
Released: 11-17-2011 Last Update: 04-21-2012 Installs: 85
DB Changes Uses Plugins Auto-Templates
Additional Files Translations  
No support by the author.

Further Development by BirdOPrey5
www.Qapla.com

Previous Development by ChrisTERiS

1.- What's this?

This AddOn replaces the file memberlist.php and shows this list in a better interface and adds more features in the listing (mostly in the PRO version). Please note, that as I said before, there is a replacement of the original memberlist.php, so in case that you want to revert back, you must re-upload this file from your vB distribution. Also after any vB upgrade you need to re-upload my memberlist.php (just re-upload, no re-importing the xml file).



2.- Features
  • Homepage with the following blocks
    • Meet Our Admins
    • 2nd Same Block to promote another usergroup (PRO version only)
    • Top Rated Members (PRO version only)
    • Top Posters Last Week
    • Top Posters Last Month
    • Top Posters Overall
    • Just Join Us
    • *** All blocks can be turn On/Off and also you can change the title
  • Search Members
    • Username
    • Location
    • Join date
    • Posts
    • Age (PRO version only)
    • Points (PRO version only)
    • Infractions (PRO version only)
    • Aim, Icq, Msn, Yahoo, Skype (PRO version only)
    • For Messaging the search works like "Has Aim, Has Icq" and not as the native vB Search where you can search only for a specific account.
  • Rate This Member (PRO version only)
  • Contact Member
    • Email
    • PM
    • Add to Buddy
    • Send Friend Request
    • Aim, Icq, Msn, Yahoo, Skype (PRO version only)
  • Show Avatar or Image
  • Show Online Status
    • Reputation (PRO version only)
  • Featured Members (Different background color) (PRO version only)
3.- Installation
  1. Upload all files in upload directory to your forum directory
  2. Import product-forummembers.xml
  3. Goto Forum Member Setting and set them as you like
  4. Click "Usergroups" (Forum Members Menu) and select which usergroups you want to show (Hold Ctrl + Click for multi select).
  5. Goto vB Usergroup permissions and set them accordinally.
4.- Copyright

This mod is an upgrade of Mary's MemberIndex for which I've got the rights. Copyright removal is phohibited (PRO version does not has copyright link).

5.- Demo (PRO version)


Chris

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
7 благодарности(ей) от:
BCP Hung, McAtze, nacaruncr, Ramsesx, sadiq6210, z3r0

Comments
  #82  
Old 04-21-2012, 09:35 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisTERiS View Post
Currently I haven't installed somewhere a demo for this mod.

Chris
Thanks ...

Is there someplace I can go to buy the PRO version of this mod?

Regards,
Doug
Reply With Quote
  #83  
Old 04-21-2012, 10:03 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Thanks Chris ... I understand ...

Is there somewhere in the plugins or code where I could add an "if usergroup = " type statement that would force it to include a specific set of usergroups for its calculations?

Appreciate your work ...

Regards,
Doug
You need to edit memberlist.php. An example for Top posters last week (lines 219-240) is showing below:
Code:
  // Week's Top Posters
// Put the usergroupids that you want to include
$include_groups = array(2,6,8);
  if ($vbulletin->options["forummembers_week"] == '1') {
      $timelimit = time() - 7 * 24 * 60 * 60;
      $mostactiveweek_get = $db->query_read("
      SELECT COUNT(post.dateline) AS postcount, post.userid,
      user.userid, user.username, user.lastpostid, user.posts, user.usergroupid
      FROM " . TABLE_PREFIX . "post AS post
        JOIN " . TABLE_PREFIX . "user AS user ON (post.userid = user.userid)
      WHERE user.posts != '0' AND user.usergroupid IN($include_groups) AND post.dateline>'".$timelimit."'
      GROUP BY post.userid
      ORDER BY postcount DESC
        LIMIT $limit
      ");
      $users = array();
      while($user = $db->fetch_array($mostactiveweek_get))
      {
                $users[] = $user;
            $totalposts = $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post WHERE dateline>'".$timelimit."'");
            $mostactiveusersweek = printUsers($users, $vbulletin->options['forummembers_week_text'], 2, $totalposts['postcount']);
            unset($users);
      }
  }
Hope that it helps.

Chris
Reply With Quote
  #84  
Old 04-21-2012, 10:13 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisTERiS View Post
You need to edit memberlist.php. An example for Top posters last week (lines 219-240) is showing below:
Code:
  // Week's Top Posters
// Put the usergroupids that you want to include
$include_groups = array(2,6,8);
  if ($vbulletin->options["forummembers_week"] == '1') {
      $timelimit = time() - 7 * 24 * 60 * 60;
      $mostactiveweek_get = $db->query_read("
      SELECT COUNT(post.dateline) AS postcount, post.userid,
      user.userid, user.username, user.lastpostid, user.posts, user.usergroupid
      FROM " . TABLE_PREFIX . "post AS post
        JOIN " . TABLE_PREFIX . "user AS user ON (post.userid = user.userid)
      WHERE user.posts != '0' AND user.usergroupid IN($include_groups) AND post.dateline>'".$timelimit."'
      GROUP BY post.userid
      ORDER BY postcount DESC
        LIMIT $limit
      ");
      $users = array();
      while($user = $db->fetch_array($mostactiveweek_get))
      {
                $users[] = $user;
            $totalposts = $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post WHERE dateline>'".$timelimit."'");
            $mostactiveusersweek = printUsers($users, $vbulletin->options['forummembers_week_text'], 2, $totalposts['postcount']);
            unset($users);
      }
  }
Hope that it helps.

Chris
It does Sir ..

Thank you ... very gracious of you to take the time to do this ...

Regards,
Doug
Reply With Quote
  #85  
Old 04-21-2012, 12:59 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Chris ...
'
Ok, I made the changes, but now get this SQL error?

Did I miss something?

Quote:
Database error in vBulletin 4.1.3:

Invalid SQL:

SELECT COUNT(post.dateline) AS postcount, post.userid,
user.userid, user.username, user.lastpostid, user.posts, user.usergroupid
FROM post AS post
JOIN user AS user ON (post.userid = user.userid)
WHERE user.posts != '0' AND user.usergroupid IN(Array) AND post.dateline>'1334411824'
GROUP BY post.userid
ORDER BY postcount DESC
LIMIT 4;

MySQL Error : Unknown column 'Array' in 'where clause'
Error Number : 1054
Request Date : Saturday, April 21st 2012 @ 09:57:03 AM
Error Date : Saturday, April 21st 2012 @ 09:57:04 AM
Script : http://www.xxxx.com/memberlist.php
Referrer : http://www.xxxx.com/index.php
IP Address : xx.xxx.xxx.xxx
Username : Tester
Classname : vB_Database
MySQL Version : 5.0.95
Thanks...

Regards,
Doug

By the way, here's the code the way I changed it...

Quote:
// Week's Top Posters
// Put the usergroupids that you want to include
$include_groups = array(2,9,10);
if ($vbulletin->options["forummembers_week"] == '1') {
$timelimit = time() - 7 * 24 * 60 * 60;
$mostactiveweek_get = $db->query_read("
SELECT COUNT(post.dateline) AS postcount, post.userid,
user.userid, user.username, user.lastpostid, user.posts, user.usergroupid
FROM " . TABLE_PREFIX . "post AS post
JOIN " . TABLE_PREFIX . "user AS user ON (post.userid = user.userid)
WHERE user.posts != '0' AND user.usergroupid IN($include_groups) AND post.dateline>'".$timelimit."'
GROUP BY post.userid
ORDER BY postcount DESC
LIMIT $limit
");
$users = array();
while($user = $db->fetch_array($mostactiveweek_get))
{
$users[] = $user;
$totalposts = $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post WHERE dateline>'".$timelimit."'");
$mostactiveusersweek = printUsers($users, $vbulletin->options['forummembers_week_text'], 2, $totalposts['postcount']);
unset($users);
}
}
// Month's Top Posters
// Put the usergroupids that you want to include
$include_groups = array(2,9,10);
if ($vbulletin->options["forummembers_month"] == '1') {
$timelimit = time() - 30 * 24 * 60 * 60;
$mostactivemonth_get = $db->query_read("
SELECT ".TABLE_PREFIX."user.userid, ".TABLE_PREFIX."user.username, ".TABLE_PREFIX."user.usertitle,
COUNT(".TABLE_PREFIX."post.postid) AS postcount
FROM ".TABLE_PREFIX."user
LEFT JOIN ".TABLE_PREFIX."post
ON ".TABLE_PREFIX."post.userid=".TABLE_PREFIX."user.u serid
AND dateline>'".$timelimit."'
WHERE user.usergroupid IN($include_groups)
GROUP BY ".TABLE_PREFIX."user.userid
ORDER BY postcount DESC
LIMIT $limit");
$users = array();
while($user = $db->fetch_array($mostactivemonth_get))
$users[] = $user;
$totalposts = $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post WHERE dateline>'".$timelimit."'");
$mostactiveusersmonth = printUsers($users, $vbulletin->options['forummembers_month_text'], 2, $totalposts['postcount']);
unset($users);
}
// Overall Top Posters
// Put the usergroupids that you want to include
$include_groups = array(2,9,10);
if ($vbulletin->options["forummembers_overall"] == '1') {
$mostactive_get = $db->query_read("
SELECT userid, username, usertitle, posts AS postcount
FROM ".TABLE_PREFIX."user
WHERE user.usergroupid IN($include_groups)
ORDER BY posts DESC
LIMIT $limit");
$users = array();
while($user = $db->fetch_array($mostactive_get))
$users[] = $user;
$totalposts = $db->query_first("SELECT COUNT(postid) AS postcount FROM ".TABLE_PREFIX."post");
$mostactiveusers = printUsers($users, $vbulletin->options['forummembers_overall_text'], 2, $totalposts['postcount']);
unset($users);
}
Reply With Quote
  #86  
Old 04-22-2012, 09:55 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

A new update (ver.1.2.0) is available for download. In this version there is an extra setting where you can set which usergroup(s) to include in the TOP's blocks. The earlier version was counting posts only from Registered Members (usergroupid=2).

To upgrade upload all the files and import product-forummembers.xml selecting to overwrite.

Chris
Reply With Quote
  #87  
Old 04-22-2012, 09:57 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Hi Chris ...
'
Ok, I made the changes, but now get this SQL error?

Did I miss something?



Thanks...

Regards,
Doug
From now on you don't need any custom changes as I added a new setting for this reason.

Chris
Reply With Quote
  #88  
Old 04-22-2012, 10:04 AM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is PRO version link of this mod?
Reply With Quote
  #89  
Old 04-22-2012, 10:24 AM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nirjonadda View Post
Where is PRO version link of this mod?
http://www.vbulleton.com

Chris
Reply With Quote
  #90  
Old 04-22-2012, 12:00 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ChrisTERiS View Post
From now on you don't need any custom changes as I added a new setting for this reason.

Chris
Thank you Chris ...

Excellent addition for us... appreciate it ...

Do you have PayPal?

Regards,
Doug
Reply With Quote
  #91  
Old 04-22-2012, 02:11 PM
Christos Teriakis Christos Teriakis is offline
 
Join Date: Jul 2011
Location: Thessaloniki, Greece
Posts: 1,228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BadgerDog View Post
Thank you Chris ...

Excellent addition for us... appreciate it ...

Do you have PayPal?

Regards,
Doug
Thank you Doug,

Actually, I have only PayPal

Chris
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 08:57 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.05142 seconds
  • Memory Usage 2,340KB
  • Queries Executed 26 (?)
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
  • (2)bbcode_code
  • (9)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
  • (6)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete