thanh25896
Forum Replies Created
-
Forum: Plugins
In reply to: [PNG to JPG] Which type of compressed images you use for this pluginI checked and it show gd version is 2.2.5
Forum: Plugins
In reply to: [PNG to JPG] Which type of compressed images you use for this pluginI saw this link https://qdig.sourceforge.net/Main/ImageMagickVersusGD
This is the 1st time I heard about gd2 . Is
imagejpeg()
used gd2??I saw IMagick better quality than GD.
Use can add code to check server support IMagick or not . You can refer to the following the check code in Warp Imagick plugin
https://www.ads-software.com/plugins/warp-imagick/Forum: Plugins
In reply to: [PNG to JPG] Which type of compressed images you use for this pluginDo you have any plan to add the imagick for this plugin like add the pull down select between wordpress default or imagick?
Last I found the error is database cache . I used redis for object cache and after I removed plugin wp_rio_process_queue table is deleted but Robin plugin debug still read the database cache and saw wp_rio_process_queue exist so the plugin stop creating the wp_rio_process_queue table . Anyway to update Migrations code to bypass database cache in the furture? If I click the import button in clearfy setting the robin plguin start Migrations form 1.1.5 to 1.4.2 and solved the problem too .
I found 2 ways to solve this problem , use only 1 of two is completely solve the problem.
1/ Go to clearfy setting and click import setting ( Can you tell me did clearfy flush object cache when clicking import buttonm or doing anything about request robin do all Migrations and old Migrations codes have the clear object cache feature? )
2/ Flush object cache and robin plugin processed like 1st method
- This reply was modified 4 years, 11 months ago by thanh25896.
- This reply was modified 4 years, 11 months ago by thanh25896.
I tried to down ver to 1.3.7 and this problem gone by running migrations form 1.1.5 to 1.3.6 .
v1.4.0 , 1.4.1, 1.4.2 only running exacly migrations plugin version . So it problem on two things1/ Uninstall plugin don’t clear the database info
2/ Migrations code error on new ver
Tried delete and install ver 1.4.1 it still same problem . Error log is
[5e7cab][info] Parent plugin start installation! [5e7cab][info] Plugin installation: try create plugin tables. -DB Version: 2 -Plugin Version in DB: 1.4.2 -Current Plugin Version: 1.4.1 [5e7cab][info] Parent plugin installation complete! [5e7cab][info] Try to create backup directory. Backup dir:
error maybe form unstall process do not clear database information
List all my wordpress table
wordpress.wp_rio_process_queue doesn’t exist in database . When I search “1.4.2” it show 4 tables found in wp_option
table name:
_site_transient_et_update_all_plugins
_site_transient_update_plugins
7238c9070c32ed98a38810e053129a9a
edd_sl_9b4b9278ab03eed62e9ded0113d4678eThe log of robin plugin?? I just reinstall it and error still happened and this is the log
No I didn’t do anything with database . Just remove and reinstall it and this problem happened . I tried it on another site
Forum: Themes and Templates
In reply to: [GeneratePress] Modifier info below post titleI dont my code with that
add_shortcode( 'comment_number', 'tu_comment_number_sc' ); function tu_comment_number_sc() { ob_start(); comments_popup_link( __( '0 Comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); return ob_get_clean(); } add_filter( 'generate_post_author_output', function() { printf( '<span class="posted-on-published"> %1$s %3$s </span>', esc_html( get_the_date() ), esc_attr( get_the_time() ), get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ? '<span class="posted-on-updated"> </span> ' . esc_html( get_the_modified_date() ) : '' ); printf( ' <span class="byline">%1$s</span>', sprintf( '<span class="author vcard" itemtype="https://schema.org/Person" itemscope="itemscope" itemprop="author">%4$s<span class="author-name" itemprop="name">%3$s</span></a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ), esc_html( get_the_author() ), get_avatar( get_the_author_meta( 'ID' ) ) ) ); echo '<i class="fad fa-comments" aria-hidden="true"></i><span class="comment-post"> ' . do_shortcode( '[comment_number] </span>' ); } ); add_filter( 'generate_post_date_output', 'tu_show_modified_date' ); function tu_show_modified_date() { printf( '<span class="posted-on-published"> %1$s %3$s </span>', esc_html( get_the_date() ), esc_attr( get_the_time() ), get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ? '<span class="posted-on-updated"> </span> ' . esc_html( get_the_modified_date() ) : '' ); echo '<i class="fad fa-comments" aria-hidden="true"></i><span class="comment-post"> ' . do_shortcode( '[comment_number] </span>' ); }
Just enable only date in hompage and only author in single post page
Forum: Themes and Templates
In reply to: [GeneratePress] Modifier info below post titleTried it but removed because it become
Updated date | Published date | author-name | CommentMy wanted style is
Published date | Updated date | author-name | CommentAnd comment count-link do not show on single post page because no option show comment in blog setting
Forum: Themes and Templates
In reply to: [GeneratePress] Modifier info below post titleSingle post is now
Published date | Updated date | Comment count | Author-name(No link)But I want
Published date | Updated date | Author-name(no link) | Comment countIn my function code Comment Count stick with date . My code is
add_shortcode( 'comment_number', 'tu_comment_number_sc' ); function tu_comment_number_sc() { ob_start(); comments_popup_link( __( '0 Comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); return ob_get_clean(); } add_filter( 'generate_post_author_output', 'tu_remove_by_byline' ); function tu_remove_by_byline() { printf( ' <span class="byline">%1$s</span>', // WPCS: XSS ok, sanitization ok. sprintf( '<span class="author vcard" itemtype="https://schema.org/Person" itemscope="itemscope" itemprop="author"><span class="author-name" itemprop="name">%3$s</span></a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), /* translators: 1: Author name */ esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ), esc_html( get_the_author() ) ) ); } add_filter( 'generate_post_date_output', 'tu_show_modified_date' ); function tu_show_modified_date() { printf( '<span class="posted-on-published"> %1$s %3$s </span>', esc_html( get_the_date() ), esc_attr( get_the_time() ), get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ? '<span class="posted-on-updated"> </span> ' . esc_html( get_the_modified_date() ) : '' ); #echo '<span class="view-post"><i class="fa fa-eye fa-1x " aria-hidden="true"></i></span> ' . do_shortcode( '[views] ' ); echo '<i class="fad fa-comments" aria-hidden="true"></i><span class="comment-post"> ' . do_shortcode( '[comment_number] </span>' ); }
Forum: Themes and Templates
In reply to: [GeneratePress] Modifier info below post titleI want to add the follow type on single post page
Published date | Updated date | Author-name(no link) | Comment count |On homepage is:
Published date | Updated date | Comment count |Forum: Themes and Templates
In reply to: [GeneratePress] Modifier info below post titleNow I added more code and in blog setting -> Archives -> unstick “Display post author” and stick in single tab
Now in homepage author name is gone, in single post page author name display but follow this type
Published date | updated date | comment count | Author |But I want
Published date | Updated date | Author | Comment count |The code I added is
add_shortcode( 'comment_number', 'tu_comment_number_sc' ); function tu_comment_number_sc() { ob_start(); comments_popup_link( __( '0 Comment', 'generatepress' ), __( '1 Comment', 'generatepress' ), __( '% Comments', 'generatepress' ) ); return ob_get_clean(); } add_filter( 'generate_post_author_output', 'tu_remove_by_byline' ); function tu_remove_by_byline() { printf( ' <span class="byline">%1$s</span>', // WPCS: XSS ok, sanitization ok. sprintf( '<span class="author vcard" itemtype="https://schema.org/Person" itemscope="itemscope" itemprop="author"><span class="author-name" itemprop="name">%3$s</span></a></span>', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), /* translators: 1: Author name */ esc_attr( sprintf( __( 'View all posts by %s', 'generatepress' ), get_the_author() ) ), esc_html( get_the_author() ) ) ); } add_filter( 'generate_post_date_output', 'tu_show_modified_date' ); function tu_show_modified_date() { printf( '<span class="posted-on-published"> %1$s %3$s </span>', esc_html( get_the_date() ), esc_attr( get_the_time() ), get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ? '<span class="posted-on-updated"> </span> ' . esc_html( get_the_modified_date() ) : '' ); #echo '<span class="view-post"><i class="fa fa-eye fa-1x " aria-hidden="true"></i></span> ' . do_shortcode( '[views] ' ); echo '<i class="fad fa-comments" aria-hidden="true"></i><span class="comment-post"> ' . do_shortcode( '[comment_number] </span>' ); }