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 on top

Post by Nully »

Hello,
it seems to work (I say it seems, because I'm never sure) :)

Code: Select all

<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->
<!-- IF S_TSRAT_ENABLE -->
<!-- INCLUDE recent_active_body.html -->
<!-- ENDIF -->
<!-- IF S_MCHAT_ENABLE and S_MCHAT_ON_INDEX and not S_MCHAT_LOCATION --><!-- INCLUDE mchat_body.html --><!-- ENDIF -->
<!-- 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 -->
<!-- INCLUDE forumlist_body.html -->
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
I made the test as administrator with mChat and as new user without mChat. Everybody can see Top Stats on top.

Thanks Stoker.

Top stats on top

Post by Stoker »

:thumb:

[ADDON] Forum images in recent active topics

Post by Martin_K »

doktornotor wrote: In recent_active_body.html, find:

Code: Select all

<!-- IF recent_active.FORUM_IMAGE -->{ROOT_PATH}{recent_active.FORUM_IMAGE}<!-- ELSE -->{ROOT_PATH}images/starimg.png<!-- ENDIF -->
and replace with

Code: Select all

<!-- IF recent_active.FORUM_IMAGE --><img src="{ROOT_PATH}{recent_active.FORUM_IMAGE}" width="32" height="32" alt="" /><!-- ELSE --><img src="{ROOT_PATH}images/starimg.png"  alt="" /><!-- ENDIF -->
Always a good idea to put the image width and height attributes in and to make your icons of that size, so there is no re-sizing going on, this is 'good practice' for images. 32*32 px is a good size for forum images.
Specifying a width and height for all images allows for faster rendering by eliminating the need for unnecessary reflows and repaints.
- http://gtmetrix.com

Problem about permissions

Post by Blackwolf »

Sorry to drag up old threads but I noticed in the last week or so that topics not yet approved by moderator (Still in newly reg group) are showing in "Latest Topics" yet I have...

Code: Select all

WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND t.topic_moved_id = 0 AND t.topic_approved = 1 AND t.forum_id <> 269
in functions_top_stats.php :?

Clicking the link results in "topic does not exist" :)

Problem about permissions

Post by Stoker »

It works fine with latest top stats version 1.0.10
Just testet it here.

Problem about permissions

Post by Blackwolf »

Mind me asking how you tested it?

A member of the newly registered users group posted a topic. It had yet to be approved but showed in the "Latest Topics" section.

Did you create a new user? (to test?) my functions_top_stats.php is from the latest version.

This ONLY happened in the last week. I have not changed any settings/files in relation to this mod.

I respect you & your mods, so please do not take offence but is there perhaps another reason? :?

Problem about permissions

Post by Stoker »

I have a testuser who cant post without approval in my top stats forum.
The testuser created a topic in the top stats forum.
Topic is still awaiting approval.
It doesnt show in the recent active topics.

Things like that dont just happen by it self.

Problem about permissions

Post by Blackwolf »

I apologise. :oops:

Remove my nub post.

It's not even this mod.......Top Five. :roll:

2 x

Code: Select all

//-- mod: top five ---------------------------------------------------------//
// destroy the top_five cache
	$cache->purge('_top_five_newest_users');
	$cache->purge('_top_five_posters');
//-- end: top five ---------------------------------------------------------//
In function_user.php

:gamer:

Code: Select all

sudo accept appology 

Problem about permissions

Post by Stoker »

remind me to kick your ass one of these days :D

[ADDON] Forum images in recent active topics

Post by smithjohn »

wow am I ever having some bad luck