2.8.5 logs

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

2.8.5 logs

Post by axew3 »

Fix wp_w3all.php function wp_w3all_phpbb_iframe_shortif()
and
public static function w3all_ck_if_onpage($pages='',$shortIndex='') on file class.wp.w3all-phpbb.php
to correctly detect if we are on the homepage, so to run shortcodes, when on urls requests like

Code: Select all

https://mysite/mywp/?fbclid=IwZXh0bgNhZW0CMTEAAR3
that come out for example, when the request is from an external site that append some var (facebook in this example).
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 »

This fix has been moved to next version so to check if there is some other way to fix the issue.

Front end plugins login pages:
private static function phpBB_user_session_set($wp_user_data){
code

Code: Select all

   if ( !defined( 'WP_ADMIN' ) && class_exists( 'UM' ) ){
    header("Refresh:0"); exit;
   }
become

Code: Select all

   if ( !defined( 'WP_ADMIN' ) ){
    header("Refresh:0"); exit;
   }
that will refresh the page anyway when the session has been released, but the presented page, still could be the same login page where the user appear/seem to be not logged (but in true it is).
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 »

Block widget last topics:
add default (and same) classes, like it is for the default native Gutenberg WordPress Last posts block widget, into files
/views/phpbb_last_topics_output_shortcode.php
and
/views/phpbb_last_topics.php
so the default become

Code: Select all

$w3all_lastopics_style_ul_class = 'w3all_ul_widgetLastTopics wp-block-latest-posts__list has-dates has-author wp-block-latest-posts';
and related html divs elements for the post time and author,
so the get the same exact rendered result on blocks widgets built with Gutenberg.
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 »

fix
/wp-content/plugins/wp-w3all-phpbb-integration/views/wp_w3all_phpbb_iframe_short.php
to correctly load the phpBB page at the right address when accessed from an external request.
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 »

Clean up private static function phpBB_user_session_set($wp_user_data){
on file /wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
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 »

TEMPLATE IFRAME INTEGRATION AND SWITCH TO THE LAST IFRAME RESIZER 5>
https://github.com/davidjbradshaw/iframe-resizer
https://iframe-resizer.com/

while the template integration using the page-forum will not change, and will follow to use the old iframe resizer code GPL,
the template iframe integration by shortcode instead,
https://www.axew3.com/w3/2022/02/the-aw ... template-i
will switch to the new 5> version (free only under certain conditions https://iframe-resizer.com/pricing/).

to update the shortcode template integration, it require as mandatory to:
EDIT the overall_footer.html added code, and change the very last line

Code: Select all

<script type="text/javascript" src="http://mysite/myboard/iframeResizer.contentWindow.min.js" defer></script>
into this:

Code: Select all

<div data-iframe-size="" style="height:0;max-height:0;border:0;"><div>
<script type="text/javascript" src="http://mysite/myboard/iframe-resizer.child.js"></script>
the data-iframe-size=" attribute can be assigned to any (last) element on DOM useful to calculate the window size, so you could add it to another element instead to add it as suggested into a created element div:

Code: Select all

<div data-iframe-size="" style="height:0;max-height:0;border:0;"><div>
just before the closing </body> tag.
The file iframe-resizer.child.js need to be copied and pasted into the phpBB root or where you like it need to be, based on where the <script src point to. It can be found into the plugin folder /wp-content/plugins/wp-w3all-phpbb-integration/addons/iframeresizer/iframe-resizer.child.js

The phpBB template will require to be rebuilt as ever after this modifications on template files, using the option Recompile Stale Template files on ACP (let changes take effect loading a forum page, and you see all works, then revert the option to NO).

the
function wp_w3all_phpbb_iframe_shortif()
will include the custom
wp-content/plugins/wp-w3all-custom/wp_phpbb_iframe_shortcode.php
which inject the header code for the iframe template integration by shortcode on pages/posts that require it,
or the default, based on option Use custom files to display Last Topics Widgets, Login Widget and Shortcodes if active or not on the plugin admin page, so that it can be customized (for example about preloader ect) as more like, and modifications done will not be lost when the plugin will update.
Post Reply