[ABD] WP Phpbb Unicorn - bridges

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
Locked
elawrenc
Registered User
Posts: 122
Joined: Thu Jul 21, 2011 2:41 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by elawrenc » Mon Sep 28, 2015 6:24 pm

I still cannot see the avatar but I think I have found the issue.

There are 2 paths for PHPBB avatars and that is indicated by the AVATAR_TYPE. See below:

switch ($avatar_type)
{
case AVATAR_UPLOAD:
$avatar_img = $phpbb_root_path . "download/file.$phpEx?avatar=";
break;

case AVATAR_GALLERY:
$avatar_img = $phpbb_root_path . $config['avatar_gallery_path'] . '/';
break;
}

I think putting similar code in your plugin will fix this issue?

My avatar is located in the GALLERY (second case) so my path will be different than someone who has uploaded their own avatar.

What do you think?

Wardormeur
Registered User
Posts: 142
Joined: Sun Jan 27, 2013 9:22 am

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by Wardormeur » Tue Sep 29, 2015 6:41 am

That's very likely it'll work.
The reason why i hardoded wastaht by using phpbb_get_user_avatar, the path as incorrect because based on the configuration "filepath", and not the configuration "url".
I'll try to fix it during the week

elawrenc
Registered User
Posts: 122
Joined: Thu Jul 21, 2011 2:41 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by elawrenc » Tue Sep 29, 2015 9:25 pm

I understand. I think as long as the avatar is there all is good. You're on the right path, so to speak.


I am happy to report that login/logout now stays on the BLOG page if you are using the widget so, nice work there!

The only time that I get kicked back to the FORUM is when I type an incorrect password but once I am logged in , I get re-directed back to the blog. So that seems to work well too.

Good work so far! It's coming along!

Wardormeur
Registered User
Posts: 142
Joined: Sun Jan 27, 2013 9:22 am

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by Wardormeur » Wed Sep 30, 2015 7:02 am

Updated the wp ext, to come update of the phpbb one with an extra I requiere ;)

defer
Registered User
Posts: 7
Joined: Sun Sep 20, 2015 3:34 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by defer » Wed Sep 30, 2015 9:25 am

Hello Wardormeur, then i will wait hopeful the updating of "PHPBB-WP-Unicorn".

Thanks
Derfer

elawrenc
Registered User
Posts: 122
Joined: Thu Jul 21, 2011 2:41 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by elawrenc » Wed Sep 30, 2015 5:30 pm

Avatar looks good!

:D

stockton88
Registered User
Posts: 27
Joined: Sun Apr 05, 2015 5:16 am

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by stockton88 » Fri Oct 02, 2015 2:51 pm

Does it work with Buddypress??

Wardormeur
Registered User
Posts: 142
Joined: Sun Jan 27, 2013 9:22 am

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by Wardormeur » Sat Oct 03, 2015 8:35 am

Never tried and not planned so far.
But feel free to give it a try and give some feedback :)

Wardormeur
Registered User
Posts: 142
Joined: Sun Jan 27, 2013 9:22 am

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by Wardormeur » Sat Oct 03, 2015 11:19 am

Update of user mapping will be done once
https://tracker.phpbb.com/browse/PHPBB3-14212
and
https://tracker.phpbb.com/browse/PHPBB3-14213
will be integrated

elawrenc
Registered User
Posts: 122
Joined: Thu Jul 21, 2011 2:41 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by elawrenc » Sat Oct 03, 2015 5:07 pm

OK.

I created a new user in my Forum, TestUser2 and I have logged in.

When I go to the blog, the new user is not created in the database. When I use the BLOG widget to attempt a login, I am redirected back to the FORUM, where I am still logged in.

defer
Registered User
Posts: 7
Joined: Sun Sep 20, 2015 3:34 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by defer » Sun Oct 04, 2015 2:21 pm

I tried the updated versions on my forum, but unfortunately it does not matter users.
When I try it the system returns a blank page. Checking the logs of phpbb is the following error:

[04-Oct-2015 14:17:01 UTC] PHP Fatal error: Call to undefined function get_bloginfo() in /home/qdksdrzx/public_html/wp-includes/pluggable.php on line 490

Wardormeur
Registered User
Posts: 142
Joined: Sun Jan 27, 2013 9:22 am

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by Wardormeur » Sun Oct 04, 2015 5:39 pm

@defer : what's your WP version?
This is supported since... long time ago?
https://codex.wordpress.org/Function_Reference/bloginfo

@elawrence : More info required: what did you change? Did you try to deactivate/reactivate the plugin to regenerate the cache?

elawrenc
Registered User
Posts: 122
Joined: Thu Jul 21, 2011 2:41 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by elawrenc » Sun Oct 04, 2015 8:55 pm

First:

I have the same error as Defer, when you check the Resynchronize Every User box, it will give this error:

Fatal error: Call to undefined function get_bloginfo() in /home/superfor/public_html/blog/wp-includes/pluggable.php on line 490


Second, I updated both plugins, and deactivated and re-activated. But when a new user navigates to the WP-BLOG from the FORUM, if that user is not in the WP database, he is not added.

Wardormeur
Registered User
Posts: 142
Joined: Sun Jan 27, 2013 9:22 am

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by Wardormeur » Sun Oct 04, 2015 11:37 pm

Strange for this pluggable issue, i really don't have it. Could you try to deactivate others plugins to see if there is not a conflict ?
Also, could you tell me your WP version, and eventually check your webserver logs? (apache, nginx, IIS..)
Can replicate the non-creation of the user, I'm working on it right now

Edit : found the issue for auto-creation will send a fix during the week. Reason was i filtered on "normal" user (not inactive), but considering there is no events atm to actually catch an user changing groups... This sounds pointless :)
I was using a script so far to create users, so it wasn't really , a real user
However still no clue for the pluggable issue..

Editbis : elawrenc : so that you understand, the user is supposed to be added to WP upon creation of phpbb's account, not by visiting the website ;)

elawrenc
Registered User
Posts: 122
Joined: Thu Jul 21, 2011 2:41 pm

Re: [ALPHA] WP Phpbb Unicorn - bridges

Post by elawrenc » Mon Oct 05, 2015 4:52 pm

Wardormeur wrote: Editbis : elawrenc : so that you understand, the user is supposed to be added to WP upon creation of phpbb's account, not by visiting the website ;)

Ah, ok :) I was used to the old WP-United plugin that created users in WP when they accessed the WP page. No problem.

My current WP is WordPress 4.3.1 I will have to check logs and disable plugins but that will take some time.

Locked

Return to “Abandoned Extensions”