Are you ready for the 2.5.0 show!?

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

Are you ready for the 2.5.0 show!?

Post by axew3 »

2.5.0 release:

1) eliminate multiple db connections links to execute db tasks: on 2.5.0 the call to the connection function will be one unique.

2) order and fix several things more.
It only will improve at max all the existent.

Please, if you found any bug into 2.4.9 (or any question or suggestion) reply here!

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

3) fix WP to phpBB users transfer process under several aspects, and as on others main user insert queries, reduce to only required fields, the number of data inserted. Fix phpBB to WP transfer process hints and minor fixes.
On both has been added the server execution time to 5 min instruction (wherever it will affect effectively)
set_time_limit(300)
This function has no effect when PHP is running in safe mode. There is no workaround other than turning off safe mode or changing the time limit in the php.ini.

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

4) Transfer option and check (and added common tasks page where will be added several utilities along the time) options pages, are now moved into
WP tools menu and links to those utilities, are also directly accessible into plugin admin page.
The not useful and strange old option has been rebuilt to be easy and always active by default into related admin pages.
[EDITED]

w3all Options1.png
w3all Options1.png (41.53 KiB) Viewed 390 times
w3all Options0.png
w3all Options0.png (32.39 KiB) Viewed 390 times

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

This will be very useful, if falling in certain situations, where two users in phpBB share same email.
So, while testing, you'll not have to disable the wp integration plugin, or phpBB integration extension, or go into db making changes.
It will be also useful to resolve on fly, any incompatibility, after the you checked for problems, into Check tasks, or you have to resolve problems coming out while transferring users. Here you can resolve those problems with easy using just these two simple options.

Screenshotw3all WP phpBB tasks ‹ wp root.png
Screenshotw3all WP phpBB tasks ‹ wp root.png (35.78 KiB) Viewed 395 times

Guest

Re: Are you ready for the 2.5.0 show!?

Post by Guest »

Hi,

Is it possible to add a setting for the WP Widget on "Last posts", to manage how is displayed the date/hour format? Just add several options in a roll menu with the differents forms for date/hour ?

I don't know if I'm very clear and if you see what I mean... :oops:

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

Hello, yes, maybe the same as it is on Wp main setting.
Very right suggestion. Thank you.

I will try to put this on fly into coming very soon 2.5.0.

That also, return to be compatible and cover, ALL frontend plugins about email changes.
So that it will be possible to run the integration leaving users update their email into both cms, and even with mismatching usernames/email pairs or non existent users.

So, looking and looking how could be possible to check for an email updated into wordpress, before that the update happen into database, so to avoid subsequent phpBB email update for the user, if the email has been found duplicated in phpBB, reverting to the old the changed one. The problem affect all frontend user's profile pages plugins, where in this scenario, we are so obliged to let users update email only into one side. And when integration start, we are obliged to transfer all wp users into phpBB.

But now there are not one, but two ways to avoid this. Fast and easy.

This is the part that lack since the logic of integration little changed when swapped to integration by email.
Have been found two different filters, that can be used to workaround to the problem so that when a plugin let change email in frontend, the integration plugin go to update (maybe) an user in phpBB that should not be, because this email already exist and belong to another (but in wordpress this email do not exist, so wordpress update it).

The integration will bring again all features.
It is faster and tested under many aspects fitting all the necessary.
The integration help page will be soon rewritten, because 1001 ways do not fit anymore all what will be so possible to achieve. Only with the plugin on wp side installed, or with the phpBB extension added into phpBB side.
It will be shortened, all the old and obsolete info will be removed.

2.5.0 resolve all the above, and fix several things (main admin page contain hints that are more clear now...i hope!).
It is coming! Stay tuned lovely people, as promised it will be soo cool ;)

ps ... mhh about phpBB extension... would be better to add an hint about it into plugin admin page.

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

ps about date format just checked and fixed on fly:
it has been just required to switch this code

Code: Select all

