Forums

phpbb_recent_topics
editing sidebar.php (4 posts)

  1. shivamaster
    Member
    Posted 1 year ago #

    hi !

    Thank you for this plugin ! I need help for editing sidebar.php from suffusion style.

    I cant' find exactly the way to paste the code, could you help me for editing it ?

    <?php
    /**
     * Widget template for the Now Reading plugin.
     *
     * @package Suffusion
     * @subpackage NowReading
     */
    
    global $nr_book_query, $suffusion_unified_options;
    foreach ($suffusion_unified_options as $id => $value) {
    	$$id = $value;
    }
    
    $lib_order = suf_get_entity_order($suf_nr_wid_order, 'nr');
    $lib_order = explode(',', $lib_order);
    
    ?>
    <div class="now-reading">
    <?php
    if ($suf_nr_wid_search_show == 'top') {
    	library_search_form();
    }
    foreach ($lib_order as $entity) {
    	if ($entity == 'current' && $suf_nr_wid_curr_show == 'show') {
    ?>
    
    	<h4><?php echo stripslashes($suf_nr_wid_curr_title);?></h4>
    <?php
    		if( have_books('status=reading') ) {
    			while(have_books('status=reading')) {
    				the_book();
    ?>
    	<a href="<?php book_permalink() ?>"><img src="<?php book_image() ?>" alt="<?php echo esc_attr(book_title(false)); ?>" title="<?php echo esc_attr(book_title(false)); ?> by <?php echo esc_attr(book_author(false)); ?>"/></a>
    <?php
    			}
    		}
    		else {
    ?>
    				<p><?php echo stripslashes($suf_nr_no_books_text);?></p>
    <?php
    		}
    	}
    	else if ($entity == 'unread' && $suf_nr_wid_unread_show == 'show') {
    ?>
    	<h4><?php echo stripslashes($suf_nr_wid_unread_title);?></h4>
    <?php
    		if( have_books('status=unread') ) {
    			while(have_books('status=unread')) {
    				the_book();
    ?>
    
    	<a href="<?php book_permalink() ?>"><img src="<?php book_image() ?>" alt="<?php echo esc_attr(book_title(false)); ?>" title="<?php echo esc_attr(book_title(false)); ?> by <?php echo esc_attr(book_author(false)); ?>"/></a>
    <?php
    			}
    		}
    		else {
    ?>
    				<p><?php echo stripslashes($suf_nr_no_books_text);?></p>
    <?php
    		}
    	}
    	else if ($entity == 'completed' && $suf_nr_wid_completed_show == 'show') {
    ?>
    	<h4><?php echo stripslashes($suf_nr_wid_completed_title);?></h4>
    <?php
    		if(have_books('status=read&orderby=finished&order=desc')) {
    			while(have_books('status=read&orderby=finished&order=desc')) {
    				the_book();
    ?>
    	<a href="<?php book_permalink() ?>"><img src="<?php book_image() ?>" alt="<?php echo esc_attr(book_title(false)); ?>" title="<?php echo esc_attr(book_title(false)); ?> by <?php echo esc_attr(book_author(false)); ?>"/></a>
    <?php
    			}
    		}
    		else {
    ?>
    				<p><?php echo stripslashes($suf_nr_no_books_text);?></p>
    <?php
    		}
    	}
    }
    if ($suf_nr_wid_search_show == 'bottom') {
    	library_search_form();
    }
    ?>
    	<p><a href="<?php library_url() ?>">View full Library</a></p>
    
    </div>

    I can't find <div id="sidebar"> please help me !

    Thank you so much !

    http://wordpress.org/extend/plugins/phpbb-recent-topics/

  2. bsflarva
    Member
    Posted 1 year ago #

    I have the same question. Is this not the best place to ask?

  3. shivamaster
    Member
    Posted 1 year ago #

    Like you see i never had any answers...

  4. linickx
    Member
    Posted 1 year ago #

    Hello,

    There's not a lot of detail to what your problem is, i.e. paste what code?, what are you trying to do?

    Have you tried contacting the suffusion style developer?

    Cheers,
    Nick

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic