Re: Coming WordPress phpBB 2.5.9 and 2.5.8 report bugs
Posted: Sat Feb 26, 2022 7:37 am
page-forum and shortcode code has been patched to resolve a bug when integration run as NOT LINKED USERS.
The problem come out when an user login in phpBB and is not recognized as logged by js code.
So that, to fix this aspect, has been necessary to add this line of code, that avoid the reload iframe loop:
where on top of both files
page-forum.php
and
/wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php
there is this code:
become (+-):
so we'll have iframe integration fully working also in not linked users mode.
The problem come out when an user login in phpBB and is not recognized as logged by js code.
So that, to fix this aspect, has been necessary to add this line of code, that avoid the reload iframe loop:
where on top of both files
page-forum.php
and
/wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php
there is this code:
Code: Select all
// START MAY DO NOT MODIFY
if(defined("W3PHPBBCONFIG")){
// detect if it is the uid2 in phpBB and avoid iframe loop
$phpBBuid2 = (isset($_COOKIE[W3PHPBBCONFIG["cookie_name"].'_u']) && $_COOKIE[W3PHPBBCONFIG["cookie_name"].'_u'] == 2) ? 2 : 0;
} else { $phpBBuid2 = 0; }
Code: Select all
// START MAY DO NOT MODIFY
if(defined("W3PHPBBCONFIG")){
// detect if it is the uid2 in phpBB and avoid iframe loop
$phpBBuid2 = (isset($_COOKIE[W3PHPBBCONFIG["cookie_name"].'_u']) && $_COOKIE[W3PHPBBCONFIG["cookie_name"].'_u'] == 2) ? 2 : 0;
} else { $phpBBuid2 = 0; }
// detect if it is no linked users mode and avoid iframe loop
if(defined("WPW3ALL_NOT_ULINKED")) { $phpBBuid2 = 0; }