Recent Topics

1 Mar 25, 2009 07:19    

My b2evolution Version: Not Entered

My blog uses the glossyblue skin right now but I have noticed it doesn't show the author and the time that it was posted whenever i make a new post. Is there a way to make it show that the thread was posted by the author rather than having it not show anyone?

2 Mar 25, 2009 07:38

Hi, you have to edit the file posts.main.php for that skin .
Look for

<span class="post-cat"><?php
				$Item->categories( array(
					'before'          => '',
					'after'           => ' ',
					'include_main'    => true,
					'include_other'   => true,
					'include_external'=> true,
					'link_categories' => true,
				) );
			?></span>


and include in that span the following...

$Item->issue_time( array(
						'before'    => ' ',
						'after'     => '',
					));

				$Item->author( array(
						'before'    => ', '.T_('by').' <strong>',
						'after'     => '</strong>',
					) );

Back original files up and then play with the above until your happy with it.

4 Apr 28, 2009 10:18

AWESOME! I've been wanting to do this as well.

That said, I have NO clue what I'm doing to try to edit that. I would like it to appear, if possible, BEFORE the category list and to say @time (i.e. @5:14pm) instead of just time (5:14pm) - I tried a few things but got errors on them all.

Much thanks!

5 Apr 28, 2009 15:27

hudson2001 wrote:

(i.e. @5:14pm) instead of just time (5:14pm)

$Item->issue_time( array(
                        'before'    => '@ ',
                        'after'     => '!',
                    ));

;)

¥

6 Apr 28, 2009 17:06

Okay, that adds the @ but it doesn't put it at the beginning of the line (before the categories)... was it supposed to? (Just checking.)

7 Apr 28, 2009 19:03

I just did the "i/e @" bit ;)

¥

9 Apr 28, 2009 19:29

I don't have the same skin, but if you look for a section that's remotely close to resembling a near relative of this :

			<p class="postCats">Posted in : <?php $Item->categories(); ?></p>

and then slap the code from above, above that, cross your fingers and do that weird dance that people always do when they dance to elves/pixies/the great god of the fire breathing mountain/fairies/goblins/and when they burn their fingers .... anyway, if you do that dance then hopefully it won't kill your blog

Good luck :D

¥


Form is loading...