Recent Topics

1 Oct 15, 2009 03:18    

My b2evolution Version:

OK...so I want to modify the way my dates are posted and found the basic code for this in glossy blue...but...I have two problems that I know about but cannot find

FIRST...the first </span> says that it's mismatched...but...I don't see how it is. I've searched all before this bit and no mismatched span without a close
SECOND...every > after this bit thinks it's an extra bracket

The error is referenced in line 151 which corresponds to the line where I specify the <div id="date">

Any ideas?

	<?php
		// --------------------------------- START OF POSTS -------------------------------------
		// Display message if no post:
		display_if_empty();

		while( $Item = & mainlist_get_item() )
		{	// For each blog post, do everything below up to the closing curly brace "}"

			// ------------------------------ DATE SEPARATOR ------------------------------
			$MainList->date_if_changed( array(
		<div id="date">
			<span class="post-monthyear"><?php $Item->issue_time( array(
						'before'    => '',
						'after'     => '',
						'date_format' => 'M',
					)); ?></span>
			<span class="post-day"><?php $Item->issue_time( array(
						'before'    => '',
						'after'     => '',
						'date_format' => 'd',
					)); ?></span>
			<span class="post-monthyear"><?php $Item->issue_time( array(
						'before'    => '',
						'after'     => '',
						'date_format' => 'd',
					)); ?></span>

		</div>
				) );

2 Oct 16, 2009 10:21

Try this:


<?php
      // --------------------------------- START OF POSTS -------------------------------------
      // Display message if no post:
      display_if_empty();

      while( $Item = & mainlist_get_item() )
      {   // For each blog post, do everything below up to the closing curly brace "}"

         // ------------------------------ DATE SEPARATOR ------------------------------
         $MainList->date_if_changed( array(
?>
      <div id="date">
<?php
         $Item->issue_time( array(
                  'before'    => '<span class="post-monthyear">',
                  'after'     => '</span>',
                  'date_format' => 'M',
               ));
         $Item->issue_time( array(
                  'before'    => '<span class="post-day">',
                  'after'     => '</span>',
                  'date_format' => 'd',
               ));
         $Item->issue_time( array(
                  'before'    => '<span class="post-monthyear">',
                  'after'     => '</span>',
                  'date_format' => 'd',
               ));
?>
      </div>
<?php
            ) );

3 Oct 24, 2009 22:51

Thanks so much! I will try this this afternoon. I appreciate you taking the time to answer me.

Sue


Form is loading...