Navigation
Comments Tweak

NanoCMS doesn't come with any sort of comment system whatsoever. The reason for this is that some people flat-out don't need it. As a result, one had to be written. This might very well be one of the first publicly-released comment Tweaks, so if the system doesn't quite work out, that's okay... just leave a bug report via the comment box below. The code for this project is available under the BSD license.
DownloadLatest (Rel 6/Rev 106)
Release 5 (Rev 100)
Release 4 (Rev 54)
Release 3 (Rev 23)
Release 2 (Rev 19)
Release 1 (Rev 17)
Features
- Easily add comments to any page
- No database needed—follows the flat-file standard the NanoCMS project set.
- No threat of external code: all HTML is totally stripped
- Users can add markup to their post through BBCode, including both formatting and links
- NEW! An admin panel now allows moderators to delete spam and any other comments
- Support for Zorchenhimer's "News Page" Tweak*
What's New In Release 6
Release 6 is yet another security update! It has the same core as Release 5.- Javascript exploits are now fixed! It's no longer possible to call a Javascript URL from within a [url=] BBCode tag.
- Code clarity is once again improved, including more concise (file size of the ZIP is lower then Rlease 5)
Version History
Release 6 (Code revision 104) JS exploitation of the [url=] tag has been patched.Release 5 (Code revision 100) The admin panel is introduced for the first time, allowing the deletion of comments without digging into the HTML sources
Release 4 (Code revision 54) Another security update. All HTML is blocked, and formatting has been allowed through the addition of a simple BBCode engine.
Release 3 (Code revision 23) Security update. Several testers demonstrated that some PHP code could be executed, so input is now sanitized.
Release 2 (Code revision 19) Re-release with a critical bugfix for sites running the "News Page" Tweak.
Release 1 (Code revision 17) First release. Implemented on Projects, as a proof-of-concept and demonstration.
Footnote: Comments are only allowed on permalinked stories following a
&post= format. This includes Zorch and kidko's permalink modifications.
Product GUID: 6f8c2eef-85a1-48af-9eb6-0fbbbeb067d4
how to make permalink ???
Cool i'd like to use permalinking too?!
HTML Posting?!?! This shouldn't be possible
@Sad: What would you suggest? BBCode is probably the best alternative.
@bimbie & @Jones: It's pretty simple. I can send/post the code somewhere if you want, but here's how it works:
Zorch's Tweaker stores all posts in pages/news/ under the format of time().".php"... so all permalinks need is the addition of an IF statement checking to see if $_POST['page'] exists... if it does, the function tacks on the .PHP extension and include()s that file only. Because the time() was decided before the post is created, it's able to add a link to index.php?page=news&post=$timevariable in the title (wraps it inside the H2). It was actually a fairly small modification that worked pretty well.
@bimbie & @Jones: Oh, I forgot! I actually already posted the code. It's at the bottom of this post, along with comments indicating where the code snippets go.
Thank kidko
No problem.