WordPress.org

Ready to get started?Download WordPress

Forums

Please help me widgetize Biru2.0 (4 posts)

  1. lookielookies
    Member
    Posted 6 years ago #

    I'd like to ask for your help in customizing the Biru 2.0 theme, which I really like and would like to use. I've tried what's in the tutorials, but WordPress still tells me it is not widget-aware.

    Here's the sidebar.php source code:

    <!-- Hi, kiri-1 is left and kanan-1 is right-->
    
    <div id="kiri-1" >
    <!--top commentators-->
    <h3 class="hdr6"><span class="hidden">Top Commentators</span></h3>
    					<ul class="comments">
    							<?php //ns_show_top_commentators(); ?>
    					</ul>
    <!--recent comments-->
    <h3 class="hdr3"><span class="hidden">RECENTCOMMENTS</span></h3>
    					<ul class="comments">
    						<?php if (function_exists('mdv_recent_comments')) { mdv_recent_comments(10, 10, '<li>', '</li>', true, 0); } ?>
    					</ul>
    <!--most commented posts-->
    <h3 class="hdr4"><span class="hidden">MOST COMMENTS</span></h3>
    					<ul class="comments">
    						<?php if (function_exists('mdv_most_commented')) {  mdv_most_commented(10); } ?>
    					</ul>
    <!--Monthly Archives-->
    <h3 class="hdr9"><span class="hidden">Archives</span></h3>
    					<ul class="comments">
    						<?php wp_get_archives('type=monthly'); ?>
    					</ul>
    
    </div>
    
    <div id="kanan-1">
    
    <!--RSS Feed-->
    
    <ul class="comments" >
    
    <p style="text-align: center"><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/rss.png" style="border: 0pt none " /></a></p>
    <p align="center"><a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>">I love your blog and I want to subscribe it via RSS Reader!</a></p>
    
    </ul>
    
    <!--your sponsor-->
    <h3 class="hdr7"><span class="hidden">My Sponsor</span></h3>
    		<ul class="comments">
    				<!--put your sponsors code here-->
    		</ul>
    <!--Category archives-->
    <h3 class="hdr2"><span class="hidden">MY Categories</span></h3>
    					<ul class="comments">
    						<?php list_cats(0, '', 'name', 'asc', '', 1, 0, 1, 1, 1, 1, 0,'','','','','11,14,15,16,17') ?>
    					</ul>
    <!--10 Random Links-->
    <h3 class="hdr5"><span class="hidden">LINK LOVE</span></h3>
    					<ul class="comments">
    						<?php get_links('-1', '<li>', '</li>', '', FALSE, 'rand', FALSE, FALSE, 10, TRUE); ?>
    					</ul>
    
    </div>

    Can someone please help me out??

  2. Joni
    Member
    Posted 6 years ago #

    Where is the widget code that it specifically tells you to insert into your sidebar.php file? Dump the contents of your functions.php file here as well so we can see that.

  3. lookielookies
    Member
    Posted 6 years ago #

    This is what's in the functions.php file:

    <?php
    /*
    DESCRIPTION:
    Functions to get the Recent Posts and getting the Pages
    */
    function CMSTheme_GetRecentPosts($current_id, $limit)
    {
    	global $wpdb;
        $posts = $wpdb->get_results("SELECT ID, post_title FROM " . $wpdb->posts . " WHERE post_status='publish' ORDER BY post_date DESC LIMIT " . $limit);
        foreach ($posts as $post)
    	{
        	$post_title = stripslashes($post->post_title);
            $permalink  = get_permalink($post->ID);
            if ($post->ID != $current_id) echo "<li><a href=\"" . $permalink . "\">" . $post_title . "</a></li>\n";
        }
    }
    
    function CMSTheme_GetPages($with_content = '')
    {
    	global $wpdb;
        $query = "SELECT ID, post_title, post_name FROM " . $wpdb->posts . " WHERE post_type='page' OR post_status='static' ORDER BY menu_order ASC";
    	if ($with_content == "with_content")
    	{
    	   $query = "SELECT ID, post_title,post_name, post_content FROM " . $wpdb->posts . " WHERE post_type='page' OR post_status='static' ORDER BY menu_order ASC";
    	}
    	return $wpdb->get_results($query);
    }
    ?>
  4. Joni
    Member
    Posted 6 years ago #

    None of the texts that you posted indicates that there's widgetizing code there. The instructions are very specific about what code goes where. I see it nowhere in either of the files you provided.

Topic Closed

This topic has been closed to new replies.

About this Topic