Recent Topics

1 Nov 25, 2006 16:50    

Hi everybody.

I'm having 3 little problems in my Comments Window.

My blog link: http://blog.oleschmitt.com.br

There are two comments in the post with a dog picture, so you can see the comments by clicking in "2 Comentários".

1: Date and time of comments are not showing anymore
Where appears "Em às" should be "Em 25/11/2006 às 13:00h", for example.

This is the code used for it:

<div class="bCommentSmallPrint">
<?php $Comment->edit_link( '', '', '#', '#', 'permalink_right' ); /* Link to backoffice for editing */ ?>
<?php $Comment->delete_link( '', '', '#', '#', 'permalink_right' ); /* Link to backoffice for deleting */ ?>
<em>Em <?php $Comment->date() ?> às <?php $Comment->time( 'H:i' ) ?></em>
</div>


Somehow it's not getting $Comment->date() and $Comment->time.
Or maybe it's not even being recorded?

2: blank space
There's a blank space before links. How can I get rid of it?
There was a bullet also before, so I've deleted everything between parenthesis in "author_url()" and this white space was left...

Follows the code:

<?php
switch( $Comment->get( 'type' ) )
{
case 'comment': // Display a comment:
echo '<strong>';
$Comment->author();
echo '</strong>';
$Comment->msgform_link( $Blog->get('msgformurl') );
echo '<br />';
$Comment->author_url();
break;

}
?>

3: links in new window
Is possible to open links in Comments window in a blank (new) window?

If you guys need anything beyond what's shown here, please let me know.

I just want Comments to be:

Name
linktowebsite

comments....
Date and time of comment

Simple as that.

Can you help me, PLEASE?? :(

Thanks.

2 Nov 25, 2006 22:38

1. add a 'echo' infront of the function call.

2. check your <a> tags margin ;)

3. Add this '<base target="_blank" />' into your popup page's <head> tag.

Good? :)

3 Nov 25, 2006 23:49

balupton wrote:

1. add a 'echo' infront of the function call.

2. check your <a> tags margin ;)

3. Add this '<base target="_blank" />' into your popup page's <head> tag.

Good? :)

Hi balupton!
Thanks for supporting me.

Ok, questions 2 and 3: PERFECT!!!! Simple, easy and perfect! Thank you.

But, regarding to question 1, I've tryed what you've recommended and I got no results. How I was shure that I've made it the right way and in the right place, I accessed MySQL database and noticed that all comment_date records are "zero":
0000-00-00 00:00:00

So I changed one record by hand, adding a date and time and [u]this record[/u] is shown properly in comments window.

So the problem isn't in showing, but in recording.

I've searched but I couldn't find where, or how, this date is set and recorded.

Inside comments_post.php, it's there in line 135:
$Comment->set( 'date', $now );

Can you help me once more with this, please?

Thank you again.

4 Nov 26, 2006 05:20

Repost it as a bug report :)

New issue = New topic ;)

5 Nov 26, 2006 12:33

Ok, thank you very much.
I'll do that right now.

Have a nice day.


Form is loading...