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

Top stats collapsible!

Post by tudorionut »

Hello admin, can you help me with the template for top stats?I want to make it collapsile!Like here on your forum!
Thanks

Top stats collapsible!

Post by Stoker »

That question have been asked about a million times ;)
Try searching for it.

Top stats collapsible!

Post by martin123456 »

Simple search and i found this viewtopic.php?f=49&t=1955 :roll:

Top stats collapsible!

Post by tudorionut »

martin123456 wrote:Simple search and i found this viewtopic.php?f=49&t=1955 :roll:
Yes i saw now! Sorry, i don't know very good english and i didn't know what terms to search!
Thanks a lot everyone! Have a nice day!

Top Stats

Post by cabalganti »

Hello Stoker.
I have a question . It is possible to implement the Active topics scrolling element (Top Stats addon, not the whole thing but the scrolling element) for each forum and displaying only the active topics for that forum?
Thanks in advance.

Top Stats

Post by Stoker »

Sounds like a standalone mod. Sorry, dont have time for that atm.

Top Stats

Post by cabalganti »

Oh i see.
Been playing with Top Stats, following the instructions in this post viewtopic.php?f=49&t=1956

So i move the edits on index.php to viewforum.php and the edit from index_body.html, to viewforum_body.html and they had no sucees and post is over 6 months old.


viewforum_body.html FIND

Code: Select all

<!-- INCLUDE forumlist_body.html -->
ADD BEFORE

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
I ignore the rest of the code because i only want the scrolling element.

The problem is with viewforum.php, i don't know where to place the code. Original install file says:

FIND

Code: Select all

// Output page
page_header($user->lang['INDEX']);
ADD BEFORE

Code: Select all

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

I don't longer care about the recent active topics per forum, just want it to show on every forum.
Can you help Stoker? :?

Top Stats

Post by Stoker »

Try before: // Dump out the page header and load viewforum template

Top Stats

Post by cabalganti »

i get 2 errors:
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_top_stats.php on line 244: Division by zero
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_top_stats.php on line 204: Division by zero

Top Stats

Post by cabalganti »

It actually shows the scrolling element but with the 2 errors i mentioned before.