1.7.2 patched to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissions"

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: 1.7.2 patched to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissions"

Re: 1.7.2 patched to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissi

by axew3 » Tue Jun 27, 2017 9:04 am

Ah ok! Il tuo Ita va molto bene invece! Sicuramente meglio del mio Inglese o Tedesco!

I'm going to check as soon, thank for your pm ...

As soon i can because i'm fighting with a theme setup for a site ... i've buy a theme for this site, but setting up the theme, i have fix already 4 bugs on code ...
I had hope that it was requiring me to lost less time to adjust all perfectly, instead, even build a slider, for example using revolution slider, require to me much more effort, than understand regular expressions :lol: ... really asking my self if was not better to use something from github, instead than a ready thing like rev slider.
but ok ...

Re: 1.7.2 patched to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissi

by anexity » Mon Jun 26, 2017 3:31 pm

Hey!
I'm sorry, I'm not that pro coder like you so I can't really help with the code :)
But I set a database baser user with read only permission up for you so that you can have a look inside the phpBB database if you want to. I'll send you a PM with the login credentials.
Btw. thank you so much for your work and time you put into this project, I appreciate that very much!

Regards,
anexity

P.S.: Io sono austriaco e il mio italiano è male ;)
I just finished my first italian language course and it's just enough so that I can order in a restaurant :D

Re: 1.7.2 patched to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissi

by axew3 » Sun Jun 25, 2017 8:45 pm

The code of this option has been patched because was returning php notice and relative html error on config page due to a not assigned var in correct way.
The code just take from a table the list of forums id which user's group belong.
So i think there is something maybe wrong on retrieving these values if there is a different forums permissions configurations.
It work fine on my localhost tests, but so i will check what can be wrong activating more options.
Unfortunately in this case looking to the installed forum not help to understand the problem, because there is no error on code, but in the query as is done in case, that retrieve forums ids for users. I should see the database, because normally, without looking code, it is my start: i try to understand what need to do, looking on how data are stored. So sometime maybe, my tests are not complete of all possibilities ...
Anybody experience the same problem?

Sei Italiano mi pare, e sai un migliore inglese anche ... linka comunque il sito e un account che può vedere almeno un forum nascosto, o che mi faccia vedere il risultato che tu riporti.

Re: 1.7.2 patched to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissi

by anexity » Sun Jun 25, 2017 12:20 am

Ciao Alessio!
Thank you for your fast bugfix.
Unfortunately I get the same error as described in the other topic. I downloaded both updated files "class.wp.w3all-phpbb.php" and "views/config.php", but the postings in the hidden forum is still displayed in the Last Posts Widget (tested with a guest user and a second WP/phpBB user without any permissions).
If you want I can send you a PM with the link to my site for a live demo.

Buonanotte!
anexity

1.7.2 patched to fix error on activating option "Retrieve posts on Last Topics Widget based on phpBB user's permissions"

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

Thank to @anexity report.

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.

Top