Switch WP user to specified Group in phpBB, when Role updated in WordPress and vice versa

WP_w3all phpBB integration 2.6.8> option

Read all the follow before to activate the option

Basic default WP Roles and phpBB groups switches will work as follow by default, if no custom file provided:

When an admin in WordPress update an user Role, or Role change due to user’s subscriptions:

Editor in WP or Woocommerce Shop Manager, will be added into the Global Moderator group as primary group in phpBB, the previous primary user’s group membership will be removed.
Author, Contributor or Subscriber or Woocommerce customer, will be added into the Registered group in phpBB, the previous primary group membership will be removed.
Administrator in WP will be set as Administrator in phpBB (not with all founder’s powers), the previous primary user’s group membership will be removed. The User with No role in WP will be deactivated in phpBB.

When an user change/update group in phpBB:

If belong as default group to the Registered phpBB group, will be updated in WP to Subscriber and the previous primary Role removed.

If belong as default group to the Global Moderators phpBB group, will updated in WP to Editor and the previous primary Role removed.

Administrators in this case are not considered by default. But you can activate the code about, into

the file wp-content/plugins/wp-w3all-phpbb-integration/common/wpRoles_phpbbGroups.php . It contain the code that can be customized as more like to get complex WP Roles and phpBB Groups switches. It already contain basic code example and basic hints. Advanced wp coders will find out that’s quite easy to write owns code snippets and achieve any kind of complex Roles/Groups switches.

How i can customize the file wpRoles_phpbbGroups.php expecting that when the integration plugin will update, modifications done into this file aren’t lost?

Create a folder (if you did not it already, activating the custom /views files option) named wp-w3all-custom inside the folder /wp-content/plugins/ so you’ll have /wp-content/plugins/wp-w3all-custom/

copy the file /wp-content/plugins/wp-w3all-phpbb-integration/common/wpRoles_phpbbGroups.php

and paste it inside the created folder, so you’ll have /wp-content/plugins/wp-w3all-custom/wpRoles_phpbbGroups.php

Custom files inside this folder, are not overwritten when the plugin will be updated (like all the custom views files).

Note that the option Use custom files to display Last Topics Widgets, Login Widget and Shortcodes do not affect this. If the custom file /wp-content/plugins/wp-w3all-custom/wpRoles_phpbbGroups.php exist, it will be included, even if the Use custom files to display Last Topics Widgets, Login Widget and Shortcodes option is set to No.

Advanced and common hints

Where the wpRoles_phpbbGroups.php file is included?

About an Admin that update an user role (the update will be synchronous)

Open: /wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php

search for:

inside

