ok going to patch in some way as soon maybe late in the night if possible!
(i was +- sure that this addition was maybe causing some problem somewhere)
1.8.1 phpBB WordPress released
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: 1.8.1 phpBB WordPress released
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?
db users table is the same of 3.1 then?
all working fine?
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: 1.8.1 phpBB WordPress released
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
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
- Alexvrs
- Posts: 4
- Joined: Fri Jan 12, 2018 6:13 pm
Re: 1.8.1 phpBB WordPress released
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);
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: 1.8.1 phpBB WordPress released
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 forum has a closed part only for registered users.
you refer to option: Retrieve posts on Last Topics Widget based on phpBB user's permissions?The corresponding setting to show the last posts to only registered users is activated.
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
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: 1.8.1 phpBB WordPress released
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.
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.