date_i18n( 'H:i Y-m-d',
into

Code: Select all

date_i18n( get_option( 'date_format' ),
on related /views/ last topics and shortcodes files.

I've detected a bug anyway about another thing, that is about on files, the code associate by usernames, while since the integration is by email, something need to swapped to get ever the right result.
So thank you for your hint, as you can see have been resolved 2 bugs more together into coming 2.5.0, only with this!

User avatar
floxshifu
User ww
User ww
Posts: 42
Joined: Sun Sep 18, 2016 6:14 pm

Re: Are you ready for the 2.5.0 show!?

Post by floxshifu »

Guest wrote:
Sat Jan 15, 2022 12:48 pm
Hi,

Is it possible to add a setting for the WP Widget on "Last posts", to manage how is displayed the date/hour format? Just add several options in a roll menu with the differents forms for date/hour ?

I don't know if I'm very clear and if you see what I mean... :oops:
It was my message, but I wasn't logged in... ^^

Thank you for your answer!

Another suggestion : I can help to translate the plugin in french, not everything but at least, the widgets (login/last posts) and some part of the admin part. Because I tried to change the language file but it's not wroking, I don't understand why, so I must translate in the .php files, and at each update I have to do it again and again... So, a "fr" language file is maybe the solution.

And there is a login problem on the 2.4.9 version, when you tried to login directly on the login forum page, it's not working. We must log in through the WPw3 login widget. Weird...

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

Hello dear! :D
As you can see it work here and should into your. But if it is not, let me know because so it could be a bug into code somewhere, even i do not think it is possible.
The unique reason that when you login in phpBB and then you are not recognized into wp side, mean that the cookie released by phpBB is not correctly recognized into wp side by the plugin code. While the cookie released by the plugin in wordpress, is recognized by phpBB.
I assume that you'd setup the correct phpBB cookie setting, and the Remember Me" login key expiration length (in days) setting, and the path to /
assuming that these 3 settings in phpBB are ok, your result is strange :?:

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

p.s
all shortcodes and widgets files, so substantially all files on plugin /views folder being rewritten to be easy and complete.

About date suggestion, the result will be the same as it has been set about time and date format, to render the same as it is been set in WP admin general settings. Resulting code lines about this into output files will be something like this:

Code: Select all

          echo "<li class=\"".$w3all_lastopics_style_li_class."\"><table style=\"border-spacing:0;border-collapse:collapse;vertical-align:middle;margin:0;border:0;\"><tr><td style=\"border:0;width:".$w3all_last_t_avatar_dim."px;\">".$w3all_avatar_display."</td><td style=\"border:0;width:auto\"><a href=\"$w3all_url_to_cms/viewtopic.php?f=$value->forum_id&amp;t=$value->topic_id&amp;p=$value->post_id#p$value->post_id\">$value->topic_title</a> ".$w3all_post_state_ru."<br />". __( 'by ' , 'wp-w3all-phpbb-integration' )." $value->topic_last_poster_name<br />". date_i18n( $dateformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) ) ." at ". date_i18n( $timeformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) ) ."</td></tr></table></li>\n";
you can see
date format and time format:

Code: Select all

date_i18n( $dateformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) ) ." at ". date_i18n( $timeformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) )
result will be something like (based on wp default setting you choose):
by floxshifu
December 10, 2021 at 8:16 am
on top of the file, outside the foreach, we'll put these:

Code: Select all

$dateformat = get_option('date_format');
$gmtoffset = get_option( 'gmt_offset' );
$timeformat = get_option( 'time_format' );
well, since these vars are used then by all shortcodes and widgets, may we'll put these 3 on top of wp_w3all.php like all others main vars, then passed into functions as globals.

We'll have all as it is required, according to what time format and date format is set into wp main settings -> general
and it will be easily changeable by anyone
a) via admin
b) just opening files and changing as more like

ps. these are long time needed changes, to have a default plugin that fit any need.
But the MOST IMPORTANT coming feature that return is that the plugin, return or become compatible about email changes, for ALL front end plugins profile pages.
The integration will bring again the most important feature.

User avatar
floxshifu
User ww
User ww
Posts: 42
Joined: Sun Sep 18, 2016 6:14 pm

Re: Are you ready for the 2.5.0 show!?

Post by floxshifu »

axew3 wrote:I assume that you'd setup the correct phpBB cookie setting, and the Remember Me" login key expiration length (in days) setting, and the path to /
assuming that these 3 settings in phpBB are ok, your result is strange :?:
Oops, my setting in "Remember Me" was on "0" / I switched to 365 days and it seems working, sorry !

