| Author |
Message |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Will this only display the latest comments that page (say [news]) and no other section? If so, is it possible to display the most recent comments for the entire site? So just a side bar with the links to the latest comments whether theyre in news, articles, section c, section d?
Thanks for the never-ending support, FI-DD; I really appreciate it.
-HIM
|
|
| Wed Oct 04, 2006 11:30 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
As it is now it will only link to the page given in the cute_get_link function.
Do you have different categories for each of the pages? Then it's possible to adjust the links according to the category.
|
|
| Wed Oct 04, 2006 11:40 pm |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Awesome, I do actually have them in all different categories, how can I achieve this then?
Thanks for the glimpse of hope
-HIM
|
|
| Wed Oct 04, 2006 11:59 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
The following will only work if you have one category for each post.
Find this:
 |  | foreach ($comments as $comment){ |
add above:
 |  | $cat_page_arr = array("1" => "news", "2" => "articles", "3" => "section3"); |
The numbers being the category IDs.
And change this:
 |  | $output = str_replace('{link}', cute_get_link($get_news, 'post', 'your_page'), $output); |
to this:
 |  | $output = str_replace('{link}', cute_get_link($get_news, 'post', $cat_page_arr[$get_news['category']]), $output); |
|
|
| Thu Oct 05, 2006 12:12 am |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
FI-DD...you're a genius. I can't even count the amount of times you've saved me from a meltdown. Thank you so much!
-HIM
|
|
| Thu Oct 05, 2006 2:43 am |
|
 |
Partyism
Joined: 25 Sep 2007 Posts: 268
|
|
|
|
aaaah!!!
Why cant i use {date} in latest comments
it just shows {date} and not 12:21
Is it possible ?
|
|
| Wed Oct 10, 2007 11:20 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
Find this:
 |  | $output = str_replace('{id}', $xid, $output); |
and add below:
 |  | $output = str_replace('{date}', date("H:i", $comment['date']), $output); |
|
|
| Wed Oct 10, 2007 3:44 pm |
|
 |
Partyism
Joined: 25 Sep 2007 Posts: 268
|
|
|
|
YOU ROCK!!!
|
|
| Wed Oct 10, 2007 11:12 pm |
|
 |
KArkhon
Joined: 24 Jan 2007 Posts: 23 Location: Montenegro |
|
|
|
I need help with this script. Everything is OK, but it doesn-t show the latest comment, but the next latest (for example, when I add a comment, nothing happens, but when I add anotherone the previous comment shows up)
Tnx in advance for any help.
|
|
| Thu Dec 20, 2007 11:47 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2736 Location: Germany |
|
|
|
You are right.
The instructions say to find this code:
 |  | if ($config_flood_time){ |
The problem is that this code exists twice. You have to find the second occurence. Then it will work correctly.
|
|
| Fri Dec 21, 2007 11:23 am |
|
 |
KArkhon
Joined: 24 Jan 2007 Posts: 23 Location: Montenegro |
|
|
| Fri Dec 21, 2007 6:41 pm |
|
 |
master7

Joined: 11 Apr 2006 Posts: 27
|
|
|
| Tue Mar 25, 2008 11:55 am |
|
 |
master7

Joined: 11 Apr 2006 Posts: 27
|
|
|
| Mon Mar 31, 2008 11:57 am |
|
 |
Saszoo

Joined: 07 Jun 2006 Posts: 409 Location: Norway |
|
|
| Mon Mar 31, 2008 3:30 pm |
|
 |
ivanh
Joined: 16 Aug 2007 Posts: 72
|
|
|
|
hey
after installing this plugin
i get the following errors when i try to logout using the loginbox
Warning: Cannot modify header information - headers already sent by (output started at /home/cha15775/public_html/nganhthanh/me/plugins/latest_comments.php:137) in /home/cha15775/public_html/nganhthanh/me/loginbox.php on line 61
Warning: Cannot modify header information - headers already sent by (output started at /home/cha15775/public_html/nganhthanh/me/plugins/latest_comments.php:137) in /home/cha15775/public_html/nganhthanh/me/loginbox.php on line 67
|
|
| Tue Apr 01, 2008 4:42 am |
|
 |
|