1.8.1 phpBB WordPress released

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.8.1 phpBB WordPress released

Re: 1.8.1 phpBB WordPress released

by axew3 » Mon Feb 19, 2018 5:29 pm

Important patch: fix x Localhost – Fix login fail – Fix domain name x iframe
https://wordpress.org/support/topic/imp ... -x-iframe/

Re: 1.8.1 phpBB WordPress released

by axew3 » Mon Feb 19, 2018 3:31 pm

I've after re-think to the possibility that if in not linked users mode, and posts to retrieve and display belongs to hidden forums, then nothing display maybe.
I will try out as i can, but asking to myself if you go to exclude these forums, to be retrieved, then all will work fine.
I will test as i can.

In the while 1.8.1 has been patched, because while testing some other code into a WP where the integration is installed, i've note that on localhost the cookie value isn't correctly setup on the page-forum.php for the iframed page.
So addons/page-forum.php
has been patched about this.

Re: 1.8.1 phpBB WordPress released

by axew3 » Sun Feb 18, 2018 4:58 pm

The forum has a closed part only for registered users.
i've not well understand this, so i assume something like: there are forums that need to display only for certain groups, but without linking users, nothing display?
The corresponding setting to show the last posts to only registered users is activated.
you refer to option: Retrieve posts on Last Topics Widget based on phpBB user's permissions?
I've try out in various ways (even if on test i've not setup any particular hidden forum in phpBB) and i've not been able at moment on fly to reproduce this bug.

About to display the number of new / unread post on the forum in the menu:
Yes! You can display any phpBB info retrieved by the query that get logged user's data. The query into class.wp.w3all-phpbb.php (verify_phpbb_credentials() function) retrieve data for the user by all these phpBB db tables:
users
sessions
groups
profile_fields_data
banlist

and could be added more if never needed. This is via php/sql.

For the iframe, any phpBB outputted var, also about template, can be passed to the WP iframed page via ajax, through the overall_footer.html code that need to be added for iframe, and that with easy can be modified to fire any phpBB event, which list (maybe partial) is here:
https://wiki.phpbb.com/Global_Template_Variables

Re: 1.8.1 phpBB WordPress released

by Alexvrs » Sun Feb 18, 2018 3:56 pm

axew3 wrote: Fri Feb 16, 2018 7:23 pm p.s sorry i read you're on phpBB 3.0.14 ...
db users table is the same of 3.1 then?
all working fine?
With users there are no problems, but there is another problem, I really do not use it, but when I tested it it did not work:

1. The list of recent post from the forum in the widget is not displayed (list empty). The forum has a closed part only for registered users.
2. The corresponding setting to show the last posts to only registered users is activated.
3. Frame is not used.
4. I also use the snipper code below to display the number of new / unread post on the forum in the menu WP and it works:

Code: Select all

  	$phpbb_unread_topics_count = 0;
	if (is_user_logged_in() ) {
   		if (defined("W3UNREADTOPICS")){
     		$phpbb_unread_topics = unserialize(W3UNREADTOPICS);
		  	$phpbb_unread_topics_count = sizeof($phpbb_unread_topics);
		}
	}
	$user = get_user_by('login', 'admin');
	$admin_id = $user->ID;
	$user = get_user_by('login', 'alexvrs');
	$alexvrs_id = $user->ID;
	$user = get_user_by('login', 'greg');
	$greg_id = $user->ID;
	$autors = $admin_id . ',' . $alexvrs_id . ',' . $greg_id;
  	$mnp_new_posts_count = mnp_new_posts_count('author=' . $autors);
Tnx

Re: 1.8.1 phpBB WordPress released

by axew3 » Sun Feb 18, 2018 10:49 am

Applied Patch to 1.8.1 to add option about activate or not Font Awesome lib for Last Topics Widget and Shortcode. Make in this way the integration without linking users, also suitable for phpBB versions 3.1 < where maybe font awesome was still not included by default. In any case, better because let choose to use or not Fontawesome for read/unread purpose.
Patched files:
wp_w3all.php
class.wp.w3all-phpbb.php
class.wp.w3all.widgets-phpbb.php
views/config.php, views/phpbb_last_topics.php
views/phpbb_last_topics_output_shortcode.php

Download here: https://plugins.trac.wordpress.org/brow ... tion/trunk

Re: 1.8.1 phpBB WordPress released

by axew3 » Fri Feb 16, 2018 7:23 pm

p.s sorry i read you're on phpBB 3.0.14 ...
db users table is the same of 3.1 then?
all working fine?

Top