Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
Latest_Comments 1.1 for 2.5.x
Goto page Previous  1, 2, 3, 4  Next
 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
Latest_Comments 1.1 for 2.5.x
Author Message
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Reply with quote
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 View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
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 View user's profile Send private message
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Reply with quote
Awesome, I do actually have them in all different categories, how can I achieve this then?



Thanks for the glimpse of hope Smile



-HIM
Wed Oct 04, 2006 11:59 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
The following will only work if you have one category for each post.



Find this:

Code:
foreach ($comments as $comment){




add above:

Code:
$cat_page_arr = array("1" => "news", "2" => "articles", "3" => "section3");


The numbers being the category IDs.



And change this:

Code:
$output = str_replace('{link}', cute_get_link($get_news, 'post', 'your_page'), $output);




to this:

Code:
$output = str_replace('{link}', cute_get_link($get_news, 'post', $cat_page_arr[$get_news['category']]), $output);

Thu Oct 05, 2006 12:12 am View user's profile Send private message
Heya Im Me



Joined: 01 Feb 2006
Posts: 189

Post Reply with quote
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!



Very Happy Very Happy Very Happy Very Happy Very Happy Very Happy



-HIM
Thu Oct 05, 2006 2:43 am View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 268

Post Reply with quote
aaaah!!!
Why cant i use {date} in latest comments Sad
it just shows {date} and not 12:21
Is it possible ?
Wed Oct 10, 2007 11:20 am View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
Find this:
Code:
$output = str_replace('{id}', $xid, $output);


and add below:
Code:
$output = str_replace('{date}', date("H:i", $comment['date']), $output);

Wed Oct 10, 2007 3:44 pm View user's profile Send private message
Partyism



Joined: 25 Sep 2007
Posts: 268

Post Reply with quote
YOU ROCK!!!
Wed Oct 10, 2007 11:12 pm View user's profile Send private message
KArkhon



Joined: 24 Jan 2007
Posts: 23
Location: Montenegro

Post Reply with quote
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 View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2736
Location: Germany

Post Reply with quote
You are right.

The instructions say to find this code:
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 View user's profile Send private message
KArkhon



Joined: 24 Jan 2007
Posts: 23
Location: Montenegro

Post Reply with quote
Tnx FI-DD, it works now. Smile
Fri Dec 21, 2007 6:41 pm View user's profile Send private message
master7



Joined: 11 Apr 2006
Posts: 27

Post Reply with quote
Is this possible to modify this plugin to sth like this:
{comment} by {autor}
?

_________________
www.wieliczka24.info

www.master7.rowerpower.org
Tue Mar 25, 2008 11:55 am View user's profile Send private message
master7



Joined: 11 Apr 2006
Posts: 27

Post Reply with quote
I'm installing this plugin ang including it to site.

Some time after that I notice that RSS don't working properly
The solution I found here:
http://community.xajaxproject.org/viewtopic.php?pid=9735

If anyone notice the same problem - please remove the whitespace at the end of included file at the start of this topic.
Tha same is for the FI-DD file.

_________________
www.wieliczka24.info

www.master7.rowerpower.org
Mon Mar 31, 2008 11:57 am View user's profile Send private message
Saszoo



Joined: 07 Jun 2006
Posts: 409
Location: Norway

Post Reply with quote
Yeah, we've noticed it and discussed it here: [ http://english.cutenews.ru/forum/viewtopic.php?t=822&highlight=latest+comments+rss ],
The whitespace was causing it, strange thing Razz

_________________
My cute.ru site
Mon Mar 31, 2008 3:30 pm View user's profile Send private message Visit poster's website
ivanh



Joined: 16 Aug 2007
Posts: 72

Post Reply with quote
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 View user's profile Send private message Visit poster's website
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Music Lyrics.