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....
2.8.5 logs
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: 2.8.5 logs
The function function wp_w3all_phpbb_iframe_shortif() on wp_w3all.php file
has been updated to fix the fact, that on some configurations, it was returning false by the way so the shortcode do not fire in those cases.
Here at this example as you can see was working, but not into a different one i tested.
The new function should work with any permalink, always returning the correct value:
going to test any other aspect and release 2.8.7
has been updated to fix the fact, that on some configurations, it was returning false by the way so the shortcode do not fire in those cases.
Here at this example as you can see was working, but not into a different one i tested.
The new function should work with any permalink, always returning the correct value:
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' ); }
}
}
- patrik69
- User ww
- Posts: 24
- Joined: Wed Jun 08, 2022 3:28 am
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: 2.8.5 logs
Try to put Forum and not forum, exactly how it is the page name, and how it appear on URL when you open it, into the plugin option
The (awesome) iframe template integration using shortcode
The (awesome) iframe template integration using shortcode
- patrik69
- User ww
- Posts: 24
- Joined: Wed Jun 08, 2022 3:28 am
Re: 2.8.5 logs
On the URL, it's "forum1".
When I put "forum1", the forum appears for a tenth of a second and then it's a blank page.
https://www.bayonnais.com/forum1/
When I put "forum1", the forum appears for a tenth of a second and then it's a blank page.
https://www.bayonnais.com/forum1/
Sorry for my english, i'm french...
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: 2.8.5 logs
the console return:
iFrameSizer??? that where you have do/edit to get this i do not know.
anyway the error return that you did not changed last overall_footer js code, as it should to be, based on latest update.
To access your phpBB forum at real URL, when you are instead forced redirected to the wp page, because you applied changes and set to NO the recompile option, so you cannot make changes to the template files, having it updated, to fix it, AS explained into procedure, DISABLE JS on browser and access to your phpBB.
Code: Select all
[iFrameSizer][w3all_phpbb_iframe] No tagged elements (data-iframe-height) found on page
anyway the error return that you did not changed last overall_footer js code, as it should to be, based on latest update.
To access your phpBB forum at real URL, when you are instead forced redirected to the wp page, because you applied changes and set to NO the recompile option, so you cannot make changes to the template files, having it updated, to fix it, AS explained into procedure, DISABLE JS on browser and access to your phpBB.