Recent Topics

1 Sep 27, 2005 19:15    

I've been using b2 and b2evo for what seems like forever now. This is the first time I have used the multiblog feature and the forums have been really helpful with setting this up and changing little things.

One thing that I am having a problem with are the archives, though. I have a site set up with three columns. column one has the archives of blog b ('news') which compromises column two.

I edited the _archives.php file in the custom skin folder to read this:

# number of archive entries to display:
	if(!isset($archive_limit)) $archive_limit = 5;
	# this is what will separate your archive links
	if(!isset($archive_line_start)) $archive_line_start = '<div class="sideinfo">';				
	if(!isset($archive_line_end)) $archive_line_end = '</div><img src=http://carnifexpress.net/metalbreak.jpg">';			
	# this is what will separate dates on weekly archive links
	if(!isset($archive_week_separator)) $archive_week_separator = ' - ';
	# override general date format ? 0 = no: use the date format set in Options, 1 = yes: override
	if(!isset($archive_date_format_over_ride)) $archive_date_format_over_ride = 0;
	# options for daily archive (only if you override the general date format)
	if(!isset($archive_day_date_format)) $archive_day_date_format = 'm.d.Y';
	# options for weekly archive (only if you override the general date format)
	if(!isset($archive_week_start_date_format)) $archive_week_start_date_format = 'm.d.Y';
	if(!isset($archive_week_end_date_format)) $archive_week_end_date_format   = 'm.d.Y';

Basically, what I want is there to be an image between each of the archive links. According to my skin and the format of this code it should work but it refuses to do so. What am I doing wrong? It must be something painfully obvious (in which case I may cry ;D ).

Please help, Oh Thunderous Gods of Php!

Thanks,
Ash

EDIT
PS- I am also having a problem displaying the links for the full archive list of the other blogs.

 <!----------------------------------------------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>

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?

2 Sep 27, 2005 19:46

if(!isset($archive_line_end)) $archive_line_end = '</div><img src=http://carnifexpress.net/metalbreak.jpg">';


Looks like you're missing one of those " thingies right before your http bit. Also if validation matters you gotta throw in an alt="this is the alt text for an image that I stuck in here to make a stupid validator happy". Oh and you would have to end it differently too. Close the unclosed tag and all that.

if(!isset($archive_line_end)) $archive_line_end = '</div><img src="http://carnifexpress.net/metalbreak.jpg" alt="alternate dimension" />';


Aw heck go for broke!

if(!isset($archive_line_end)) $archive_line_end = '</div><img src="http://carnifexpress.net/metalbreak.jpg" alt="its just a bunch of glunk after all" width="150" height="19" />';

But I think maybe the missing " is enough to make you happy eh?

3 Sep 27, 2005 19:56

Thanks, EdB. After I get this thing up and running I plan on running through the validation. It's more important for me to get the bugs worked out and then I will fix my laziness.

Any ideas on the other problem?


Form is loading...