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

View topstats in other page? Thread page...

Post by blablabla2 »

Ok, i didnt quit get you.
I copied this code from index_body.html

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- INCLUDE forumlist_body.html -->
<!-- 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 -->
And put it viewforum_body.html some where random ( where i know i can put it ) But nothing happens.
:(

View topstats in other page? Thread page...

Post by martin123456 »

Find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
Add before:

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
Add after <!-- INCLUDE forumlist_body.html -->

Code: Select all

<!-- 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 -->
Last edited by martin123456 on 21 Mar 2012, 01:54, edited 4 times in total.

View topstats in other page? Thread page...

Post by blablabla2 »

@ Bl4d3 x.

No doesnt work, so wierd...

View topstats in other page? Thread page...

Post by martin123456 »

tested it too and its a no go.

View topstats in other page? Thread page...

Post by Stoker »

You will also have to move the index.php edit to viewforum.php

Moved Topics?

Post by Blackwolf »

Before....if ...the board closes...any chance of another look into this ...please.....I am happy to give you phpMyAdmin access :|
5 most viewed.png
For now I have it set to 2 due to "topic doesn't exist" message if clicked.

viewtopic.php?f=49&t=1581

Possibly related somehow ???

http://www.phpbb.com/community/viewtopi ... &t=2106283

I ran

Code: Select all

SELECT `post_text` FROM phpbb_posts WHERE `topic_id` = 3630;
which is one of the error forums and the result was...

Code: Select all

MySQL returned an empty result set (i.e. zero rows). ( Query took 0.0035 sec )
:?
You do not have the required permissions to view the files attached to this post.

View topstats in other page? Thread page...

Post by blablabla2 »

Stoker can u be moer exact what to change?

View topstats in other page? Thread page...

Post by martin123456 »

Find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
Add before:

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
Add after <!-- INCLUDE forumlist_body.html -->

Code: Select all

<!-- 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 -->
Open viewforum.php
Find:

Code: Select all

WAIT ONE IT GIVES DEBUG ERROR
Add after:

Code: Select all

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

View topstats in other page? Thread page...

Post by blablabla2 »

1. Can u be more specific? What file to edit? I think its viewforum_body.html i found all of this there.
Well i edited like you wrote but u wrote a bit missleading. Should i add it before ( <!-- ENDIF --> ) or after ( <!-- ENDIF --> )
2. viewforum.php i dont have this ( WAIT ONE IT GIVES DEBUG ERROR )

PS / EDIT: Isnt it simplier to show threads instead or also withforums in the first page? ( Can it be done easy ? )
Bl4d3 x wrote:Find:

Code: Select all

<!-- INCLUDE forumlist_body.html -->
Add before:

Code: Select all

<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
Add after <!-- INCLUDE forumlist_body.html -->

Code: Select all

<!-- 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 -->
Open viewforum.php
Find:

Code: Select all

WAIT ONE IT GIVES DEBUG ERROR
Add after:

Code: Select all

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

View topstats in other page? Thread page...

Post by martin123456 »

:D :D

2. viewforum.php i dont have this ( WAIT ONE IT GIVES DEBUG ERROR )

no one does as i edited the post i had it working but i got some debug error's after a refresh so i took that line of code out and put wait. lol

But then i was called out and have just got back home and its now 3:15 am so i will takle it again in the morning.