2.8.5 logs

User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: 2.8.5 logs

Post by axew3 »

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....
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: 2.8.5 logs

Post by axew3 »

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:

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' ); }
  }

}
wp_w3all_286_fixed.zip
(19.47 KiB) Downloaded 37 times
going to test any other aspect and release 2.8.7
User avatar
patrik69
User ww
User ww
Posts: 24
Joined: Wed Jun 08, 2022 3:28 am

Re: 2.8.5 logs

Post by patrik69 »

It still does not work... :|
Sorry for my english, i'm french... ;)
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: 2.8.5 logs

Post by axew3 »

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
User avatar
patrik69
User ww
User ww
Posts: 24
Joined: Wed Jun 08, 2022 3:28 am

Re: 2.8.5 logs

Post by patrik69 »

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/
Sorry for my english, i'm french... ;)
User avatar
axew3
w3all User
w3all User
Posts: 2883
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

Re: 2.8.5 logs

Post by axew3 »

the console return:

Code: Select all

[iFrameSizer][w3all_phpbb_iframe] No tagged elements (data-iframe-height) found on page
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.
Post Reply