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

Stats Column Messed Up

Post by Stoker »

open recent_active_body.html
Find:

Code: Select all

<ul <!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->id="vertical-ticker" <!-- ELSEIF S_TS_TICKER and not S_TS_JSSCROLL -->id="news" <!-- ENDIF -->class="topiclist forums">
		<!-- IF S_TS_TICKER and not S_TS_JSSCROLL -->
		<li class="row">
		<!-- BEGIN recent_active -->
		<dl class="icon widescreen-optimised" style="background-image: url(<!-- IF recent_active.FORUM_IMAGE -->{ROOT_PATH}{recent_active.FORUM_IMAGE}<!-- ELSE -->{ROOT_PATH}images/starimg.png<!-- ENDIF -->); background-repeat: no-repeat;">
		<dt>
		   <span class="wrap-content"><a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
		   {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}</span>
		</dt>
			<dd class="topics">{recent_active.TOPIC_REPLIES}</dd>
			<dd class="posts">{recent_active.TOPIC_VIEWS}</dd>
			<dd class="lastpost"><span>
				{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
			</dd>
		</dl>
		<!-- END recent_active -->
		</li>
		<!-- ELSE -->
		<!-- BEGIN recent_active -->
		<li class="row">
		<dl class="icon widescreen-optimised" style="background-image: url({ROOT_PATH}images/starimg.png); background-repeat: no-repeat;">
			<dt>
				<span class="wrap-content"><a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
				{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}</span>
			</dt>
			<dd class="topics">{recent_active.TOPIC_REPLIES}</dd>
			<dd class="posts">{recent_active.TOPIC_VIEWS}</dd>
			<dd class="lastpost"><span>
				{L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
			</dd>
		</dl>
		</li>
		<!-- END recent_active -->
		<!-- ENDIF -->
	</ul>
Replace with:

Code: Select all

<ul <!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->id="vertical-ticker" <!-- ELSEIF S_TS_TICKER and not S_TS_JSSCROLL -->id="news" <!-- ENDIF -->class="topiclist forums">
			<!-- IF S_TS_JSSCROLL or not S_TS_TICKER -->
			<!-- BEGIN recent_active -->
			<li class="row">
			<dl class="icon widescreen-optimised" style="background-image: url(<!-- IF recent_active.FORUM_IMAGE -->{ROOT_PATH}{recent_active.FORUM_IMAGE}<!-- ELSE -->{ROOT_PATH}images/starimg.png<!-- ENDIF -->); background-repeat: no-repeat;">
            <dt>
               <span class="wrap-content"><a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}</span>
            </dt>
            <dd class="topics"><!-- IF recent_active.TOPIC_REPLIES > 1 or recent_active.TOPIC_REPLIES < 1 -->{recent_active.TOPIC_REPLIES} {L_REPLIES}<!-- ELSE -->{recent_active.TOPIC_REPLIES} {L_REPLY}<!-- ENDIF --><br />
               <!-- IF recent_active.TOPIC_VIEWS > 1 or recent_active.TOPIC_VIEWS < 1 -->{recent_active.TOPIC_VIEWS} {L_VIEWS}<!-- ELSE -->{recent_active.TOPIC_VIEWS} {L_VIEW}<!-- ENDIF --></dd>
            <dd class="lastpost"><span>
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
            </dd>
			</dl>
			</li>
			<!-- END recent_active -->
			<!-- ELSEIF S_TS_TICKER -->
			<li class="row">
			<!-- BEGIN recent_active -->
			<dl class="icon" style="background-image: url({ROOT_PATH}images/starimg.png); background-repeat: no-repeat;">
            <dt>
               <a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}
            </dt>
            <dd class="topics"><!-- IF recent_active.TOPIC_REPLIES > 1 or recent_active.TOPIC_REPLIES < 1 -->{recent_active.TOPIC_REPLIES} {L_REPLIES}<!-- ELSE -->{recent_active.TOPIC_REPLIES} {L_REPLY}<!-- ENDIF --><br />
               <!-- IF recent_active.TOPIC_VIEWS > 1 or recent_active.TOPIC_VIEWS < 1 -->{recent_active.TOPIC_VIEWS} {L_VIEWS}<!-- ELSE -->{recent_active.TOPIC_VIEWS} {L_VIEW}<!-- ENDIF --></dd>
            <dd class="lastpost"><span>
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
            </dd>
			</dl>
			<!-- END recent_active -->
			</li>
			<!-- ENDIF -->
		</ul>
For the other errors you have, redo whatever you did to make it look like that or just restore your backup.

Stats Column Messed Up

Post by Flamingdevastation »

Thanks, so the instructions you gave right now is for the column, right? And for redo, do I have to redo the top stats mod? Because I don't know why the minimize button isn't there. And I know that you can do this whenever you have time, but my ticker/scrolling doesn't work for the active topics, why is that?

Stats Column Messed Up

Post by Stoker »

If you are talking about the collapsiple thing you need to use this as recent_active_body.html
Just replace the content with this:

Code: Select all

