Top Stats
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
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
Specific forums
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
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
Problem insertion block last active topics on viewforum
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:
I opened the viewforum.php and I modified it like this:
I opened the viewtopic_body.html and I modified it like this:
I opened the viewforum_body.html and I modified it like this:
The problem lies in the fact appear the following errors on overall_header:
could you help me understand where I'm wrong please.
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();
?>
Code: Select all
//-- mod: Top Stats ---------------------------------------------------------//
include($phpbb_root_path . 'includes/functions_top_stats.' . $phpEx);
//-- end: Top Stats ---------------------------------------------------------//
page_footer();
?>
Code: Select all
<!-- INCLUDE overall_header.html -->
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- IF U_MCP --><p>[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ENDIF -->
<h2><a href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a></h2>
Code: Select all
<!-- INCLUDE overall_header.html -->
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- IF U_MCP --><p>[ <a href="{U_MCP}">{L_MCP}</a> ]</p><!-- ENDIF -->
<h2><a href="{U_VIEW_FORUM}">{FORUM_NAME}</a></h2>
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
Last edited by systemcrack on 19 Jun 2014, 08:01, edited 2 times in total.
Problem insertion block last active topics
You need some of the code from index.php on the other pages.
Problem insertion block last active topics
Hi Stoker,Stoker wrote:You need some of the code from index.php on the other pages.
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 ---------------------------------------------------------//
Code: Select all
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
You could be a little more specific please..


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.

You do not have the required permissions to view the files attached to this post.
Problem insertion block last active topics on viewforum
Im not at home with my pc these days, sorry.
Problem insertion block last active topics on viewforum
No problem Stoker, we're not talking about blood transfusions .. ahahahaha!
I am here and do not run away. 

