Recent Topics

1 Oct 01, 2005 02:48    

I have three "blogs" set up in the multiblog format (all three on the same page in three different places serving three different purposes). The main blog is working fine, but I cannot get the archives link for the secondary blogs to come up right.

When I put the "restore after dirty trick" before the archive link, it cuts all of that section out of the template. When I put it after it, it repeats the "view full..." link after every entry". Any suggestions?

My code:


 <!----------------------------------------------Current Projects -------------------------------------------->
<center><IMG height=35 alt="" src="currentprojects.jpg" width=150 border=0>
<?php
      // Dirty trick until we get everything into objects:
      $saved_blog = $blog;
      $blog = 3;   // Blog B now
      $Blog_B = Blog_get_by_ID( 3 );   // Blog B
   ?>
   
   <?php
      // You can restrict to specific categories by listing them in the two params below: '', array()
      // '', array(9,15) will restrict to cats 9 and 15
      // '9,15', array() will restrict to cats 9,15 and all their subcats
      $BlogBList = & new ItemList( $blog,    $show_statuses, '', $m, $w, '', array(), $author, $order, $orderby, $posts, '', '', '', '', '', '', '', '3', 'posts', $timestamp_min, $timestamp_max );

      while( $Item = $BlogBList->get_item() )
      {
      ?>

<div class="sideinfo">
         <?php $Item->anchor(); ?>

         <b><a href="<?php $Item->permalink() ?>" title="<?php echo T_('Permanent link to full entry') ?>"></a><?php $Item->title(); ?></b>

            <?php $Item->content( 1, false ); ?>
            <?php link_pages() ?></small></div><img src="metalbreak.jpg">   <?php
      }

      // Restore after dirty trick:
      $blog = $saved_blog;
   ?>

   
<div class="sideinfo"><a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>">View the full projects archives &gt;&gt;</a></div>

[/code]

2 Oct 02, 2005 11:28


            <?php $Item->content( 1, false ); ?>
            <?php link_pages() ?></small></div><img src="metalbreak.jpg">   <?php
      }
?>
<div class="sideinfo"><a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>">View the full projects archives &gt;&gt;</a></div>
<?php
      // Restore after dirty trick:
      $blog = $saved_blog;
   ?>

¥


Form is loading...