1 knetf Aug 19, 2006 02:07
3 pyogazel Aug 25, 2006 15:16
I've got the same problem,
look [url=http://pyogazel.free.fr/index.php?blog=2&skin=coeurs&title=spammm&more=1&c=1&tb=1&pb=1#comments]here[/url] !
I use b2evo v 0.9.1 and just installed an image capture I found [url=http://forums.b2evolution.net/viewtopic.php?t=2976&highlight=comments+date]here[/url] but otherwise didn't alter the _feedback.php file...
here it is anyway :
<?php
/**
* This is the template that displays the feedback for a post
* (comments, trackbak, pingback...)
*
* This file is not meant to be called directly.
* It is meant to be called by an include in the _main.php template.
* To display a feedback, you should call a stub AND pass the right parameters
* For example: /blogs/index.php?p=1&more=1&c=1&tb=1&pb=1
* Note: don't code this URL by hand, use the template functions to generate it!
*
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
*
* @package evoskins
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
// --- //
if( ! $c )
{ // Comments not requested
$disp_comments = 0; // DO NOT Display the comments if not requested
$disp_comment_form = 0; // DO NOT Display the comments form if not requested
}
if( (!$tb) || (!$Blog->get( 'allowtrackbacks' )) )
{ // Trackback not requested or not allowed
$disp_trackbacks = 0; // DO NOT Display the trackbacks if not requested
$disp_trackback_url = 0; // DO NOT Display the trackback URL if not requested
}
if( (!$pb) || (!$Blog->get( 'allowpingbacks' )) )
{ // Pingback not requested or not allowed
$disp_pingbacks = 0; // DO NOT Display the pingbacks if not requested
}
if( ! ($disp_comments || $disp_comment_form || $disp_trackbacks || $disp_trackback_url || $disp_pingbacks ) )
{ // Nothing more to do....
return false;
}
?>
<a name="feedbacks"></a>
<?php
$type_list = array();
$disp_title = array();
if( $disp_comments )
{ // We requested to display comments
if( $Item->can_see_comments() )
{ // User can see a comments
$type_list[] = "'comment'";
$disp_title[] = T_("Comments");
}
else
{ // Use cannot see comments
$disp_comments = false;
}
?>
<a name="comments"></a>
<?php }
if( $disp_trackbacks ) {
$type_list[] = "'trackback'";
$disp_title[] = T_("Trackbacks"); ?>
<a name="trackbacks"></a>
<?php }
if( $disp_pingbacks ) {
$type_list[] = "'pingback'";
$disp_title[] = T_("Pingbacks"); ?>
<a name="pingbacks"></a>
<?php } ?>
<?php if( $disp_trackback_url )
{ // We want to display the trackback URL: ?>
<h4><?php echo T_('Trackback address for this post:') ?></h4>
<code><?php $Item->trackback_url() ?></code>
<?php } ?>
<?php
if( $disp_comments || $disp_trackbacks || $disp_pingbacks )
{
?>
<!-- Title for comments, tbs, pbs... -->
<h2 title="<?php echo implode( ", ", $disp_title) ?>:"><?php echo implode( ", ", $disp_title) ?>:</h2><br />
<?php
$CommentList = & new CommentList( 0, implode(',', $type_list), array(), $id, '', 'ASC' );
$CommentList->display_if_empty(
'<div class="bComment"><p>' .
sprintf( /* TRANS: NO comments/trackabcks/pingbacks/ FOR THIS POST... */
T_('No %s for this post yet...'), implode( "/", $disp_title) ) .
'</p></div>' );
while( $Comment = $CommentList->get_next() )
{ // Loop through comments:
?>
<!-- ========== START of a COMMENT/TB/PB ========== --><br />
<?php $Comment->anchor() ?>
<div class="bComment">
<div class="bCommentTitle">
<?php
switch( $Comment->get( 'type' ) )
{
case 'comment': // Display a comment:
echo T_('Comment from:') ?>
<?php $Comment->author() ?>
<?php $Comment->author_url( '', ' · ', '' ) ?>
<?php break;
case 'trackback': // Display a trackback:
echo T_('Trackback from:') ?>
<?php $Comment->author( '', '#', '', '#', 'htmlbody', true ) ?>
<?php break;
case 'pingback': // Display a pingback:
echo T_('Pingback from:') ?>
<?php $Comment->author( '', '#', '', '#', 'htmlbody', true ) ?>
<?php break;
}
$Comment->edit_link( ' · ' ) // Link to backoffice for editing
?>
</div>
<div class="bCommentText"><div class="rbroundbox"><div class="rbtop"><div></div></div><div class="rbcontent">
<?php $Comment->content() ?>
</div><div class="rbbot"><div></div></div></div></div>
<div class="bCommentSmallPrint">
<small><?php $Comment->date() ?> @ <a href="<?php $Comment->permalink() ?>" title="<?php echo T_('Permanent link to this comment') ?>" class="permalink_right"><?php $Comment->time( 'H:i' ) ?></a></small>
</div>
</div>
<!-- ========== END of a COMMENT/TB/PB ========== -->
<?php
}
if( $disp_comment_form )
{ // We want to display the comments form:
if( $Item->can_comment() )
{ // User can leave a comment
?>
<h2><?php echo T_('Leave a comment') ?>:</h2>
<?php
$comment_author = isset($_COOKIE[$cookie_name]) ? trim($_COOKIE[$cookie_name]) : '';
$comment_author_email = isset($_COOKIE[$cookie_email]) ? trim($_COOKIE[$cookie_email]) : '';
$comment_author_url = isset($_COOKIE[$cookie_url]) ? trim($_COOKIE[$cookie_url]) : '';
?>
<!-- form to add a comment -->
<form action="<?php echo $htsrv_url ?>/comment_post.php" method="post" class="bComment">
<input type="hidden" name="comment_post_ID" value="<?php $Item->ID() ?>" />
<input type="hidden" name="redirect_to" value="<?php echo regenerate_url() ?>" />
<?php
if( is_logged_in() )
{ // User is logged in:
?>
<fieldset>
<div class="label"><?php echo T_('User') ?>:</div>
<div class="info">
<strong><?php $current_User->prefered_name()?></strong>
<?php user_profile_link( ' [', ']', T_('Edit profile') ) ?>
</div>
</fieldset>
<?php
}
else
{ // User is not loggued in:
form_text( 'author', $comment_author, 40, T_('Name'), '', 100, 'bComment' );
form_text( 'email', $comment_author_email, 40, T_('Email'), T_('Your email address will <strong>not</strong> be displayed on this site.'), 100, 'bComment' );
form_text( 'url', $comment_author_url, 40, T_('Site/Url'), T_('Your URL will be displayed.'), 100, 'bComment' );
}
// Start emoticon (aka smilie) in comments hack ?>
<fieldset>
<div class="label"><?php echo T_('Smilies') ?>:</div>
<div class="info">
<?php $Toolbars->comment_display(); ?>
</div>
</fieldset>
<?php
form_textarea( 'comment', '', 12, T_('Comment text'), T_('Allowed XHTML tags').': '.htmlspecialchars(str_replace( '><',', ', $comment_allowed_tags)).'<br />'.T_('URLs, email, AIM and ICQs will be converted automatically.'), 40, 'bComment' );
?>
<?php // End emoticon (aka smilie) in comments hack ?>
<fieldset>
<div class="label"><?php echo T_('Options') ?>:
<fieldset>
<div class="label">
<?php if( (substr($comments_use_autobr,0,4) == 'opt-') && (! is_logged_in()) )
{ // Ladies and gentlemen, check out the biggest piece of anti IE-layout-bugs
// crap you've ever seen:
echo '<br /> '; // make the float a little higher
} ?>
</div>
<div class="input">
<?php if( substr($comments_use_autobr,0,4) == 'opt-') { ?>
<input type="checkbox" class="checkbox" name="comment_autobr" value="1" <?php if($comments_use_autobr == 'opt-out') echo ' checked="checked"' ?> tabindex="6" id="comment_autobr" /> <label for="comment_autobr"><?php echo T_('Auto-BR') ?></label> <span class="notes">(<?php echo T_('Line breaks become <br />') ?>)</span><br />
<?php }
if( ! is_logged_in() )
{ // User is not logged in:
?>
<input type="checkbox" class="checkbox" name="comment_cookies" value="1" checked="checked" tabindex="7" id="comment_cookies" /> <label for="comment_cookies"><?php echo T_('Remember me') ?></label> <span class="notes"><?php echo T_('(Set cookies for name, email & url)') ?></span>
<?php
} ?>
</div>
</fieldset>
<fieldset>
<div class="input" align="center">
<p><small>Je vérifie juste que vous êtes bien un être humain...</small><br />
<input type="text" name="code" id="code" value="<?php echo ""; ?>" size="28" tabindex="4" />
<label for="code"><?php echo T_("Recopiez ce code: "); ?></label>
<img src="./authimage.php?type=image" width="155" height="50" alt="authimage" class="authimage" />
</p>
<input type="submit" name="submit" class="submit" value="<?php echo T_('Zou!') ?>" tabindex="8" />
</div>
</fieldset>
<fieldset>
<div align="right">
<p>Merci de respecter la <a href="http://www.albion.com/netiquette/" target="_blank">nétiquette</a></p>
</div>
</fieldset>
<div class="clear"></div>
</form>
<?php
}
}
?>
<?php } // if you delete this the sky will fall on your head ?>
oh! forgot to tell about the roundbox div thingy : it's a trick to have rounded corners for boxes, I think it looks cute
found it here :
http://www.redmelon.net/tstme/4corners/ but the link doesn't work anymore, so tyr this : http://www.neuroticweb.com/recursos/css-rounded-box/
4 knetf Aug 25, 2006 18:24
Erm,
For some reason it's stacking the comments when:
1. They get to a certain length, they get placed randomly (or on top)
2. When there are more than 10 comments of 1 line..
So when the comments page gets to a certain length, it seems as if any new comments get placed on top, or just randomly.
For anyone who is asking - go to my site to check it out, ive started an entry called "test comment" - go ahead and comment if you wish.
http://www.kevin-foster.net/blog/
or permalink
http://www.kevin-foster.net/blog/index.php/2006/08/25/test_comment
Thanks...
EDIT: Ive narrowed it down to this:
- the number of lines is affecting the comment order
- the users name is affecting the comment order.
5 kding Aug 25, 2006 19:01
I am having the same problem. hope to see a solution on this board soon. Thanks for bringing this up.
6 edb Aug 25, 2006 19:27
<meta name="generator" content="KEVIN FOSTERS BLOG!!!" /> <!-- w00t! RSS SEXML! I LOVE MY HEADINFO~111! -->
That really doesn't help anyone or anything eh? Think about it when you ask for help here, please. http://www.kevin-foster.net/blog/index.php?skin=originalb2 showed me what version you're running - and your "powered by whatever" button. Another example of how not to get free help from these forums, but here's your answer anyway: You should (a) upgrade because 0.9.0.10 is extremely old and then (b) test this issue with an unhacked installation and clean copy of the custom skin. http://b2evolution.net/news/2006/08/17/b2evolution_1_8_1_milestone_released_tra shows many comments that appear to be in order based on the time stamp. They run the latest version from CVS, but in general I'll guess that it's something you did that made your comments go haywire like that.
7 knetf Aug 25, 2006 19:32
In any case, I give b2 evo props on the link bar. Is it avisable to have a button image instead?
Any powerdby text/button/image whatever is ok, as long as it is there and clear.
8 tigerdirectsucks Aug 28, 2006 16:08
I'm having the same problem. Both the last comments function as well as the comments section in general. Comments that are being made are getting posted out of order.
If you want to take a look at the site it's - www.tigerdirectsucks.org
Any resolution would be appreciated.
9 edb Aug 28, 2006 16:56
knetf don't worry about the *exact* nature of a linkback. I saw that you have it in your sidebar (though for the record you don't need the www in your link). My problem was with the tweaked line of the generator. Those of us who are hip to b2evolution look there to see what the help someone needs should be tailored to is the thing. After that I was like "okay so now I have to guess at the skins that always get included".
pyogazel your _feedback.php file is NOT stock!!! You've included the hack for smilies in comments, so, well, it's not stock is all I mean. Problems are not always easy to troubleshoot so - trust me - it really does help to have a completely stock custom skin to see if the problem is in a skin or in the core code. BTW I'm not on the dev team. I'm just a forum junkie...
Back on track:
tigerdirectsucks's is basically the custom skin. Maybe exactly? There are a few validation errors but I think they're from comments made with links the validator doesn't like. Anyway even though b2evolution's site seems to handle them properly it's obvious it's not working for users out there.
QUESTION FOR THOSE WHO HAVE THIS ISSUE: Is it possible that you are seeing posts in the order you've approved them out of moderation? I'm not on the dev team and barely understand the new way of b2evolution, but the question seems fair enough to ask.
10 tigerdirectsucks Aug 28, 2006 17:16
EdB wrote:
QUESTION FOR THOSE WHO HAVE THIS ISSUE: Is it possible that you are seeing posts in the order you've approved them out of moderation? I'm not on the dev team and barely understand the new way of b2evolution, but the question seems fair enough to ask.
I was having this problem with 0.8 or whatever version is packaged with cpanel. I recently upgraded to the latest version in hopes that it would sove the problem, but it appears to be the same. Prior to just recently, I was not approving comments. I was simply letting them get posted, so there was no ordering based on when I first saw them. Hope that helps.
Got Link where we can see this issue? Or maybe you can give us your version and skin name and a crisp definition of exactly what you've done with your installation and skin (without pasting entire files - please), and exactly what the problem is including where the symptoms do and don't show up. Much easier for you to say "check out this link and see where blah blah blah happens" eh? As a general rule, the people here who will probably answer already know most of what's going on. Seeing your blog in action (or in failure) is *incredibly* helpful.