PhPCentre
Forum Replies Created
-
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] Slider does not appearWhich PHP version are you using?
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] PHP ErrorsWhich PHP version are you using?
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] Jssor slider not rendering in browser…Use
<?php echo do_shortcode('[jssorslider id=1]'); ?>
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] jssor-slider not save sliderBoth tables are suppose to be created when the plugin is activated. I need you to check the options table and delete the slider version option ‘jssor_slider_version’. Deactivate the plugin and activate again, check your db to see whether both tables are there.
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] Slider clears images on saveFirst of all, what’s your php version?, also what exactly are the errors on the slider page?.
Forum: Plugins
In reply to: [Jssor Slider by jssor.com] jssor-slider not save sliderCheck your database tables whether you can find these two tables
jssor_sliders
andjssor_slides
.
Also check your error log for errors.Forum: Plugins
In reply to: [Jssor Slider by jssor.com] Jssor Plugin V. 1.3For the first issue, please check your error log file and report the errors you can find.
And for your second issue, please upgrade to PHP 5.4 or higher to fix it.Try using this plugin :
https://www.ads-software.com/plugins/ewww-image-optimizer/it is compatible with the Amazon s3 and cloudfront, images will be optimized before uploaded to s3.
Forum: Hacks
In reply to: Custom "This content is password protected" text, different for each postSomething like this would work for you:
function my_password_form() { global $post; $content_arr = get_extended( $post->post_content ); $label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID ); $o = '<form action="' . esc_url( site_url( 'wp-login.php?action=postpass', 'login_post' ) ) . '" method="post"> '. $content_arr["main"] . ' ' . __( "To continue reading this protected post, enter the password below:" ) . ' <label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" maxlength="20" /><input type="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" /> </form> '; return $o; } add_filter( 'the_password_form', 'my_password_form' );
https://codex.www.ads-software.com/Using_Password_Protection#Password_Form_Text
Hey… your are right, the codes did not take care of the year/month settings, we are almost close. So here we go again, change these lines:
if ( !empty( $prefix) ){ $key = $prefix.$att_basename; } else { $key = $att_basename; }
to these:
if ( $s3_settings['enable-object-prefix'] ){ if ( $s3_settings['use-yearmonth-folders'] ) { $key = $prefix.$att_file; } else { $key = $prefix.$att_basename; } } else { if ( $s3_settings['use-yearmonth-folders'] ) { $key = $att_file; } else { $key = $att_basename; } }
And run the script again to update the db. I believe this time we should be good.
Forum: Hacks
In reply to: Display only manual excerpt on index (function).Then use this instead:
function custom_excerpt($text) { // custom 'read more' link global $post; if ( !empty( $post->post_excerpt ) ) { $excerpt = '' . strip_tags($text) . '<div class="readmore"><a class="readmore" href="'. get_permalink( get_the_ID() ) . '"><small>CONTINUE READING</small></a></div>'; } else { $excerpt = '<div class="readmore"><a class="readmore" href="'. get_permalink( get_the_ID() ) . '"><small>CONTINUE READING</small></a></div>'; } return $excerpt; } add_filter('the_excerpt', 'custom_excerpt');
Forum: Hacks
In reply to: Can I add fields to the standard WP "All Users"?Parse error: syntax error, unexpected ‘&’, expecting ‘]’ in …
The codes I gave you has no ‘&’ character, I think the issue must be from your end as you try to insert the codes in your functions.php. Insert the whole stuff at the bottom of the file. The codes are working on my end without errors. If you are getting the error still, then we can insert the whole stuff inside a simple plugin for you, so you won’t have to edit the file yourself.
Forum: Hacks
In reply to: Can I add fields to the standard WP "All Users"?OK…to make the date column sortable add the following code also in your functions.php file:
function registration_date_column_register_sortable( $columns ) { $columns['user_registered'] = 'user_registered'; return $columns; } add_filter( 'manage_users_sortable_columns', 'registration_date_column_register_sortable' );
Now concerning adding the password column. The password field value on the db cannot be converted into plain text, as wordpress uses a 1 way encryption to store the passwords using a variation of md5 that cannot be reserved. That is why a new password is generated when a previous one is lost. And this is done on purpose so admins can’t have access to their users passwords,as some users are using the same password on different accounts.
However, there are some sites that claims to do MD5 reserve lookup, I think is more of a hacker tool.
Forum: Hacks
In reply to: Can I add fields to the standard WP "All Users"?Insert the codes in your theme’s functions.php file…
Forum: Hacks
In reply to: Can I add fields to the standard WP "All Users"?To show user registration date column in the users table, use something like this:
add_filter('manage_users_columns', 'user_registration_date_column'); function user_registration_date_column($columns) { $columns['user_registered'] = 'User Registered'; return $columns; } add_action('manage_users_custom_column', 'user_registration_date', 10, 3); function user_registration_date($value, $column_name, $user_id) { $user = get_userdata( $user_id ); if ( 'user_registered' == $column_name ) { $datetime = $user->user_registered; $date = strtotime($datetime); return date( "Y-m-d", $date ); } return $value; }