[RC] Active members mod [ 1.0.1 ]

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Ideas Centre
Locked
User avatar
Zark!
Registered User
Posts: 14
Joined: Sat Jan 02, 2010 11:23 pm

[RC] Active members mod [ 1.0.1 ]

Post by Zark! »

Modification Name: Active members mod
Author: Zark

Modification Description:: This mod displays in index all active members ( members with 1 or more posts ).

Modification Version:: 1.0.1

Tested in:: 3.0.6 and 3.0.7 with Prosilver and Subsilver2

Languages included:: English and spanish.

Screenshots:
Prosilver screenshot
Subsilver screenshot

Modification Download: Download

Next release features:
  • Can manage the posts factor in the ACP.
  • Can enable/disable this mod in the ACP.
  • Active members in last 24 hours ( not confirmed ).
Last edited by Zark! on Mon Mar 01, 2010 10:24 pm, edited 8 times in total.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [RC] Active members mod

Post by darkonia »

can you make this mod for an extra page instead of the index page?

and how to edit the factor of posts?

and can we see screenshots?
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
Zark!
Registered User
Posts: 14
Joined: Sat Jan 02, 2010 11:23 pm

Re: [RC] Active members mod

Post by Zark! »

I just added the screenshots now.
To edit the factor of posts you must do this:

Open: index.php

Find:

Code: Select all

WHERE user_posts!=0
You also can change the 0 to edit the minimum posts that a active member should have.

For an extra page you need to do this:

Open: yourfile.php

Find:
Whatever you want.

Add after:

Code: Select all

//Active members count MOD by Zark //
$sql = 'SELECT COUNT(user_id) AS user_count 
	FROM ' . USERS_TABLE . '
	WHERE user_posts!=0';

$result = $db->sql_query($sql);

$active_members = (int) $db->sql_fetchfield('user_count');

$db->sql_freeresult($result);
//Active members count MOD end //
And then you can add this where you want to display the number of active members:

Code: Select all

echo 'Active members <strong>' . $active_members . '</strong>',

Note:
if you don't include the common.php to this new file this will not work.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [RC] Active members mod

Post by darkonia »

thx a lot for your fast reply :ugeek:
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
Zark!
Registered User
Posts: 14
Joined: Sat Jan 02, 2010 11:23 pm

Re: [RC] Active members mod

Post by Zark! »

I just added the next features for the 1.1.0 version of this mod ;)
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [RC] Active members mod

Post by joebart72 »

Nice mod, thanks :D
I learn English with phpbb.com :)
User avatar
RMcGirr83
Former Team Member
Posts: 21672
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [RC] Active members mod

Post by RMcGirr83 »

Just an FYI, this

Code: Select all

WHERE user_posts!=0
should be this

Code: Select all

WHERE user_posts <> 0
Per the Coding guidelines
The "not equals operator", as defined by the SQL:2003 standard, is "<>"
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
DoYouSpeakWak
Registered User
Posts: 2310
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Contact:

Re: [RC] Active members mod

Post by DoYouSpeakWak »

I like this idea.

What about the option to set a time frame. Lets say last 6 month. The numbers of users showed should be those who had posted within that time frame.
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid services. 10+ years of experience with phpBB3 and as System Administrator.
User avatar
Zark!
Registered User
Posts: 14
Joined: Sat Jan 02, 2010 11:23 pm

Re: [RC] Active members mod

Post by Zark! »

The mod is re-uploaded. I fixed 2 small bugs of the mod. Thanks to RMcGirr83 to report one of them.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany
Contact:

Re: [RC] Active members mod

Post by darkonia »

here a fast download without countdown from the upload hoster:

http://clubhaus.pytalhost.de/active_members_mod.zip
Last edited by darkonia on Mon Mar 01, 2010 10:32 pm, edited 1 time in total.
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
joebart72
Registered User
Posts: 743
Joined: Thu Feb 01, 2007 5:54 am

Re: [RC] Active members mod

Post by joebart72 »

I can't open the install file since you have updated the mod...
I learn English with phpbb.com :)
User avatar
Zark!
Registered User
Posts: 14
Joined: Sat Jan 02, 2010 11:23 pm

Re: [RC] Active members mod [ 1.0.1 ]

Post by Zark! »

Now it works. I re-uploaded again the mod :)
User avatar
RMcGirr83
Former Team Member
Posts: 21672
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr

Re: [RC] Active members mod

Post by RMcGirr83 »

Zark! wrote:The mod is re-uploaded. I fixed 2 small bugs of the mod. Thanks to RMcGirr83 to report one of them.
:)

Well in actuality, it should be this

Code: Select all

WHERE user_posts > 0
because user posts can never be

Code: Select all

 < 0
as the field in the database is UNSIGNED.

;)

Good luck with your mod! :)
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then buy me a beerImage
User avatar
Zark!
Registered User
Posts: 14
Joined: Sat Jan 02, 2010 11:23 pm

Re: [RC] Active members mod [ 1.0.1 ]

Post by Zark! »

Bug fixed.
Locked

Return to “[3.0.x] MODs in Development”