Activity Stats MOD' Version 1.0.0

Con l'avvento della versione phpBB 3.1 Beta 2 e successive abbiamo rimosso tutte le MOD per sperimentare le estensioni.
Rispondi
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Activity Stats MOD' Version 1.0.0

Messaggio da Darkman »

Ottima e facilissima MOD che include gli utenti che hanno visitato il forum nelle ultime 24 ore

Installare cmq con cautela e fate il bk prima, un passo falso blocca il forum

scaricate da qui
[download]http://www.phpbb.com/mods/db/download/5015/[/download]
http://www.phpbb.com/community/viewtopi ... 9&t=839925

istruzioni

Description:
- Lists of all registered users who have visited the board in the last 24 hours.
- Lists stats on the number of new posts, new topics and new users within the last 24 hours.

Version:
1.0.0

Installation Level:
Easy

Installation Time:
~1minutes

Author
Username:
Highway of Life
Email:
[email protected]
Name:
David Lewis
WWW:
http://startrekguide.com

Files to Edit
index.php,
styles/prosilver/template/index_body.html
Included Files
root/includes/functions_activity_stats.php,
root/language/en/mods/activity_stats.php

--------------------------------------------------------------------------------

Disclaimer
For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD. Downloading this MOD from other sites could cause malicious code to enter into your phpBB Forum. As such, phpBB will not offer support for MODs not offered in our MODs database, located at: http://www.phpbb.com/mods/

Author Notes
If you liked this MOD, please consider supporting our modding efforts with phpBB Academy at StarTrekGuide :: http://startrekguide.com/starbase/donate.php
Thanks!!
MOD History
2008-02-28 - Version 0.1.2

[change] Changed subsilver2 instructions

2008-02-28 - Version 0.1.1

[Feature] Added subsilver2 Instructions, thanks to belphegor

[fix] Incorrect index.php FIND fixed, thanks to belphegor

[fix] Added missing license.txt file to package

2008-02-27 - Version 0.1.0

Initial release

License
This MOD has been licensed under the following license:

http://opensource.org/licenses/gpl-license.php GNU General Public License v2

Other Notes
Before adding this MOD to your forum, you should back up all files related to this MOD

This MOD was designed for phpBB3.0.0 and may not function as stated on other phpBB versions. MODs for phpBB3.0 will not work on phpBB2.0 and vice versa.



--------------------------------------------------------------------------------
File Copy

Copy: root/includes/functions_activity_stats.php
To: includes/functions_activity_stats.php

Copy: root/language/en/mods/activity_stats.php
To: language/en/mods/activity_stats.php
Edits
s↑↓
Use your keyboard to navigate the code boxes. You may also hit 's' on your keyboard to go to the first code box.

Open: index.php
Find
Tip: This may be a partial find and not the whole line.

Codice: Seleziona tutto

// Output page
page_header($user->lang['INDEX']);
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Codice: Seleziona tutto

include($phpbb_root_path . 'includes/functions_activity_stats.' . $phpEx);
activity_mod();
Open: styles/prosilver/template/index_body.html
Find
Tip: This may be a partial find and not the whole line.

Codice: Seleziona tutto

<!-- IF LEGEND --><br /><em>{L_LEGEND}: {LEGEND}</em><!-- ENDIF --></p>
Add before

Codice: Seleziona tutto

<!-- IF not S_IS_BOT --><br /><br />
	{USERS_24HOUR_TOTAL}: <!-- BEGIN lastvisit -->{lastvisit.USERNAME_FULL}<!-- IF not lastvisit.S_LAST_ROW -->, <!-- ENDIF --><!-- END lastvisit -->
	<!-- ENDIF -->
Find

Codice: Seleziona tutto

<p>{TOTAL_POSTS} &bull; {TOTAL_TOPICS} &bull; {TOTAL_USERS} &bull; {NEWEST_USER}</p>

Add after

Codice: Seleziona tutto

<!-- IF not S_IS_BOT -->
	<h3 id="24hour_stats">{L_24HOUR_STATS}</h3>
	<p>{24HOUR_POSTS} &bull; {24HOUR_TOPICS} &bull; {24HOUR_USERS}</p>
	<!-- ENDIF -->
Per òa lingua italiana, inserite il file Php anche nella mods di IT e cambiate i prametri traducendoli a piacere
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: for 'Activity Stats MOD' Version 1.0.0

Messaggio da Darkman »

MOD in prova
Avatar utente
Darkman
Amministratore
Amministratore
Messaggi: 1204
Iscritto il: marzo 28, 2009, 11:04 pm

Re: for 'Activity Stats MOD' Version 1.0.0

Messaggio da Darkman »

Funziona perfettamente
Immagine
La registrazione degli eventi non è immediata, ma avviene con con precisione.
Rispondi