public static function phpbb_update_profile($user_id, $old_user_data) {

About a current WP logged in user updates (the update will be asynchronous)

an user that changed Group in phpBB side** and that so will be updated to the related WP Role when as logged in will visit WordPress, search for:

into /wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php

inside the function verify_phpbb_credentials()

About Memberpress or others external memberships plugins:

Remember: this is a WP plugin, it run ONLY in WP side! So it has been defined synchronous the Role update when done in WP side updating an user profile. In this case the update occur at same time in phpBB. It is asynchronous when the WP role change due to some other reason, for example due to some Role update that fire on the background, after a subscribed membership or something else, but the affected user is not currently logged in into WordPress.

It is also asynchronous if the user change profile’s data in phpBB, because until the same user will not visit the WP side as logged, no code will run to update his Role in WP.

Read more inline hints into the file wpRoles_phpbbGroups.php

Could be all synchronous? Yes, the result can be achieved in several ways, for any configuration or/and plugin/extension installed.

Shortcode: phpBB notifications into WordPress

WP_w3all phpBB WordPress 2.6.6 >

WP_w3all phpBB notifications into WordPress shortcode version 1.0

check all others shortcodes listed under the “common how” to section

The w3all_phpbb_unotifications shortcode display *phpBB notifications like phpBB do. The file that can be styled as more like and that display results is:

/wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_unotifications_short.php

Add the attribute class for ul and li elements, using shortcode attributes ul_phpbb_unotifications_class="myclass" and li_phpbb_unotifications_class="myotherclass"

*Note that to get resultsthe phpBB user have to setup/activate into his User Control Panel, under Board preferences Tab -> Edit notification options option, the notifications types he want to see.

Note also that once a phpBB user visit the

Board index -> User Control Panel -> Overview -> Manage notifications

page, the $phpbb_user_session[0]->user_new_privmsg var become 0. So PMs notifications are not retrieved anymore for the user (until there is not a new PM).

The file /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_unotifications_short.php can be copied into the folder /wp-content/plugins/wp-w3all-custom/ and activating the option Use custom files to display Last Topics Widgets, Login Widget and Shortcodes so that custom modifications done into the file aren’t overwritten when the plugin will be updated.

All default phpBB (3.3>) notifications types that can be expected will be retrieved:

Since 2.6.9 > added option:
Only get the total notifications count, of any type, default phpBB and customs types created by extensions

If selected, then just use echo $w3all_phpbb_unotifications; in this case, to display the number of unread notifications, declaring it as global, into any Php template or (maybe) some other plugin.

The (awesome) iframe template integration using shortcode

WordPress phpBB template integration

check all others shortcodes listed under the “common how to” section

NOTE that required settings of this shortcode resides under the WP_w3all Preferences menu

To use the w3allphpbbiframe shortcode it is required to apply into the phpBB template files overall_header.html and overall_footer.html the same javascript code and procedure as it is for the page-forum:

phpBB WordPress template integration iframe

then use like this:

wp_page_name param refer to the page/post name/slug where the shortcode will be added (see hint below about this param if omitted*)

wp_page_iframe_top_gap param refer to (in pixel) the position where the WP parent page will scroll to by default. If omitted value will be 0

url_push (since 2.5.9>) param if omitted is set to YES, that mean when links are clicked into the phpBB iframed, the URL will be pushed into the browser’s address bar. If you want to avoid this behavior, use/add this param like this into the shortcode: url_push="no"

note that the URL push is ever avoided when the shortcode is used into the homepage and should in several more conditions. In short words, in all these situations where, when if the URL is pushed into the parent address bar, it cause/lead to a WordPress page NOT found, in the case there is an intentionally browser’s page reload (because the pushed URL is an URL that WP will not found)

phpbb_default_url (since 2.5.7>) param (that can be omitted) refer to any phpBB URL where the iframe will be opened by default, so the above become something like this, if for example we want to display into a WP post the phpBB, that should open by default into a precise forum topic/post/page:

but it can be any other phpBB link like the ucp page used into another etc

it is possible to use multiple shortcode(s) into different contests/pages/posts

It is mandatory to set WP page-names where the shortcode will be added, into related shortcode option field on plugin admin page, or the shortcode will not fire

security_token (since 2.5.9>) param (that can be omitted) refer to a secret token that can be used to restrict the use of the iframe shortcode only to certain users, when there are more roles allowed to create posts or pages. If this option is set (not empty) the shortcode will be parsed only when the token exist and will match. To add the security secret token into the iframe shortcodes, add it like this:

security_token="MySecretToken"

assuming that into related option field on plugin admin, MySecretToken is the token that had set

scroll_default (since 2.6.0>) param if omitted is set to YES by default. To avoid the page scroll behavior set it to no:

scroll_default="no"

To edit some css/html output or something else if required, relevant files to look into are:

/wp-content/plugins/wp-w3all-phpbb-integration/common/wp_phpbb_iframe_shortcode.php

/wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php

*Note wp_page_name: if using Plain permalinks, for example the page name for a post would be p=45 or if it is a page page_id=12

*Note also that the shortcode param wp_page_namecan be omitted if you created page-forum using the (other way) page-forum available iframe template integration: so that the loaded URL into the browser’s address bar when links clicked into iframe, will be the one set into the overall_header.html and overall_footer.html js added code (that so may point to another post or page where another shortcode has been added, or to the default page-forum if created using related option on plugin admin)

Note important: if the iframe do not display and you get mixed insecure content on console, you have to fix it doing this:

open your WP header.php template file, and may just after others header meta tags add the follow:

That’s all here, follow instructions into the plugin admin page where there is iframe template integration using shortcode related option. Enjoy!

One applied right here on the post (below), but also see another simple example here: https://www.axew3.com/w3/board/

Advanced hint: this shortcode with little modifications could be easily used to display any iframed page, also cross domain.

Here it has been added the iframe using the shortcode with param phpbb_default_url set to open a specified phpBB post and with scroll_default set to no (since 2.6.0>)

[w3allphpbbiframe url_push=”no” phpbb_default_url=”https://www.axew3.com/w3/forums/viewtopic.php?t=774″ wp_page_name=”the-awesome-iframe-template-integration-using-shortcode” scroll_default=”no”]

phpBB WordPress template integration (iframe v5)

V5 version (for cool people)

PAGE HELP – JS code – updated on 20 Apr 2022
(related addons/page-forum.phpupdated on 20 Apr 2022)

wp-w3all-phpbb-integration/trunk/addons/page-forum.php

wp_w3all responsive iframe procedure

WordPress phpBB iframe template integration

UPDATE PROCEDURE: rebuild page-forum.php (or whatever named) via plugin admin, OR manually substitute it into your active WP template folder, with the new one that you find/copy into /wp-content/plugins/wp-w3all-phpbb-integration/addons. You’ll may also update the iframeResizer.contentWindow.min.js and iframeResizer.contentWindow.map files added into phpBB root, with news updated files you’ll find into /wp-content/plugins/wp-w3all-phpbb-integration/addons/resizer folder (this step is not always required, but only when iframe resizer library updates, which is notified on plugin changelog when plugin released). Done this, substitute the phpBB overall_header.html and overall_footer.html code (re-adding required values) with the new v5 code here below. Do not forget to rebuild phpBB template to make phpBB template modifications take effect, and may cleanup phpBB cache.

NOTE for domains like: mydomain.co.uk – note that to fix the resizer to work fine on this kind of domains you have to open page-forum(or whatever you named it).php into your active WP template folder and search for these two lines of code, adjusting as they need to be, to match the same domain you setup into overall_footer.html code (NOTE: if using the awesome phpBB iframe shortcode the  file to look into where you’ll apply the same is /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php)

WP_w3all template integration steps

After you built/create the WP forum template page via option
WP_w3all phpBB embedded on WordPress Template
on WP_w3all admin config page, and the blank page on WordPress Admin -> Pages -> Add New, titled the same of created wp_w3all template page, so forum or board  etc (then you’ll have into your active WordPress template folder a file named page-forum.php or page-board.php etc), to complete the procedure and get the responsive iframe height for the embedded/iframed phpBB into WordPress template page you need:

overall_footer.html code

Open with a text editor your phpBB template file overall_footer.html

and just before the closing </body> tag, add this code (do not select rows numbers on copied code):

after you pasted this code into phpBB overall_footer.html
edit following lines:

change document.domain value to fit your domain name (example axew3.com)
do NOT add http(s):// OR the point in front or anything else, just add
yourdomain.com or set it as localhost if on localhost test. If phpBB is at subdomain.domain.com, add domain.com as value, if wp is at domain.com
(MANDATORY!) or resizer won’t work
now check the other line to change:

change value on this line that need to point to the URL of the WordPress created/named forum page (do not add final slash and change http or https as needed)
MANDATORY!

Change the w3 value of the line

to fit the value you may changed in plugin admin where option: Fancy URL query string for the WordPress page forum that embed phpBB

Finally, check this line

in the code you added (last line): this should correctly point to the iframeResizer.contentWindow.min.js file that you’ll go to add into phpBB root folder (together with the file iframeResizer.contentWindow.map). You need to use the absolute URL (use http or https as needed, and adjust the url to fit your needs)
(MANDATORY!) or resizer won’t work

AFTER EDITED, save and load the modified overall_footer.html into your phpBB style folder, overwriting the default one, and so

load via ftp into the phpBB root folder (or copy/paste), both files
iframeResizer.contentWindow.min.js AND iframeResizer.contentWindow.map
that you find inside the folder
wp/wp-content/plugins/wp-w3all-phpbb-integration/addons/resizer

After this, phpBB require to recompile the template, or modifications to template files not affect (to overall_footer.html in this case). Open phpBB ACP, and so under:

Server Configuration -> Load settings -> Recompile stale style components set to YES and save. Load one time a phpBB full forum page. Leave as is at moment, especially if you follow adding also the code on overall_header.html (more below) to redirect any phpBB direct URL to the iframed WP page: then after tested that all work fine, return to ACP, and reset to NO and save. This step is needed to load the template modifications on phpBB (and any time you edit a phpBB template file to for modifications take effect), but this option should be ever set to NO into an online/production site to save server resources. It is normally set to yes only for testing/devel purpose or to apply modifications on phpBB templates files.

overall_header.html code

If you want phpBB email notification links or any phpBB direct url to be redirected to the wp iframed forum page follow this step:

Open with a text editor your phpBB template file overall_header.html and immediately after the closing </title> tag add the following code:

On added code, change URL on the line where:

to fit/point to the WordPress iframed forum page: DO NOT ADD final slash and setup as http or https as needed.

Change the w3 value of the line:

to fit the value you may changed in plugin admin where option: Fancy URL query string for the WordPress page forum that embed phpBB

Reset to No the Recompile phpBB template option after some test. Before to follow READ NEXT IMPORTANT NOTE

NOTE: if you need to disable/remove the overall_header.html javascript code, that do not allow (until javascript enabled on browser) to access front end real phpBB urls, forcing the redirect to the WP forum page, you can  disable javascript on browser, if you do not want to remove/disable the added js snippet into the phpBB overall_header.html file. It is also !important to remember this if in trouble with login, and recompile Stale Template option in phpBB is set to Off at this time.

if the iframe do not display and you get mixed insecure content on console, you have to fix it doing this: open your WP header.php template file, and may just before others header meta tags add the follow:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

For testing or for any other reason, you could also comment out the line where:

change into this:

so phpBB direct URL’s will not be redirected to the WP page forum URL. But you can open the page-forum to see the iframed result in the while. Remember that to apply template modifications, phpBB require to recompile templates files.

NOTE: if the iframe still do not display correctly:

Iframe height do not resize to match my theme! (how to change heightCalculationMethod)

If using the Awesome iframe template integration via shortcode, relevant file to look into is:

/wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php

Check related shortcode page to know more about customization.

That’s all, enjoy your awesome template integration!

used iframe resize library: https://github.com/davidjbradshaw/iframe-resizer

© 2022 axew3.com

[w3allcustomiframe] shortcode how to

check all others shortcodes listed under the “common how” to section

Note: this shortcode work only if it is activated option into WP plugin’s admin (advanced shortcode):

Activate [w3allcustomiframe] shortcode

It may require you to know something about iframes and how they work, but looking into examples may you can easily understand the way:

the shortcode to embed a page need to be used for example like this:

Params
resizer
check_origin
url_to_display
css_iframe_wrapper_div
css_iframe_elem_iframe

resizer (yes/no)
default false. * use the iframe resizer or not (if no may pass fixed width and height values for the iframe to display, via css_iframe_elem_iframe param)

checkOrigin (true/false)
Default true. See checkOrigin reference.
Pass false to disable.
To provide a value for checkorigin, set this param (for example) to https://mysite.com (it will be so converted into array to pass the valid domain value you want to set)

url_to_display (url)
the src url to the page that the iframe will point to

css_iframe_wrapper_div (inline css inside attribute style=”…”)
css inline style of the iframe wrapper, element <div style="..."

css_iframe_elem_iframe (inline style inside attribute style=”…”)
css inline style for the element <iframe style="..."

* Note: to use the iframe resizer, the page that contain the content to display, that reside outside WordPress (like the integrated phpBB forum into this online example) need to embed this code just before the closing </body> tag:

The iframeResizer.contentWindow.min.js file to point to can be copied into plugin folder:

wp-content/plugins/wp-w3all-phpbb-integration/addons/resizer

and added/pasted where necessary

A shortcode example:

The follow example, display the content within this domain: since using resizer, it has been necessary to add the iframe resizer lib into the phpBB template file viewtopic_print.html, just before the closing </body> tag. Click into links to see behavior (pages within this domain will continue to display, and (may, may not) also some other external link you’ll click will load here)

[w3allcustomiframe resizer=”yes” check_origin=”https://www.axew3.com” url_to_display=”https://www.axew3.com/w3/forums/viewtopic.php?f=3&t=1431&view=print”]

phpBB WordPress template integration (iframe v4)

v4 version (for cool people)

FROM 2.1.1 USE V5 code: https://www.axew3.com/w3/2020/01/phpbb-wordpress-template-integration-iframe-v5/

OLD CODE: cool people moved to V5

FROM 2.1.1 USE V5 code: https://www.axew3.com/w3/2020/01/phpbb-wordpress-template-integration-iframe-v5/

SINCE 2.1.1 the following code, even if still working with his related page-forum (linked below) into any plugin version, is now obsolete.

PAGE HELP – JS code – UPDATED on 15 Gen 2020
(related addons/page-forum.phpupdated on 14 Gen 2020)

wp-w3all-phpbb-integration/tags/2.1.0/addons/page-forum.php

wp_w3all plugin 1.9.9 until 2.1.0

phpBB SEO mods compatible – (READ ALL this page)

wp_w3all responsive iframe procedure

WordPress phpBB iframe template integration

MEMO: to update to latest v4 code, you’ll need to rebuild page-forum.php (or whatever you named it) via plugin admin, OR manually substitute it into your active WP template folder, with the new one that you find/copy into /wp-content/plugins/wp-w3all-phpbb-integration/addons. You’ll need to update also the iframeResizer.contentWindow.min.js file you added into phpBB root, with the new one you find into /wp-content/plugins/wp-w3all-phpbb-integration/addons/resizer folder. Done this, substitute the phpBB overall_header.html and overall_footer.html code (re-adding needed values) with the new v4 code here below. Do not forget to rebuild phpBB template to make phpBB template modifications take effect.

 Domain/subdomains installations it’s REQUIRED to read this: How to Domain/subdomain iframe template integration

WP_w3all template integration steps

After you built/create the WP forum template page via option
WP_w3all phpBB embedded on WordPress Template
on WP_w3all admin config page, and the blank page on WordPress Admin -> Pages -> Add New, titled the same of created wp_w3all template page, so forum or board  etc (then you’ll have into your active WordPress template folder a file named page-forum.php or page-board.php etc), to complete the procedure and get the responsive iframe height for the embedded/iframed phpBB into WordPress template page you need:

overall_footer.html code

Open with a text editor your phpBB template file overall_footer.html

and just before the closing </body> tag, add this code (do not select rows numbers on copied code):

after you pasted this code into phpBB overall_footer.html
edit following lines:

change localhost to fit your domain name (example axew3.com)
do NOT add http(s):// OR the point in front nor anything else, just add
yourdomain.com or set it as localhost if on localhost test. If phpBB is at subdomain.domain.com, add domain.com as value
(MANDATORY!) or resizer won’t work
now check the other line to change:

change value
https://localhost/wp53/forum
on this line, to point to the URL of the WordPress created/named forum page (do not add final slash and change http or https as needed)
MANDATORY!

Finally, check this line

in the code you added (last line): this should correctly point to the iframeResizer.contentWindow.min.js file that you’ll go to add into phpBB root folder. You need to use the absolute URL (use http or https as needed, and adjust the url to fit your needs)
(MANDATORY!) or resizer won’t work

AFTER EDITED, save and load the modified overall_footer.html into your phpBB style folder, overwriting the default one, and so

load through ftp on the phpBB root folder (or copy/paste), the file
iframeResizer.contentWindow.min.js
that is contained inside folder
wp/wp-content/plugins/wp-w3all-phpbb-integration/addons/resizer

After this, phpBB require to recompile the template, or modifications to template files not affect (to overall_footer.html in this case). Open phpBB ACP, and so under:

Server Configuration -> Load settings -> Recompile stale style components set to YES and save. Load one time a phpBB full forum page. Leave as is at moment, especially if you follow adding also the code on overall_header.html (more below) to redirect any phpBB direct URL to the iframed WP page: then after tested that all work fine, return to ACP, and reset to NO and save. This step is needed to load the template modifications on phpBB (and any time you edit a phpBB template file to for modifications take effect), but this option should be ever set to NO into an online/production site to save server resources. It is normally set to yes only for testing/devel purpose or to apply modifications on phpBB templates files.

overall_header.html code

The new V4 w3all iframe code do not use anymore htaccess to force redirects, but use pure Javascript (reload) code, that as you may imagine, lead to some different result: you’ll not have to edit phpBB notification links on phpBB notification files as on V1 or V2 code, to force users redirect to iframe when they click (for example) on notification email link or some other forum’s link. But in this case, any user except bots, will be redirected (as code is, but it can be easily changed to assume different behaviors, may excluding admins or moderators etc) to the WP iframed page, if the forum accessed via real phpBB url.

If you want phpBB email notification links or any phpBB direct url to be redirected to the wp iframed forum page follow this step:

Open with a text editor your phpBB template file overall_header.html

and just immediately after this code (or by the way, just before the closing tag </head>)

add the following code:

On added code, change URL on the line where (line 3):

to fit/point to the WordPress iframed forum page: DO NOT ADD final slash and setup as http or https as needed.

All working!?

Reset to No the Recompile phpBB template option, here we go!

NOTE: if you added the code above into phpBB overall_header.html then you’ll never activate (it is not active by default) this part of the code you added into the overall_footer.html:

P.s – whenever you want: to get the iframe responsive for ACP phpBB admin panel, read this post. My (personal) suggestion is to stop here and try to use the integration leaving ACP out of iframe joke. If by the way you want to follow, before to apply then you’ll have to little change the above code for overall_footer.html and overall_header.html in this way:

on code for overall_footer.html remove this part:

on code for overall_header.html remove this part:

change into:

* For domain/subdomain installations
READ THIS HOW TO:
How to Domain/subdomain iframe template integration

Refer to v2 or v1 code for htaccess old solution editing phpBB notifications files.

Shortcode: phpBB PM into WordPress

WP_w3all phpBB WordPress 1.9.9 >

WP_w3all phpBB PM into WordPress shortcode version 1.0

check all others shortcodes listed under the “common how” to section

The [w3allphpbbupm] shortcode just display phpBB Private Messages count into a div, which html output result will be by default like this:

<div id="w3pm_id" class="w3pm_class"><a href="https://localhost/wp51/phpBB3/ucp.php?i=pm&folder=inbox">You have 1 unread forum PM</a></div>

To display this way, you’ll add the shortcode as is: [w3allphpbbupm]

To change attributes class name, id or to get a element link with target _blank or to add inline style to the div element, arguments that are possible to pass are:

'w3pm_class' => 'w3pm_class',
'w3pm_id' => 'w3pm_id',
'w3pm_inline_style' => '',
'w3pm_href_blank' => ''

[w3allphpbbupm w3pm_class="myclass" w3pm_id="myid" w3pm_inline_style="padding:10px;border:1px solid grey;" w3pm_href_blank="1"]

w3pm_class and w3pm_id are setup by default with same name as value for the id and class div’s element attributes if not passed as arguments, others two w3pm_inline_style and w3pm_href_blank simply not affect if not passed.

To get target="_blank" , pass as on example the w3pm_href_blank="1" argument

[w3allfeed] RSS raw examples

How to use w3allfeed shortcode

These examples show raw results (scroll down to see RSS from external resource) of the w3allfeed shortcode used like this, with little style applied to li elements:

that grab last 3 forums news within this same domain forum:

Latest 3 news from axew3.com forums

  • phpBB WordPress integration extension v2

    The (awesome) w3all phpBB WordPress extension v2

    Should work into any Php 5.6> and phpBB 3.2 or >
    Anyway it has been coded/tested under Php 8.1 and (last release at date of this post) phpBB 3.3.9. Also fix previous (versions) unwanted redirect to WP bug, that sometime was firing when an user's session was renewed, and redirect option active.

    - If installed a previous version, disable it, delete extension data into ACP, then delete the old phpBB Wordpress extension folder into
    /phpbb/w3all/phpbbwordpressintegration

    Download the new version

    Copy the folder w3all with inside the extension phpbbwordpress
    into the root phpBB ext folder, so you'll have:
    /ext/w3all/phpbbwordpress/

    Go to ACP -> Customise and enable the extension
    Go to ACP -> Extensions phpBB WordPress settings and setup db connection values and options.
    Note that if you set wrong DB connection values, on saving settings you'll get phpBB db error. In case, just return back with your browser and setup correct db connection values.

    What it do?
    When an user email will be updated, the same will happen for the same user with same old user email in WordPress. Both ACP and UCP.
    Same goes for password and profile URL option.
    Also, when an user register(and option active) the user will be added at same time into WordPress, if used in conjunction with the WordPress wp-w3all-phpbb-integration plugin: https://wordpress.org/plugins/wp-w3all- ... tegration/

    Note that redirects options DO NOT need to be activated if the forum display as iframe into a WP page template integration using the WordPress wp-w3all-phpbb-integration plugin: https://wordpress.org/plugins/wp-w3all- ... tegration/

    Enjoy!

    Download phpBB extension:


    Donate:
    https://www.paypal.com/paypalme/alessionanni/

    Follow read more below *

    ACP_phpBB WordPress integration.png

    *What it change into my phpBB?
    Nothing, it only update user's data and execute redirects or cURL calls to WordPress (it depend by activated options you'll use) when required.
    *Is it secure?
    Yes!

    *Note: you could choose to not activate the option that will add user's in WP as they have been registered in phpBB. You could just use the redirect after login.
    A logged in phpBB user that visit WP and that do not exist in WP, will be added "on fly" into WordPress by the (if installed into WP) WP_w3all WP phpBB plugin.

    Posted by axew3 — Fri Jan 27, 2023 10:36 pm — Replies 0 — Views 160


  • Coming 2.6.9 phpBB WordPress logs/bugs/requests

    The file
    /wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_unotifications_short.php
    https://plugins.trac.wordpress.org/expo ... _short.php
    at date of this post, has been updated to fix all remaining bugs and to add latest lacking
    type.forum
    type.disapprove_topic
    type.disapprove_post

    cases, that were the last remaining to be added.
    You can download the file by clicking the link above and replace it into the /wp-content/plugins/wp-w3all-phpbb-integration/views/ folder if you do not want to wait until 2.6.9 release.

    All default phpBB notifications types that can be expected to be retrieved:
    type.post_in_queue
    type.approve_post
    type.pm
    type.topic
    type.group_request
    type.approve_topic
    type.quote
    type.bookmark
    type.post
    type.admin_activate_user
    type.group_request_approved
    type.report_pm
    type.report_post_closed
    type.disapprove_post
    type.disapprove_topic
    type.forum


    See phpBB user's notifications shortcode page
    https://www.axew3.com/w3/2022/10/phpbb- ... wordpress/

    Posted by axew3 — Tue Jan 03, 2023 9:49 am — Replies 9 — Views 195


  • coming 2.6.8 logs and requests

    2.6.7 has been released to fix a common login issue, and to fix just little more things.

    Code:

    == Changelog === 2.6.7 =*Release Date - 16 Dec, 2022** Fix: wp_login hook not firing when on wp_login page (when certain plugins installed)* Fix: little improve last_topics and last_topics_by_forums_ids shorcodes code* Fix: add cookie samesite param for the phpBB session cookie when on Php 7.4 or better, while leave the old setcookie code for all others olders Php versions* Fix: minor fixes* Hint: remember that instead to use the page-forum for the iframe integration, on the new WP templates editor, and themes like WP Twenty Twenty Three, you should use the Awesome iframe integration using shortcode: https://www.axew3.com/w3/2022/02/the-awesome-iframe-template-integration-using-shortcode/

    A 2.6.7 request was about phpBB Groups/WP roles integration.
    The old long time request never coded may will be considered to be done in some way on next 2.6.8.
    Anyway this morning, dedicating some little time to look around this possible feature and how it should be efficiently coded, and effective for any configuration, it result to me that i have very clear how it can be done for a specific configuration, but not so easy to imagine something simple for all uses.
    Maybe an array. A configurable array of values where a role/membership in WP will correspond to Groups in phpBB and viceversa.
    As said, it is very easy to be coded for specifics, much less for all plugins together- We'll see if it can be surpassed some way.
    p.s note that the groups/roles integration will NOT be provided by adding options into plugin admin. I will never code (i think, if not payed almost 100.000$) the UI of something like this, but i think will be easy to be modified and used for any scope by the cool people!

    Posted by axew3 — Sat Dec 17, 2022 9:11 am — Replies 5 — Views 188

News from engadget.com

Latest 5 news from – engadget.com/rss.xml – target _blank – inline styled, used like this:

  • NASA satellite will use radar to map Earth's crust in extreme detail

    Scientists will soon have a spaceborne tool to study environmental changes at a very high resolution, and you won't have long to wait to learn more about it. NASA's Jet Propulsion Laboratory is holding a question and answer session today (February 3rd) at 5PM Eastern to discuss NISAR (NASA-ISRO SAR), an Earth-mapping satellite built in tandem with the Indian Space Research Organization. It's not launching from India until early 2024 and is planned to operate for three years, but it includes breakthrough tech that could help understand Earth and cope with natural disasters. 

    NISAR is the first radar imaging satellite to use dual frequencies (the L and S microwave bands). This will let it systematically map the Earth's crust at an exceptional level of detail — it can detect changes under 1cm (0.4in) across. That will let NISAR observe even subtle nuances of earthquakes, tsunamis and other disasters. It will also help monitor long-term processes, including the crust's evolution, ecosystem disruptions and ice sheet collapses.

    Access to data will also play an important role. NISAR offers worldwide coverage every 12 days, making time-based imagery more practical. The mission team hopes to make data readily available to the public in one to two days, but can deliver that data within hours in an emergency. Anyone willing to parse the information can make use of it.

    With an estimated $1.5 billion price, NISAR is expected to be the most expensive Earth imaging satellite to date. The investment may be worthwhile, though. The satellite's data could help governments react to and prepare for natural disasters, and improve humanity's understandings of climate change and threats to food security.


  • Researchers can now pull hydrogen directly from seawater, no filtering required

    Researchers at the University of Adelaide announced this week that they made clean hydrogen fuel from seawater without pre-treatment. Demand for hydrogen fuel, a clean energy source that only produces water when burned, is expected to increase in the coming years as the world (hopefully) continues to pivot away from fossil fuels. The findings could eventually provide cheaper green energy production to coastal areas.

    “We have split natural seawater into oxygen and hydrogen with nearly 100 per cent efficiency, to produce green hydrogen by electrolysis, using a non-precious and cheap catalyst in a commercial electrolyser,” said Professor Shizhang Qiao, the team’s co-lead. Seawater typically needs to be purified before electrolysis splits it into hydrogen and oxygen. The team says its results, using cobalt oxide with chromium oxide on its surface as the catalyst, had similar performance to a standard process of applying platinum and iridium catalysts to highly purified and deionized water.

    Compared to freshwater, seawater is an abundant resource, and the ability to extract hydrogen fuel from seawater without pre-treatment could save money. However, even if successfully scaled, it would likely only be practical for coastal communities with plenty of seawater — not so much for Iowa or Kansas.

    The team’s next step is to scale the system with a larger electrolyzer. Then, although it’s still early in development, the researchers hope to eventually apply the findings to commercial hydrogen production for fuel cells and ammonia synthesis. Co-lead Yao Zheng summarized, “Our work provides a solution to directly utilise seawater without pre-treatment systems and alkali addition, which shows similar performance as that of existing metal-based mature pure water electrolyser.”


  • Endlesss turned its music collaboration app into a beatmaking arcade machine

    Ever wish you could play an arcade rhythm game that fostered creativity, not just matching notes? You now have your chance. Endlesss has turned its remote music collaboration software into an honest-to-goodness arcade machine, complete with joysticks, a touchscreen, an XY controller and a sea of buttons. You can use it as a stand-up audio workstation with your own plugins and physical instruments, but it comes into its own in an arcade mode that challenges you to compose beats — you might have to loop drums, for example.

    The cabinet is ultimately a community effort. Endlesss Discord member NJ Lang liked the idea of an arcade rig so much that he built one, and it proved a hit when the company took it to events. The firm then built a production prototype, and had a strong-enough initial reception that NBA veteran Baron Davis became the first to buy one — you can see his reaction (and an Endlesss sales pitch) below.

    This won't be a trivial purchase. In fact, it'll make many retro cabinets seem affordable. Endlesss is releasing 25 Launch Edition arcade systems in late February for a $9,999 "introductory" price. You'll need to put down a $200 non-refundable deposit just to get into a pre-sale ahead of the public debut. You're buying this because you have an artistic side and plenty of money to spare — everyone else will want to save those funds for essential music creation tools.


  • 'CrossfireX' and 'Knockout City' join the list of live service games shutting down soon

    It's a rough time for fans of several live service games, which are titles designed to be constantly updated for a long time. A bunch are shutting down in the near future, and CrossfireX and Knockout City are among the latest to join the list.

    CrossfireX is an Xbox console version of the massively popular tactical shooter Crossfire. After some delays, it arrived less than a year ago, but it wasn't a hit with critics or, more crucially, the public. Developer Smilegate has stopped selling the game (the multiplayer component is free-to-play, but the Remedy-developed single-player campaign is not) and is offering refunds for purchases made in the last two weeks. It will shut off the CrossfireX servers on May 18th.

    Knockout City, meanwhile, is a fun dodgeball brawler that debuted in 2021. The game went free-to-play last year when developer Velan Studios parted ways with EA to self-publish it. Alas, Knockout City is shutting down too. Its ninth season will be the final one and the servers will close on June 6th. On a positive note, Velan will roll out an option for PC players to run the game on private servers.

    Smilegate and Velan are far from alone in closing down live service games recently. Meta's Ready At Dawn studio said this week it would shutter Echo VR, a zero-gravity frisbee title previously known as Echo Arena, on August 1st. It also emerged over the last week or so that Apex Legends Mobile, Battlefield Mobile, Rumbleverse, Crayta and others are closing shop. Development is ending on Back 4 Blood and Marvel's Avengers as well, but Turtle Rock Studios and Crystal Dynamics will keep the respective servers online

    It's tough to make a game that's successful, let alone one that requires players to stick with it for the long haul. Major players like Fortnite, Apex Legends (the console and PC version), Valorant, Overwatch 2 and Genshin Impact aren't going anywhere anytime soon. But developers are all competing with each other and anything else that can soak up peoples' attention. Even though there are more than 3 billion gamers, there are only so many live service games that the market can sustain.


  • YouTube Music workers strike at Google’s Austin offices

    YouTube Music workers in the Austin, TX area who voted to unionize are striking. The Alphabet Works Union-CWA (AWU-CWA), which represents the contractors, says this is the first time a group of Google-affiliated workers has gone on strike.

    Cognizant, an Alphabet subcontractor, staffs the (more than 40) striking workers. They say Alphabet’s current return-to-office date of February 6th threatens their safety and livelihoods since their $19-per-hour pay makes it hard to afford relocation, travel and healthcare costs. The AWU-CWA says most contractors were hired to work remotely, and nearly a quarter of them don’t live in Texas.

    The YouTube workers say Alphabet and Cognizant only announced the abrupt return to office after they had already voted to unionize. In a statement, however, Cognizant said that these return-to-office plans have been in place and communicated since December of 2021, well over a year ago.

    Additionally, they accuse managers of sending work to other offices to “chill” the union efforts while adding that a supervisor made implicit anti-union threats. Finally, the workers have appealed to the National Labor Relations Board (NLRB) to be recognized as “jointly employed” by Cognizant and Alphabet; the designation would force Alphabet to negotiate based on US labor laws.

    Cognizant provided Engadget with the following statement: “Cognizant respects the right of our associates to disagree with our policies, and to protest them lawfully. However, it is disappointing that some of our associates have chosen to strike over a return to office policy that has been communicated to them repeatedly since December 2021. Associates working on this project accepted their employment with the understanding that they were accepting in-office positions, and that the team would work together at a physical location based in Austin.”

    Although it wasn’t a labor strike, 20,000 Google workers from 50 offices participated in a 2018 walkout. That movement was in response to the company’s practice of rewarding executives accused of misconduct.

    The YouTube Music strike began at noon EST today outside of the Austin Google Office. If you live elsewhere, you can check in on a livestream of the strike on Facebook.

    Update, 2/3/23 4:15PM ET: This story has been updated to include a statement from Cognizant noting that it has communicated return-to-office plans since December of 2021. 

Shorcode: RSS feeds into WordPress

WP_w3all phpBB WordPress 1.9.7 >

WP_w3all feed version 1.0

check all others shortcodes listed under the “common how” to section

Note that substantially this shortcode can substitute with easy all others old phpBB last topics shortcodes. It can retrieve any kind of posts/topics list and display as more like using style/classes or inline style. Follow read more below …

Note: this shortcode work ok also if a valid path to a phpBB config.php file has not been setup and the plugin result as not activated (RED text) on plugin admin page

Note also that this shortcode as it is coded, like the related WP hook, caches results for 12 hours by default

Look two raw examples

As basic default the shortcode feeds, that can point to a phpBB generated feed OR to any other valid feed resource, need to be used like this:

The example of feed to retrieve is here for phpBB, but it’s possible to use any valid feed URL to display feeds from any resource. Check some feed example to grab here http://simplepie.org/demo/ or any other you want and use into the shortcode like this:

here as example the w3feed_items_num attribute limit to 10 items to retrieve and display from the RSS source:

To display phpBB posts feeds styled, there are some more attribute that is possible to use except the default 2 above explained:

using all together, look this example, that not contain the w3feed_text_words attribute, in which, one possible value to use, is may reserved (may not) to phpBB news/last post RSS, and explained separately more below:

the attribute w3feed_ul_class=”myexampleClassXUL” will assign class name myexampleClassXUL to the wrapper element ul. w3feed_li_class do the same for nested li assigning myexampleClassXLI to all li elements of this feed.

adding w3feed_href_blank=”1″ will cause that links elements <a> that point to topics or links to authors will include/output with the html attribute target=”_blank”

w3feed_inline_style attribute can be used to inject inline style into each li element. Note that by the way it has been tested without using special chars on it, so that special characters may need to be properly escaped to be used in this case.

It’s possible to assign different classes and display each shortcode feeds output, ul and li elements, styled as it need to be or/and as more like.

Here you can see examples for phpBB to retrieve feeds: forums news, all forums, single forum, single topic and more, plus advanced features:

https://www.phpbb.com/support/docs/en/3.1/kb/article/faq-phpbb-atom-feeds/

The w3feed_text_words=”numOfWords” attribute is may reserved to be used only for phpBB posts feeds, while the 0 (zero) and content values are ok to be used on any other feed, not only phpBB:

0 | num of words | content

if omitted w3feed_text_words=”content” is the default behavior/result, that will return all the content of the post or feed item, changing nothing on output.

while adding an integer value, as example 30, so, w3feed_text_words=”30″ will cause that firsts 30 post’s words will display, and the default Statistics: phpBB text on output removed, while will be maintained all the rest, and the result will be something like:

Post Title
Post Content
Posted by axew3 — Sat Mar 09, 2019 12:04 am

w3feed_text_words=”numOfWords” int value can may also be used for any feed and not only for phpBB posts, but check before that the result is what you expect to be.

Using 0 (zero), so w3feed_text_words=”0″ , will cause that only topic’s titles links will display.

Except the mandatory w3feed_url attribute, any of the attributes can be mixed, applied or not applied, on each shortcode feed.