Top Stats

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Scroll not working

Post by systemcrack »

Oooook thank's

No scroll (javascript error?)

Post by Brett_9 »

Thanks for the post!

Specific forums

Post by Thunder »

Hello,

How to disable some forums (Subforums) with TOP STATS.

I do not want to TOP STATS showed the subjects of some departments.

How to do it?

Best regards

Specific forums

Post by mikef35 »

Top Stats conflict/ Artodia

Post by elsa23 »

have you find a solution Stoker ? Image

Problem insertion block last active topics on viewforum

Post by systemcrack »

Hello guys, I'm trying to insert the block last active topics in vieforum and in viewtopic.
So I opened the viewtopic.php and I modified it like this:

Code: Select all

//-- mod: Top Stats ---------------------------------------------------------//
   include($phpbb_root_path . 'includes/functions_top_stats.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//

// Output the page
page_header($user->lang['VIEW_TOPIC'] . ' - ' . $topic_data['topic_title'], true, $forum_id);

$template->set_filenames(array(
	'body' => ($view == 'print') ? 'viewtopic_print.html' : 'viewtopic_body.html')
);
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"), $forum_id);

page_footer();

?>
I opened the viewforum.php and I modified it like this:

Code: Select all

//-- mod: Top Stats ---------------------------------------------------------//
   include($phpbb_root_path . 'includes/functions_top_stats.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//

page_footer();

?>
I opened the viewtopic_body.html and I modified it like this:

Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
<h2><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>
I opened the viewforum_body.html and I modified it like this:

Code: Select all

<!-- INCLUDE overall_header.html -->

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->

<!-- IF U_MCP --><p>[&nbsp;<a href="{U_MCP}">{L_MCP}</a>&nbsp;]</p><!-- ENDIF -->
<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
The problem lies in the fact appear the following errors on overall_header:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_top_stats.php on line 204: Undefined variable: total_posts
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_top_stats.php on line 204: Division by zero
could you help me understand where I'm wrong please.
Last edited by systemcrack on 19 Jun 2014, 08:01, edited 2 times in total.

Problem insertion block last active topics

Post by Stoker »

You need some of the code from index.php on the other pages.

Problem insertion block last active topics

Post by systemcrack »

Stoker wrote:You need some of the code from index.php on the other pages.
Hi Stoker,
Have you looked at the code I posted before? if you talk about this code:

Code: Select all

//-- mod: Top Stats ---------------------------------------------------------//
   include($phpbb_root_path . 'includes/functions_top_stats.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
I've already added it.. on viewtopic.php and viewforum.php, and this:

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
in vietopic_body.html and vieforum_body.html, but you already know what is my result.
You could be a little more specific please.. ;)

Image

maybe a picture might help you to understand .. the block appears in viewforum, but also the errors appear and distort the display of the menu.

I can't understand where could be the problem. :coffee:
You do not have the required permissions to view the files attached to this post.

Problem insertion block last active topics on viewforum

Post by Stoker »

Im not at home with my pc these days, sorry.

Problem insertion block last active topics on viewforum

Post by systemcrack »

No problem Stoker, we're not talking about blood transfusions .. ahahahaha! :D I am here and do not run away. ;)