Title: PhPCentre's Replies | WordPress.org

---

# PhPCentre

  [  ](https://wordpress.org/support/users/phpcentre/)

 *   [Profile](https://wordpress.org/support/users/phpcentre/)
 *   [Topics Started](https://wordpress.org/support/users/phpcentre/topics/)
 *   [Replies Created](https://wordpress.org/support/users/phpcentre/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/phpcentre/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/phpcentre/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/phpcentre/engagements/)
 *   [Favorites](https://wordpress.org/support/users/phpcentre/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 138 total)

1 [2](https://wordpress.org/support/users/phpcentre/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/phpcentre/replies/page/3/?output_format=md)…
[8](https://wordpress.org/support/users/phpcentre/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/phpcentre/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/phpcentre/replies/page/10/?output_format=md)
[→](https://wordpress.org/support/users/phpcentre/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jssor Slider by jssor.com] Slider does not appear](https://wordpress.org/support/topic/slider-does-not-appear-4/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/slider-does-not-appear-4/#post-7613201)
 * Which PHP version are you using?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jssor Slider by jssor.com] PHP Errors](https://wordpress.org/support/topic/php-errors-83/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/php-errors-83/#post-7618114)
 * Which PHP version are you using?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jssor Slider by jssor.com] Jssor slider not rendering in browser…](https://wordpress.org/support/topic/jssor-slider-not-rendering-in-browser/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years ago](https://wordpress.org/support/topic/jssor-slider-not-rendering-in-browser/#post-6493133)
 * Use
    `<?php echo do_shortcode('[jssorslider id=1]'); ?>`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jssor Slider by jssor.com] jssor-slider not save slider](https://wordpress.org/support/topic/jssor-slider-not-save-slider/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/jssor-slider-not-save-slider/#post-6391905)
 * Both 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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jssor Slider by jssor.com] Slider clears images on save](https://wordpress.org/support/topic/slider-clears-images-on-save/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/slider-clears-images-on-save/#post-6404826)
 * First of all, what’s your php version?, also what exactly are the errors on the
   slider page?.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jssor Slider by jssor.com] jssor-slider not save slider](https://wordpress.org/support/topic/jssor-slider-not-save-slider/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/jssor-slider-not-save-slider/#post-6391872)
 * Check your database tables whether you can find these two tables `jssor_sliders`
   and `jssor_slides`.
    Also check your error log for errors.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Jssor Slider by jssor.com] Jssor Plugin V. 1.3](https://wordpress.org/support/topic/jssor-plugin-v-13/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/jssor-plugin-v-13/#post-6376827)
 * For 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.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage] Image optimization? – feature request](https://wordpress.org/support/topic/image-optimization-feature-request/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/image-optimization-feature-request/#post-6089382)
 * Try using this plugin :
    [https://wordpress.org/plugins/ewww-image-optimizer/](https://wordpress.org/plugins/ewww-image-optimizer/)
 * it is compatible with the Amazon s3 and cloudfront, images will be optimized 
   before uploaded to s3.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Custom "This content is password protected" text, different for each post](https://wordpress.org/support/topic/custom-this-content-is-password-protected-text-different-for-each-post/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/custom-this-content-is-password-protected-text-different-for-each-post/#post-6060443)
 * Something 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' );
       ```
   
 * [http://codex.wordpress.org/Using_Password_Protection#Password_Form_Text](http://codex.wordpress.org/Using_Password_Protection#Password_Form_Text)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage] Files remain & url not rewritten](https://wordpress.org/support/topic/files-remain-url-not-rewritten/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/files-remain-url-not-rewritten/#post-5943754)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Display only manual excerpt on index (function).](https://wordpress.org/support/topic/display-only-manual-excerpt-on-index-function/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/display-only-manual-excerpt-on-index-function/#post-5982547)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Can I add fields to the standard WP "All Users"?](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/#post-5993165)
 * >  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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Can I add fields to the standard WP "All Users"?](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/#post-5993160)
 * 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](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Can I add fields to the standard WP "All Users"?](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/#post-5993153)
 * Insert the codes in your theme’s functions.php file…
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Can I add fields to the standard WP "All Users"?](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/)
 *  [PhPCentre](https://wordpress.org/support/users/phpcentre/)
 * (@phpcentre)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/can-i-add-fields-to-the-standard-wp-all-users/#post-5993151)
 * 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;
       }
       ```
   

Viewing 15 replies - 1 through 15 (of 138 total)

1 [2](https://wordpress.org/support/users/phpcentre/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/phpcentre/replies/page/3/?output_format=md)…
[8](https://wordpress.org/support/users/phpcentre/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/phpcentre/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/phpcentre/replies/page/10/?output_format=md)
[→](https://wordpress.org/support/users/phpcentre/replies/page/2/?output_format=md)