Blog

WP Smart Sort v2 Released

It is official the long awaited v2 of this great plugin is now available at the Wordpress.org repository for download.

OFFICIAL Plugin Page on Dyasonhat

It was previously planned that this plugin might not feature sorting posts by custom fields but I’m glad to say that this functionality has been retained in this version and is better than ever.

Thank you to all those who offered words of encouragement during the process and the patience for it’s LONG arrival.

Enjoy sorting your posts by ANY field you like!!!

Smart Sort Premium Development Update

smart-sort-logoProgress on our smart sort plugin is currently on target for release in next couple of weeks.

A decision has been made to release 2 versions of the plugin

    1. Free Version

    Will enable sorting of posts only
    Sorting will only be available on fields from the wp_posts table
    This essentially mean that sorting by: title, date added, date modified and comment count will be available.

    • Premium version
      • Full set of features including sort/filter/search
      • Once off price of $35
      • …full feature list available soon.

    A Demo of the plugin in action can now be seen over at http://wpsmartsort.dyasonhat.com/

    Remaining Development

    • User customization of forms
    • Search form
    • Plugin API functions for advanced implementation.

    Wordpress: Get current context url

    Edit: 10 Dec 2008. Changed select term_taxonomy_id to term_id.

    There are many times when developing a plugin that I’ve wanted to easily get the url of the current context eg. if I’m in a category page I want the url of that page, and the same for tags archives etc.

    The following function does this quite nicely.

    [code]

    function get_current_context_url(){
    global $wp_query;
    global $wpdb;

    $url = ”;
    if (is_category()) {
    $cat_id = $wp_query->query_vars['cat'];
    $url = get_category_link($cat_id);
    }
    elseif (is_tag()) {
    $tag_name = $wp_query->query_vars['tag'];
    $tag_id = $wpdb->get_var(”SELECT “.$wpdb->terms.”.term_id FROM $wpdb->term_taxonomy
    LEFT JOIN $wpdb->terms
    ON (”.$wpdb->term_taxonomy.”.term_id = “.$wpdb->terms.”.term_id)
    WHERE “.$wpdb->terms.”.slug = ‘$tag_name’
    AND “.$wpdb->term_taxonomy.”.taxonomy = ‘post_tag’
    LIMIT 1″);
    $url = get_tag_link($tag_id);
    }
    elseif (is_author()) {
    $author_id = $wp_query->query_vars['author'];
    $url = get_author_posts_url($author_id);
    }
    elseif (is_date()) {
    $year = $wp_query->query_vars['year'];
    $month = $wp_query->query_vars['monthnum'];
    $day = $wp_query->query_vars['day'];

    if ($wp_query->query_vars['day']) {
    $url = get_day_link( $year,  $month,  $day);
    }
    elseif ($wp_query->query_vars['monthnum']) {
    $url = get_month_link( $year,  $month,  $day);
    }
    elseif ($wp_query->query_vars['year']) {
    $url = get_year_link( $year,  $month,  $day);
    }
    }
    else {
    $url = get_bloginfo(’url’);
    }

    //ensure trailing slash
    if (”/” != substr($url, -1)) {
    $url = $url . “/”;
    }
    return $url;
    }

    [/code]

    Smart Sort Filter Search Plugin v2… screenshots of the Beast

    Hi all,

    A Lot of people have been asking if there really is going to be a smart sort V2 the short answer is, YES!

    I’m current putting in close to 16 hours a day on the new version of the plugin and it’s coming along nicely. I thought I’d release a few screen shots to show some of what we’re doing.

    Once complete the plugin will feature 3 functions:

    • Sorting posts on Category, Tag, Archive and Search pages
    • Filtering posts based on user criteria on the above pages
    • Allow for creation of advanced search form

    Why all 3? Why not just sort. The reason is that in order for the sort to work how I wanted I have to create an index table for WordPress and this means more possibilities that I really want to make the most of. I’ve considered releasing separate plugins for this, but since it seems I’m not going to release this as open source ;-( but rather for a small fee I figure the complete package will be quite a draw card for many WP developers.

    Smart Sort Top level Menu (WP 2.7b3)

    Smart Sort Top level Menu (WP 2.7b3)

    Sort Drop down Menu options

    Sort Drop down Menu options

    Smart Sort Index Table Setup

    Smart Sort Index Table Setup

    User Drop Down Menu to select post sort direction

    User Drop Down Menu to select post sort direction

    –Dyasonhat–

    iKrumdy Wordpress MU home page theme

    I just recently completed a mu theme project for a customer over at scriptlance. The brief was to utilize the sort of ‘newzy’ feel of le monde blogs but keep the theme extremely clean cut. The result of this highly functional wordpress mu home page theme can be viewed at the iKrumdy demo.

    As always I work the project to the exact specification of the customer and this one was particularly happy with the end result. As designers we always want to push the boundaries and even though this theme is entirely written in valid XHTML (gravatar.com however won’t validate at this point in time) and CSS and tested to be compatible with Internet Explorer 7 & 8, Firefox 3, Safari (latest), Opera (latest) there is still a lot I’d like to do with this theme.

    The back end needs a lot of work at the moment it’s using a range of different plugins to get it all working and each plugin has it’s own installation procedures, admin menu etc. So if this wordpress mu theme were to really become something I’d have to integrate all of the plugins under the theme function.php and then use php includes. This would also involve tweaking the back end so all of the menus fall under one main menu to edit the theme.

    Some ideas I had for it were:

    • Fancy header menu with sub page menus on mouse over
    • CSS style choice in admin menu
    • Optional display of blog avatars instead of links in the new and active blogs section.
    • Need to beautify the search results a bit.

    Wordpress Mu is still in desperate need of some great home page themes that can provide great functionality and news like results but still retain the “sign up now” type feel that is requested by many in this community. I’ll solidify a few more of my ideas and then sit down to see what I can come up with by way of releasing a dyasonhat mu theme.

    –Dyasonhat

    Note: The ikrumdy theme is not availablele for distribution due to my general consideration towards the privacy of the project ownership by the project owner even though no express agreement was entered into prior to the work. When I do release a mu homepage theme here it may be based on similar concepts but the core code will be unique and solely owned by myself.
     

    Split large xml sitemaps PHP script

    Many people will be familiar with the popular Google (XML) Sitemaps Generator for WordPress I use it on all of my wordpress installs and have been very happy with it. Until about a month ago when I was installing it over at accommodationsphere.com and it created a sitemap for me nicely gzipped and weighing in at only 1-2mbs but a whopping 92,000 urls.

    Does google accept sitemaps with that many files? Not unless they’re split across multiple sitemaps which contain less than 50,000 urls each and utilize a sitemap index file.

    So I organized a nice little php script that I’ve got loaded in a cron job that runs to split that large sitemap.xml.gz file into smaller .xml.gz files and creates an index file.

    It’s a little crude but I’m hoping to get this included as a feature in the above mentioned plugin rather than expanding on this little scripts abilities outright.

    You’re free to use it, modify it and do what ever, but be nice; if you develop a bit of extra features or usability for it why not send me the code for inclusion in the next version.

    Download PHP XML Sitemap Splitter Version 1.0

    Downloaded a total of 162 times

    Smart Sort Wordpress Plugin - Sort posts by Custom Field

    FINAL UPDATE: The official page for WP Smart Sort has moved here.

    This plugin allows you to place a sort bar, with options to sort the list of posts by any custom field. You can place the sort bar above or below a list of posts in a category or archive or anywhere in your template.

    Simple place <?php placesort() ?> anywhere in your template.

    Options are set in the admin panel as to which custom fields to display in the sort bar.

    This was originally coded by smartalien on scriptlance. He no longer develops it and I purchased the code from him. It works but I put it out there to be used and improved by the wordpress community.

    There may be bugs; if you can’t fix them point them out, if you can send us the code fix.

    This project is hosted with Google Code here

    Latest Version 1.0:

    Download Smart Sort Version 1.o

    Downloaded a total of 1204 times

    Enjoy it.

    To Do list:

    • More pretty permalink URL
    • CSS/HTML output options to customize display of sort bar
    • Fix compatability with other plugins
    • Display on main index page (currently only seems to be displaying on category and archive pages
    • Tagging support

    Version History:

    1.0

    • First Release
    • A bit “buggey” but it works
    • Waiting feedback on requests, issues and ideas
    • Planned rapid deployment of 1.1 to tackle known bugs
    Simpler Computing - Wordpress Plugins - Help Desk Plugin
    Simpler Computing - Wordpress Plugins - Help Desk Plugin