# Patch for the comments extension

**URL:** <https://www.ruby-forum.com/t/patch-for-the-comments-extension/118299>\
**Category:** Radiant CMS\
**Created:** [October 25, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/patch-for-the-comments-extension/118299 "2007-10-25T13:40:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hans-Christian\_Fjel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f19dbf/32.png) [@Hans-Christian\_Fjel](https://www.ruby-forum.com/u/Hans-Christian_Fjel)\
**Post date:** [October 25, 2007, 1:40pm UTC](https://www.ruby-forum.com/t/patch-for-the-comments-extension/118299/1 "2007-10-25T13:40:00Z")

</div>

Hello.

Attached you can find my patch to the comments extension.

It is important to notice that this patch has a migration that will  
override any snippets named ‘comments’, ‘comment’ or ‘comment\_form’,  
this is the 002 migration.

I don’t know if this is the best way to add the snippets, but found  
it at least better than having them in the the CommentsExtension.rb  
file.

Let me know if it works.

## CHANGES

- Changed dependency from admin\_parts to shards.
- Added the snippets to a migration, so that the users no longer have  
to do this manually.
- Changed filter\_id from integer to string to make it similar to  
radiant core.
- Removed the ‘Comments’ tab, and moved the functionality to the  
‘Pages’ tab instead using shards.
- Added support for filters in comments, all though ugly coded.
- Simplified the comment snippets.

Greetings

Hans-Christian Fjeldberg  
removed\_email\_address@domain.invalid

ï¿¼

---

<div class="post-metadata">

**Author:** ![Hans-Christian\_Fjel](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/f19dbf/32.png) [@Hans-Christian\_Fjel](https://www.ruby-forum.com/u/Hans-Christian_Fjel)\
**Post date:** [October 25, 2007, 1:45pm UTC](https://www.ruby-forum.com/t/patch-for-the-comments-extension/118299/2 "2007-10-25T13:45:17Z")

</div>

That did not work…

I have uploaded the patch here:

[http://www.limmahc.com/comments\_patch\_2007\_10\_25\_hcf.patch](http://www.limmahc.com/comments_patch_2007_10_25_hcf.patch)

Greetings

Hans-Christian Fjeldberg  
removed\_email\_address@domain.invalid
