Top Stats 1.0.10

Area dedicata a tutte le MODs per phpBB 3.0.X
Rispondi
Avatar utente
systemcrack
Utente
Utente
Messaggi: 108
Iscritto il: 24/03/2014, 16:27
Link del Forum: http://morfeuscommunity.altervista.org/forum

Top Stats 1.0.10

Messaggio da systemcrack »

Modification Name: Top Stats
Modification Version: 1.0.10
Author: Stoker

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 viewed 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
* Displays the 5 (configurable) last visited bots at the bottom of the forum index
* Displays the 5 (configurable)last registered users at the bottom of the forum index
* ACP Control for enable/disable features and configuration of the number of replied topics
* Using cache for better performance


Files to edit:
index.php,
language/en/common.php,
styles/prosilver/template/index_body.html,
styles/prosilver/template/overall_header.html,
styles/prosilver/theme/colours.css,
styles/prosilver/theme/tweaks.css


Included files
root/adm/style/acp_topstats.html,
root/includes/acp/acp_topstats.php,
root/includes/acp/info/acp_topstats.php,
root/includes/functions_top_stats.php,
root/language/en/mods/info_acp_topstats.php,
root/language/en/mods/umil_top_stats_install.php,
root/images/*.*,
root/script/*.*,
root/styles/prosilver/template/*.*,
root/umil/*.*,
root/install_top_stats.php


Apri: index.php

Codice: Seleziona tutto

// Output page
page_header($user->lang['INDEX']);
Aggiungi prima:

Codice: Seleziona tutto

//-- mod: Top Stats ---------------------------------------------------------//
	include($phpbb_root_path . 'includes/functions_top_stats.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
Apri: language/en/common.php
Trova:

Codice: Seleziona tutto

?>
Aggiungi prima:

Codice: Seleziona tutto

// BEGIN Top Stats
$lang = array_merge($lang, array(
	'MOST_VIEWED'				=> 'Most viewed topics',
	'MOST_REPLIED'				=> 'Most replied topics',
	'NEWEST_TOPICS'				=> 'Latest Topics',
	'NEWEST_POSTS'				=> 'Latest Posts',
	'RECENT_ACTIVE'				=> 'Recent Active Topics',
	'MOST_ACTIVE_USERS'			=> 'Most active users',
	'JOINED_US'					=> 'Joined us',
	'MOST_ACTIVE_FORUMS'		=> 'Most active forums',
	'PREVIOUS_SCROLL'			=> 'Previous',
	'NEXT_SCROLL'				=> 'Next',
	'START_SCROLL'				=> 'Start',
	'STOP_SCROLL'				=> 'Stop',
	'LAST_REGISTERED_USERS'		=> 'Last registered users',
	'LAST_VISITED_BOTS'			=> 'Last visited bots',
));
// END Top Stats 
Apri: styles/prosilver/template/index_body.html
Trova:

Codice: Seleziona tutto

<!-- INCLUDE forumlist_body.html -->
Aggiungi prima:

Codice: Seleziona tutto

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
Aggiungi dopo:

Codice: Seleziona tutto

<!-- IF S_TSMVT_ENABLE or S_TSMRT_ENABLE or S_TSMAU_ENABLE or S_TSMAF_ENABLE or S_TSLVB_ENABLE or S_TSLRU_ENABLE -->
<!-- INCLUDE top_stats_body.html -->
<!-- ENDIF -->
Apri: styles/prosilver/template/overall_header.html
Trova:

Codice: Seleziona tutto

<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
Aggiungi dopo:

Codice: Seleziona tutto

<!-- IF (S_TSRAT_ENABLE and S_TS_JSSCROLL) or (S_TSRAT_ENABLE and S_TS_TICKER) -->
<script src="{ROOT_PATH}script/jquery.min.js" type="text/javascript"></script>
<!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->
<script src="{ROOT_PATH}script/jquery.totemticker.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$('#vertical-ticker').totemticker({
				row_height	:	'41px',
				max_items   :   3,
				speed       :   {JSSCROLL_SPEED},
				interval    :   {JSSCROLL_INTERVAL},
				<!-- IF TS_JSSCROLL_NAVIGATION -->
				next		:	'#ticker-next',
				previous	:	'#ticker-previous',
				stop		:	'#stop',
				start		:	'#start',
				<!-- ENDIF -->
				mousestop	:	true,
				direction	:	'<!-- IF TS_JSSCROLL_DIRECTION -->down<!-- ELSE -->up<!-- ENDIF -->'
	});
});
// ]]>
</script>
<!-- ELSEIF S_TS_TICKER and not S_TS_JSSCROLL -->
<script src="{ROOT_PATH}script/jquery.newsticker.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(document).ready(function() {
	$("#news").newsTicker();
});
// ]]>
</script>
<!-- ENDIF -->
<!-- ENDIF -->
Apri: styles/prosilver/theme/colours.css
Trova:

Codice: Seleziona tutto

input.disabled {
	color: #666666;
}
Aggiungi dopo:

Codice: Seleziona tutto

/* Top Stats Mod */
#vertical-ticker{
	position:relative;	
	height: 123px;
	overflow: hidden;
}

#vertical-ticker li{
	display: block;
}

#news{
	height: 41px;
	overflow: hidden;
}
Apri: styles/prosilver/theme/tweaks.css
Trova:

Codice: Seleziona tutto

*:first-child+html #site-description p {
Aggiungi prima:

Codice: Seleziona tutto

* html #vertical-ticker li{
	height: 38px;
}
Lancia il file [c]install_top_stats.php[/c]

Codice: Seleziona tutto

1. Save and upload the changed files
2. Run the installer install_top_stats.php
3. Delete the installer install_top_stats.php
4. Refresh the styles and purge the cache in the ACP
5. Visit the ACP mods tab and change the Top Stats settings
Alla semplice mod vi propongo anche la modifica della modifica per fare in modo che il blocco possa essere visualizzato anche nel viewforum e nel viewtopic

Caricare il file contenuto nella cartella functions_recent_taf.zip in includes

Apri: root/viewforum.php
Trova:

Codice: Seleziona tutto

// Dump out the page header and load viewforum template
Aggiungi prima:

Codice: Seleziona tutto

//-- mod: Top Stats ---------------------------------------------------------//
   include($phpbb_root_path . 'includes/functions_recent_taf.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
Apri: root/viewtopic.php
Trova:

Codice: Seleziona tutto

// Output the page
Aggiungi prima:

Codice: Seleziona tutto

//-- mod: Top Stats ---------------------------------------------------------//
   include($phpbb_root_path . 'includes/functions_recent_taf.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
Apri: root/forum/styles/prosilver/template/viewforum_body.html
Trova:

Codice: Seleziona tutto

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Aggiungi prima:

Codice: Seleziona tutto

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<br />
Apri: root/forum/styles/prosilver/template/viewtopic_body.html
Trova:

Codice: Seleziona tutto

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
Aggiungi prima:

Codice: Seleziona tutto

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<br />
Non hai i permessi necessari per visualizzare i file allegati in questo messaggio.
Rispondi