Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter lifeflame

    (@lifeflame)

    Although I’d love to ask — how come changing the top: 0; from top: 2em; makes it not hover?

    Thread Starter lifeflame

    (@lifeflame)

    Works like a charm. Many thanks, danny!

    Thread Starter lifeflame

    (@lifeflame)

    thanks Inspired2Write. It’s actually not a widget problem (I deactivated the plugin to make sure it wasn’t a widget problem.)

    Well, update: suddenly things are okay again. I’m not sure what happened at all! Bizarre, bizarre. Any insights?

    Yes, I used this plugin. It said it fixed things, but didn’t make a difference to my feed.
    Also, if I switch another template, it doesn’t work either, so I suspect it isn’t the php files…?

    Hi, I’m running into the same problem. Exactly the same line too.
    error on line 3 at column 6: XML declaration allowed only at the start of the document

    https://www.hofan.burntmango.org/journal/current/
    https://www.hofan.burntmango.org/journal/current/feed/

    I don’t think it’s the php template, because (a) I ran things through the “fix rss” widget designed to fix blank lines and (b) even when I switch themes I still have trouble.

    Anyone?

    Thread Starter lifeflame

    (@lifeflame)

    Hi Michael,

    I’m having some trouble styling the code you sent me.
    There are basically two main errors that I can’t seem to fix.

    1. One is the fact that I can’t get a space before the “Other Recent Posts”.
    I’ve tried adding <p>, changing the <h2> style before to get soem padding before, inserting “\n” into the echo but with no avail. When I inspect the element in google chrome it seems that it’s considered one block with the list above.

    2. Is that I’ve been trying to insert an ‘if..else’ in the code so that I can have an alternative sidebar for not non-category archive pages. However, I’m having syntax errors. I think it may have to do with the ?> right after it but I can’t figure out exactly what.

    Perhaps you can help shed light on this?
    thanks…

    <div id="contentright">
    
    <div class="title">
    &nbsp</p>
    <h1><a href="<?php echo get_option('home'); ?>/">Hofan is Home</a></li></h1>
    <div id="sidebar">
    </p>_____________________</p>
    
    <?php
    $used_ids = array();
    if ( is_category() ) {
      $current_cat_title = single_cat_title("", false);
      $current_cat = get_query_var('cat');
      $args=array(
        'cat' => $current_cat,
        'post_type' => 'post',
        'post_status' => 'publish',
        'posts_per_page' => -1,
        'caller_get_posts'=> 1
      );
      $my_query = null;
      $my_query = new WP_Query($args);
      if( $my_query->have_posts() ) {
        echo "<h2>$current_cat_title</h2>";
        while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <div class="recentpostswrap">										<div class="recentpoststitle">
          <a href="<?php the_permalink() ?>" rel="bookmark" title="Go to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    </div><li type=square></div>
          <?php $used_ids[] = $my_query->post->ID;
        endwhile;
      }
    
      $args=array(
        'post__not_in' => $used_ids,
        'post_type' => 'post',
        'post_status' => 'publish',
        'posts_per_page' => 99,
        'caller_get_posts'=> 1
      );
      $my_query = null;
      $my_query = new WP_Query($args);
      if( $my_query->have_posts() ) {
        echo'<h2>Other recent posts</h2>';
        while ($my_query->have_posts()) : $my_query->the_post(); ?>
    <div class="recentpostswrap">										<div class="recentpoststitle">
          <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
    </div><li type=square></div>
    
          <?php
        endwhile;
      }
    wp_reset_query();  // Restore global post data stomped by the_post().
    }  // if (is_category()) else {
    ?></ul>
    
    			<div id="recentposts">
    				<h2>Recent Posts</h2>
    
    <ul>
    				<?php query_posts('showposts=12'); ?>
    					<?php while (have_posts()) : the_post(); ?>
    						<div class="recentpostswrap">
    
    							<div class="recentpoststitle">
    								<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?> <?php the_title(); ?>"><?php the_title(); ?></a>
    </div><li type=square>
    
    						</div>
    				<?php endwhile;?></ul>
    </div>}
    
    </p>
    <a href="https://www.hofan.burntmango.org/journal/current/about/"><img src="https://www.hofan.burntmango.org/images/16.gif" align="right" height="150" border-style="none" title="About Hofan"/></a>
    
    <div id="widgets">
    		<?php 	/* Widgetized sidebar, if you have the plugin installed. */
    				if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    		<?php endif; ?>
    </p>
    </div>
    		<div id="searchformsidebar">
    			<?php include (TEMPLATEPATH . '/searchform.php'); ?>
    		</div>
    </div>
    </div>

    here is an example of how it looks now, without the else:
    https://www.hofan.burntmango.org/journal/current/category/writing/
    (it won’t run with the else in there)

    Thread Starter lifeflame

    (@lifeflame)

    MichealH-

    You rock the world. Thank you.
    I think I can figure out the main + single pages from this. Add the formatting, and I’m set.

    I knew there were people out there where writing this would be a buzz.
    =)

Viewing 7 replies - 1 through 7 (of 7 total)