3.2.x Extensions Database 3.2 / 3.3 ⇒ Top Stats 3.2.x
-
kraminoft
- Users

- Posts: 5
- Joined: 30 Aug 2017, 20:50
Re: Top Stats 3.2.x
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!
How can I block multiple forums Of the visibility list ,for example: forum id 1,2,3,4 etc..
Sorry for my bad english!
-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Top Stats 3.2.x
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.

-
kraminoft
- Users

- Posts: 5
- Joined: 30 Aug 2017, 20:50
Re: Top Stats 3.2.x
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.-!
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.-!
-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Top Stats 3.2.x
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.
-
ZippeL
- Users

- Posts: 20
- Joined: 20 Aug 2016, 06:37
Re: Top Stats 3.2.x
Moved posts are showed as both new topics. 
In listener.php check sql querry in // Recent Active Topics section
add part of: AND t.topic_moved_id LIKE 0
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';-
seacoast
- Users

- Posts: 159
- Joined: 28 Aug 2017, 19:58
Re: Top Stats 3.2.x
Just wondering how I can make the recent active topics box taller to hold more topics.
Thank you.
Thank you.
-
Sniper_E
- VIP

- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Top Stats 3.2.x
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.
Increase the "Number of Recent Active Topics displayed." to a higher number and see what happens.
-
seacoast
- Users

- Posts: 159
- Joined: 28 Aug 2017, 19:58
Re: Top Stats 3.2.x
I did increase it from 5 to 10. It still shows only 2.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.
-
martin
- Admin

- Posts: 5105
- Joined: 06 Apr 2014, 16:12
Re: Top Stats 3.2.x
By default it shows 3 rows and will scroll the number you set in acp.
-
seacoast
- Users

- Posts: 159
- Joined: 28 Aug 2017, 19:58
Re: Top Stats 3.2.x
Yes, but I'd like to make it perhaps 4 or 5. It's only showing two right now probably because of my style.martin wrote: 02 Nov 2017, 11:37 By default it shows 3 rows and will scroll the number you set in acp.
-
Sniper_E
- VIP

- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Top Stats 3.2.x
Or maybe you only have 2 topics that are active. 
-
Sniper_E
- VIP

- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Top Stats 3.2.x
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 ]
Edit:
I just looked and you have 7 pages. That can't be right. 7 pages?
[ Post made via Samsung Galaxy S5 Active ]

-
seacoast
- Users

- Posts: 159
- Joined: 28 Aug 2017, 19:58
Re: Top Stats 3.2.x
I'm not sure where you're looking. Where is the 7 pages?
-
Sniper_E
- VIP

- Posts: 1157
- Joined: 14 Oct 2014, 19:01
Re: Top Stats 3.2.x
Quick links in header navbar, choose active topics.
[ Post made via Samsung Galaxy S5 Active ]
[ Post made via Samsung Galaxy S5 Active ]

