View Single Post
  #2  
Old 03-10-2008, 02:11 PM
Tiestoo's Avatar
Tiestoo Offline
pp regular
 
Join Date: Nov 2007
Posts: 33
This is one amazing addon, thx a lot, I was looking for this!
I have one css-related question I hope I can get an answer to, since I am a css/php-n00b:

I wanted to change the color of the comment. So not the color of the date and/or name, but just the comment itself.

In the PHP the related code looks like this (I changed the order a little bit):
Code:
	$create_date = strftime ("%d-%m-%Y",$c['datecreate']);
    $flickr_comments .= "<ul><a href='".$author['photosurl']."' target='_blank'>".$author['username']."</a> @ ".$create_date."<br>";
    $flickr_comments .= "".$content."";

  $flickr_comments .= "<div style='padding:0px;'></div></ul><br />";
The part to modify was $content I guessed. So I replaced
Code:
$flickr_comments .= "".$content."";
by
Code:
$flickr_comments .= "<span class=\"comm_msg\">".$content."</span>";
It worked!

Now the hard part. I want to display an image in front of the comment. In other words, I want the lay-out to be similar to the lay-out of the 'normal' PP reactions. This part of code is found in my gravatars_comments.php, since I use gravatars.(addon)

Code:
		$image_comments .= "
<tr class=\"comm" . ($comment_email != $cfgrow['email'] ? "" : " admin_comment") . "\">
	<td class=\"comm_grav\">$gravatar</td>
	<td class=\"comm_cnt\">
		<span class=\"comm_head\">$comment_name @ $comment_datetime</span><br/>
		<span class=\"comm_msg\">$comment_message</span>
	</td>
</tr>";
But when I trie to wrap these <td>'s and <tr>'s around the code in the flickr_comments.php, PP goes crazy! This code definitely does't work:

Code:
   <tr class=\"comm\">
	<td class=\"comm_grav\">IMAGE_URL_HERE</td>
	<td class=\"comm_cnt\">
	$create_date = strftime ("%d-%m-%Y",$c['datecreate']);
    $flickr_comments .= "<ul><a href='".$author['photosurl']."' target='_blank'>".$author['username']."</a> @ ".$create_date."<br>";
    $flickr_comments .= "<span class=\"comm_msg\">".$content."</span>";
    </td>
</tr>;
But My Gosh! Why not? It's almost the same as in my gravatars_comments.php...
__________________
blauwgestreept.nl
Reply With Quote