Kevin Phillips
Forum Replies Created
-
Forum: Plugins
In reply to: [Autostock] View carsHi Sancy
You will need to create a template page for single display and another one for displaying all vehicles (like a grid or list).
http://codex.wordpress.org/Page_Templates
This means you can create a unique look and feel that matches your website.I will be build a theme for this plugin shortly after I have added some new functions, like advanced search filters.
Hope this helps
Kevin
Forum: Reviews
In reply to: [Autostock] Do not install this plugin !Firstly I would point out that it is better to submit an issue rather than just give a poor review – that helps nobody. Remember that this plugin is free and will continue to get better as people contribute to it.
Secondly you did not read the installation instructions – this plugin needs PHP 5.3.6 or greater – we are using some newer php functions.
I am not going to build a backward compatibility however you are free to fork this project on Github 🙂
As for your website going down – simply uninstall the plugin (delete from wp-content/plugins)
Forum: Plugins
In reply to: [Autostock] Cannot See "CARS" function on dashboardHi Ajitabh
I assume you have upgraded to the latest version from WordPressThe settings for autostock are in the admin menu below the normal settings menu item, the custom post “Cars” are at the top.
Regards
Kevin
Forum: Plugins
In reply to: [Autostock] Ready to AssistThanks for your comment. I’ll have the this feature added soon. From my experience I know that we need to view this from two angles. Firstly the ability for the end user to upload images, in the correct format (size) so they can be displayed as thumbnails, medium and large.
We also need to thing to think about:
1. Which image will be the featured image.
2. The ability to re-order images
3. The ability to edit images.I’m keen to use the built in functions from WordPress as this will always be supported and are getting better with each release.
The next thing is the output of images. The themes will probaly have different needs, grid, lightbox etc.
Lastly do we use the custom post type featured image function, which I think would be probably a good idea as I will be addeding a meta box for users to choose if this car should be featured.
The site I have built before ( on codeigniter ) was Hoffman Ford. It is this site’s base that I’m turning into a wordpress plugin. I’ll start on the theme shortly but the theme must conatain certain features that comply with the manufacturer’s branding guide lines, companies like Ford are very strict on these.
You can contact me directly through the contact form on my blog ( sorry not going to give me email out here ).
Regards
Kevin
Forum: Plugins
In reply to: [Accordion Shortcode] Fixed accordions height ?Dan Just to let you know that
'heightStyle' => 'content'
works 100%,
I’ve created a copy of this plugin until this one is updatedyou can download it here
http://kevinphillips.co.nz/news/wordpress-plugin-accordion-shortcode/I’ve created a small plugin that you are free to use that validates fields on a custom post type, replaces the standard admin notice with a custom admin notice, no javascript required
add_action('save_post', 'album_save_post', 10, 2); function album_save_post( $album_id, $album ) { if( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE || $album->post_type != 'music_album') return; // echo '<pre>'; // print_r($album); // echo '</pre>'; // die(); $errors = array(); // Validation filters $title = $album->post_title; if ( ! $title ) { $errors['title'] = "The title is required"; } // if we have errors lets setup some messages if (! empty($errors)) { // we must remove this action or it will loop for ever remove_action('save_post', 'album_save_post'); // save the errors as option update_option('album_errors', $errors); // Change post from published to draft $album->post_status = 'draft'; // update the post wp_update_post( $album ); // we must add back this action add_action('save_post', 'album_save_post'); // admin_notice is create by a $_GET['message'] with a number that wordpress uses to // display the admin message so we will add a filter for replacing default admin message with a redirect add_filter( 'redirect_post_location', 'album_post_redirect_filter' ); } } function album_post_redirect_filter( $location ) { // remove $_GET['message'] $location = remove_query_arg( 'message', $location ); // add our new query sting $location = add_query_arg( 'album', 'error', $location ); // return the location query string return $location; } // Add new admin message add_action( 'admin_notices', 'album_post_error_admin_message' ); function album_post_error_admin_message() { if ( isset( $_GET['album'] ) && $_GET['album'] == 'error' ) { // lets get the errors from the option album_errors $errors = get_option('album_errors'); // now delete the option album errors delete_option('album_errors'); $display = '<div id="notice" class="error"><ul>'; // Because we are storing as an array we should loop through them foreach ( $errors as $error ) { $display .= '<li>' . $error . '</li>'; } $display .= '</ul></div>'; // finally echo out our display echo $display; // add some jQuery ?> <script> jQuery(function($) { $("#title").css({"border": "1px solid red"}) }); </script> <?php } }full tutorial here:
http://kevinphillips.co.nz/news/custom-post-type-validation-without-javascript/