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

Problem about permissions

Post by Nully »

I downloaded and installed version 1.0.8 from your forum on sunday february 19th, 2012.
I can see

Code: Select all

@version $Id: install_top_stats.php, v1.0.8 20011/06/12 Stoker $

Problem about permissions

Post by Stoker »

No, I mean includes/functions_top_stats.php

Problem about permissions

Post by Nully »

Includes/functions_top_stats.php :
@version $Id: functions_top_stats.php v1.0.8 20011/06/12 Stoker $
May be you mean I should have to install version 1.0.3 and then update ? :idea:

Problem about permissions

Post by Stoker »

Now I get it.
Open functions_top_stats.php and find:

Code: Select all

WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND t.topic_moved_id = 0
Replace with:

Code: Select all

WHERE ' . $db->sql_in_set('t.forum_id', $flist) . ' AND t.topic_moved_id = 0 AND t.topic_approved = 1

Problem about permissions

Post by Nully »

Thanks a lot.
It works, I made a test :thumb:

[ask] install on subsilver2 style :)

Post by _Cis. »

My bad english :D
how to install on subsilver2 style?
I unpacking mod but it has not folder subsilver2 :shock:

[ask] install on subsilver2 style :)

Post by Stoker »

Only prosilver is supported.
But do a search here, maybe other users have made it available.

Forum shown in active topics

Post by Tenzel Kim »

I saw a post regarding the "Recent / Active topics" list on this forum so I hope this is the right place to ask.

I noticed that the "Recent / Active topics" on this board shows the name of the forum the topic was posted in as well as the name of the topic itself, which is something I'd really like to be able to do on one of my own boards. However, I haven't been able to find any help on this anywhere and this is the first place I can remeber that actually does show it.

So my question is if this is something that can easily be done and if so how? Is it something in the Top Stats mod that makes this happen or am I looking at the wrong mod? Would the part about adding the "forum" line be something that could be extracted from the mod and make it work in a regular phpbb subsilver2 skin for instance?

You see I would really like it to show the forum name in a column of its own in between the Author and Replies Columns in the subsilver2 skin.

I hope someone can help me or give me an idea where I might find what I'm looking for.

Forum shown in active topics

Post by Stoker »

Yes, its the top stats mod.
Search for the subsilver2 thing. I think someone has made it here.

active topics code

Post by martin123456 »

Mine

Image

Yours

Image

the fix

Yes, that is because you are using the Premod.
You will need to use this recent_active_body.html instead:

Code: Select all

<!-- Start Recent Active Topics -->
<div class="forumlist">
   <div class="forabg">
      <div class="inner"><span class="corners-top"><span></span></span>
      <ul class="topiclist">
         <li class="header">
            <dl class="icon">
               <dt>{L_RECENT_ACTIVE}</dt>
               <dd class="topics">{L_STATS}</dd>
               <dd class="lastpost"><span>{L_LAST_POST}</span></dd>
            </dl>
         </li>
      </ul>
      <!-- IF SCRIPT_NAME eq 'index' --><div class="portaltrigger portalactive"></div><!-- ENDIF -->
      <div class="collapsethis">
      <ul class="topiclist forums">
         <!-- BEGIN recent_active -->
         <li class="row">
         <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> {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>
         </li>
         <!-- END recent_active -->
      </ul>
      </div>
      <span class="corners-bottom"><span></span></span></div>
   </div>
</div>
<!-- End Recent Active Topics -->
that worked on 309

but on 3.10 it just gives a plain empty 5 RECENT ACTIVE TOPICS box