WordPress.org

Ready to get started?Download WordPress

Forums

Fix Redoable Theme 1.2 for WordPress 2.3 (5 posts)

  1. Erunafailaro
    Member
    Posted 6 years ago #

    Hello everyone!

    As some other folks possibly do, I am using the Redoable Theme. Unfortunately, it has some problems with the new version 2.3 of wordpress.

    I was able to fix these problems on my site, and I would like to tell you how i did it, in case you are facing the same problems.

    This includes fixing of the theme's code as well as hacking some plugins that are not compatible with WP 2.3.

    I found those plugins being incompatible with 2.3:

    Other plugins may have problems as well, but if that's the case, I wasn't using them.

    Fixing Extended Live archive and Google Sitemaps

    That's the easy part, because the plugin-authors have fixed their plugins. Just install the current versions.

    Fixing the problem with UTW
    By now, the UTW has not been fixed for WP 2.3. However the plugin called Simple Tags is compatible with WP2.3 and can be used instead.

    All you have to do is installing the Simple-Tags-plugin and applying some changes to the Redoable's sidebar.php:

    look for these lines:

    <?php if(function_exists('utw_showweightedtagsetalphabetical')) { ?>
    	<div class="sb-tags">
    		<h2><?php _e('Tags','redo_domain'); ?></h2>
    		<div>
    			<?php UTW_ShowWeightedTagSetAlphabetical("coloredtagcloud"); ?>
    		</div>
    	</div>
    	<div class="sb-spacer"></div>
    	<?php } ?>

    and change them to:

    <?php if(function_exists('wp_tag_cloud')) { ?>
    	<div class="sb-tags">
    		<h2><?php _e('Tags','redo_domain'); ?></h2>
    		<div>
    			<?php st_tag_cloud('title=&unit=pt&largest=8&smallest=8&maxcolor=#FFFFFF&mincolor=#666666&number=100'); ?>
    		</div>
    	</div>
    	<div class="sb-spacer"></div>
    	<?php } ?>

    Furthermore, the display of tags and related posts for single posts needs to be changed from UTW-functions to the new functions. In order to do this, the file single_post.php needs to be edited in the following way:

    <span class="entry-tags"><?php _e('Tags:','redo_domain'); ?> <?php UTW_ShowTagsForCurrentPost("technoraticommalist") ?>.</span>

    must be changed into

    <span class="entry-tags"><?php _e('Tags:','redo_domain'); ?> <?php the_tags('', ', ', ''); ?>.</span>

    To display the post's tags. And to display the related posts properly, these lines (scroll to the right, to see the complete lines):

    <?php if(function_exists('related_posts')) { ?>
    		<div class="relatedPosts">
    			<h2>related posts</h2>
    			<ul>
    				<?php related_posts(); ?>
    			</ul>
    		</div>
    		<?php } ?>

    must bereplaced by:

    <?php if(function_exists('st_related_posts')) { ?>
    		<div class="relatedPosts">
    			<h2>related posts</h2>
    
    			<?php st_related_posts('number=7&title=') ?>
    		</div>
    <?php } ?>

    Fixing Ultimate Category Cloud
    So far, I couldn't find a fixed version of this plugin, so I made a quick-and dirty-fix myself.

    WARNING: after making the following changes to the plugin, it is possible that it won't work propperly with other themes than Redoable!!!

    I changed one single line of code. I took:

    $cats = list_cats($optionall = 1, 	$all = 'All', 	$sort_column = 'ID', 	$sort_order = 'asc', 	$file = '', $list = true, 	$optiondates = 0, 	$optioncount = 0, 	$hide_empty = 1, 	$use_desc_for_title = 1, 	$children=FALSE, 	$child_of=0, 	$categories=0, 	$recurse=0, $feed = '', $feed_image = '', 	$exclude = '', 	$hierarchical=FALSE)

    and made it use the new function of WP2.3:

    $cats = get_all_cats(1, 'all', 'name', 'asc', '', false, 0, 1, 1, 1, true,0, 0, 1, '', '', $exclude, false);
  2. moshu
    Member
    Posted 6 years ago #

    Did you know that 2.3 has its own tags feature?

  3. Erunafailaro
    Member
    Posted 6 years ago #

    @moshu: of course! Did you know, that the Simple-Tags-plugin I suggested to use in my former post, is using this very 2.3 tags feature and enables a richer tag-cloud than 2.3 does on its own?

  4. Erunafailaro
    Member
    Posted 6 years ago #

    Here's an additional fix concerning the archives-page:

    An SQL-statement in file page-archives.php needs to be adapted to the new taxonomy-table:

    change this line:

    $numcats = $wpdb->get_var("SELECT COUNT(1) FROM $wpdb->categories");

    into:

    $numcats = $wpdb->get_var("SELECT COUNT(1) FROM $wpdb->term_taxonomy WHERE taxonomy like 'category'");

  5. RedComet
    Member
    Posted 6 years ago #

    Thanks for your help Erunafailaro!

    I am running Redoable v1.2 and WP 2.3.1 (and I love it!) and have been having a few issues with plugins and the category database error on the "Presentation -> Redoable options" tab, so any additional tips and coding help you can provide is greatly appreciated!

Topic Closed

This topic has been closed to new replies.

About this Topic