About the date format, in France we have a date like "Posté le 15 janvier à 18H30 par flox" (you maybe translate it by : "posted the 15th january at 6:30pm by flox") we don't have the same date format :lol: BUT I will wait the 2.5.0 update, it's not really important for now !

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

It is coming, i'm on the rush to want to finish, but something took me away along all this morning and afternoon time. Going to apply to all files the modifications as required, all will be very easy.

About language file:
Beside the fact that many strings are not added into plugin as should be, main phrases are all into plugin admin pages, so that the main problem would be to add all these phrases into admin files (example)

Code: Select all

        echo __('<p style="padding:30px;background-color:#fff;color:#000;font-size:1.3em"><strong>Notice: your forum username contains illegal characters not allowed in this system or contains more than 50 characters.<br />Please contact an administrator.</strong></p>', 'wp-w3all-phpbb-integration');
 
and not like just an echo that is not then recognized as string to be translated.
Very easy but annoying!
I know that the language file have some problem. Going to try to understand how to fix this rebuilding it.
Let you know asap about this!

madoma73
User ww
User ww
Posts: 39
Joined: Tue Dec 31, 2019 10:02 am

Re: Are you ready for the 2.5.0 show!?

Post by madoma73 »

Hello,
in shortcode [w3allforumpost id="xxxx"], could you add the treatment for attachment ?
Following our discussion, I tried by myself with no luck :-(

Thanks in advance

Pierre

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

Hello! I would like to release the 2.5.0 after tested it several times along various things within tonight.
Adjusting all /views files according to what above said about time (and more, making views files very easy).
After this, i will take a look if it is possible to do the attachment addition within 2.5.0 in short with language files issue: if not, yes it will be done within 2.5.1 that will come out as well in very short time, and all the related code about this shortcode improved (and lang files fixed).

madoma73
User ww
User ww
Posts: 39
Joined: Tue Dec 31, 2019 10:02 am

Re: Are you ready for the 2.5.0 show!?

Post by madoma73 »

Thanks in advance !

User avatar
floxshifu
User ww
User ww
Posts: 42
Joined: Sun Sep 18, 2016 6:14 pm

Re: Are you ready for the 2.5.0 show!?

Post by floxshifu »

axew3 wrote:
Sun Jan 16, 2022 4:21 pm
It is coming, i'm on the rush to want to finish, but something took me away along all this morning and afternoon time. Going to apply to all files the modifications as required, all will be very easy.

About language file:
Beside the fact that many strings are not added into plugin as should be, main phrases are all into plugin admin pages, so that the main problem would be to add all these phrases into admin files (example)

Code: Select all

        echo __('<p style="padding:30px;background-color:#fff;color:#000;font-size:1.3em"><strong>Notice: your forum username contains illegal characters not allowed in this system or contains more than 50 characters.<br />Please contact an administrator.</strong></p>', 'wp-w3all-phpbb-integration');
 
and not like just an echo that is not then recognized as string to be translated.
Very easy but annoying!
I know that the language file have some problem. Going to try to understand how to fix this rebuilding it.
Let you know asap about this!
Take your time, and thank you for this plugin who is awesome ! :D

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

Re: Are you ready for the 2.5.0 show!?

Post by axew3 »

It is all ready!
Going to update readme.txt with logs of this thread and the plugin released in minutes by this post.
I'm sorry that the lang file has not been updated.
It will be the very first next issue that will be covered.

While
in shortcode [w3allforumpost id="xxxx"], could you add the treatment for attachment ?
has been fixed like this:
attachmentsShorttest – wp root.png
attachmentsShorttest – wp root.png (28.84 KiB) Viewed 285 times
behavior will be the same exact of attachments into phpBB posts.
Inline files will display on post body (as images or links of files to be downloaded), and remaining not added inline added on the bottom of the rendered post.

The function that do this is
public static function wp_w3all_get_phpbb_post_short( $atts )
inside class.wp.w3all-phpbb.php.
I have try to be clear with comments on how it is processed with easy and short code logic. Well, or almost it seem to me!

In the hope that all will be ok on coming now 2.5.0, i have test it as more i can, so please report if any problem or bug you'll may found ;)

Check the new attachment feature and how it work (same as phpBB) here:
https://www.axew3.com/w3/2017/07/wordpr ... o-wp-post/
where it is rendered this phpBB post and related attachments:
viewtopic.php?p=2249#p2249

Locked