Plugin / Hikari Enhanced Comments

Hikari

Frequently Asked Questions (FAQ)

Well, in parts. PHP code is totally independant, but based on it. But it uses compatible CSS classes, so it shoud fit to theme layouts.
Sure! You can use them together and as many times as you want!
No, my idea isn’t to force somebody to use them together. Indeed, Hikari Enhanced Comments was first idealized to be part of Hikari Titled Comments, being implemented on a future version. But when I started coding it, I saw that core “Recent Comments” couldn’t be simply extended (I did that 😛 ), and using filter wasn’t enough for me. Code was becoming too big and getting out of “titled comments” scope, and also there was ip2nation to be installed separated, so I decided to port these features to a separated plugin and make both compatible. If both are available they work together, but they work alone pretty fine too.
All my plugins require PHP5 because I use OOP, and WP 2.8 because I use settings_fields(). Hikari Titled Comments requires WP 2.9 only because it uses comments metadata. Even though Hikari Enhanced Comments supports Hikari Titled Comments, it only uses its functions, it doesn’t go over comments metadata directly, and since Hikari Enhanced Comments doesn’t use metadata code, it works with WP 2.8. Remember these plugins work together but they don’t require each other to do their own job 🙂
I like to use correct semantic markup and nice styles on the same time. Both widgets list some content sorted by date or amount, so they are ordered lists, and not unordered. But, Recent comments, even more when titled comments are present, don’t fit well with list marks, while Most Commented Posts wouldn’t be nice being listed with numbers. Well at least in my theme. These styles are added directly to the HTML document, in ‘wp_head’ action, that’s the same behavior of WordPress Core’s Recent Comments widget. If you wanna change it, just add your own style in your theme’s style.css and override them. 🙂
It’s all database related. For Recent Comments, it’s just a matter of defining comment’s autor to be excluded, and MySQL does the trick easily because each comment has its author name on it. For Commented Posts, on the other hand, each post has a field informing how many comments it has, and this field is easy to use. If I’d make specific commenters be excluded, I’d have to ignore this field, make a join between wp_posts and wp_comments based on post ID, and then exclude each comment whose author name matches those defined to not be counted. This SQL query would be much heavier and I believe it’s not worthy. We could use cache to store the query and avoid it being done on every page load, but that would require another plugin to handle cache persistence. Explaining all this (or even worse, explain somebody why his site’s page load became a bit slower upon using the widget) wouldn’t be nice. Maybe someday I implement the feature, or if somebody asks me for it.
What the plugin does with that is query it for a country related to a IP. If tables are not accessible for any reason, the query will return with error and it’ll be ignored. Without the country code, the flag URL can’t be created, generating an error. And even if the code is found, if for some reason the flag can’t be accesses, same error will happen. This error is verified, and if flag is available, its tag is generated and provided. But if flag is unavailable, it will just return a harmless blank string. In HTML document there will be no track of it, and user will just see nothing where the flag would be placed. Of course, if you are adding the flag or relying on country code or name in your theme, you must be prepared for not receiving them, due to some error or simply the plugin not being active.

Ratings

0
0 reviews

Rating breakdown

Details Information

Version

0.03.05

First Released

19 Mar, 2010

Total Downloads

6,711

Wordpress Version

2.8.0 or higher

Tested up to:

2.9.2

Require PHP Version:

-

Tags

Contributors

Languages

The plugin hasn't been transalated in any language other than English.

DIRECTORY DISCLAIMER

The information provided in this THEME/PLUGIN DIRECTORY is made available for information purposes only, and intended to serve as a resource to enable visitors to select a relevant theme or plugin. wpSocket gives no warranty of any kind, express or implied with regard to the information, including without limitation any warranty that the particular theme or plugin that you select is qualified on your situation.

The information in the individual theme or plugin displayed in the Directory is provided by the owners and contributors themselves. wpSocket gives no warranty as to the accuracy of the information and will not be liable to you for any loss or damage suffered by you as a consequence of your reliance on the information.

Links to respective sites are offered to assist in accessing additional information. The links may be outdated or broken. Connect to outside sites at your own risk. The Theme/Plugin Directory does not endorse the content or accuracy of any listing or external website.

While information is made available, no guarantee is given that the details provided are correct, complete or up-to-date.

wpSocket is not related to the theme or plugin, and also not responsible and expressly disclaims all liability for, damages of any kind, arising out of the use, reference to, or reliance on, any information or business listed throughout our site.

Keep Leading Your Followers!
Share it for them.