Freelance Projects, Design and Programming Tutorials
Commax – Ajax Comment System (Miscellaneous)
Built with PHP5 and AJAX . Packed with all the features you need! Commax is your complete comment system.
All Commax features and explanation:
Easy to use. Include 1 php, 1 JS and 1 CSS file. 4 lines of code, and you are on! It’s as easy as that! Of course there are much more optional things you can do. Keep reading.
2 different administration panels. One lite and one fancy. That’s right. Why? Well, one fancy includes a simple login system, so you can use it as a stand alone application. The lite version, doesn’t have any login system. It’s meant to be included into your own CMS or apllication
Complete CSS style. 3 different skins included! Easy to modify. Although I’ve included 3 different skins, you can make your own or modify any of these. Each skin file is only 10Kb.
Captcha system with admin configuration. Turn on/off. Configure image colors and size. Captcha system is admin configurable. You can turn it on or off. You can also change the three different colors, and also set background color or to transparent because it is a PNG image. You can also set the exact captcha image with in pixels.
Only javascript enabled users can post. Although we have the captcha system, Commax is SPAM proof from the start. All forms will be hidden in case of javascript disabled or not present. So most of the SPAM bots won’t have any forms to submit
Voting system with admin configuration. Turn on/off. Cookie based or user log in mode. Yes, turn it on or off. You can also set it’s mode. Cookie will use cookies (remember cookies are very very easy to cheat). Or set it to work only to registered users. Regarding registered users, read more in next point.
Comment system ready to use your user log in system. Only logged in can comment! Well here you can set Commax to work under your user authentication system. After you set this to on, you will need to pass some session variables to Commax so it can understand if a user is logged in and it’s username and email address. Complete instructions in the provided manual.
Front end admin tools. Can remove or moderate comments in front end. Basically, if you pass a sesison variable to Commax telling that a admin user is logged in, in front-end will pop up some easy tools to moderate comments and remove. Easy…
Front end admin tools. Can remove or moderate comments in front end. Basically, if you pass a sesison variable to Commax telling that a admin user is logged in, in front-end will pop up some easy tools to moderate comments and remove. Easy…
Ajax pagination, with fallback (good for search engines). Pagination is processed by ajax. So smooth transitions and less workload. But if javascript is disabled or not present (spider bots), pagination will still work. So search engines can still index your comments. Also the GET parameters for the pagination are injected to your current URL , no matter what parameters it does have already.
Complete server side validation. (New PHP5 filter_input function) rocksolid security. Inputs validation are filtered using the rocksolid PHP5 filter_input function. It’s done server side, because forms are processed by ajax, so no need to have a local validation. We must have server side validation so why bother having local and server side? Ajax will get it’s response, either valid or error reporting.
HTML Purifier. Allow any html tags. Admin configuration to choose your allowed tags. Not only we use new PHP5 filter_input function, but for the comment we also use HTMLPurifier. There’s not such thing as 100% XSS secure, but at least here we have the biggest percentage possible of XSS security. Also you can allow any HTML tags you want. Just separate the tags by comma in your admin panel.
Bad words list with admin configuration. Turn on/off and choose your bad words. This is a simple bad word list. It will take that part of moderation from your shoulders. Just insert the words you want separated by comma in your admin panel, and you are on. Leave the field blank and bad words will be disabled.
Multilanguage support. Create your language file, and set your language. This is something big. How many scripts you see around that support multilanguage? I made it simple. There is a file called en.php copy it, modify it, change the name to your language (es.php) and set the language session variable to your language. That’s it! What about php gettext? You want it? just swap my own funciton to use gettext
It comes with English and Portuguese languages. Yeap… included English and Portuguese language files. I don’t speak any other language, so felt google translation would not add anything to the application. You can do your own. It’s only 65 strings to translate.
Maximun number of characters for comment and reply. Yeap, limit them. It’s safer. You can set any values here. Different values for a comment or a reply. On front end, there is a javascript characters left counter. Just another nice feature.
Change your comments order. You can set in your admin panel, what order you want for your comments. Most recent at the top, or most recent at the bottom.
Convert any inline urls to a link You can set this option to true or false. It will convert any link like www.google.com to a propper html link. It will also set the nofollow tag and target to blank. Nice for those pagerank rats
Global comments moderation or a per post moderation In your admin you can set ALL comments to be moderated. You can leave that option off, and with a session variable, set any specific post to be moderated.
Configure your pagination system Yeap, even pagination has some configurations. You can set your middle range (how many links to each side of current page) plus you can set how many comments per page. If you set “ALL” to your comments per page, pagination will be disabled, and all comments will be shown in one single page.
Download Commax – Ajax Comment System (Miscellaneous)