<!-- IF S_TS_JSSCROLL and TS_JSSCROLL_NAVIGATION and not S_TS_TICKER -->
<div style="text-align:right; padding-right:10px;"><a href="#" title="{L_PREVIOUS_SCROLL}" id="ticker-previous"><img src="{ROOT_PATH}images/player_rew.png" width="16" height="16" alt="{L_PREVIOUS_SCROLL}" /></a> <a href="#" title="{L_NEXT_SCROLL}" id="ticker-next"><img src="{ROOT_PATH}images/player_fwd.png" width="16" height="16" alt="{L_NEXT_SCROLL}" /></a> <a href="#" title="{L_STOP_SCROLL}" id="stop"><img src="{ROOT_PATH}images/player_pause.png" width="16" height="16" alt="{L_STOP_SCROLL}" /></a> <a href="#" title="{L_START_SCROLL}" id="start"><img src="{ROOT_PATH}images/player_play.png" width="16" height="16" alt="{L_START_SCROLL}" /></a></div>
<!-- ENDIF -->
<div class="forumlist">
	<div class="forabg">
		<div class="inner"><span class="corners-top"><span></span></span>
		<ul class="topiclist">
			<li class="header  widescreen-optimised">
				<dl class="icon">
					<dt><span class="wrap-content">{TSRAT_NUMBER} {L_RECENT_ACTIVE}</span></dt>
					<dd class="topics">{L_STATS}</dd>
					<dd class="lastpost"><span>{L_LAST_POST}</span></dd>
				</dl>
			</li>
		</ul>
		<div class="portaltrigger portalactive"></div>
		<div class="collapsethis">
		<ul <!-- IF S_TS_JSSCROLL and not S_TS_TICKER -->id="vertical-ticker" <!-- ELSEIF S_TS_TICKER and not S_TS_JSSCROLL -->id="news" <!-- ENDIF -->class="topiclist forums">
			<!-- IF S_TS_JSSCROLL or not S_TS_TICKER -->
			<!-- BEGIN recent_active -->
			<li class="row">
			<dl class="icon widescreen-optimised" style="background-image: url(<!-- IF recent_active.FORUM_IMAGE -->{ROOT_PATH}{recent_active.FORUM_IMAGE}<!-- ELSE -->{ROOT_PATH}images/starimg.png<!-- ENDIF -->); background-repeat: no-repeat;">
            <dt>
               <span class="wrap-content"><a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}</span>
            </dt>
            <dd class="topics"><!-- IF recent_active.TOPIC_REPLIES > 1 or recent_active.TOPIC_REPLIES < 1 -->{recent_active.TOPIC_REPLIES} {L_REPLIES}<!-- ELSE -->{recent_active.TOPIC_REPLIES} {L_REPLY}<!-- ENDIF --><br />
               <!-- IF recent_active.TOPIC_VIEWS > 1 or recent_active.TOPIC_VIEWS < 1 -->{recent_active.TOPIC_VIEWS} {L_VIEWS}<!-- ELSE -->{recent_active.TOPIC_VIEWS} {L_VIEW}<!-- ENDIF --></dd>
            <dd class="lastpost"><span>
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
            </dd>
			</dl>
			</li>
			<!-- END recent_active -->
			<!-- ELSEIF S_TS_TICKER -->
			<li class="row">
			<!-- BEGIN recent_active -->
			<dl class="icon" style="background-image: url({ROOT_PATH}images/starimg.png); background-repeat: no-repeat;">
            <dt>
               <a href="{recent_active.U_FIRST_TOPIC}" class="forumtitle">{recent_active.TOPIC_TITLE}</a><br />
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_FIRST_POSTER_COLOUR};" href="{recent_active.USERNAME_FIRST}">{recent_active.TOPIC_FIRST_POSTER_NAME}</a> {L_IN} <a href="{recent_active.FORUM_URL}">{recent_active.FORUM_NAME}</a> {recent_active.TOPIC_TIME}
            </dt>
            <dd class="topics"><!-- IF recent_active.TOPIC_REPLIES > 1 or recent_active.TOPIC_REPLIES < 1 -->{recent_active.TOPIC_REPLIES} {L_REPLIES}<!-- ELSE -->{recent_active.TOPIC_REPLIES} {L_REPLY}<!-- ENDIF --><br />
               <!-- IF recent_active.TOPIC_VIEWS > 1 or recent_active.TOPIC_VIEWS < 1 -->{recent_active.TOPIC_VIEWS} {L_VIEWS}<!-- ELSE -->{recent_active.TOPIC_VIEWS} {L_VIEW}<!-- ENDIF --></dd>
            <dd class="lastpost"><span>
               {L_POST_BY_AUTHOR} <a style="font-weight:bold; color: #{recent_active.TOPIC_LAST_POSTER_COLOUR};" href="{recent_active.USERNAME_LAST}">{recent_active.TOPIC_LAST_POSTER_NAME}</a> <a href="{recent_active.U_LAST_TOPIC}">{LAST_POST_IMG}</a><br />{recent_active.TOPIC_LAST_POST_TIME}</span>
            </dd>
			</dl>
			<!-- END recent_active -->
			</li>
			<!-- ENDIF -->
		</ul>
		</div>
		<span class="corners-bottom"><span></span></span></div>
	</div>
</div>

Top_Stat cached data

Post by Simon »

Hello

I take a look to your code...the cache is not alwys rewrite, but i think the users who have no acces to a forum or a topic can see them in your mod ex: Most viewed topics or // Most active forums
it's better if it's not visible....but you can't use cache, like // Recent Active Topics.

Stats Column Messed Up

Post by Flamingdevastation »

Thanks, so just replace the whole thing with that^^^? Thanks a bunch ;)

Download Top Stats

Post by Stoker »

Updated to version 1.0.8

Update intructions: Upload included files and run the installer

Top_Stat cached data

Post by Stoker »

Hi Simon,

In version 1.0.8 I have removed cache for most viewed, most replied and most active forums.
Thanks for reporting the bug :thumb:

Stats Column Messed Up

Post by Stoker »

Yes :)

1.0.8

Post by Blackwolf »

Wow...you have been busy! Looking good.....can we know what the differences are between 1.0.7 & 1.0.8 please? :|

1.0.8

Post by martin123456 »

1.0.8 :lol: im still on 1.0.6 but have download 1.0.7 for later :lol: but now 1.0.8 is out :lol: