• ResolvedPlugin Author axew3

    (@axewww)


    A patch to file addons/page-forum.php to get jquery libs within WP and with correct https inclusion for the library, avoiding eventually jquery vers. conflicts and with more fast loading time. This is valid also for non https install.

    You can download the archive and substitute the page-forum.php of your WP template folder, with the new one you download and you found in folder plugins/wp-w3all-phpbb-integration/addons/ that has been just patched.

    If you have made common changes to your page-forum.php or whatever you have name it), you may choose to patch just in this way:
    open you page-forum(or board or etc).php inside your active template folder, search for the following code (function):

     function wp_w3all_hook_jresizer() {
     	
     $s = "<script type=\"text/javascript\" src=\"".plugins_url()."/wp-w3all-phpbb-integration/addons/resizer/iframeResizer.min.js\"></script>
            <script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js\"></script>
    ";
    
    	echo $s;
     	
    }

    just replace with:

     function wp_w3all_hook_jresizer() {
     	
      $s = "<script type=\"text/javascript\" src=\"".get_home_url()."/wp-includes/js/jquery/jquery.js\"></script>
      <script type=\"text/javascript\" src=\"".get_home_url()."/wp-includes/js/jquery/jquery-migrate.min.js\"></script>
      <script type=\"text/javascript\" src=\"".plugins_url()."/wp-w3all-phpbb-integration/addons/resizer/iframeResizer.min.js\"></script>
    ";
    
    	echo $s;
     	
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author axew3

    (@axewww)

    After a test, THE ABOVE NOT completely WORK: it do not return correct fix for external pages redirects in iframe if https,
    so the code of page-forum.php has been reverted the the old one.

    The only one bug resolved is the https bug with the one now available, while the complete fix about the rest will be done on next version).

    a post about also this problem and other is available here:
    http://www.axew3.com/w3/forum/?forum_id=2&topic_id=207&post_id=974#p974

    • This reply was modified 9 years, 7 months ago by axew3.
    • This reply was modified 9 years, 7 months ago by axew3.
    Plugin Author axew3

    (@axewww)

    The addons/page-forum.php has been just fixed to resolve all the above.
    Just download (if needed) the plugin and replace it.

    • This reply was modified 9 years, 7 months ago by axew3.
    • This reply was modified 9 years, 7 months ago by axew3.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘https fix: wrong jquery inclusion and/or more fast inclusion – patch’ is closed to new replies.