3.2.x Extensions Database 3.2 / 3.3Top Stats 3.2.x

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
User avatar

kraminoft
Users
Users
Posts: 5
Joined: 30 Aug 2017, 20:50
    Windows 10 Chrome

Re: Top Stats 3.2.x

Post by kraminoft »

Greetings,

How can I block multiple forums Of the visibility list ,for example: forum id 1,2,3,4 etc..

Sorry for my bad english!

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Top Stats 3.2.x

Post by martin »

As founder/admin your see all forums your users will only see what there allowed to see so if you dont allow them to see on the forum then they wont see it in the ext.
Image

User avatar

kraminoft
Users
Users
Posts: 5
Joined: 30 Aug 2017, 20:50
    Windows 10 Chrome

Re: Top Stats 3.2.x

Post by kraminoft »

Hi thanks for the answer But that was not what I was looking for

Luckily I could already modify the php code and I worked as I wanted, I leave the solution in case someone needs it, greetings!


Edit: listener.php, search: $ flist = array_merge ($ flist, array (0)); And below paste:

Foreach ($ flist as $ key => $ values)
If ($ values ​​== 9 || $ values ​​== 10 || $ values ​​== 22 || $ values ​​== 23 || $ values ​​== 24 || $ values == 25 || $ values ​​== 26 | | $ Values ​​== 27 || $ values ​​== 13 || $ values ​​== 14 || $ values ​​== 15 | $ Values ​​== 17 || $ values ​​== 18 || $ values ​​== 19 || $ Values ​​== 16 || $ values ​​== 20)
Unset ($ flist [$ key]);


Change $ values ​​== by the forum id to hide


sorry for my bad english =)

PD: CONGRATULATIONS FOR THIS FORUM, IT'S SO GOOD


-------------------------------------------------------------------------------------

Contenido original sin traducción ,por si alguien no entiende que escribí arriba o quiere editarlo para que se entienda mejor en ingles xD

Lo que yo queria no era ocultar los foros completos sino hacer que no se vea en el visor de los ultimos 5 topics

para hacer eso la solución que encontré fue editando el listener.php

buscamos : $flist = array_merge($flist, array(0)); y abajo pegamos el siguiente codigo:

foreach ($flist as $key => $values)
if($values == 9 || $values == 10 || $values == 22 || $values == 23 || $values == 24 || $values == 25 || $values == 26 || $values == 27 || $values == 13 || $values == 14 || $values == 15 || $values == 17 || $values == 18 || $values == 19 || $values == 16 || $values == 20 )
unset($flist[$key]);

como se puede ver cada numero representa la ID de los foro que yo bloquee! Si ustedes quieren ocultar menos simplemente borran los values ej . $values == 27 ||

Espero que se entienda ,saludos.-!

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Top Stats 3.2.x

Post by martin »

Dont understand why you want to block certain forums from showing ? as i said YOU will see all forums but other members will only see what you allow them to see via there forum permissions there is no need to edit the ext.

User avatar

ZippeL
Users
Users
Posts: 20
Joined: 20 Aug 2016, 06:37
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by ZippeL »

Moved posts are showed as both new topics. :eyes2:

In listener.php check sql querry in // Recent Active Topics section
add part of: AND t.topic_moved_id LIKE 0

Code: Select all

$sql = 'SELECT t.forum_id, t.topic_id, t.topic_moved_id, t.topic_title, t.topic_time, t.topic_views, t.topic_poster, t.topic_posts_approved, t.topic_first_poster_name, t.topic_first_poster_colour, t.topic_last_post_id, t.topic_last_poster_name, t.topic_last_poster_colour, t.topic_last_post_time, t.topic_last_view_time, t.topic_last_poster_id, f.forum_name, f.forum_image
FROM ' . TOPICS_TABLE . ' t LEFT JOIN ' . FORUMS_TABLE . ' f ON (t.forum_id = f.forum_id) WHERE ' . $this->db->sql_in_set('t.forum_id', $flist) . '
AND ' . $this->content_visibility->get_visibility_sql('topic', 't.') . ' AND t.topic_moved_id LIKE 0
ORDER BY t.topic_last_post_time DESC';

User avatar

seacoast
Users
Users
Posts: 159
Joined: 28 Aug 2017, 19:58
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by seacoast »

Just wondering how I can make the recent active topics box taller to hold more topics.
Thank you.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by Sniper_E »

That should depend on your setting in the ACP/Extensions/Top Stats/Configuration

Increase the "Number of Recent Active Topics displayed." to a higher number and see what happens.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

seacoast
Users
Users
Posts: 159
Joined: 28 Aug 2017, 19:58
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by seacoast »

Sniper_E wrote: 01 Nov 2017, 02:36 That should depend on your setting in the ACP/Extensions/Top Stats/Configuration

Increase the "Number of Recent Active Topics displayed." to a higher number and see what happens.
I did increase it from 5 to 10. It still shows only 2. :???:

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Ubuntu Chrome

Re: Top Stats 3.2.x

Post by martin »

By default it shows 3 rows and will scroll the number you set in acp.

User avatar

seacoast
Users
Users
Posts: 159
Joined: 28 Aug 2017, 19:58
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by seacoast »

martin wrote: 02 Nov 2017, 11:37 By default it shows 3 rows and will scroll the number you set in acp.
Yes, but I'd like to make it perhaps 4 or 5. It's only showing two right now probably because of my style.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by Sniper_E »

Or maybe you only have 2 topics that are active. :eyes2:

User avatar

seacoast
Users
Users
Posts: 159
Joined: 28 Aug 2017, 19:58
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by seacoast »

Sniper_E wrote: 03 Nov 2017, 22:35 Or maybe you only have 2 topics that are active. :eyes2:
:lol: No, there are more than 2.

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Android Chrome

Re: Top Stats 3.2.x

Post by Sniper_E »

How many do you have? I clicked quick links / active topics here and dm has only 13 active topics. Have you checked there at your place to see if more that 2 topics are active? Look and verify that.

Edit:
I just looked and you have 7 pages. That can't be right. 7 pages?

[ Post made via Samsung Galaxy S5 Active ] Image

User avatar

seacoast
Users
Users
Posts: 159
Joined: 28 Aug 2017, 19:58
    Windows 10 Firefox

Re: Top Stats 3.2.x

Post by seacoast »

I'm not sure where you're looking. Where is the 7 pages?

User avatar

Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Android Chrome

Re: Top Stats 3.2.x

Post by Sniper_E »

Quick links in header navbar, choose active topics.

[ Post made via Samsung Galaxy S5 Active ] Image

Post Reply Previous topicNext topic