[RC] Top Stats

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!
Anti-Spam Guide
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

[RC] Top Stats

Post by Stoker 4.0 »

Modification Name: Top Stats
Author: Stoker 4.0

Modification Description: The Top Stats mod displays the some cool stats on your forum index.
ACP Control included

Features
  • Displays the 5 (configurable) most recent topics at the top of the forum index.
    Jquery Scroll option of most recent topics with options for speed and interval
    Jquery Ticker option of most recent topics
  • Displays the 5 (configurable) most viewed topics at the bottom of the forum index
  • Displays the 5 (configurable) most replied topics at the bottom of the forum index
  • Displays the 5 (configurable) most active users at the bottom of the forum index
  • Displays the 5 (configurable) most active forums at the bottom of the forum index
  • ACP Control for enable/disable features and configuration of the number of replied topics.
Modification Version: 1.0.9

Demo URL: Top Stats Demo Site

Screenshots:
Recent Active Topics:
http://www.phpbb3bbcodes.com/download/f ... recent.png

Most Viewed, Most Replied, Most Active Users, Most Active Forums, Last visited Bots and last registered users:
http://www.phpbb3bbcodes.com/download/f ... bottom.png

ACP Control:
http://www.phpbb3bbcodes.com/download/f ... ts_acp.png

Modification Download: Download Top Stats
Last edited by Stoker 4.0 on Mon Aug 20, 2012 7:27 am, edited 11 times in total.
Regards Stoker
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [RC] Top Stats

Post by darkonia »

thx stoker!

can i enable and disable the 5 recent active topics or can i disable the others?
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
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

You can just delete the edits from index_body.html
There is no ACP, I dont think there should be any need for it.
Regards Stoker
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [RC] Top Stats

Post by 4_seven »

About time too! :geek:
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
Meis2M
Translator
Posts: 1018
Joined: Wed Mar 03, 2010 11:32 am
Location: IR.Damghan
Name: میثم نوبری

Re: [RC] Top Stats

Post by Meis2M »

is it ajax?
phpBB persian international support
Follow us in Instagram
Free upgrade and install extensions on your forum - drop me PM
Ultimate phpBB SEO Friendly URL extension
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Meis2M wrote:is it ajax?
No, and you cant use it to send mails either :D
Regards Stoker
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

I found a bug in one of the template files.
To correct this do the following:

Open styles/prosilver/template/recent_active_body.html
Find:

Code: Select all

<a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_TIME}</span>
Replace with:

Code: Select all

<a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
It fixes incorrect last post date.

Download file is fixed.
Regards Stoker
vytiokas
Registered User
Posts: 143
Joined: Sat Jul 09, 2011 10:54 am

Re: [RC] Top Stats

Post by vytiokas »

hello i'm using subsilver2 and i have problem whit this mod showed disordered here you can cheack http://www.realcs.lt
annyway sry for me bad english
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

vytiokas wrote:hello i'm using subsilver2 and i have problem whit this mod showed disordered here you can cheack http://www.realcs.lt
Thats because you are using prosilver files. This mods doesnt support subsilver2 at the moment.
But I will see if I can get the files done for subsilver2. recent_active_body.html is done.
top_stats_body.html is coming soon.
Regards Stoker
vytiokas
Registered User
Posts: 143
Joined: Sat Jul 09, 2011 10:54 am

Re: [RC] Top Stats

Post by vytiokas »

okay i will wait
annyway sry for me bad english
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

Subsilver2 is ready for download.
Its not included in the main download and it is not supported.
But as an extra feature I have included the subsilver2 template files in a separate download file.
You can download it in the topic at my site: Download Top Stats
Regards Stoker
vytiokas
Registered User
Posts: 143
Joined: Sat Jul 09, 2011 10:54 am

Re: [RC] Top Stats

Post by vytiokas »

thx man good work :) , annyway can you simple edit this mod , 'Recent Active Topics'i want for show only new topics , because now the messages and topic , i want for only 5 topic new show :) can you edit plz :) for me
annyway sry for me bad english
User avatar
SecondShoe
Registered User
Posts: 48
Joined: Thu Dec 13, 2007 7:16 pm

Re: [RC] Top Stats

Post by SecondShoe »

Is it possible to change "Most viewed topics" and "Most replied topics" to show information based on the activity from the last 30 days only? I have 5 year old board and I don't want ancient info on my front page. :) 10x
User avatar
Stoker 4.0
Registered User
Posts: 1509
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [RC] Top Stats

Post by Stoker 4.0 »

SecondShoe wrote:Is it possible to change "Most viewed topics" and "Most replied topics" to show information based on the activity from the last 30 days only? I have 5 year old board and I don't want ancient info on my front page. :) 10x
Open includes/functions_top_stats.php

Around line 63
Find:

Code: Select all

FROM ' . TOPICS_TABLE . ' WHERE ' . $db->sql_in_set('forum_id', $flist) . '
Replace with:

Code: Select all

FROM ' . TOPICS_TABLE . ' WHERE ' . $db->sql_in_set('forum_id', $flist) . ' AND topic_time > ' . (time() - (30 * 24 * 3600)) . '
Around line 89
Find:

Code: Select all

FROM ' . TOPICS_TABLE . ' WHERE ' . $db->sql_in_set('forum_id', $flist) . '
Replace with:

Code: Select all

FROM ' . TOPICS_TABLE . ' WHERE ' . $db->sql_in_set('forum_id', $flist) . ' AND topic_time > ' . (time() - (30 * 24 * 3600)) . '
Yes, its the same edit twice ;)

You can adjust the number 30 the another day count if you like.
Regards Stoker
vytiokas
Registered User
Posts: 143
Joined: Sat Jul 09, 2011 10:54 am

Re: [RC] Top Stats

Post by vytiokas »

again show topic , and message nothink change
annyway sry for me bad english

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