Hi! Yes correct: because the problem was that a particular var,
p used on both cms and values to pass (vars) as are them self:
the url to push is now passed to page_forum in
overall_footer.html where
Code: Select all
hrefEnc = window.btoa(unescape(encodeURIComponent(d)));
pushed then in page-forum where:
Code: Select all
history.pushState(w3all_passed_url_push, 'Forum page', w3all_passed_url_push);
as base_64 value: if page reloaded by user, another time, where
Code: Select all
if( isset($_GET["w3"]) ){
$phpbb_url = base64_decode($_GET["w3"]);
$phpbb_url = trim(utf8_encode($phpbb_url));
if( preg_match('/[^-0-9A-Za-z\._#\:\?\/=&%]/i',$phpbb_url) ){
$w3all_url_to_cms = $w3all_url_to_cms;
} else {
$phpbb_url = substr($phpbb_url, 1);
$w3all_url_to_cms = $w3all_url_to_cms . "".$phpbb_url."";
}
}
decode and pass.
It is a way to bypass all problems, and that never fail, making quite easy the integration complete about right-click and open in new window a forum's link, as well the fact about url to be pushed, that in this way never conflict with anything. It is wrapped encoded into a var named
w3.
That work for any link. Try it, never fail in any iframed board link-
htaccess isn't needed anymore also for email notification links! I've not apply this part nor here on this board, but it is very easy. I will complete the documentation and code about this as soon. Since there is no more a var p around, but an encoded string, will be just necessary add a line into overall_header.html: if the url contain let say as is on old example the var
iframe=true then redirect to passed url directly: the url not contain any var p because encoded. This the trick. No conflict. no htaccess needed to rewirte var p into post_id.
Shorter code that can be further decreased.
Hope my poor explain here is quite clear to understand something.
I'll return back soon, working for a quite big site actually, migrating and integrating. One task between others was: no iframe, but complex header of main page needed into phpBB. Since the header of this new building site contain several elements, multiple and sub menu, ads etc, i was quite worried on reproduce all these shits you know ... well, i discovered a way to iframe the header of any site, into another on same domain (but also cross domain) showing exactly what needed in a let me say not common way. Result is awesome (the guy working with me to setup the site is amazed by the result, and i'm little proud yes!). Will be a pleasure to make a tutorial about this and working example showed somewhere here around.
Hi! Yes correct: because the problem was that a particular var, [b]p[/b] used on both cms and values to pass (vars) as are them self:
the url to push is now passed to page_forum in [i]overall_footer.html[/i] where
[code]hrefEnc = window.btoa(unescape(encodeURIComponent(d)));[/code]
pushed then in page-forum where:
[code]history.pushState(w3all_passed_url_push, 'Forum page', w3all_passed_url_push);
[/code]
as base_64 value: if page reloaded by user, another time, where
[code]if( isset($_GET["w3"]) ){
$phpbb_url = base64_decode($_GET["w3"]);
$phpbb_url = trim(utf8_encode($phpbb_url));
if( preg_match('/[^-0-9A-Za-z\._#\:\?\/=&%]/i',$phpbb_url) ){
$w3all_url_to_cms = $w3all_url_to_cms;
} else {
$phpbb_url = substr($phpbb_url, 1);
$w3all_url_to_cms = $w3all_url_to_cms . "".$phpbb_url."";
}
}[/code]
decode and pass.
It is a way to bypass all problems, and that never fail, making quite easy the integration complete about right-click and open in new window a forum's link, as well the fact about url to be pushed, that in this way never conflict with anything. It is wrapped encoded into a var named [i]w3[/i].
That work for any link. Try it, never fail in any iframed board link-
htaccess isn't needed anymore also for email notification links! I've not apply this part nor here on this board, but it is very easy. I will complete the documentation and code about this as soon. Since there is no more a var p around, but an encoded string, will be just necessary add a line into overall_header.html: if the url contain let say as is on old example the var [i]iframe=true[/i] then redirect to passed url directly: the url not contain any var p because encoded. This the trick. No conflict. no htaccess needed to rewirte var p into post_id.
Shorter code that can be further decreased.
Hope my poor explain here is quite clear to understand something.
I'll return back soon, working for a quite big site actually, migrating and integrating. One task between others was: no iframe, but complex header of main page needed into phpBB. Since the header of this new building site contain several elements, multiple and sub menu, ads etc, i was quite worried on reproduce all these shits you know ... well, i discovered a way to iframe the header of any site, into another on same domain (but also cross domain) showing exactly what needed in a let me say not common way. Result is awesome (the guy working with me to setup the site is amazed by the result, and i'm little proud yes!). Will be a pleasure to make a tutorial about this and working example showed somewhere here around.