Recent Topics

1 Oct 05, 2007 15:06    

Hello :)

My b2evolution Version: 1.9.x

I'm using the naked bob template for my B blog.

All blog and A blog are using the helskinki template.

B Blog: After a post is made it then shows the date, the first time, very BOLD over the title when viewing the post. Then it repeats it nicely below the title. The date below the title I'd like to keep but the HUGE date above the post title I'd like to delete.

How is that accomplished?

and...How do I unBOLD the post Title as well? That appears annoyingly LARGE too.

I've glanced through the nakedbob.css but I don't know enough about it to see where it should be done.

Thank u,
kat

2 Oct 05, 2007 15:14

The code you are lookung for is in _main.php in the ../mlogs/skins/naked_bob/ folder:

<?php 
      $MainList->date_if_changed( '<h2>', '</h2>', '' );
?>


Probably it's twice in the file. You can remove one of them. You can change the size through the <h2> tag. <h3> is smaller and <h1> is larger.

The code for the post title is similar to this:

<h3 class="bTitle"><?php $Item->title( '', '', true ); ?></h3>


Once again you can change the size by changing the <h3> tag.

Good luck

3 Oct 05, 2007 16:30

Afwas wrote:

The code you are lookung for is in _main.php in the ../mlogs/skins/naked_bob/ folder:

<?php 
      $MainList->date_if_changed( '<h2>', '</h2>', '' );
?>


Probably it's twice in the file. You can remove one of them. You can change the size through the <h2> tag. <h3> is smaller and <h1> is larger.

The code for the post title is similar to this:

<h3 class="bTitle"><?php $Item->title( '', '', true ); ?></h3>


Once again you can change the size by changing the <h3> tag.

Good luck

Hey Afwas :D

Changing the post title size worked great. Thanks.

But the date, I'm confused on.

mine reads:


$MainList->date_if_changed(); // display post date if it changed

Which part of this should I change?

I was confused and so I took out the date_if_changed() and the sky fell on my head. So I put it back in. But when I removed the // display post date if it changed nothing happened.

Am I looking in the wrong place?

4 Oct 05, 2007 19:22

Nevermind. I came across an answer by accident with a bit more poking around.

I think I eventually ended up with this.

 // $MainList->date_if_changed();  

The result was that it completely removed the first LARGE date without making the sky fall on my head.

What are the little // for?

Thanks.

5 Oct 06, 2007 15:23

It's a comment. The remainder of the line will be completely ignored by PHP. It's like it didn't exist at all.

Instead of removing completely the date, you can change the paramenters:

$MainList->date_if_changed('<h3>', '</h3>');

Or whatever else you want to add before and after the date (first and second parameter of the function).

6 Oct 06, 2007 17:52

cool :)

thank u Austriaco


Form is loading...