Last Topics Widget: Don't show posts from hidden forums

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Last Topics Widget: Don't show posts from hidden forums

Re: Last Topics Widget: Don't show posts from hidden forums

by axew3 » Wed Jul 12, 2017 9:08 am

Maybe with the above fix?
and if possible let know!

Re: Last Topics Widget: Don't show posts from hidden forums

by Macko » Wed Jul 12, 2017 7:21 am

We also had this issue. Dev sorted it out, not sure how. Thanks.

Re: Last Topics Widget: Don't show posts from hidden forums

by axew3 » Mon Jul 10, 2017 1:57 pm

i'm just looking to code in short, before to add more little features (and maybe some buggy thing more :) )
so i've come over the code that have remind me this question.
If still tuned, could you please try out this into your test?
There is another chance but i guess this will resolve:

Open file class.wp.w3all-phpbb.php and search for this line of code

Code: Select all

   $topics_x_ugroup = "AND T.forum_id IN(".$gf.")";
REPLACE with this line:

Code: Select all

   $posts_x_ugroup = "AND P.forum_id IN(".$gf.")";
and if possible let know!

Re: Last Topics Widget: Don't show posts from hidden forums

by axew3 » Sat Jun 24, 2017 8:43 pm

patched views/config.php and class.wp.w3all-phpbb.php to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissions"
please download plugin and replace files, or better, download distinct files
class.wp.w3all-phpbb.php and
views/config.php from here
https://plugins.trac.wordpress.org/brow ... tion/trunk
and replace these two files on respective plugin's folders. All should work fine now.

Re: Last Topics Widget: Don't show posts from hidden forums

by axew3 » Sat Jun 24, 2017 5:15 pm

Hi, or to better say ciao!!
Thank for report i'll check this as soon!
I'll reply here when updated ... mh i was pretty sure it was working ... :cry: ehehe

Re: Last Topics Widget: Don't show posts from hidden forums

by anexity » Sat Jun 24, 2017 2:55 pm

Hello Alessio!
Thank you very much for implementing this option to the new version 1.7.2
The "exclude forums via ID" option is a good idea and works great, nevertheless I have some troubles with the second option "Retrieve posts on Last Topics Widget based on phpBB user's permissions". Posts in a forum where a user has no permissions are still shown in the Last Topics widget:

Example:
  • I have a forum "xyz" with subforums
  • I manage the permissions for this forum "xyz" + subforum with groups
  • Every group has the permission "No Access", only Global moderators and Admins have the permission "Full Access"
Yet still I can see the posting in the Last Post Widget, even when I log out and are only online as a guest user (cache is also emptied).
I could exlude the whole forum via ID from the widget but then users with the right permissions could also not see the last posts in the widget.

Grazie mille! :)

Top