!IMPORTANT: released 2.4.7 to fix admin/profile actions

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: !IMPORTANT: released 2.4.7 to fix admin/profile actions

Re: !IMPORTANT: released 2.4.7 to fix admin/profile actions

by axew3 » Sun Jan 09, 2022 10:49 am

It is strange that you do not experience the same here, where the same page forum code run.
By the way, it should be quite easy to edit these things for anyone, the page-forum is intended to be a working basic (but complete) example that anyone can edit as more like.

2.4.9 is coming presumably today.
It fix logic flow on call hooks that have been little wrongly enqueued due to last main modifications.

It fix also page-forum and UID1 in WP and UID2 in phpBB.
The fix trick, which i had never think into, is right into new page forum code:

Code: Select all

// START MAY DO NOT MODIFY

  if(defined("W3PHPBBCONFIG")){
  	// detect if it is the uid2 in phpBB
    $phpBBuid2 = (isset($_COOKIE[W3PHPBBCONFIG["cookie_name"].'_u']) && $_COOKIE[W3PHPBBCONFIG["cookie_name"].'_u'] == 2) ? 2 : 0;
   } else { $phpBBuid2 = 0; }
so into js code part more below where this first line has been added:

Code: Select all

    var wp_u_logged = ".$current_user->ID.";
    var phpBBuid2 = ".$phpBBuid2."; // new line to detect id2 in phpBB
then this:

Code: Select all

       if( w3all_phpbb_u_logged == null && wp_u_logged > 1 || wp_u_logged == 0 && w3all_phpbb_u_logged != null ){
        document.location.replace('".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/');
       }
has been switched to this:

Code: Select all

   if(phpBBuid2 != 2){ // if not phpBB uid 2 or get loop for this user
       if( w3all_phpbb_u_logged == null && wp_u_logged > 1 || wp_u_logged == 0 && w3all_phpbb_u_logged != null ){
        document.location.replace('".$w3allhomeurl."/index.php/".$wp_w3all_forum_folder_wp."/');
       }
    }
The loop problem that come out when admin id2 in phpBB, login in phpBB iframed, has been definitively resolved.

The phpBB config here has been retrieved, but W3PHPBBUSESSION user session data can also be used into page forum, for many things, may not immediately arguable. You'll have these data (user session and all phpBB config data) before the iframe retrieved and his js code (both wp and phpBB side) fire.

Re: !IMPORTANT: released 2.4.7 to fix admin/profile actions

by madoma73 » Fri Jan 07, 2022 2:36 pm

Whatever browser used:
Chromium latest version
Firefox latest version
Edge

Re: !IMPORTANT: released 2.4.7 to fix admin/profile actions

by axew3 » Fri Jan 07, 2022 2:29 pm

which browser you are on please? (about width issue you detect)
i assume that the unique reason why you have not anymore the problem is because you removed the preloader.

Code: Select all

first issue is resolved by removing "<div id="w3_toogle_wrap_loader" class="w3_no_wrap_loader"><div class="w3_loader"></div></div
The elementary preloader will be rewritten in V6 soon.

Re: !IMPORTANT: released 2.4.7 to fix admin/profile actions

by madoma73 » Fri Jan 07, 2022 1:25 pm

Hello,
I know about userid 1 issue, so I use others users:

first issue is resolved by removing "<div id="w3_toogle_wrap_loader" class="w3_no_wrap_loader"><div class="w3_loader"></div></div>"

second issue is linked to line <iframe.... style="width:1px..... If change this, my iframe is ok but fixed width

Re: !IMPORTANT: released 2.4.7 to fix admin/profile actions

by axew3 » Fri Jan 07, 2022 1:12 pm

Ehi! Thank you to be more precise.
So you say about iframe. Sorry but it is important that when anyone experience a problem, is precise, so that i can understand where the problem is.

I updated to the last forum page here and into tests sites, and updated to last overall_footer.html js code.
And i actually have not experienced anymore a loop on preloader.

But into V5 iframe procedure, have been added a note last time: the user ID1 in WP and the phpBB UID2, that are not linked, when in iframe mode, may can fall into loop.
Is that your problem? Are you experiencing this with ID1 in WP or with all users?

P.s i've got an idea that will be soon introduced into iframe code V6. If i'm not wrong....
If i'm not wrong, we can inject values from session retrieved by plugin main query.
Since we are first of all, into a WP page...
What it mean? We'll see soon! if i'm not wrong... Why i never have think to this before? :o

Re: !IMPORTANT: released 2.4.7 to fix admin/profile actions

by madoma73 » Fri Jan 07, 2022 8:14 am

Hello,
my server is running php7, my button is green
but from the update, I have first a one pixel width issue which is then covered by (which stays forever)
Untitled.png
Untitled.png (2.02 KiB) Viewed 1171 times

Top