Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
showing user name in recent_comments() function
08-03-2011, 02:08 PM (This post was last modified: 08-03-2011 02:45 PM by Punktured.)
Post: #1
showing user name in recent_comments() function
If you would like to show the username with the recent comments,
or the username and date,
replace this line with one of the two others provided:
Code:
$kategoriler=$kategoriler.'<li><a href="'.$root_url.$linki.'">'.substr(urldecode($row['comment']),0,60).'...</a></li>';

To show Username:

Code:
$kategoriler=$kategoriler.'<li>'.$row['adi'].'<br><a href="'.$root_url.$linki.'">'.substr(urldecode($row['comment']),0,60).'...</a></li>';

To show Username and date:
Code:
$kategoriler=$kategoriler.'<li>'.$row['adi'].'<br>'.$row['tarih'].'<br><a href="'.$root_url.$linki.'">'.substr(urldecode($row['comment']),0,60).'...</a></li>';

BE SURE TO CLEAR YOUR CACHE ONCE MAKING CHANGES


Attached File(s) Thumbnail(s)
       

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: