Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-05-16 10:34:13
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
[plugin] [ORPHAN] sed_comment_pack
sed comment pack
Current version: 0.7
You can get it from the comment pack homepage.
If you are using v0.3 or below then, for your SQL server’s sake, upgrade!
Versions prior to 0.4 make unnecessary sql queries.
Results…
- High DB load.
- Potentially angry hosting provider.
- Tears of sorrow!
Versions 0.4 and above cache the query!
Summary
Brings together a set of tags to help you handle comment display on your site.
- Checking for author comments vs the TXP table of users (useful for sites with multiple contributing authors.)
- Includes a tag to pull out a suitable list of classes to apply to a comment. This can simplify your comments and comment_preview forms by moving conditional testing into the tag itself.
- v0.6 Adds two tags to track new comments. These are comments that have been added since the visitor’s last look at your site.
- v0.7 …
- …correctly compares against your mixed-case email addresses (thanks maverick).
- …adds per-section comment control settings for Txp 4.0.7 — but you’ll have to tweak the plugin code for it! (thanks bombsite)
v0.5+ not only plays nicely with TxP 4.0.4 but allows all comments to receive special css markup—so now you can style your friends’ comments as you wish.
Test pages
There are two pages for you to test the author-comment / non-author detection…
Details of how to get your comment recognised as the author are on those pages.
Feel free to leave your test comments on John or Jane’s pages only as those pages are setup to automatically delete comments 2 hours after they are submitted.
Credits
Plenty of inspiration from Andrew’s comment plugins over at Compooter
Last edited by net-carver (2008-07-18 06:05:00)
— Steve
Offline
Re: [plugin] [ORPHAN] sed_comment_pack
Nifty. Whast the reasoning behind the posting delay?
Offline
#3 2006-05-17 10:58:20
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_comment_pack
rossharvey wrote:
Nifty. Whast the reasoning behind the posting delay?
Hi Ross…
First off, so there is no confusion on the matter, the comment view delay and automatic delete features on those test pages are not part of v0.1 of the comment pack.
The features are, however, part of the yet un-released version of the comment pack.
With that out of the way…
…I knew I wanted to have auto-deleting of comments on a per-article basis, so I went ahead and wrote the code to do it as a plugin. Then I remembered reading somewhere (in this forum I think) that some comment spam bots will try submitting a comment and then see if it made it to the live page. I figured a short posting delay would cut that out … so I added that feature in too.
Last edited by net-carver (2006-05-22 04:48:09)
— Steve
Offline
#4 2006-05-18 23:03:44
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] sed_comment_pack
Hi Steve, I replaced ajw_if_comment_owner with your plugin, and with the regular comments it’s working fine. Unfortunately I’m still encountering the same problem as with ajw_if_comment_owner when I’m trying to use it with sdr_guestbook. I’m sure it has to do with the sdr_guestbook code and I shouldn’t really post this here, but the guestbook plugin doesn’t seem to be supported anymore (I already posted there some time ago).
The problems are that- author comments aren’t recognized
<txp:sed_comment_number />
always displays a zero (this may have something to do with the comments appearing in descending order?)<txp:sed_comment_time />
displays the current time and date
I managed to tweak the sdr_guestbook code to stop it outputting the comments as a list, but I don’t know enough about php to see what is causing the abovementioned problems.
As I said, this is not related to your plugin, so if there is no easy solution feel free to ignore this post.
Offline
#5 2006-05-19 00:34:10
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_comment_pack
Els,
thanks for the message, it is good to hear that it is working correctly for normal comments. :O)
I will take a look at the guestbook code. My guess is that it is not passing the whole context that the comment or comment_preview forms normally get from the TXP core, and that would stop Andrew’s and my plugins from doing their thing.
— Steve
Offline
#6 2006-05-19 07:45:04
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_comment_pack
Els,
it’s as you suspected, if you can email me via the contact form on my site , I can send you a hacked version of the guestbook that might work for you.
— Steve
Offline
#7 2006-05-19 11:55:21
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [plugin] [ORPHAN] sed_comment_pack
Great, thanks! I emailed you.
Offline
#8 2006-05-22 04:53:15
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_comment_pack
All Latest version, v0.3, is now out.
Please note, it does not contain the comment auto delete feature which I have decided not to release.
Thanks to Els for the work testing this out.
Last edited by net-carver (2006-05-22 04:53:35)
— Steve
Offline
Re: [plugin] [ORPHAN] sed_comment_pack
This is exactly what I’m looking for – thanks! I’ll install this and test it out on my site.
Edit: It works perfectly and as intended – once again, thanks :)
Last edited by Saigo (2006-06-05 08:33:53)
Offline
#10 2006-06-05 12:34:37
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_comment_pack
Hello Saigo,
good to see my plugins getting used on live sites!
I just checked it out on your site and it seems to be working fine but I notice that you have comments setup in your preferences to display as an ordered list. If you go to admin > preferences and set the “Present comments as a numbered list?” option to “no” then the duplicate numbering will be removed.
— Steve
Offline
Re: [plugin] [ORPHAN] sed_comment_pack
Strange, I followed your instructions exactly but must’ve forgotten to click ‘Save’. Thanks for the handy tip, I’ve just done that and it looks perfect!! :)
Offline
#12 2006-06-28 16:56:53
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [plugin] [ORPHAN] sed_comment_pack
If you are using the comment pack,
for your SQL server’s sake: upgrade to v0.4!
Previous versions make unnecessary sql queries.
Results…
- High DB load.
- Potentially angry hosting provider.
- Tears of sorrow!
This version caches the query!
Here is a Direct download link.
— Steve
Offline