A very simple hook that displays the actual number of members in the "Total Members" count on the #board_stats area, in place of the default value. This results in the inclusion of some user groups that are excluded in the default value in IPB 3.2.X and IPB 3.3.X, such as Validating and Banned users.Thanks to Marcher Technologies for being the first to supply this efficient method of tallying the members (feel free to reuse it in other areas of the site where you see fit):$mems = ipsRegistry::DB()->buildAndFetch( array( 'select' => 'COUNT(member_id) as mems', 'from' => 'members') );$count = $mems['mems'];
Welcome to DevFuse Forums
- Start new topics and reply to others
- Subscribe to topics and forums to get email updates
- Get your own profile page and make new friends
- Send personal messages to other members.
Guest Message by DevFuse
(View All Products)Featured Products
Help fund your forum with donations, setup goals and track member donations. Offer rewards for members donating.
Have your members submit their race times and share with others.
Allows your members to submit their own videos for community viewing. Support is included for all the major video sites.
Build your own forms for your members without coding experience. Support included for pm, email and topics.
Build a community database of items for your members. Full features custom fields included.
[IPS] Total Members Recount
No replies to this topic