WordPress.org

Ready to get started?Download WordPress

Forums

WP-United : phpBB WordPress Integration
WP-United forum permission roles are not saved in phpBB (36 posts)

  1. msebald
    Member
    Posted 1 year ago #

    Hello all,

    when I try to change the setting "Can post blog posts to this forum" from "no" to "yes" on any of the existing roles, it just does not work.

    The setting is back to "no" when I open the role settings again and take a look into it.

    Does anybody else have this problem?

    Cheers,
    Martin

    http://wordpress.org/extend/plugins/wp-united/

  2. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    It seems your phpBB permissions didn't get fully upgraded. You can trigger it again by visiting the wp-united settings page and clicking submit.

  3. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, I'm sorry, I think I misread your post this morning. this has nothing to do with an upgrade action.

    I just checked on a fresh install and the permission is fine. How are you changing it? The way to do it is:

    phpBB ACP -> Permissions tab -> Group forum permissions -> Select a group -> Select some forum(s) -> submit

    Then for each forum you selected:
    Advanced permissions -> WP-United tab -> Can post blog posts to this forum (Yes)

    Then apply permissions (or apply all permissions if you were changing for multiple forums).

    Works for me.

    Is that what you were doing? If it is still not working, did you apply any MODs to phpBB that could be breaking the ACP permissions page?

  4. msebald
    Member
    Posted 1 year ago #

    Hi and thanks for the reply.

    First of all, I am using phpBB in German language, so my translations back to English might not be precise.

    I just tried what you were suggesting. The thing is, I see a WP-United tab for forum roles, which also is a good point to put the WP-United permission into. I created a new forum role from a standard one and just want to add this one WP-United permission.

    But I do not see the WP-United tab in the Advanced permissions for a user group and a specific forum, as you described above.

    But why? I installed the MOD with AutoMOD and everything ran through without any notice of a problem. BTW: I am running the nightly build as you suggested because of the special path I wanted to choose to get outside the vhost.

    Yes, I do have other MODs running:
    Forum Runner
    GeoMap
    Share Topic
    Tapatalk
    Thanks for posts
    phpBB Gallery

    But I do not see a problem here with the permission system of phpBB.

    Cheers

  5. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    You might want to try the latest download from this site -- I released v0.9.2.0 yesterday, which is the most recent, and is synced with the nightly. The nightly package from 1 - 2 days ago was when all the new permissions code hit, so will probably have some problems.

  6. msebald
    Member
    Posted 1 year ago #

    Ah cool. Ok, just installed in WP and phpBB. :-)

    And yeah, I was able to set the permission "Can post blog posts to this forum" to "yes" and it was saved in my newly forum role.

    I see a second permission now, "Can reply to blog posts cross-posted to this forum from WordPress". Seems to be new as it is not translated to German, yet.

    I cannot set this permission to "yes". Same problem as described in my first post of this thread.

    Hm...

    Cheers

  7. msebald
    Member
    Posted 1 year ago #

    BTW: My goal is to have a read only forum for users where the blog posts appear. Replying should be done in the blog, also I do not need the replys from the blog in the forum threads.

    So I created a forum and set the permission for registered users via forum role to read only plus permission to post a blog post there.

    In WP I activated cross-posting, whole article and set the forum where blog articles are forced in as a forum post.

    Sounds correct?

    I do not understand the setting "phpBB manages comments" (or something like this). The German explanation sounds weird (I also noticed that there are many spelling errors and typos in the German translation - must be done in a hurry) and I do not understand what is meant.

    BTW 2: Is there any information if/when a blog article is crossposted or if this did not work because of wrong permissions? I posted something in the blog yesterday night and it just did not appear in the forum - well, the settings were not correct, but I did not see any error report.

    BTW 3: Can I somehow post the already existing articles to the forum with matching date/time?

  8. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    After updating you might want to hit "submit" in wp-united settings again, as it seems you had a pretty much latest nightly package, so it won't think to auto-upgrade you. Hitting "submit" should do it.

    Hopefully the new permission will then start working.

    For the cross-posting, I suggest you test it first with the "force all..." option turned off. Then you will get a box for you to choose cross-posting when writing the post. That should give you more feedback as to what is working. Make sure you can write posts normally in that forum too, in addition to adding the WP-United cross-posting permission.

    The "phpBB manages comments" means that after you post the cross-post, any replies to the post in the forum will be treated as WordPress comments. And any comments posted on the WordPress comment form would be stored in the forum. This setting applies to all cross-posts. It sounds like you don't need this.

    If I remember correctly, cross-posting existing articles should send them to the forum with the published date, not the current date. But it has been a long time since I tested it -- please have a try.

    For the German translation, please do contribute any fixes you find; it's a collaborative effort. You can enter the changes online. I then download the latest translation and include it in the package for the subsequent release. Info on how to do that is here: http://www.wp-united.com/2012/12/12/how-to-help-translate-wp-united/

  9. msebald
    Member
    Posted 1 year ago #

    The "submit" button did not help. Still no effect when I try to turn "Can reply to blog posts cross-posted to this forum from WordPress" on. :-(

    To the rest, I will reply later. But thank you already! :-)

  10. msebald
    Member
    Posted 1 year ago #

    Ok, cross-posting of old articles works with the original date. One hour time difference, most likely because of winter and summer time maybe?

    But I have to approve the new topics first, did not find out why, yet. All three test articles from the blog were mine and I am admin on both sides, WP and phpBB. I found something about approval in the permission settings of phpBB, but this is also not turned on for normal users.

  11. msebald
    Member
    Posted 1 year ago #

    Thank you about the information about "phpBB manages comments". Sounds interesting after all, I will turn it on. ;-) What happens, if guests post comments on WP? Under what user accounts are these comments crossposted to phpBB?

    Translation: Ah, it is that easy with WP-United? Great. I will contribute here, maybe starting in the evening. ;-) Thanks for bringing this up to me.

  12. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    I'm glad the cross-post date still works -- I can look into the DST problem.

    Approval suggests to me that either your user isn't integrated as you think, or it is integrated but not being logged in in phpBB while you are in the WordPress admin.

    For the first possibility: Check the WP-United user mapper to ensure your wordpress user is mapped to the correct phpBB user, and then check in phpBB that you are logged in correctly as this user.

    If you had user auto-create turned on from the outset, WP-United probably created a new user for your wordpress user before you had the chance to map together existing accounts. If that is the case, then turn off user auto-create, then visit the user mapper and clean things up, mapping together existing accounts in phpBB and WordPress until things look good (you only need to worry about pre-existing accounts that exist in BOTH WordPress and phpBB -- they should be mapped together. Everyone else can get auto-created counterparts.)

    When everything is clean in the user mapper, then you can turn back on auto-create and make sure that permissions are mapped correcty so that future users are auto-created properly.

    If your user is mapped properly, then I'd consider the second possibility: phpBB may not have considered you to be logged in properly at the time you posted. WP-United should be handling that for you -- the first place to look in that instance would be at your phpBB cookie settings -- ensure the server and path settings cover your entire site, including the WordPress admin.

    ---

    I'm not sure why that permissions setting wouldn't be retained, I've never met this issue. As far as I understand, if the permissions showing up in the panel, it's in your auth_acl_options table which is enough -- You're looking at the permissions for specific forums, right? And clicking the apply button at the bottom of the screen? If the problem persists I can come on and take a look at your setup.

    Cross-posted comments are managed by the phpBB WP-United permission. So if a user has that, they can comment in WordPress, even if the normal phpBB guest posting permissions are disabled for that forum. Their username will appear as whatever they typed in in the WordPress form, with characters appended to it if it matches an existing phpBB username. WP-United can also pass the comment through e.g. Akismet, which is obviously recommended.

    Thank you in advance with help with the translation!

  13. msebald
    Member
    Posted 1 year ago #

    Ok, I integrated my user again and also a second user. And tried to crosspost another old article by saving it again in WP. Same thing, approval awaiting.

    I noticed that the article I saved again from the other user was crossposted by my user. Not good. Can't be changed that it gets crossposted by the original user?

    You write that both linked users need to be logged on the same time. Yes, they are. But maybe you remember that my setup is kind of special. I run WP and phpBB on two different domains and vhosts. So single logon does not work here. Is this maybe the reason for all of this? If yes, there is no workaround at the moment for new blog articles? What about the comment crossposting?

    Sounds great what you write about comment crossposting for guest comments. :-) Can't wait to see this live! :-)

    What about comments from the old existing articles? Do they find their way into phpBB as well after I crossposted these articles as described above?

    This permission not saving thing is really weird. I try to change something I would translate from German to English as "forum roles". And these forum roles I apply to a user group (e.g. registered users) and a specific forum. I am not a frient to setup something unique for a thing (user, forum...), so I alway like to have something like groups or roles.

    If you like, you can take a look into our installation, talking about this issue with the rights I cannot save in phpBB ACP. Maybe this is a bug - or could it be related to my special two domain setup? In the case you like to take a look we should continue via email, at least for user credentials for our setup.

  14. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Ah, yes. I'd forgotten about that....

    Everything is predicated on your rights in phpBB., and handled natively by its own auth functions wherever possible (otherwise WP-United would be huge). So you really need single sign-on working and that cookie domain to match...

  15. msebald
    Member
    Posted 1 year ago #

    Yeah I see. So I cannot expect the approve thing to work in my setup. I can get along with that.

    But what about the permission thing I cannot set in phpBB? I do not think that this is related to my setup here.

    And can you tell me what happens to old comments in the blog articles I just crossposted by hand? Do they appear automaticly or have/can I do something by hand?

    BTW: I noticed that every time I integrate my user the WYSIWYG option in the user profile (warning about killing PHP code) is turned off (and the message on) again.

  16. msebald
    Member
    Posted 1 year ago #

    Are you still with me?

    I know now that not everything will work with my setup. But it would be great to have the things working which should work, like the permissions in phpBB.

    Can you help me with that?

    I have another problem. When I try to edit an article, I get the following when saving the article:

    "You do not have the permission required to edit posts in this forum"

    Most likely related. Is there something I can do about this? Or you? Maybe you could add a flag to not edit the post in phpBB?

    BTW: I started on editing the German translation. Still lots of things to do, but I already changed and added stuff.

  17. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Sorry for the delay.

    There is a bug with v0.9.2.1 -- the local forum permission didn't get added unless you had upgraded via v0.9.2.0. However I think you did go via 0.9.2.0? If not, see here for a resolution: http://www.wp-united.com/viewtopic.php?f=14&t=3419&p=13737&sid=4ac7084e249af71ec3983dafd3870076#p13737

    Make sure you are applying the local permission -- I had toyed with the idea of adding a global one, but in retrospect it was a mistake and I removed in in v0.9.2.1

    ----

    All the cross-posting permissions are predicated on phpBB permissions. So when you initially cross-post, or edit a post that is cross-posted, WP-United asks phpBB "does this user have permissions to do that? Do they have the cross-posting permission, and can they normally do this in that forum". It's all native phpBB. if phpBB doesn't think you're logged in, then the answer will be "no".

    So working user integration and single sign-on is a pretty basic requirement. Despite not having a valid auth cookie, you should still be considered logged in -- WP-United will just have to override phPBB's logged out status on every page. This should be happening. If you turn on WPU_DEBUG in wp-united/options.php, you should see q whole bunch of information about the login flow -- that you were initially considered logged out of phpBB and what WP-United did about it.

  18. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    BTW, thanks very much for helping with the German translation.

    The translations are all done collaboratively on launchpad.net: https://translations.launchpad.net/wp-united

    What is there may be newer than what is in the download package.

    More details on translation are here: http://www.wp-united.com/2012/12/12/how-to-help-translate-wp-united/

  19. msebald
    Member
    Posted 1 year ago #

    I just tried to install the newest WP-United. The MapPress plugin seems to have problems with it:

    Non-static method Mappress_Map::register() should not be called statically, assuming $this from incompatible context

    I cannot login anymore to the backend. More later, I first need to cleanup the mess here...

  20. msebald
    Member
    Posted 1 year ago #

    Hm, I just disabled MapPress again and the next plugin is not happy with something.

    call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically

    I would say, WP-United is causing that. Because after disabling it, everything is fine again.

    Please help! ;-)

  21. msebald
    Member
    Posted 1 year ago #

    Ok, now I need to wait until you reply. Cannot test anything.

    Most likely I will work a bit on the German translation here. As I said, I got started and changed some translations and added some new ones. Keep you posted.

    Hopefully you can tell me what I can do to get WP-United back up and running.

  22. livesteezy
    Member
    Posted 1 year ago #

    Hm, I just disabled MapPress again and the next plugin is not happy with something.

    call_user_func_array() expects parameter 1 to be a valid callback, non-static method GoogleSitemapGeneratorLoader::Enable() should not be called statically

    I would say, WP-United is causing that. Because after disabling it, everything is fine again.

    Please help! ;-)

    Same thing here.. I just downgraded back tot he previous version (or the version before that) to solve it

  23. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the inconvenience. I will take a look and get back to you soon.

  24. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    So far, I'm not able to duplicate these errors.

    I believe I am accidentally making WP-United catch errors in all plugins. If you change the following line in wp-united/context-switcher.php:

    $this->restore_phpbb_err_handler();

    to:

    restore_error_handler();

    Do the problems go away?

  25. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Apologies, that line is in phpbb.php.

  26. msebald
    Member
    Posted 1 year ago #

    Works! Great, thanks! :-)

    Also the second permission in phpBB which I was not able to set.

    I cannot test more as I am on appointments the whole day. Will be back asap with more.

  27. msebald
    Member
    Posted 1 year ago #

    I want to come back to my setup a bit. Maybe you have a clue for me how I can get this running 100% for me.

    Our setup:
    WordPress: http://www.blog-domain.com
    phpBB: http://www.forum-domain.com
    Two different vhosts with different users.

    I copied the whole phpBB to http://www.blog-domain.com/phpbb/ and entered this path in the WP-United configuration on WordPress. WP-United inside WordPress is happy and shows no errors at all. Also I do not notice any other errors.

    Issues:
    1) Single logon does not work - sure, the cookies can not match as I run two domains.
    2) Crossposting blog articles to phpBB works, but I have to approve those articles in phpBB first before they get published there.
    3) If I enable "phpBB manages comments" I do not see the comment box or links on the WordPress frontend pages anymore.
    4) If I edit an article I get "You do not have the permission required to edit posts in this forum" error on WordPress backend.
    5) I do not see any old article comments in the phpBB threads which were created when crossposting an article.

    Can I solve some of those things without changing my setup? The two domains are set because of some reasons and it will stay that way.

    I cannot enter more than one cookie domain into WordPress and/or phpBB so that cookies become valid for the two domains, right?

    You suggested some debug tests before upgrading here to the newest version. Which of those things do still make sense?

    Thanks and cheers,
    Martin

  28. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Actually, 4,3 and 2 all fit logically together. They are all trying to resolve phpBB permissions. phpBB needs to think you are signed in.

    However, you should have phpBB permissions, despite single sign-on not working. If you are logged in to WordPress, you should be logged in to phpBB. That won't be remembered on each page load, or when you subsequently visit phpBB, but you know that.

    If you tuen on WPU_DEBUG in wp-united/options.php, you will see a purple debug box at the bottom of the page. Take a look while logged in to WordPress admin -- it will explain its thought process to you and you will see if you are being logged in to phpBB -- and if not, why not.

  29. msebald
    Member
    Posted 1 year ago #

    I got:

    DEBUG
    WP Version = 3.4.2
    Integrate users hook called.
    User integration active.
    WP already logged in, phpBB logged out.
    Logging in to integrated phpBB account, user ID = 2.
    Established Session for user 2.

    As you can see, I am not logged into phpBB (in the eyes of WP-United). hm...

    Sure, that not really working single login explains it and I can / have to just deal with some of these issue.

    But could you put in a checkbox in settings where I can choose to edit or not edit the post on phpBB when editing the article in WordPress? Because this issue is really annoying here.

  30. jhong
    Member
    Plugin Author

    Posted 1 year ago #

    No, it sees you are logged out and logs you in successfully. From that point on you should be able to act as an Integrated. user.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic