| Author |
Message |
BadDog
Joined: 21 Nov 2005 Posts: 62
|
|
latest_comments v0.6 with template |
|
See version 1.1 for a newer version
| Description: |
|
 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 |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
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. 
|
|
| Mon Nov 28, 2005 10:28 pm |
|
 |
BadDog
Joined: 21 Nov 2005 Posts: 62
|
|
|
|
OK, made change and replaced the zip.
|
|
| Mon Nov 28, 2005 11:03 pm |
|
 |
Mr R

Joined: 27 Sep 2005 Posts: 82 Location: Spain |
|
|
|
how can I show nicknames of commenters, it shows names of the commenter registered
|
|
| Sat Dec 03, 2005 3:51 pm |
|
 |
BadDog
Joined: 21 Nov 2005 Posts: 62
|
|
|
|
 |  | 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 |
|
 |
Mr R

Joined: 27 Sep 2005 Posts: 82 Location: Spain |
|
|
|
And What I have to chage in the plugin???? I don't know php
|
|
| Sun Dec 04, 2005 9:08 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
Open show.commentform.php and change this:
 |  | $output = str_replace('{username}', $member['username'], $output); |
to this:
 |  | $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 |
|
 |
Mr R

Joined: 27 Sep 2005 Posts: 82 Location: Spain |
|
|
|
I can't find this line and show.commentform.php
|
|
| Sun Dec 04, 2005 1:58 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
You are using an outdated version.
In 2.3.3 it's show.comments.php (you could have found this out by yourself ).
|
|
| Sun Dec 04, 2005 2:08 pm |
|
 |
PJR
Joined: 17 Oct 2005 Posts: 165 Location: Czech republic |
|
|
|
And what about showing of the date of the comment? 
|
|
| Fri Dec 30, 2005 9:37 pm |
|
 |
PepeT
Joined: 11 Nov 2005 Posts: 113 Location: Finland |
|
|
|
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 |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2857 Location: Germany |
|
|
|
I found it on my computer. Check the first post.
|
|
| Thu May 11, 2006 5:52 pm |
|
 |
PepeT
Joined: 11 Nov 2005 Posts: 113 Location: Finland |
|
|
|
 |  | I found it on my computer. Check the first post. |
awesome, thanks!
|
|
| Sat May 13, 2006 12:29 pm |
|
 |
PepeT
Joined: 11 Nov 2005 Posts: 113 Location: Finland |
|
|
|
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 |
|
 |
PepeT
Joined: 11 Nov 2005 Posts: 113 Location: Finland |
|
|
|
hey ho!
|
|
| Mon May 15, 2006 8:27 pm |
|
 |
|