• Resolved ringgeist

    (@ringgeist)


    Hi,

    installed the plugin and everything works fine. Thanks for the good work!
    There is just one thing now I can´t fix.
    When I create a new user in WP, this user is also created in phpBB.
    After setting the right group for this user I have tested his login in phpBB.
    I have deactivated the English language pack and set German as default, but the new user still has English in the user interface, profile and user control panel.

    What wents wrong?

    Thanks and regards

Viewing 15 replies - 1 through 15 (of 20 total)
  • Plugin Author axew3

    (@axewww)

    nothing! We need to improve this aspect. Thank for your point. Go to put on fixes list before 1.7.0. Also as option x users transfer … i think it was set as Rome time when you transfer user … by default 🙂

    1.6.6 is coming today!

    Thread Starter ringgeist

    (@ringgeist)

    Thanks for your fast reply!
    Yes, standard time is also set to Rome.
    Good to know that you will plan to improve this. I am waiting for it to start with the consistent user transfer

    Plugin Author axew3

    (@axewww)

    It should be ready, really easy little hack … but i wonder someone could me explain this behavior, as before i have think it was done by some wrong setting on new code to update WP/phpBB langs, instead i see this is in WP a default behavior about language?

    I mean:

    if i set user lang in WP user profile, changing default English to, let say Italian, i see that My lang change only on my profile, but not on frontend.
    This i experience into my test so i’m asking my self:
    this is the correct WP behavior?
    There is another setting i should check (not think but maybe) to let users have also on frontend, language they choose?

    ah, yes you can expect strange stupid questions by me, you see? 🙂

    Plugin Author axew3

    (@axewww)

    well i see around if i’m not wrong, that is the correct WP behavior.
    If you like to have class.wp.w3all-phpbb.php ready for lang changes before next coming 1.6.7 just let know.

    • This reply was modified 9 years, 2 months ago by axew3.
    Thread Starter ringgeist

    (@ringgeist)

    You don´t have to apologize for your questions, they are helpfull and just needed to locate a problem. I am familiar with searching solutions for softare behaviour 😉
    So if it is no problem I really would like to test your changes – so you would also have a pre-release check.

    Thanks!

    Plugin Author axew3

    (@axewww)

    Ok! but my wrong behavior with releases until now, using to commit at same time both Trunk (development) and Current Version, that are always the same.

    Starting to commit changes into Development Version (svn)
    https://ww.wp.xz.cn/plugins/wp-w3all-phpbb-integration/developers/

    https://plugins.svn.ww.wp.xz.cn/wp-w3all-phpbb-integration/trunk/
    or direct complete zip:
    https://downloads.wp.xz.cn/plugin/wp-w3all-phpbb-integration.zip
    (may you know this better than me)
    class.wp.w3all-phpbb.php into trunk has been updated with code to
    lang update
    and
    no user re-addition in WP when deactivated into phpBB (maybe due to deletion of users into WP)

    Before 1.7.0 avatars functions need to check for hash password, and not usernames to speed up queries. It is very easy to change.

    I’m little stuck with iframe code at moment, because i can’t find out a way to send out the iframe messageCallback value to WP into page forum: would be nice to have it to update values via ajax (like when user look pm and count pm into top bar should update the count … i had think was more easy, maybe it is, i need to find out a while to look into better … any hint would be really appreciated, as well any other suggestion!

    Thread Starter ringgeist

    (@ringgeist)

    Maybe I am missing something, but I found no change at the latest dev release for the user language and time zone problem. I replaced the class.wp.w3all-phpbb.php with the one from your ZIP and the time stamp looks like it is really a newer version. Any further actions needed?

    Regarding your iframe problem… for that I am the wrong person I think… otherwise I would help you

    Plugin Author axew3

    (@axewww)

    code about languages do this:
    when user setup a different lang in WP profile, the same is setup in phpBB.
    So if you install lang italian for example in WP, users will have Italian and English as choose on profile. If they choose Ialian as language in WP, than the same is done into phpBB, that of course need to have lang italian installed (or default en will be used: both wp and phpBB do not return any error if a lang isn’t found, default eng by default will be used).
    So maybe you have not install respective languages in phpBB/WP?

    Plugin Author axew3

    (@axewww)

    i had to say should
    class.wp.w3all-phpbb.php has been just patched to not emit a warning due to wrong vars initialization. Now all should work fine and the code about this ready to be applied on next 1.6.7
    https://plugins.trac.ww.wp.xz.cn/browser/wp-w3all-phpbb-integration/trunk

    • This reply was modified 9 years, 2 months ago by axew3.
    Thread Starter ringgeist

    (@ringgeist)

    Hm, in WP “preferences – general” as values I have “Berlin” for timezone and “German” for language of the website. When I create a new user in his profile as language is set “website-preferences”. So in the normal way of thinking I would suggest, that the Default language for the user should be German and the timezone Berlin… But it isn´t, as you have just mentioned…. funny…
    So for correct language I have to set “German” manually for every user. Ok, this could be done. Just the timezone left, also when it is some more or less cosmetic Point 😉

    Plugin Author axew3

    (@axewww)

    not sure if i have understand well what you mean, but i will return over before release to be sure that the code as on fly test, work as expected.

    In WP default, ( if i’m not wrong, but often i’m wrong 🙂 ) there is no time setting to setup in user profile, the time setting used is the one that is setup for the site. This on a default WP.
    When you set language into WP profile, the value on db appear to be
    de_DE if you set German as language. Into phpBB user table it will be de.
    This the applied code do. Change language. Not time setting.

    Now, de_DE mean: de = language, DE = timezone

    WordPress has a site-level timezone setting configured from the admin back-end. All dates and times displayed on the front-end are typically displayed in this timezone.

    should not be so hard to apply a filter in WP to display instead date, based on user timezone, due to the above available.
    We could resolve this in short, without recurring to an external plugin.
    You mean this?

    • This reply was modified 9 years, 2 months ago by axew3.
    Thread Starter ringgeist

    (@ringgeist)

    ok, first let me explain what I have done in short:

    1. On WP preferences I have set the timezone to Berlin and the website language to German (Did this preferences right after setup of WP)

    2. Installed your plugin and activated the WP to phpBB user transfer. So this is working the whole time at the moment.

    3. Now I create a new user in WP. After that I open his user profile and change the value for language from “website-preference” to “German”
    => Question: At this point I don´t understand why I have to do this, because the site language is already set to default german?

    4. Login with the new user in phpBB. The language is now in german, but in the user profile I have the timezone “Europe/Rome”.
    => Question: It should be Europe/Berlin, why is it Europe/Rome?
    (It is not that I don´t like Rome, but you know ;))

    I hope it is now clear where I don´t understand the behaviour and where my questions are.

    Thanks for your patience!

    • This reply was modified 9 years, 2 months ago by ringgeist.
    Plugin Author axew3

    (@axewww)

    ahahah yes of course … you need to have patience with my eng also!
    just patched views/config.php to resolve a bug about undefined vars. No one report about this.

    Well, the topic title was about language, and i’ve not even consider the time zone!
    So i will patch the thing as soon, should not be hard.
    I will check any point above (very clear now) you mention and let you know here in reply when ready on trunk, so we can be sure it will work fine before release?
    best regards 😉

    Plugin Author axew3

    (@axewww)

    so i’ve just take a look into and file class.wp.w3all-phpbb.php
    https://plugins.trac.ww.wp.xz.cn/browser/wp-w3all-phpbb-integration/trunk
    has been patched to setup in phpBB the correct default lang of WP when user register on WP or switch lang on profile or is added by admin. Now should work fine.
    This about lang.

    While about timezone setting, the joke isn’t so easy due to the fact, i can’t find out how to associate this big array of 418 keys, that is the phpBB timezone complete list (or should, timezone may have not change on 3.2, as the world is the same until today) https://tracker.phpbb.com/browse/PHPBB3-13426 with WP timezone.
    You can imagine that to do manually this for 418 keys is not so comfortable, i refuse to do it!
    So i guess sometime to find out related array in WP and see if i can build in auto the correct switch. But i need the WP array about timezone which i do not know where to find it on WP code (nor in phpBB at moment but i’ve find it on page above).
    Anybody know how to trick into this?
    How i should associate each of 418 with WP timezone array?

    So about Europe Rome that is related to time setting, you can at moment change it manually opening class.wp.w3all-phpbb.php

    search for string:
    Europe/Rome
    you’ll see it is wrapped inside ” chars.
    So change it into ‘Europe/Berlin’ or in accord to timezone you need (maybe UTC).

    views/wp_w3all_users_to_phpbb.php has been also patched and now contain the code (that need to be uncommented) to transfer users with proper language.
    About Europe/Rome, do the same above changing it to what you may need.
    To transfer users each with his lang, remove /* and */ opening file
    views/wp_w3all_users_to_phpbb.php and searching for this code:

    /*
            $wpu_db_utab = $wpdb->prefix . 'usermeta';
    	      $wp_ulang = $wpdb->get_var("SELECT meta_value FROM $wpu_db_utab WHERE user_id = '$wpu->ID' AND meta_key = 'locale'");
    	   		if(empty($wp_ulang)){ // wp lang for this user ISO 639-1 Code. en_EN // en = Lang code _ EN = Country code
       		   $wp_lang_x_phpbb = 'en'; // no lang setting, assume en
       			} else { 
       				 $wp_lang_x_phpbb = strtolower(substr($wp_ulang, 0, strpos($wp_ulang, '_'))); // Lang code ISO Code that is phpBB suitable for this lang
       				}
    */
    • This reply was modified 9 years, 2 months ago by axew3.
    Plugin Author axew3

    (@axewww)

    p.s if not a complete array of all timezone possibilities, it is instead possible maybe to add an array that can be filled with any custom timezone setting.
    I mean an array with main languages, that an admin could have activated in WP admin.
    So if on WP admin languages active are 5 like, it, eng, fr, ru, de, for example, than the array will contain these 5 referrals to respective 5 timezones in phpBB.
    WP side result: all perfect.
    phpBB result: if choosed lang in WP have not a timezone available, the default en will be in the while setup for user into phpBB profile.

    I will look more about as i can.

Viewing 15 replies - 1 through 15 (of 20 total)

The topic ‘Language forum new user’ is closed to new replies.