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,
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 86
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"
Code:
"https://phpbb.mydomain.com/viewtopic.php?f=12&t=13121&p=144581#p144581/viewtopic.php?f=14&t=1876&p=184471#p184471"
Posted by coute — Wed Apr 12, 2023 1:19 pm — Replies 7 — Views 251
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 103
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;"] |
Apple plans to shut down its My Photo Stream service on July 26th, 2023, the company announced on Friday. The free service has been available since the release of iCloud in 2011. You can use My Photo Stream to upload the last 30 days of images and videos – up to a limit of 1,000 – from your Apple devices to iCloud. My Photo Stream predates iCloud Photos and gave Apple users a way to access their images and video clips on more than one device. Notably, content uploaded to iCloud through My Photo Stream do not count against your iCloud storage cap, though they’re not saved at full resolution.
In a support document spotted by MacRumors, Apple says My Photo Stream will stop automatically uploading photos to the company’s servers on June 26th, 2023. At that point, your photos and videos will remain on iCloud for 30 days until the official shutdown on July 26th. Since every image and video uploaded to iCloud through My Photo Stream is stored in its original format and resolution on at least one of your Apple devices, you won’t lose any cherished memories as part of the shutdown process. That said, if you want to have access to a specific image on a particular device, Apple recommends you save it to that device’s Photo Library before July 26th.
On iPhone and iPad, you can save an image from your My Photo Stream by opening the Photos app, navigating to the My Photo Stream album, selecting the photo you want to save and then tapping the Share button to save it to your Library. Apple ends the support document by noting, “iCloud Photos is the best way to keep the photos and videos you take up to date across all your devices and safely stored in iCloud.”
This article originally appeared on Engadget at https://www.engadget.com/apples-free-my-photo-stream-service-will-shut-down-on-july-26th-211650923.html?src=rssValve has delisted Dolphin from Steam after receiving a Digital Millennium Copyright Act (DMCA) takedown notice from Nintendo. In late March, the developers of Dolphin, an open source emulator that can run most GameCube and Wii titles, said they were planning to bring the free app to Valve’s storefront later this year. In a May 26th legal notice seen by PC Gamer, Nintendo's legal team asked Valve to remove Dolphin from Steam, claiming the emulator violates the company’s intellectual property rights.
"Because the Dolphin emulator violates Nintendo’s intellectual property rights, including but not limited to its rights under the Digital Millennium Copyright Act (DMCA)’s Anti-Circumvention and AntiTrafficking provisions, 17 U.S.C. § 1201, we provide this notice to you of your obligation to remove the offering of the Dolphin emulator from the Steam store," the document states.
With the notice, the Dolphin team has two options on how to move forward. It can either file a counter-claim with Valve, arguing the emulator doesn’t violate the DMCA as claimed by Nintendo, or it can choose to comply with the takedown notice. If the team files a counter-notice, Nintendo would have two weeks to decide whether to file a lawsuit. As PC Gamer notes, it’s unclear if the company actually intends to pursue legal action against Dolphin. However, if a case were to go to court, it could have far-reaching implications for emulators. For the time being, the Dolphin team says it’s deciding what to do next.
“It is with much disappointment that we have to announce that the Dolphin on Steam release has been indefinitely postponed,” the Dolphin Emulation Project said Friday. “We were notified by Valve that Nintendo has issued a cease and desist citing the DMCA against Dolphin's Steam page, and have removed Dolphin from Steam until the matter is settled. We are currently investigating our options and will have a more in-depth response in the near future.” As of the writing of this story, you can still download the Dolphin emulator from the project’s website and GitHub page. The Dolphin team did not receive a direct takedown notice from Nintendo.
This article originally appeared on Engadget at https://www.engadget.com/dolphin-emulator-steam-release-delayed-indefinitely-following-nintendo-dmca-notice-194601894.html?src=rssTwitter has withdrawn from a voluntary European Union agreement to combat online disinformation. In a tweet spotted by TechCrunch, Thierry Breton, the bloc’s internal market commissioner, said Twitter had pulled out of the EU’s “Code of Practice” against disinformation. “You can run but you can’t hide. Our teams are ready for enforcement,” Breton said, referring to the EU’s Digital Services Act. As of August 25th, the DSA will require “very large online platforms” like Twitter to be more proactive with content moderation.
Twitter leaves EU voluntary Code of Practice against disinformation.
— Thierry Breton (@ThierryBreton) May 26, 2023
But obligations remain. You can run but you can’t hide.
Beyond voluntary commitments, fighting disinformation will be legal obligation under #DSA as of August 25.
Our teams will be ready for enforcement.
Twitter does not operate a communications department Engadget could contact for comment. Before Elon Musk's takeover last October, Twitter signed onto the EU’s Code of Practice against disinformation in 2018, alongside companies like Facebook parent Meta, Google and TikTok. While the Code is voluntary, the EU announced in June 2022 that sticking to the agreement would count towards DSA compliance. As TechCrunch notes, Twitter’s decision to withdraw from the deal just three months before the EU starts enforcing the DSA would appear to suggest the company plans to skirt the bloc’s rules on content moderation.
However, ignoring the DSA could turn into an expensive fight for Twitter and Elon Musk. The legislation allows EU officials to hand out penalties of up to 10 percent of global annual turnover for infractions, with the potential for fines of up to 20 percent of worldwide turnover for repeat instances of non-compliance. The European Commission has also said that repeat non-compliance could lead to the EU blocking access to offending services.
This article originally appeared on Engadget at https://www.engadget.com/twitter-pulls-out-of-eus-voluntary-code-of-practice-against-disinformation-183726045.html?src=rssAvoiding manual floor maintenance is a lovely thing, but a good robot vacuum will cost you. Our current favorite pick for a mop and vac combo, iRobot's Roomba j7+ usually sells for $1,099 but Wellbots will knock $300 off the list price when you use the code 300ENGADGET at checkout. That beats a $200 discount we saw earlier this year and represents an all-time low for a gadget that "earned its place" in on of our senior editors' smart home. Wellbots has a few other vacs on sale too, also with discount codes, listed below.
Unlike some combo machines, in which you have to program where to mop and where to use the vacuum, the Roomba Combo j7+ senses when it's rolling over hard floors and drops down the on-board mop pad accordingly. It comes with a clean base, which sucks out the dry debris after a run, but you'll have to take care of adding and emptying the mop water yourself. iRobot machines continually top our lists, in part thanks to the accurate room mapping, easy-to-use app and excellent obstacle avoidance — qualities it shares with the vac-only sibling.
Wellbots is currently discounting the Roomba j7+ by $220 when you use the code 220ENGADGET. That brings the unit down to $579, which also beats a previous discount from the same seller earlier this year, and is the lowest price we've seen outside of Black Friday promotions last November. The standard (non-combo) Roomba j7 is the runner up mid-range vac in our guide and this version simply includes a clean base to suck out the dirt after it runs. One thing we should note is that process is loud but it gets you a bit closer to fully autonomous cleaning.
If you're fine with emptying the collected debris yourself, you can save a little on the base model Roomba j7. Wellbots is also offering $220 off that model, using the same code. That brings it down to just $379, which doesn't quite beat the deal Wellbots offered late last year, but is still a tidy discount.
And finally, if premium is what you want, you can get just that with iRobot's Roomba s9+. The same code also takes $220 off the $999 list price, making it $779 instead. It's the premium pick in our robot vacuum guide and comes complete with copper accents. Of course, doesn't just look pretty, our resident robot expert, senior commerce editor Valentina Palladino, calls it, "nothing if not one of the best robot vacuums out there."
Follow @EngadgetDeals on Twitter and subscribe to the Engadget Deals newsletter for the latest tech deals and buying advice.
This article originally appeared on Engadget at https://www.engadget.com/irobots-roomba-j7-combo-vacuum-is-300-off-right-now-140009152.html?src=rssispace is done analyzing data from its failed Hakuto-R lunar landing, and it sounds like tricky terrain and a late change in the landing site are to blame. Apparently, Hakuto-R was able to complete the whole deceleration process in preparation of touching down on lunar soil. The spacecraft activated its descent sequence when it reached an altitude of around 100 kilometers (62 miles) and was able to slow down until it was only moving at a speed of less than 1 m/s.
However, its software had mistakenly estimated its altitude to be zero when it was still hovering around 5 kilometers (3 miles) above the ground. In other words, it thought it had already landed when it hasn't yet, and it continued descending at a very slow speed near the surface until its propulsion system ran out of fuel. ispace wasn't able to establish contact with the spacecraft again, but it believes it went on a free fall and ultimately crashed on the moon.
That's the how, but what about the why? Well, the company thinks the most likely reason why Hakuto-R's software suffered from an altitude estimation issue was because it got confused. While it was flying to its landing site, it passed over a large cliff that was determined to be the rim of a crater. The spacecraft's onboard sensor got an altitude reading of 3 kilometers when it passed by the elevated terrain, and that was apparently larger than the estimated altitude value the Hakuto-R team set in advance.
The spacecraft's software erroneously thought that the sensor reported an abnormal value, and it kept filtering out its altitude measurements afterward. ispace built the ability to reject abnormal altitude measurements into the lander as a safety measure in the event of a hardware issue with the sensor. However, it backfired for Mission 1 because simulations of the landing sequence failed to incorporate the lunar environment on the spacecraft's route. ispace made the decision to change Hakuto-R's landing site after its critical design review was already completed in 2021.
The Hakuto-R Mission 1 was poised to become the first successful moon landing by a private company and the first Japanese lunar landing overall. While it didn't get to land on the moon, ispace will use the data from the mission to design preparatory landing sequences for Mission 2 and 3, which are scheduled for launch in 2024 and 2025, respectively.
This article originally appeared on Engadget at https://www.engadget.com/japans-ispace-says-hakuto-r-crashed-because-it-got-confused-by-a-crater-rim-113115803.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.