Forum Index
RegisterSearchFAQMemberlistUsergroupsLog in
latest_comments v0.6 with template

 
Reply to topic    Forum Index » Additional Downloads View previous topic
View next topic
latest_comments v0.6 with template
Author Message
BadDog



Joined: 21 Nov 2005
Posts: 62

Post latest_comments v0.6 with template Reply with quote
See version 1.1 for a newer version



latest_comments0_6.zip
 Description:
Latest comments v0.6

Download
 Filename:  latest_comments0_6.zip
 Filesize:  1.55 KB
 Downloaded:  340 Time(s)



Last edited by BadDog on Wed Jan 11, 2006 6:04 am; edited 2 times in total
Mon Nov 28, 2005 9:14 pm View user's profile Send private message
Guest








Please login to hide the ads.

FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
One problem:



Change $template_latest to $template_active in your code.



Otherwise the template can't be saved correctly and the comments won't show anymore.



The rest works well. Nice idea to access the template through the admin panel. Very Happy
Mon Nov 28, 2005 10:28 pm View user's profile Send private message
BadDog



Joined: 21 Nov 2005
Posts: 62

Post Reply with quote
OK, made change and replaced the zip.
Mon Nov 28, 2005 11:03 pm View user's profile Send private message
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Reply with quote
how can I show nicknames of commenters, it shows names of the commenter registered
Sat Dec 03, 2005 3:51 pm View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
BadDog



Joined: 21 Nov 2005
Posts: 62

Post Reply with quote
Mr R wrote:
how can I show nicknames of commenters, it shows names of the commenter registered




I reckon you just have to read the user's cookie and make sure it is inserted in the name input box of the comment form, much like CuteNews does. Then when the comment is submitted the nickname gets saved with the comment in the database....at least in theory this is how it should work.
Sat Dec 03, 2005 11:16 pm View user's profile Send private message
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Reply with quote
And What I have to chage in the plugin???? I don't know php
Sun Dec 04, 2005 9:08 am View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
Open show.commentform.php and change this:

Code:
$output = str_replace('{username}', $member['username'], $output);




to this:

Code:
$output = str_replace('{username}', ($member['name'] ? $member['name'] : $member['username']), $output);




I didn't test it but it will only work for new comments. The old ones will still show the username.
Sun Dec 04, 2005 12:26 pm View user's profile Send private message
Mr R



Joined: 27 Sep 2005
Posts: 82
Location: Spain

Post Reply with quote
I can't find this line and show.commentform.php
Sun Dec 04, 2005 1:58 pm View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
You are using an outdated version.



In 2.3.3 it's show.comments.php (you could have found this out by yourself Wink ).
Sun Dec 04, 2005 2:08 pm View user's profile Send private message
PJR



Joined: 17 Oct 2005
Posts: 165
Location: Czech republic

Post Reply with quote
And what about showing of the date of the comment? Wink
Fri Dec 30, 2005 9:37 pm View user's profile Send private message
PepeT



Joined: 11 Nov 2005
Posts: 113
Location: Finland

Post Reply with quote
Damn... i'm using version 2.4.1 so 1.1 won't work for me, right?



So where is this zip? I really need this plugin. Thanks
Thu May 11, 2006 5:23 pm View user's profile Send private message
FI-DD
Admin


Joined: 22 Sep 2005
Posts: 2857
Location: Germany

Post Reply with quote
I found it on my computer. Smile Check the first post.
Thu May 11, 2006 5:52 pm View user's profile Send private message
PepeT



Joined: 11 Nov 2005
Posts: 113
Location: Finland

Post Reply with quote
FI-DD wrote:
I found it on my computer. Smile Check the first post.




awesome, thanks!
Sat May 13, 2006 12:29 pm View user's profile Send private message
PepeT



Joined: 11 Nov 2005
Posts: 113
Location: Finland

Post Reply with quote
Hmm... how can i show comments from just one category? I have interviews, reviews and news, but i want that "latests comments" are just from reviews(-category).
Sat May 13, 2006 12:51 pm View user's profile Send private message
PepeT



Joined: 11 Nov 2005
Posts: 113
Location: Finland

Post Reply with quote
hey ho!
Mon May 15, 2006 8:27 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    Forum Index » Additional Downloads All times are GMT + 1 Hour
Page 1 of 1

 
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.