This is the main referral page for the
phpBB WordPress Integration – phpBB extension
You’ll find here the updated link to download the extension and/or detailed help on how to install and use it
Php MySQL Javascript
This is the main referral page for the
phpBB WordPress Integration – phpBB extension
You’ll find here the updated link to download the extension and/or detailed help on how to install and use it
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:
1 |
[w3allfeed w3feed_url="https://www.axew3.com/w3/forums/feed.php?mode=news" w3feed_items_num="3" w3feed_inline_style="list-style:none;background-color:#f1f1f1;padding:15px;margin-top:15px;border-radius:15px;" w3feed_href_blank="1"] |
that grab last 3 forums news within this same domain forum:
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
Posted by RubiconCSL — Mon Mar 20, 2023 12:04 pm — Replies 1 — Views 21
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 bug on previous (versions) about unwanted redirect to WP, sometime firing when an user's session was renewed, and redirect option was active.
If the URL setting is not set, the extension only will work to update email/password/Url and (if option active) to check if the email exist in WP, before to add/register an user in phpBB.
- If already 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:
Posted by axew3 — Fri Jan 27, 2023 10:36 pm — Replies 0 — Views 414
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 278
Latest 5 news from – engadget.com/rss.xml – target _blank – inline styled, used like this:
1 |
[w3allfeed w3feed_url="http://engadget.com/rss.xml" w3feed_items_num="5" w3feed_href_blank="1" w3feed_inline_style="list-style:none;"] |
Blue Origin now has an explanation for the booster failure that cut a New Shepard flight short last September. Jeff Bezos' company has determined that a "thermo-structural failure" in the NS-23 rocket's engine nozzle was to blame. Operational temperatures for the nozzle climbed higher than expected following cooling system design changes, creating fatigue that misaligned the thrust and activated the crew capsule's escape system.
Engineers are already taking "corrective actions" that include redesigning the combustion chamber and operating conditions. Blue Origin has also tweaked the nozzle design to improve its structural integrity. The capsule wasn't damaged and will fly again, Blue Origin says.
The company says it hopes to resume flights "soon," but hasn't provided an exact date. It intends to restart operations by re-flying the research payload from the aborted mission. The Federal Aviation Administration has to accept the incident findings before Blue Origin can move forward.
There's plenty of pressure on Blue Origin to address the issues. The company recently obtained a NASA contract to fly a science mission to Mars using its yet-to-launch New Glenn rocket, and has been pushing for a lunar lander agreement. The sooner Blue Origin can prove that its rocketry is trustworthy, the sooner it can secure customers that include governments and space tourists.
Rivals are facing problems of their own. Relativity Space's first 3D-printed rocket failed to reach orbit earlier this month. SpaceX, meanwhile, has yet to successfully fire all of Starship's engines at the same time. That's not including past problems like Rocket Lab's setbacks. Private spaceflight remains difficult, and Blue Origin is just the latest to illustrate that fact.
This article originally appeared on Engadget at https://www.engadget.com/blue-origin-pins-last-summers-ns-23-rocket-failure-on-a-faulty-engine-nozzle-195714293.html?src=rssLevi’s is partnering with an AI company on computer-generated fashion models to “supplement human models.” The company frames the move as part of a “digital transformation journey” of diversity, equity, inclusion and sustainability. Although that sounds noble on the surface, Levi’s is essentially hiring a robot to generate the appearance of diversity while ridding itself of the burden of paying human beings who represent the qualities it wants to be associated with its brand.
Levi Strauss is partnering with Amsterdam-based digital model studio Lalaland.ai for the initiative. Founded in 2019, the company’s mission is “to see more representation in the fashion industry” and “create an inclusive, sustainable, and diverse design chain.” It aims to let customers see what various fashion items would look like on a person who looks like them via “hyper-realistic” models “of every body type, age, size and skin tone.”
Levi’s announcement echoes that branding, saying the partnership is about “increasing the number and diversity of our models for our products in a sustainable way.” The company continues, “We see fashion and technology as both an art and a science, and we’re thrilled to be partnering with Lalaland.ai, a company with such high-quality technology that can help us continue on our journey for a more diverse and inclusive customer experience.”
Levi’s claims, “AI will likely never fully replace human models for us” (note the qualifying “likely”). But I can’t help but see this as the first step in a dystopian slow walk toward automating the industry. As AI-generated “photography,” art and writing grow ever more convincing, we would be naive to take corporations at face value when they insist moves like this are about PR-friendly principles like celebrating diversity and looking out for the environment. At the very least, it’s awfully convenient that those high-minded motives also let them mass-produce something that previously required hiring people.
Levi Strauss reportedly began a 12-to-19-month process of cutting around 800 jobs — almost 20 percent of its corporate workforce — last year. It was part of a restructuring plan to save about $75 million to $100 million annually.
This article originally appeared on Engadget at https://www.engadget.com/levis-will-supplement-human-models-with-ai-generated-fakes-190011557.html?src=rssIt's no shock to see another country banning TikTok from government phones, but France is taking the restrictions a step further. Le Mondereports the French government is banning "recreational" apps like TikTok, Twitter, Netflix and even Candy Crush from public servants' devices. The apps represent cybersecurity risks that could jeopardize data for both the employees and the administration, according to the office of public service minister Stanislas Guerini.
The government hasn't provided an exact list of banned apps. However, Guerini said certain there could be some exceptions for the sake of necessary communication. This won't prevent a social media team from posting content, in other words. The ban takes effect immediately, but the penalties for defying the rule can be decided at the "managerial level," Guerini's office says. The approach doesn't affect personal devices.
The clampdown comes after the US federal government, dozens of states, Canada, the European Commission and the UK have banned TikTok on their workers' devices. In those cases, the rationale has been similar: officials are worried the Chinese government could collect data about important individuals, spread propaganda and compel ByteDance (TikTok's parent company) to hand over sensitive information.
TikTok has repeatedly denied collaborating with the Chinese government. In testimony before a House committee yesterday, CEO Shou Chew said ByteDance was "not an agent of China" and that American user data wouldn't be accessible to staff in other countries by the time a migration project wraps up later this year.
The French policy, however, isn't aimed at any one country or app category. Instead, it represents a general concern that entertainment apps may put government data at unnecessary risk. That's not so hot for employees hoping to watch Netflix during lunch, but it may reassure politicians worried employees might inadvertently expose info through their social media accounts.
This article originally appeared on Engadget at https://www.engadget.com/france-bans-tiktok-and-candy-crush-from-government-phones-170434409.html?src=rssOpenAI was forced to take its wildly-popular ChatGPT bot offline for emergency maintenance on Tuesday after a user was able to exploit a bug in the system to recall the titles from other users' chat histories. On Friday the company announced its initial findings from the incident.
In Tuesday's incident, users posted screenshots on Reddit that their ChatGPT sidebars featured previous chat histories from other users. Only the title of the conversation, not the text itself, were visible. OpenAI, in response, took the bot offline for nearly 10 hours to investigate. The results of that investigation revealed a deeper security issue: the chat history bug may have also potentially revealed personal data from 1.2 percent of ChatGPT Plus subscribers (a $20/month enhanced access package).
"In the hours before we took ChatGPT offline on Monday, it was possible for some users to see another active user’s first and last name, email address, payment address, the last four digits (only) of a credit card number, and credit card expiration date. Full credit card numbers were not exposed at any time," the OpenAI team wrote Friday. The issue has since been patched for the faulty library which OpenAI identified as the Redis client open-source library, redis-py.
The company has downplayed the likelihood of such a breach occurring, arguing that either of the following criteria would have to be met to place a user at risk:
- Open a subscription confirmation email sent on Monday, March 20, between 1 a.m. and 10 a.m. Pacific time. Due to the bug, some subscription confirmation emails generated during that window were sent to the wrong users. These emails contained the last four digits of another user’s credit card number, but full credit card numbers did not appear. It’s possible that a small number of subscription confirmation emails might have been incorrectly addressed prior to March 20, although we have not confirmed any instances of this.
- In ChatGPT, click on “My account,” then “Manage my subscription” between 1 a.m. and 10 a.m. Pacific time on Monday, March 20. During this window, another active ChatGPT Plus user’s first and last name, email address, payment address, the last four digits (only) of a credit card number, and credit card expiration date might have been visible. It’s possible that this also could have occurred prior to March 20, although we have not confirmed any instances of this.
The company has taken additional steps to prevent this from happening again in the future including adding redundant checks to library calls, "programatically examined our logs to make sure that all messages are only available to the correct user," and "improved logging to identify when this is happening and fully confirm it has stopped." The company says that it has also reached out to alert affected users of the issue.
This news follows a costly public faux pas committed by Google's rival Bard AI in February when it incorrectly assured Twitter that the JWST was the first telescope to image an exoplanet, as well as revelations that CNET had surreptitiously used generative AI to write financial explainer posts (a week before laying off a sizable chunk of its editorial department). Whether OpenAI will suffer the same market-based repercussions as its competitors remains to be seen.
This article originally appeared on Engadget at https://www.engadget.com/openai-says-a-bug-leaked-sensitive-chatgpt-user-data-165439848.html?src=rssThe next game from the makers of Genshin Impact has a release date. Honkai: Star Rail — a turn-based, space-fantasy, tactical RPG — arrives on April 26th. In addition to previously announced PC and mobile availability, developer HoYoverse announced today that a PlayStation (PS5 / PS4) version is coming “later.”
Although much is unknown about Honkai: Star Rail, we do know it trades in Genshin Impact’s Breath of the Wild type of open-world action for turn-based combat. Based on its trailers, it looks like a visual spectacle with an anime-esque art style and a cast of memorable characters.
The story, set in the same universe as Honkai Impact 3rd, follows a protagonist with an implanted Stellaron (mysterious life forms that respond to the world’s desire to advance) on a quest to discover the truth about the “Cancer of All Worlds.” It begins at a tutorial level on Herta Space Station before moving on to snow-covered Jarilo-VI and other diverse worlds.
The free-to-play game will use gacha (item and character-based loot boxes) for monetization. It’s rated T for Teen and will be available for PC (standalone installation or the Epic Games Store), iOS and Android. That PS5 / PS4 version will arrive at an unknown later date.
This article originally appeared on Engadget at https://www.engadget.com/the-next-game-from-the-makers-of-genshin-impact-arrives-in-april-165030309.html?src=rssThis procedure assume you installed the wp_w3all WordPress phpBB integration plugin (in linked or not linked users mode) into WordPress, and phpBB mChat into your phpBB. At date of this post, the code as is can be applied by anyone, but this is a raw procedure may easy to be changed by advanced users. Work fine, but to optimize at best for your site, you may have to change something on the little javascript code you’ll add as explained on install steps. You can see the concept and code to apply available here:
Just a good point to start from, that can be easily improved under any aspect and to fit any needs. Will be upgraded along the time.
v3 version (for cool people) old v2 version is here
NOTE THAT THIS CODE IS SUITABLE UNTIL 1.9.8 or <
Cool people are actually using version 4:
PAGE HELP – JS code – UPDATED on 24 Feb 2019
(related views/page-forum.php – updated on 3 Gen 2019)
phpBB SEO mods compatible
wp_w3all plugin 1.9.4 >
(READ ALL this page)
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:
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):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
<script type="text/javascript"> document.domain = 'axew3.com'; // MANDATORY! // Set/Change this value to fit your domain (example: axew3.com (or leave localhost if on localhost)) var wordpress_url_page_forum = 'https://localhost/wp5/forum'; // MANDATORY! // (DO NOT ADD/INCLUDE final slash here) Url that point to your iframed wordpress forum page var w3all_doc_domain = document.domain; var w3allappend = false; var boardU = "{BOARD_URL}"; // Lightbox correct scroll fix: // https://www.axew3.com/w3/forums/viewtopic.php?f=13&t=885 // remove /* and */ to activate, also more below to complete ... /* $(".postimage").on("click", function(event) { var pos = event.pageY - 100; $(parent.window).scrollTop( 200 ); var el = document.getElementById("lightbox"); $("#lightboxOverlay").on("click", function() { $(parent.window).scrollTop( pos ); }); $(".lb-close").on("click", function() { $(parent.window).scrollTop( pos ); }); $(".lightbox").on("click", function() { $(parent.window).scrollTop( pos ); }); }); */ function w3allNormalize_phpBBUrl(href){ // try to 'normalize' passed relative links: needed all after last slash / // exception are kind of passed urls like: /phpbb323/app.php/help/faq // and if SEO mods that may assign some different kind of links values // by the way, SEO absolute urls http(s) should be (all?) already considered here ... var phpbbRUrl = href.split(/^.+?(\w+.+)$/); if( href.indexOf('app.php') > -1 ){ // since the previous not 'normalize' this type of passed value (and may miss something else) phpbburl = href.split(/^.+?(app\.php.+)$/); w3allappend = phpbburl[1]; } else if ( /^https?/ig.exec(href) !== null ){ // absolute http(s) passed: try to 'normalize' a possible seo mod phpbburl = href.split(boardU); w3allappend = phpbburl[1]; } else if ( phpbbRUrl[1] && phpbbRUrl[1].length > 1 ){ // 'normalize' any other w3allappend = phpbbRUrl[1]; } else if ( phpbbRUrl[0].length > 1 ){ w3allappend = phpbbRUrl[0]; } // ... if still not normalized if(/^\W/ig.exec(w3allappend) !== null){ w3allappend = w3allappend.split(/^.+?(\w+.+)$/); if(w3allappend[1]){ w3allappend = w3allappend[1]; } if ( w3allappend[1] && w3allappend[1].charAt(0) == '/' ){ w3allappend = w3allappend[1].substr(1); } } return w3allappend; } $(document).on("click", "a", function(e) { var href = $(this).attr("href"); if( /[^-0-9A-Za-z\._#\:\?\/=&%]/ig.exec(href) !== null ){ return; } if( /\/adm\//ig.exec(href) !== null ){ e.preventDefault(); window.open(href,'_blank'); return; } if( /posting\.php\?mode=[reply|post|bump]/ig.exec(href) !== null || /mcp\.php\?/ig.exec(href) !== null ){ var w3allNOappend = true; } // check if link point to external resource if ((this.href.indexOf(boardU) > -1) != true){ if(/^(f|ht)tps?:\/\//i.test(href)){ e.preventDefault(); // prevent load as we are inside parent.location.replace(href); return; } } // check for # short links like on FAQ page if ( href.charAt(0) == '#' ){ return; } w3allappend = w3allNormalize_phpBBUrl(href); var w3all_parent_element_id = $(this).parent().get( 0 ).id; // detect click x ... (ex: return ID smiley-box, onclick post smiles) ... // detect and avoid/allow certain behaviors var w3all_onclick_smile = (w3all_parent_element_id.indexOf('smiley-box') > -1); var w3all_onview_topic = (href.indexOf('viewtopic.php') > -1); var w3all_onview_attach = (href.indexOf('file.php') > -1); var w3all_onreview_post = /#[review]+/ig.exec(href); var w3all_ck_quickmod = (href.indexOf('quickmod') > -1); var w3all_onreply_topic = (href.indexOf('mode=reply') > -1); var w3all_ck_onindex = (href.indexOf('index.php') > -1); // complete Lightbox correct attachment display // activate removing /* and */ // or used to open on new tab attachments /* if(w3all_onview_attach !== false){ e.preventDefault(); window.open(href,'_blank'); return; } */ if ( w3all_onclick_smile == false && w3all_onview_attach == false && w3all_onreview_post == null ) { if ('parentIFrame' in window) window.parentIFrame.scrollTo(0,50); // change 50 to another value may 0 or 100 or 500. Top distance gap in px when page scroll top } if ('parentIFrame' in window){ if( typeof w3allNOappend == 'undefined' ){ window.parentIFrame.sendMessage(w3allappend); } } }); /////////////////////////////////////////////////////////////////////////// // w3all Ajax UPDATES for phpBB events //if (window.frameElement) { // if in iframe //if ('parentIFrame' in window){ if(window.self !== window.top){ var pmn = "{PRIVATE_MESSAGE_COUNT}"; var w3all_phpbb_u_logged = "{S_USER_LOGGED_IN}"; // to send to wp at once here var w3appendevents = '#w3all_phpbbpmcount=' + pmn + '#w3all_phpbb_u_logged=' + w3all_phpbb_u_logged; if(w3appendevents.indexOf('w3allmchatif') == -1){ //if(parent.location.href.indexOf(wordpress_url_page_forum) > -1){ parent.w3all_ajaxup_from_phpbb(w3appendevents); //} } // fix vertical iframe centered on viewtopic.php, preview or where # anchor etc (but skip on iOS) var w3iOS = !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform); if(w3iOS == false){ $(window).load(function() { var bd = document.getElementsByTagName("body"); for (var i = 0; i < bd.length; i++) { var bdID = bd[i].getAttribute("id"); } var elt = document.getElementById(bdID); elt.setAttribute("style", "position:fixed;top:0%;left:0%;width:100%;margin:0px;"); }); } $( "a" ).contextmenu(function() { var ohref = $(this).attr("href"); var href = this.href; // treath like an external because only open New tab or New window d = w3allNormalize_phpBBUrl(href); hrefEnc = window.btoa(unescape(encodeURIComponent(d))); href1 = wordpress_url_page_forum + '/?w3=' + hrefEnc; $(this).attr("href", href1); // send out encoded $(this).mouseleave(function() { // reset (replaced 'mouseup') $(this).attr("href", ohref); }); }); } // END if (window.frameElement) { </script> <script type="text/javascript" src="https://localhost/root_integrations/phpbb323/iframeResizer.contentWindow.min.js" defer></script> |
after you pasted this code into phpBB overall_footer.html
edit following lines:
1 |
document.domain = 'axew3.com'; // THIS IS MANDATORY! Set/Change this value to your domain (example: axew3.com (or set localhost if on localhost)) |
change axew3.com 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:
1 |
var wordpress_url_page_forum = 'https://www.axew3.com/w3/forum'; // MANDATORY! (DO NOT INCLUDE final slash here) Url that point to your wordpress forum page (without final slash) |
change value
https://www.axew3.com/w3/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
1 |
<script type="text/javascript" src="https://www.axew3.com/phpBB/iframeResizer.contentWindow.min.js" defer></script> |
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
1 |
src="https://www.yoursite.com/your-phpbb-folder/iframeResizer.contentWindow.min.js" |
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, may 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.
Notification email links to point to iframe: follow read more below for the pure Javascript solution. Refer to v2 or v1 code for htaccess or js solution editing phpBB notifications files.
The new V3 w3all iframe code do not use anymore htaccess to force redirect as on V1 code, and substantially not rewrite URLs forcing redirect to iframe, 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 on notification email 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.
To apply same smooth scroll effect as it is on this online example, after finished with this procedure, follow with this steps:
Smooth scroll for phpBB WordPress template integration (iframe v3)
Open with a text editor your phpBB template file overall_header.html
and just immediately after this code (or by the way, before the closing tag </head>)
1 2 3 4 5 6 7 8 9 10 |
<!-- IF U_CANONICAL --> <link rel="canonical" href="{U_CANONICAL}"> <!-- ENDIF --> <!-- phpBB style name: prosilver Based on style: prosilver (this is the default phpBB3 style) Original author: Tom Beddard ( http://www.subBlue.com/ ) Modified by: --> |
add the following code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<!-- IF not S_IS_BOT --><script type="text/javascript"> // START force w3all to iframe redirect var wordpress_url_page_f = 'https://localhost/wp5/forum'; // MANDATORY! // (DO NOT ADD/INCLUDE final slash here) Url that point to your iframed wordpress forum page function w3all0Normalize_phpBBUrl(u){ var bu = "{BOARD_URL}"; w3allappend = "{BOARD_URL}"; if ( /^https?/ig.exec(u) !== null ){ phpbburl = u.split(bu); w3allappend = phpbburl[1]; } if(/^\W/ig.exec(w3allappend) !== null){ w3allappend = w3allappend.split(/^.+?(\w+.+)$/); if(w3allappend[1]){ w3allappend = w3allappend[1]; } if ( w3allappend[1] && w3allappend[1].charAt(0) == '/' ){ w3allappend = w3allappend[1].substr(1); } } return w3allappend; } if ((window.self !== window.top) != true) { //(or get loop) if(/adm\//ig.exec(window.location.href) === null){ // avoid x ACP var w3all_r = window.location.href.replace(/sid=.+/gi, ''); w3all_r = w3all0Normalize_phpBBUrl(w3all_r); hrefEnc = window.btoa(unescape(encodeURIComponent(w3all_r))); href0 = wordpress_url_page_f + '/?w3=' + hrefEnc; document.location.replace(href0); }} // END force w3all to iframe redirect </script> <!-- ENDIF --> |
On added code, change URL on the line where (line 3):
1 |
var wordpress_url_page_f = 'https://localhost/wp5/forum'; |
to fit/point to the WordPress iframed forum page: DO NOT ADD final slash and setup as http or https as needed.
NOTE: if you added the code above into phpBB overall_header.html then you’ll need to remove or comment out this part by the code you added into the overall_footer.html:
1 2 3 4 5 6 7 8 9 10 11 12 |
$( "a" ).contextmenu(function() { var ohref = $(this).attr("href"); var href = this.href; // treath like an external because only open New tab or New window d = w3allNormalize_phpBBUrl(href); hrefEnc = window.btoa(unescape(encodeURIComponent(d))); href1 = wordpress_url_page_forum + '/?w3=' + hrefEnc; $(this).attr("href", href1); // send out encoded $(this).mouseleave(function() { // reset (replaced 'mouseup') $(this).attr("href", ohref); }); }); |
Recompile phpBB template and reset to no the option when changes applied
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:
1 2 3 4 5 |
if( /\/adm\//ig.exec(href) !== null ){ e.preventDefault(); window.open(href,'_blank'); return; } |
on code for overall_header.html remove this part:
1 2 3 4 5 6 7 |
if ((window.self !== window.top) != true) { //(or get loop) if(/adm\//ig.exec(window.location.href) === null){ // avoid x ACP var w3all_r = window.location.href.replace(/sid=.+/gi, ''); w3all_r = w3all0Normalize_phpBBUrl(w3all_r); hrefEnc = window.btoa(unescape(encodeURIComponent(w3all_r))); href0 = wordpress_url_page_f + '/?w3=' + hrefEnc; document.location.replace(href0); }} // END force w3all to iframe redirect |
change into:
1 2 3 4 5 6 |
if ((window.self !== window.top) != true) { //(or get loop) w3all_r = window.location.href.replace(/sid=.+/gi, ''); w3all_r = w3all0Normalize_phpBBUrl(w3all_r); hrefEnc = window.btoa(unescape(encodeURIComponent(w3all_r))); href0 = wordpress_url_page_f + '/?w3=' + hrefEnc; document.location.replace(href0); } // END force w3all to iframe redirect |
WP_w3all plugin from 2.0.2 – WordPress MU MS . The plugin can be also network activated, but the linked phpBB on each subsite, need to be the same (same path and same url setting value). If the plugin is network activated, it is mandatory that the sub admin or super admin, setup/configure into (each) subsite the same config of the main site for the integration plugin. Users that register in phpBB (if you allow this in phpBB) are added as users only into the FIRST WP site (or subsite) where users will login or that they will visits while coming already logged in into phpBB. *But you could use a plugin to add coming phpBB logged users, into each or just few WordPress site/subsites they visits, see more below.
search for line (value wp_ can be maybe different):
1 |
$table_prefix = 'wp_'; |
immediately after ADD:
1 |
define( 'WPW3ALL_MAIN_DBPREFIX', $table_prefix ); |
BEWARE that it is NOT possible to link different phpBB installations on same installation network, the integration in this state lead to unpredictable results! … in true it is very predictable what can happen, but really long to explain and too hard for my Eng! In short, it is NOT possible to link a different phpBB into WP network subsites with actual code.
Setup into sub-sites, if the plugin is network activated, same path and url in WP_w3all config, with same values of main site.
*Hint: you could use a plugin to add coming phpBB logged users, into each WordPress they visits, or just to few, and with several different features: search for Join My Multisite plugin at WordPress plugins directory.
NOTE: WP_w3all phpBB integration plugin when an user is deleted in WordPress (so it become deactivated in phpBB, and then you may go to delete this user in phpBB) also clean up from signup table in WordPress this user. This is necessary for compatibility (as the code is) with the phpBB integration to avoid that another user register with same email into phpBB (if you allow users to register also on phpBB side, and you have may also deleted this user in phpBB) while the user has been deleted in WP, but his email/username still stored into WP database signups table.
Problem: i have WordPress users and I have phpbb users, they have different usernames but the same email addresses.
user A into phpBB with email C
user B into WP with email C
user A into phpBB come to try to login WP: NOT added can’t login WP side.
If you use the transfer process of WP users into phpBB:
user A Same above.
user B transferred into phpBB, B now can login into both phpBB and WP.
You’ll have two users into phpBB with same email, which is possible as option into phpBB.
Change email to the user B in WP.
Login with the phpBB user A into WP, that will be added, as no same email found.
Now delete user B in WP, and retain posts assigning to A.
Result: an unique user, with all his posts on both phpBB and WP.
NOTE: This is just to give an idea on how to resolve common problems about an integration with pre existent users in phpBB that may have same email. But there are several more possibilities: in phpBB ACP there are many options to manage users and posts, and combining these and from the above, you should get the way to resolve any possible scenario.
Based on this topic: How are users identified? (when adding/transfer existent users)
WPD w3all WordPress plugin for Dropbox, to display and manage shared Dropbox user’s files into WordPress user’s pages.
Display shared Dropbox files, into WordPress user’s pages.
Choose between Full Dropbox App or Folder App.
Ajax images gallery.
Choose which WP groups can use the Dropbox in WordPress.
Limit files in sharing to retrieve and display in WordPress.
Data cache.
Template embed into any WordPress with an easy how to included.
Users can manage their files within WordPress, delete/create folders, link, unlink files and folders, upload and create/link files and folders.
Any other feature on request.
The Dropbox plugin has been installed also here at axew3.com, and activated for an user named axew3:
https://www.axew3.com/w3/dropbox/?u=axew3
Display into WordPress, images from Dropbox, by coping the link of it on WordPress Dropbox user page, and by clicking on WP button
Add Media -> Insert from Url and just paste the URL.
Or files just adding pure URL:
https://www.dropbox.com/s/dp842rkzmhwtzx7/BioRhyme.zip?dl=1
Ask for it at https://plugins.w3tasks.com/wp/
If you like to test the user files manager, which is feature available for each user on his own WordPress Dropbox page, please register into this site, or at plugins.w3tasks.com, and send a request by using the contact page.