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']);
Codice: Seleziona tutto
//-- mod: Top Stats ---------------------------------------------------------//
include($phpbb_root_path . 'includes/functions_top_stats.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
Trova:
Codice: Seleziona tutto
?>
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
Trova:
Codice: Seleziona tutto
<!-- INCLUDE forumlist_body.html -->
Codice: Seleziona tutto
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
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 -->
Trova:
Codice: Seleziona tutto
<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/forum_fn.js"></script>
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 -->
Trova:
Codice: Seleziona tutto
input.disabled {
color: #666666;
}
Codice: Seleziona tutto
/* Top Stats Mod */
#vertical-ticker{
position:relative;
height: 123px;
overflow: hidden;
}
#vertical-ticker li{
display: block;
}
#news{
height: 41px;
overflow: hidden;
}
Trova:
Codice: Seleziona tutto
*:first-child+html #site-description p {
Codice: Seleziona tutto
* html #vertical-ticker li{
height: 38px;
}
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
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
Codice: Seleziona tutto
//-- mod: Top Stats ---------------------------------------------------------//
include($phpbb_root_path . 'includes/functions_recent_taf.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
Trova:
Codice: Seleziona tutto
// Output the page
Codice: Seleziona tutto
//-- mod: Top Stats ---------------------------------------------------------//
include($phpbb_root_path . 'includes/functions_recent_taf.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
Trova:
Codice: Seleziona tutto
<!-- IF U_MCP --><p>[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ENDIF -->
Codice: Seleziona tutto
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<br />
Trova:
Codice: Seleziona tutto
<!-- IF U_MCP --><p>[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ENDIF -->
Codice: Seleziona tutto
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<br />