About the app.php kind of url, as all is structured, it require a little more complicate way.
the phpBB .htaccess code, need to change into:
Code: Select all
RewriteCond %{QUERY_STRING} ^(.*)(iframe=true&)(.*)(p=)([0-9]+)(.*)?$
RewriteRule . /wp49/index.php/forum/?%3post_id=%5%6 [R,L]
#all others
RewriteCond %{QUERY_STRING} ^(.*)(iframe=true)(.*)$
RewriteRule . /wp49/index.php/forum/?%3 [R,L]
# custom app
RewriteCond %{REQUEST_URI} ^(.*)(app.php/iframe=true/)(.*)$
RewriteRule . /wp49/index.php/forum/?app=%3 [R,L]
so substantially you'll add this to the code added into your phpBB .htaccess
Code: Select all
# custom app
RewriteCond %{REQUEST_URI} ^(.*)(app.php/iframe=true/)(.*)$
RewriteRule . /wp49/index.php/forum/?app=%3 [R,L]
change the
/wp49/index.php/forum/ with path to your wp iframed page link.
NOTE that here the passed URL to get this work, still need to contain and pass the var iframe=true in this way (as specified to be grabbed by the .htaccess added code):
Code: Select all
http://localhost/root_integrations/phpbb32/app.php/iframe=true/applicationform
So on
page-forum.php, to correctly pass the value for the src attribute of the iframe element, it need to be first sanitized, then we go to build like explained on prev post, same procedure:
after the line:
Code: Select all
$w3iu_folder = isset($_GET["folder"]) ? $_GET["folder"] : '';
add this line:
Code: Select all
$w3app = isset($_GET["app"]) ? $_GET["app"] : '';
now change the line about values sanitization:
Code: Select all
if( preg_match('/[^0-9A-Za-z]/',$w3act_key) OR preg_match('/[^0-9]/',$w3phpbbuid) OR preg_match('/[^a-z]/',$w3phpbbwatch) OR preg_match('/[^a-z]/',$w3phpbbunwatch) OR preg_match('/[^A-Za-z]/',$w3iu_folder) OR preg_match('/[^A-Za-z]/',$w3iu) OR preg_match('/[^0-9]/',$w3phpbb_start) OR preg_match('/[^0-9]/',$w3topic_id) OR preg_match('/[^0-9]/',$w3phpbb_viewtopic) OR preg_match('/[^0-9]/',$w3phpbb_viewforum) OR preg_match('/[^0-9]/',$w3forum_id) OR preg_match('/[^0-9]/',$w3post_id) OR preg_match('/[^0-9A-Za-z]/',$w3mode) OR preg_match('/[^0-9A-Za-z]/',$w3phpbbsid) ){
adding the new value to sanitize, so change into:
Code: Select all
if( preg_match('/[^-0-9A-Za-z_]/',$w3app) OR preg_match('/[^0-9A-Za-z]/',$w3act_key) OR preg_match('/[^0-9]/',$w3phpbbuid) OR preg_match('/[^a-z]/',$w3phpbbwatch) OR preg_match('/[^a-z]/',$w3phpbbunwatch) OR preg_match('/[^A-Za-z]/',$w3iu_folder) OR preg_match('/[^A-Za-z]/',$w3iu) OR preg_match('/[^0-9]/',$w3phpbb_start) OR preg_match('/[^0-9]/',$w3topic_id) OR preg_match('/[^0-9]/',$w3phpbb_viewtopic) OR preg_match('/[^0-9]/',$w3phpbb_viewforum) OR preg_match('/[^0-9]/',$w3forum_id) OR preg_match('/[^0-9]/',$w3post_id) OR preg_match('/[^0-9A-Za-z]/',$w3mode) OR preg_match('/[^0-9A-Za-z]/',$w3phpbbsid) ){
then we go to add the correct redirect to be used as src for iframe element,
so after the code:
Code: Select all
} else {
$w3all_url_to_cms = $w3all_url_to_cms;
}
add the follow instruction:
Code: Select all
if(!empty($w3app)){
$w3all_url_to_cms = $w3all_url_to_cms . "/app.php/".$w3app."";
}
After all this maybe will be also necessary to add all the code added into the phpBB
overall_footer.html about resizer, checking that the call to include the library is correct where on last added line:
src="./iframeResizer.contentWindow.min.js"
where it in case need to be added (in case it need to be added because this way to add pages into phpBB may not use the overall_footer.html of the forums template) i ignore at moment, because in true i've not install the mod, i've just reproduce the "effect" using custom url calls.
The code about right click to build this kind of link need to be added also in case.
I will add if you want to precede and you like to apply all the joke. Let know if you not find it very complicate.
About email link that after edited the file like u suggest, still send emails without iframe=true on activation link, still it is on my test.