Re: 2.8.5 logs
Posted: Sun Jun 30, 2024 9:22 am
Testing an install, i've probably get the same... looking...yes! wp_w3all_phpbb_iframe_shortif() return false so the shortcode do not fire.
FIxing....
FIxing....
Code: Select all
function wp_w3all_phpbb_iframe_shortif()
{
global $wp_w3all_phpbb_iframe_short_pages_yn;
if ( is_admin() OR is_customize_preview() ) { return; }
if(!empty($wp_w3all_phpbb_iframe_short_pages_yn)){
$wp_w3all_phpbb_iframe_short_pages_yn = explode(',',trim($wp_w3all_phpbb_iframe_short_pages_yn));
}
if(!empty($wp_w3all_phpbb_iframe_short_pages_yn) && is_array($wp_w3all_phpbb_iframe_short_pages_yn))
{
$wp_w3all_phpbb_iframe_short_pages_yn = array_map('trim', $wp_w3all_phpbb_iframe_short_pages_yn);
$shortonpage = $shortonpage_home = false;
foreach($wp_w3all_phpbb_iframe_short_pages_yn as $p)
{ // detect which/if page match in the request and check if inhomepage-hb-phpbb-last-posts in home has been set: check it after
if($p=='inhomepage-phpbbiframe'){ $shortonpage_home = true; }
if(strstr($_SERVER['REQUEST_URI'],'/'.$p) OR strstr($_SERVER['REQUEST_URI'],'/?'.$p))
{
$shortonpage = true;
}
}
if(!$shortonpage && $shortonpage_home)
{
if(!empty($_SERVER['REQUEST_URI']))
{
if(substr($_SERVER['REQUEST_URI'], -1, 1) == '/'){
$REQUEST_URI = substr($_SERVER['REQUEST_URI'], 0, -1);
} else { $REQUEST_URI = $_SERVER['REQUEST_URI']; }
$siteUrl = get_option('siteurl');
if(substr($siteUrl, -1, 1) == '/'){
$siteUrl = substr($siteUrl, 0, -1);
}
if(!empty($REQUEST_URI) && strpos($siteUrl, $REQUEST_URI))
{
if(strpos($siteUrl, $REQUEST_URI) !== false)
{ $shortonpage = true; }
} elseif ( $_SERVER['REQUEST_URI'] == '/' )
{ $shortonpage = true; }
elseif ( !strpos($siteUrl, $REQUEST_URI) )
{
$ck = explode('/?',$REQUEST_URI);
if(isset($ck[0]) && strpos($siteUrl, $ck[0]))
{ $shortonpage = true; }
$ck = explode('/index.php',$REQUEST_URI);
if(isset($ck[0]) && strpos($siteUrl, $ck[0]))
{ $shortonpage = true; }
}
}
}
//return $shortonpage;
} else { return; }
/*if($shortonpage){
include( WPW3ALL_PLUGIN_DIR.'common/wp_phpbb_iframe_shortcode.php' );
}*/
if($shortonpage){
if (file_exists(ABSPATH.'wp-content/plugins/wp-w3all-custom/wp_phpbb_iframe_shortcode.php')){
include(ABSPATH.'wp-content/plugins/wp-w3all-custom/wp_phpbb_iframe_shortcode.php');
} else { include( WPW3ALL_PLUGIN_DIR.'common/wp_phpbb_iframe_shortcode.php' ); }
}
}
Code: Select all
[iFrameSizer][w3all_phpbb_iframe] No tagged elements (data-iframe-height) found on page