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, the result will be a full template integration that can be applied into any WP theme:

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

  • Migrating from BridgeDD Pro to W3all

    Hi,

    I got a question,

    Our website has around 5000 registered accounts. We are currently using BridgeDD Pro plugin to sync phpbb forum users to our WordPress installation. We need to replace the plugin because the developer has sold it and the future is very unsure. We are looking for a alternative and are interessed in your plugin.

    We need to be sure that our current users can still login into the phpbb and website after the migration.
    Could you please advice us?

    Many thanks and regards,
    Stanley

    Posted by Demigravit — Wed May 03, 2023 7:21 pm — Replies 1 — Views 96


  • First intergration with wp_w3all

    Hello axew3,
    First, thanks for this great work.
    I have installed wp3_all extension to integrate my phpbb forum into a WP page.
    I followed your instructions and created 2 pages :

    1. I tried to use the page template to integrate my forum. I added a WP page named "forum" and I used your tool in WP extension to "Create or rebuild WordPress forum page template". It works well. But I want to custom this template (remove search bloc for example). It is a little bit hard to edit the template file in wp-content/themes/mytheme/page-forum.php. So i tried to use shortcode instead.

    2. I created a new page named "phpbb". I changed overall_footer and overall_header to fit the new URL. I added this shortcode in the page :
    [w3allphpbbiframe wp_page_name="phpbb" wp_page_iframe_top_gap="300"]. It works well to.

    The last things i tried to add is your "Last Topics" widgets.
    I added in my WP main page the short code [w3allastopics topics_number="5"]. The setup in WP extension "Retrieve posts on Last Topics Widget based on phpBB user's group" is set to no.
    The last topics are displayed, BUT I encountered 2 main issues :

    1. When I use the WP page "phpbb" with the shortcode, when i click on a topic in the "Last topic widget". The url looks like :

    Code:

    "https://phpbb.mydomain.com/viewtopic.php?f=12&t=13121&p=144581#p144581"
    The main page of the forum is displayed in my WP page, not the forum post.

    2. So i tried with the WP page "forum" that used the built template. The widget is automatically added on the right side of the page. Nice. When i click on a topic in the "Last topic widget", the post is displayed in my WP page.
    But if I click again on an other recent topic, the URL is malformed and the same post is displayed. The url looks like :

    Code:

    "https://phpbb.mydomain.com/viewtopic.php?f=12&t=13121&p=144581#p144581/viewtopic.php?f=14&t=1876&p=184471#p184471"
    The URL is append to the previous one.

    So, i only have some issues with the last topics widget. It's a feature i really want to display for my users. Could you please help me.

    Thanks.

    Posted by coute — Wed Apr 12, 2023 1:19 pm — Replies 7 — Views 267


  • General Installation and Integration Questions

    Hi and first if all, thank you for this work you've done. You must have sunk one heck of a lot of hours into this over the years!

    What I'm trying to do.
    Apologies if this is a long post, but it may help other people.
    My phpBB board has been running now for about 15 years. I want to wrap it in a WP site, so I can add more content and use what WP is good at. I don't want to migrate the phpBB forum to a WP forum, because

    1. I like phpBB.
    2. I don't want to lose 15 years to Search Engine placement and have to start all over again.
    3. Users may have got so used to the forum as is, that I may lose some if I migrate it all somewhere else.
    Setup
    My forum is located in a sub-directory of the main domain: /forum. I was thinking the WP site will be in the root directory and the forum remain where it is. So both will be in the same domain: -
    Currently, I have a redirect, that redirects https://thepompeychimes.net to https://thepompeychimes.net/forum. When I eventually have the WP site up and running, I should in theory just need to remove the redirect.

    I have a few questions though.

    1. Installation
    I've been looking around the various help pages, but am still a little confused. I'm not 100% sure on how this installs. Is it just a phpBB extension, or is there also a WP plugin (I'm assuming there must be)? If both, I'm not clear on what order they are installed (or if in fact it matters). Is there a very simple step-by-step guide to installing this?

    Dev / Live
    Whilst I develop the WP site, I have installed it in a staging sub-domain. If I do the installation, should I do this from a copy of the live phpBB forum, or to the live forum? If I do it to a copy of the forum, what issues could there be when I move the WP site live? What happens to any users that may have registered in the live forum since I copied it to the staging sub-domain? Would it be prudent to copy the phpBB forum to the sub-domain anyway, just so I can test the whole process and then start from scratch again?

    2. phpBB Forum Access
    Once it is all installed and integrated, can the phpBB forum still be run independently, or does it have to always be integrated in the WP site? So, in my example, can the phpBB forum still run directly from https://thepompeychimes.net/forum?

    3. Integration
    Is the phpBB forum always integrated using an iFrame, or does any WP plugin retrieve the information and display it? If (as I'm assuming) it is all in iFrames, does this mean existing Search Engine indexing will remain the same. If so, how do I redirect any traffic form a search engine to a specific forum thread, such that the WP site loads and the requested thread is loaded in the iFrame? I really don't want to screw up the Search Engine indexing that has taken so many years to get to where it is now!

    4. Examples
    Are there any example sites I can see where this is all installed? Is there any "showcase" area listing such sites? I'm assuming after 15 years, this must have been used in a lot of sites. In fact, as phpBB is so much better than the WP forum offerings, I'd assume a lot of people use this from day one on there WP sites.

    Again, apologies for the length of the post, but unless I am singularly stupid useless confused, answers to this could help other people too.

    Many thanks.

    Posted by RubiconCSL — Mon Mar 20, 2023 12:04 pm — Replies 1 — Views 106

News from engadget.com

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

  • Android can now 'remix' emojis and help with reading practice

    Google has listed a bunch of features rolling out to the Android ecosystem starting today, June 1st, and one of them can help new readers improve their diction and vocabulary. The new reading practice tool for phones and tablets is available with thousands of compatible children's books on Play Books. It challenges kids or people who've only started to learn English to read sentences with the mic on. The buttons that show up when they tap help allow them to quickly look up the definition of words or to hear the sentence be read out loud for guidance. It's now available in the English language for users in the US, as long as they have a device running Android 8 and above. 

    The tech giant is also rolling out new widgets that show entertainment suggestions for Google TV, stock trading information from Google Finance and curated stories from Google News. These widgets will be available for everyone with devices running Android 6 and later in all supported languages. Meanwhile, for those tired of the usual emoji options, there's a new tool called "Emoji Kitchen." It lets users fuse and remix emoji available on Gboard — so long as they have a compatible combination — and then turn them into stickers they can send. 

    Users with devices running WearOS 2 now have new Spotify tiles and watchface complications to choose from. Spotify DJ, available in US, Canada, UK and Ireland for premium subscribers, can play a personalized selection of tracks or stream episodes from the user's favorite podcasts the moment they press play on the new smartwatch tile. WearOS 3.0 users can now also add a tile for a single to-do list from Google Notes. Those living in Washington, DC and the San Francisco Bay Area are getting something extra: They now have the option to load their SmartTrip and Clipper cards to their Google Wallet, so they can tap and pay to ride local transportation using their smartwatches. 

    Aside from all these features, which have only started rolling out, Google has also announced that its One subscription service's dark web report is fully available in the US. Subscribers will be able to run scans to check if their Gmail addresses have been exposed in the dark web. They can also check if any sensitive information, such as their social security numbers, have been compromised. Plus, they can choose to start automatically monitoring the dark web for their personal information, so they'd get notified as soon as any of their details get posted. Dark web monitoring is only available to Google One customers in the US at the moment, but Google plans to expand its availability to more than 20 countries in the coming months. 

    This article originally appeared on Engadget at https://www.engadget.com/android-can-now-remix-emojis-and-help-with-reading-practice-130053394.html?src=rss

  • NVIDIA's Neuralangelo is an AI model that can generate 3D objects from 2D videos

    NVIDIA has introduced a new AI model called Neuralangelo that can create 3D replicas of objects from 2D videos, whether they're classic sculptures or run-of-the-mill trucks and buildings. Neuralangelo works by selecting several frames showing the subject from different angles in a 2D video, so it can a get a clear picture of its depth, size and shape. It then creates a rough 3D representation of the object before optimizing it to mimic the details of the real thing. 

    According to the company, the new model has adopted the technology from its old one, the Instant NeRF, to be able to accurately capture the finer details of whatever the user wants to recreate in 3D. Those include its texture, patterns and color variations. NVIDIA says Neuralangelo's ability to capture tricky textures, such as the roughness of roof shingles and the smoothness of marble, "significantly surpasses prior methods." It's apparently even good enough to create usable virtual objects from videos taken by smartphones, which could give creators an easy way to generate 3D recreations for their projects. It's a quick solution, too: NVIDIA Research told us the tool can create 3D scenes within two hours. 

    Ming-Yu Liu, co-author of the paper on Neuralangelo, said it will "eventually enable developers to import detailed objects — whether small statues or massive buildings — into virtual environments for video games or industrial digital twins." In the video below showing what the technology can do, NVIDIA said it can create large-scale vistas from drone footage, making it easier for developers to recreate real locations in their games. It has a lot of other potential applications, as well, including in robotics, virtual reality experiences, architecture and, of course, art.

    The company's research arm will present Neuralangelo at the Conference on Computer Vision and Pattern Recognition event that's taking place on June 18th through the 22nd in Vancouver. 

    This article originally appeared on Engadget at https://www.engadget.com/nvidias-neuralangelo-is-an-ai-model-that-can-generate-3d-objects-from-2d-videos-130023299.html?src=rss

  • No Man's Sky arrives on Mac today

    Hello Games made an exciting announcement at Apple's Worldwide Developer Conference in 2022: No Man's Sky would eventually be making its way to Macs. Now, as we ramp up towards WWDC 2023, the time has come with Mac gamers finally able to play No Man's Sky to their heart's content. Hello Games claims to have worked closely with Apple to bring the game to life and supports the company's Metal 3 API to reportedly "achieve console quality graphics whilst maintaining battery life on laptops and lower end devices."

    No Man's Sky is available for anyone who has a Mac with Apple silicon (which started rolling out in 2020) or an Intel-based Mac with at least a Core i5 processor. There's no need to re-buy the game if you already have No Man's Sky through Steam on your PC, as you can cross-save your progress to jump between devices without backpedaling on your progress. Mac users also have access to cross-play, so you can join gamers on Xbox, PlayStation 4 and 5, PC or VR.

    The expansion to Mac follows a few significant updates to the game, including a redesign of the HUD and user interface and a new storyline called Interceptor that brought better visuals and new VR controls. Steam users can download No Man's Sky today, but will be available in the Mac App Store "shortly."

    This article originally appeared on Engadget at https://www.engadget.com/no-mans-sky-arrives-on-mac-today-130016085.html?src=rss

  • The best Father's Day gift ideas under $50

    Us kids know how hard it is to buy gifts for parents. It’s either a case of they don’t want anything or they’ve already gone out and bought the product you had your eye on without telling you. Especially tech-savvy dads. But there are some oft-forgotten, cheaper gifts that can do the job without breaking the $50 barrier. From console controllers to tracking tags, smart lights to charging accessories, our ideas will tick the list of even the most hard-to-buy-for father figure in your life.

    Chipolo One

    Bluetooth trackers have made it a lot easier to keep tabs on things that you simply don’t want to go missing. If pops tends to lose his keys, bags or other high value items, the Chipolo One could be a low-cost way to restore some peace of mind. The One is a small, colorful plastic disc that pairs with both Apple and Android devices and quickly notifies you when something is no longer on your person. In our tests, we found the separation alerts to be worth the price of admission alone, serving prompt notifications the second the app detected an item was no longer with us. It’ll direct you back to the spot where the phone and the tracker were last paired, perfect for someone who may often forget things.

    AirFly SE/Duo/Pro

    If your dad loves flying but hates having to put up with the basic headsets airlines provide while on board, help is at hand. Thanks to wireless adapters like the AirFly, he can use his own headphones in places that only have a headphone jack, like in the air and in gyms. TwelveSouth offers a range of AirFly adapters that cater to specific circumstances: the original is perfect for flights, while the Duo does the same thing but for two people. The Pro, however, provides a simple way to stream music from a smartphone to the AUX IN in any car or speaker.

    Anker 622 MagGo Battery

    To Apple’s credit, iPhone battery life has drastically improved over the years. However, that doesn’t make them immune to rapid power drain when they’re constantly in use. If your dad is one to complain about having no juice left while out and about, a battery pack like Anker’s MagGo is a solid option. Removing the need for cables, the MagGo battery pack utilizes Apple’s MagSafe technology and snaps to the back of compatible iPhones and will begin charging wirelessly. Often half the price of Apple’s own MagSafe Battery Pack, Anker’s version comes in a range of different colors and also features a small kickstand that lets dad rotate the phone to either portrait or landscape mode when the need arises.

    Nintendo $50 eShop Gift Card

    If dad has a Nintendo Switch (or one of the company’s handhelds), then he’s probably already pretty up-to-speed on the Nintendo eShop. Every so often, the company will reduce a wide range of first-party and indie games, allowing you and dad to build out your collection for a lot less. The good news is that throughout the year, retailers will often offer discounts on eShop credit, which when combined with an existing sale, can lighten dad’s overall spend on games. Deals are often around 10 percent off, meaning you may be able to secure a $50 card for just $45.

    1Password subscription

    If dad has passwords with “123456” in it, instead of shaming him, consider directing him to a password manager instead. Sure, most browsers come with their own built-in password tools, but 1Password’s subscription service operates across a wide variety of devices, browsers and operating systems. It’ll save all of his passwords and suggest stronger ones and handle two-factor authentication requests but that’s not all: Give it addresses, card details and other important information and it’ll reduce the time and effort it takes to fill in all of those annoying online forms.

    Blink Mini Camera

    From unwanted intruders to porch pirates, security cams are a very useful tool not only as a deterrent, but also to capture irrefutable proof of wrongdoing. Blink has a wide range of indoor and outdoor home security products, but its basic 1080p indoor plug-in camera is a solid choice for keeping an eye on pets, but also unwelcome guests in the dead of night. It comes with two-way audio, allowing dad to covertly startle a friend or family member, and motion detection, letting him focus on the specific areas of the home. The Blink Mini also ties in perfectly with Alexa, so it’s a solid choice for families who already own an Echo device.

    Tapo Matter Supported Smart Plug Mini 3-Pack

    One of the most important parts of building a smart home is incorporating all of the non-smart electronics like appliances and lighting into the network. Tapo’s Smart Plug Mini outlets are basic in nature, they serve as a simple on or off switch for things like that antique lamp mom and dad bought to go with their coffee table. Tapo’s app pairing is super simple and the plugs will soon support the new Matter standard, as well as both Google Assistant and Amazon’s Alexa. That means dad will be able to create smart home routines that feature devices that weren’t necessarily designed to support them.

    Fire TV Stick 4K

    Most newer TV models come with their own set of apps, but often the older, slower dumb television in the back room needs some love too. Amazon’s Fire TV Stick 4K delivers all of the major streaming apps you need and ensures that they’re regularly updated to include all of the latest features. Oh, and it’s cheap, too.

    iFixit Essential Electronics Toolkit

    Not every dad is handy with tools, but if yours likes to take things apart just to be able to put them back together again or prefers to fix things rather than buying new stuff, iFixit’s Essential Electronics Toolkit could come in handy. With a bunch of precision bits, tweezers, suction handle, SIM eject tool and sorting tray, this kit is perfect for DIY screen replacements or opening up a tablet or laptop to fix a worn-out component. It’s also perfect for eyeglasses, should dad need to repair them too.

    JLab Go Air Pop earbuds

    Listening to music on-the-go doesn’t need to be expensive. JLab’s Go Air Pop wireless earbuds are a perfect example of that. For just $20 (sometimes less), these small but colorful Bluetooth buds offer on-board touch controls, the ability to use either earbud independently, EQ presets and IPX4 moisture resistance (meaning they’ll survive a low-pressure spray of water). They’re also really solid in the battery life department, too: the Go Air Pops will provide dad up to eight hours on a charge but the case will give you three additional charges before you need to plug the entire set in.

    Fitbit Aria Air smart scale

    Nobody is saying that dad needs to lose or gain weight, but he’s looking for a better way to track his body measurements then a smart scale could help. Make no mistake: the Aria Air isn’t as fancy as some of the smart scales on the market – complete with body composition metrics – but it’s very accurate and nice-looking scale that tracks body weight and BMI. If dad already has a Fitbit smartwatch or tracker, it’ll put it alongside his existing exercise data, giving him a nice snapshot of his overall fitness and body health.

    SanDisk 512GB Extreme microSD

    Portable memory and storage might not be a glamorous gift, but they play a vital part in extending today’s tech gadgets. Whether it be a Nintendo Switch, drone or even a dash cam, microSD cards can elevate how many games or how much footage you can store without needing to remove things first. SanDisk’s 512GB Extreme microSD is 4K-ready, with fast read/write speeds for rapid file transfers. It’s also rated for use at both low and high temperatures, water-proof, shock-proof and x-ray proof, perfect if your dad indulges in more dangerous activities. Its standard price is over $100, but we wanted to mention it here since you can often find it for around $50.

    Amazon Smart Thermostat

    No smart home is complete without a smart thermostat handling all of the family’s heating and hot water needs. Everyone can argue all they like about the temperature inside the house, but dad can control the thermostat remotely with Amazon’s cheap Smart Thermostat. Sure, its usual retail price is normally a bit higher than the $50 limit we’ve set here but we have seen it regularly come down to a low of $48, which is when you should probably jump on it. The Smart Thermostat itself is backed by Honeywell and ties nicely in with Alexa, which can do dad’s bidding for him (whether it be via an Echo smart speaker, display or app).

    Xbox Core Controller

    Thankfully, the days of having to buy separate controllers for different devices are all but over. Over the years, Microsoft has worked hard to ensure its Xbox gamepads work on PCs, smartphones and tablets, so it’s easy to recommend for the gamer dad who likes to play titles across a range of platforms. With built-in Bluetooth, it’s easy to pair an Xbox controller with an iPad or Android device, making it the perfect accessory for cloud gaming. They usually go for a bit more than $50, but you can often find them on sale for around $45.

    This article originally appeared on Engadget at https://www.engadget.com/best-gifts-for-dad-under-50-113033738.html?src=rss

  • Polestar 2 update adds YouTube integration and new CarPlay features

    Polestar has announced its latest over-the-air upgrade for the Polestar 2 EV, and it includes an integrated YouTube app right on the home screen. Volvo, a part-owner of Polestar, first mentioned its plan to make YouTube available for its infotainment in 2022 — though it was through the Play Store. While you don't want to be watching YouTube videos as you cruise down the road (or play video games, Tesla), Polestar specifically denotes it as a way to entertain yourself while the car charges. 

    Yes, the update is solely so you can amuse yourself while sitting in the stationary car, but sure, when you drop a minimum of $40,000 to $50,000 on an EV, why shouldn't it provide entertainment while juicing up? 

    There are also some new features for when you hit the road, including Apple CarPlay's expanded information about calls or media on the home screen. Plus, you can control calls through the steering wheel (as you can in most cars) and, more uniquely, see calls and Apple Maps right on the driver display. 

    The last bit of Polestar 2's updates focus the Range Assistant app, with a major upgrade giving you more control over your energy efficiency, with consumption monitoring extended beyond 20, 40, or 100 miles. The update also factors environmental changes and related variables into your projected range — with real-time information available right on the driver display. Previously, this figure was a default range projection rather than one specific to you. The P2.9 over-the-air update has begun rolling out, so keep an eye out for when it reaches your EV.

    This article originally appeared on Engadget at https://www.engadget.com/polestar-2-update-adds-youtube-integration-and-new-carplay-features-115027133.html?src=rss

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.