Viewing 13 replies - 16 through 28 (of 28 total)
  • Thread Starter ceejayoz

    (@ceejayoz)

    Sorry, alsoevso, my mistake. That should be fixed now.

    marke1

    (@marke1)

    <?php show_subscription_checkbox(); ?>

    I had that error too, I think it was a missing “Subscribe to Comments” plugin. You should put checks in your template to see if a plugin function exists before calling it:

    if function_exists('function_name') {

    beastaugh

    (@ionfish)

    We do… just missed one out. ??

    marke1

    (@marke1)

    You’ll need to tweak your template for the upcoming WP 2.0.2 because it changes the way Links are handled. The new Bookmarks interface is used. So what happens with your sidebar template is that post categories are listed along with link categories, and under the post category headings no items are listed. You can call get_links_list instead of using all of your sidebar the template code in that particular area.

    The workaround I made was to hack up a copy of get_links_list function (as seen in template-functions-bookmarks.php) to allow me to pass my own heading tags. I put this function (below) in a my-hacks.php file:

    function get_my_links_list($order = 'name', $heading_before='<h3>',$heading_after='</h3>',$item_before='<li>',$item_after='</li>') {

    $order = strtolower($order);

    // Handle link category sorting
    $direction = 'ASC';
    if (substr($order,0,1) == '_') {
    $direction = 'DESC';
    $order = substr($order,1);
    }

    if (!isset($direction)) $direction = '';

    $cats = get_categories("type=link&orderby=$order&order=$direction");

    // Display each category
    if ($cats) {
    foreach ($cats as $cat) {
    // Handle each category.

    // Display the category name
    echo $heading_before . $cat->cat_name . $heading_after . "\n\t";
    echo '<ul class="navlist" id="linkcat-' . $cat->cat_id . '">'
    get_links($cat->cat_ID, $item_before,$item_after,"\n");

    // Close the last category
    echo "nt</ul>n</li>\n";
    }
    }
    }

    And call it in the sidebar template like this, all vars included for simple example:

    <?php if(get_option('tarski_sidebar_links')) { // links block ?>

    <?php
    // first parm can be ID, name, count, or other wp_categories database field suffix
    get_my_links_list('ID','<h3>','</h3>','<li>','</li>');

    ?>

    Maybe I didn’t need to do all that — not sure. I haven’t scoured the latest code to see. But at least your template works now with the latest nightly builds. If there’s an easier way then to handle this then I’d apprecite any advice from people using the nightly builds.

    Thread Starter ceejayoz

    (@ceejayoz)

    So 2.0.2 is going to break backwards compatibility for that bit of code? Interesting… I’ll have to play around with a new install of WP and see it in action. Thanks for the info!

    marke1

    (@marke1)

    So 2.0.2 is going to break backwards compatibility for that bit of code? Interesting… I’ll have to play around with a new install of WP and see it in action. Thanks for the info!

    In Tarski, he wrote his own code for processing links lists, so that’s why it breaks. He needs to update the template for compatibility.

    As for 2.0.2 compatibility, it looks like many functions were deprecated (replaced with new ones) and all the deprecated functions are still available in deprecated.php, so 2.0.2 shouldn’t break templates, in so far as I can tell.

    marke1

    (@marke1)

    ionfish: You could add to the Tarski header template this item for pingback URL:

    <link rel="pingback" href="<?php echo get_settings('home'); ?>/xmlrpc.php" />

    Thread Starter ceejayoz

    (@ceejayoz)

    Good idea, marke1, thanks. We’ll add that to the next release.

    Thread Starter ceejayoz

    (@ceejayoz)

    We’ve released version 1.1 of Tarski, with some major changes including theme hooks, alternate CSS style support, and asides.

    Good work. I especially like the way you made it easy to choose the asides category. I have a suggestion and a bug report.

    1)Suggestion :

    ABSPATH . ‘/wp-content/themes/’ . get_template() is same as TEMPLATEPATH

    2)Bug :
    Header.php is hardcoding the links for archives and about pages.
    but in my windows installation, the links is “sitename/index.php/archives/” and not “sitename/archives”

    will let u know if i find any other issues.

    Thanks for pointing those out, will fix them for the next release. ??

    Thread Starter ceejayoz

    (@ceejayoz)

    Just thought I’d mention that the choosing of the asides category is a nifty feature we picked up from K2. ??

    Happy to say we’ve addressed the issues you raised, sadish, as well as a number of others. New features, styles and headers debut in our latest release.

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘New Theme – Tarski’ is closed to new replies.