View Full Version : Commenter, comment date and time
mauritz
12-30-2006, 07:06 PM
Hallo,
In the past I've ever set the name, date and time of the comment to be <b> bold. I've just typed some <b> tags in a php file, but I can't find the file anymore.
So, where is the file with the value (?) for the name of the commenter, the date and the time.
Maurits.
///EDIT
I've found the name and date/time (functions.php), but the whole comment, and the name of the commenter and the date and time are still bold. Where can I change that?
DikkieBurger
12-30-2006, 08:05 PM
I think in index.php.
mauritz
12-30-2006, 08:15 PM
Hmm no, it's nog in index.php
Maybe I've to make my question more clear:
Where can I find the 'porperties' (?) for $comment_message
DikkieBurger
12-30-2006, 08:42 PM
in include/functions.php:
function print_comments($imageid) {
global $pixelpost_db_prefix;
global $lang_no_comments_yet;
global $lang_visit_homepage;
global $cfgrow;
$comment_count = 0;
$image_comments = "<ul>"; // comments stored in this string
$cquery = mysql_query("select datetime, message, name, url, email from ".$pixelpost_db_prefix."comments where parent_id='".$imageid."' and publish='yes' order by id asc");
while(list($comment_datetime, $comment_message, $comment_name, $comment_url, $comment_email) = mysql_fetch_row($cquery)) {
$comment_message = pullout($comment_message);
$comment_name = pullout($comment_name);
$comment_email = pullout($comment_email);
if($comment_url != "") {
if( preg_match( '/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}'.'((:[0-9]{1,5})?\/.*)?$/i' ,$comment_url))
{
$comment_name = "<a href=\"$comment_url\" title=\"$lang_visit_homepage\" target=\"new\" rel=\"nofollow\">$comment_name</a>";
} else {
unset($comment_url);
$comment_name = "$comment_name";
}
}
$comment_datetime = strtotime($comment_datetime);
$comment_datetime = date($cfgrow['dateformat'],$comment_datetime);
$image_comments .= "<li>".nl2br($comment_message)."<br />$comment_name @ $comment_datetime</li>";
$comment_count++;
}
if($comment_count == 0) { $image_comments .= "<li>$lang_no_comments_yet</li>"; }
$image_comments .= "</ul>";
return $image_comments;
}
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.