Home > By category > Scripts >Modules > Hikari Titled Comments



Hikari Titled Comments

  • Downloads: 
  • Views: 
  • Rating:

One of the best features Drupal has and I miss in WordPress is the possibility to set title to comments.

With a title, we can identify the comment subject, it can be resumed to a phrase. Comments become more similar to articles and aggregate more value.

I like to see comments as mini-articles. The post being the main article and comments being mini-articles that extend the main one. Now with title, WordPress comments are a bit closer to that approach.

Hikari Titled Comments enables each comment to have a title, so that commentators can give a subject meaning to their comments.
Features

* Comments titles are stored as comment metadata.
* It's easy for themes to add support the plugin, being the support optional and when the plugin is not available the support just remains hidden.
* A simple function prints the comment title if there is one, or prints nothing if current comment doesn't have a title.
* Comments titles can be edited from admin comment edit page.

I dedicate Hikari Titled Comments to Chiih-chan, my kawaii great frient ^-^

Installation :

Hikari Titled Comments requires theme modifications to be used, unfortunately there is no way to insert titles to comments without editing the theme. But first let's install it.

You can use the built in installer and upgrader, or you can install the plugin manually.

1. Download the zip file, upload it to your server and extract all its content to your /wp-content/plugins folder. Make sure the plugin has its own folder (for exemple /wp-content/plugins/hikari-titled-comments/).
2. Activate the plugin through the 'Plugins' menu in WordPress admin page.

There's no options page at the moment. You can go to Edit Comment Admin Page and try to edit any comment, and the title box will be there so you can add title to existing ones. But now it's time to edit your theme to have them shown and let your visitors set titles to their new comments.
Preparing your theme

There are 2 steps you do to add titled comments support to your theme. First you include the title to your comment building code, second you include an input text to your comment form so that users can submit the title.

First thing you must do is find your comment building code, your search starts in your theme's file comments.php. If you don't have experience editing themes, you may need help. The person who developed your theme is the obvious first suggestion.

Since WordPress 2.7, themes use the function wp_list_comments() to print comments, with support to threads, pagination, etc. This function has a parameter called callback, that points to a theme function that has the comment code.

For exemple, in wp_list_comments('style=ol&type=comment&callback=prefix_comment'), the comment function is prefix_comment. Now you must find this function in your theme, I like to have it in comments.php itself, but many tutorials say to move the function to functions.php, just look around.

If your wp_list_comments doesn't have a callback parameter, you reached a dead end, your theme uses WordPress's default code and it can't be edited. You'll have to design a comment layout for your theme to be able to give a title to your comments. It's not hard or complex, but if you are reading this and don't know what to do you'll need to read a lot and learn a bit before proceeding.

Ok, you've found your comment building code. There is no specific place to add a title to your comments, use your imagination. I like to see comments as mini-articles, or extensions of the post. Generally titles come on the top of the article, followed by the author and the article's date, and then the content.

Once you choose where the title will go in each comment, I tell you that not all comments have titles. Your old comments don't have, and commentators are not required to use a title (at least for now). So you must have in mind that a title may or may not be present, both layouts must look good and be XHTML valid.

The function you use to add the title is function hkTC_comment_title( $comment_id=null, $before=null, $after=null). If $comment_id is empty, it will try to find global $comment. You can also pass any text to be used before and after the title, probably some HTML tag to surround the title text, these string are not escaped so pass them in the final format they'll be sent to browsers.

If current comment has a title, the function will print echo $before.$comment_title.$after;. If it hasn't, the function will just return without doing anything. Here's the final code I use in my theme:

<?php if(function_exists('hkTC_comment_title'))
hkTC_comment_title($comment->comment_ID,'<h2 class="comment-title">','</h2>');
?>

Nice! Your theme is ready to print titles to your comments, now you must let your visitors submit them! Your next stop is in your theme's comment form, also inside comments.php. Again, your creativity will tell you where to include the text field, I've chosen just above the comment textarea, with a header to say it's meant for the title.

There's nothing much to say here, it's a simple input text that's added if the hkTC_comment_title function exists. The function isn't used here, but we test it to assure the input text is only included if the plugin is activated to receive its parameter. Just make sure you don't change its 'name' and 'id' attributes.

<?php if(function_exists('hkTC_comment_title')) { ?>
<h3>Comment Title</h3>
<input type="text" name="hikari-titled-comments" id="hikari-titled-comments" tabindex="4" value="" />
<?php } ?>

And that's it! Now you are ready to aggregate value to your site's comments!
Upgrading and uninstalling

If you have to upgrade manually, simply delete hikari-titled-comments folder and follow installation steps again.

If you wanna deactivate the plugin, just use the option in plugins page. Your theme will keep the new code for titles, but it will remain asleep while the plugin is not available.

In future version I'm gonna include an option to delete titles metadata from database.

Free download from Shareware Connection - One of the best features Drupal has and I miss in WordPress is the possibility to set title to comments.

Publisher: shidouhikari | License: Freeware | Price: 0.00
Version: 0.02.02 | Size: 20 KB | Platform: PHP, Scripts
Released Date: 11-03-2013 | Rating: 0 | Title: Hikari Titled Comments

Author Url: http://downloads.wordpress.org/plugin/hikari-title-comments.0.02.02.zip
Program Info Url: http://downloads.wordpress.org/plugin/hikari-title-comments.0.02.02.zip
Download Url: http://downloads.wordpress.org/plugin/hikari-title-comments.0.02.02.zip

More downloads from Hikari Titled Comments publisher shidouhikari:

Hikari Unicornified Gravatars - Hikari Unicornified Gravatars converts avatars from people that don't have a Gravatar, into customized unicorns.

Hikari Titled Comments keywords:
Hikari Titled Comments related downloads:

Comments Script - This is a complete comments script. To learn more about the code, how it works, and exactly what to do to get this working on your own site - please read the corresponding tutorial, titled 'Creating a Comments Script.

Genesis Simple Comments - Genesis Simple Comments adds a new menu item to the Genesis menu allowing for easy changes to the Genesis Comments including: Comment Title No Comments Text Comments Closed Text Pings Title No Pings Text Avatar Size Author Says Text Comment

Spiral Galaxy Live Wallpaper - Spiral Galaxy LiveWallpaper - beautiful rotating spiral galaxy on your screen.I'm asking you to write comments. Your comments helps me in correcting inaccuracies and errors in my applications.Works on smartphones and tablets.How to set a live...

Recent Love - A List of Recent Comments - Displays a list (typically, in your sidebar) of your visitors' recent comments. By default, shows the latest comment from each of the last five commented-on posts.

Comments Link Optimization - Comments Link Optimization waht prevent all search engine crawl your comments link.

Shareware Connection periodically updates pricing and software information of 'Hikari Titled Comments' from company source 'shidouhikari' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'Hikari Titled Comments' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Hikari Titled Comments.

New Reviews

CyberGhost VPN - There are so many ways available to browse the web nowadays. You can use a plethora of devices and pick from various service providers to get online. However, tech savvy users resort to additional measures to access the internet without being ...

Argente - Registry Cleaner - Keeping the Windows registry clean and optimized is essential for getting optimum performance from the PC. While most users do not prefer tinkering with registry settings, it may get laden with erroneous and invalid entries over prolonged usage. ...

Sculptris - For 3D modeling and design, there are so many apps to pick from noondays. From feature laden and expensive apps of Autodesk to mid level and lesser known contenders, users are spoilt for choice. However, it is also possible to use a decently ...

Device Doctor - Keeping the drivers of hardware components used in your PC is really important. Obsolete device drivers lead to a myriad of problems affecting PC performance. While advanced users may check for outdated drivers personally, this may not be an ...

Plants vs. Zombies 2 - These days there are lot of tower defense games on offer. Coming from the stable of Electronics Arts, which is one of the leading companies in the gaming arena, Plant vs. Zombies is a decent game particularly if you are interested in garden ...

Menu Uninstaller Ultra - For every Windows user it becomes necessary to remove some programs after prolonged usage. It can be necessary to free up disk space or the app may not simply suit the needs any more. Whatever is the reason, you need to uninstall third party apps ...

SeaTools for Windows - Among all the hardware components used in a desktop or laptop, the hard disk is a prime one. In the hard disk is not in good shape, even a PC with powerful CPU and lots of RAM will malfunction or run sluggishly. Hard disk failure can lead to data ...

EasyBrake - PC users often need to convert videos from various formats to other formats that suit their needs. As expected, there are hundreds of free and paid apps to accomplish such tasks nowadays. It is not mandatory that you will have to pay a high ...

CamMask - There are several types of webcam software available in market and so you need not stick with the default webcam software of your laptop any longer. However, not all webcam apps can offer you a plethora of fun and dazzling effects as CamMask. ...

TinyWall - Nowadays, it is quite hard to locate a computer user who does not need to access the web. While you browse the web for any need, it is imperative that you use security applications to safeguard your computer from various online threats. The ...




New Downloads

Honeyview

Honeyview is very fast image
and archived image viewing
software. It allows viewing of
images within an archive
without ...

Website Monitoring -
Performance Monitoring

Website monitoring,
performance, and uptime
management tool. Run this
script as often as you'd like
your website monitored.

Rohde & Schwarz CMD55
Digital Radiocom Tester

This is a MATLABâ„¢ instrument
driver for use with v2.0 of
the Instrument Control
Toolboxd-OC?D? and higher

happy face

nothing interesting.. just
displays a happy face using .m
file

Simple Data Cleaner

This is a simple filter that
converts noisy data of
arbitrary amplitude to 1s and
0s.

rbgooey

Rbgooey is an alternative GUI
library for Rubygame users.

Logiciels temps rdoTeel

Real-time software concerning
the domains of the signal
processing, feedback and
regulation

spike_times.m

This function detects and
locates the time points

Bayesian Autoregressive
Modeling

The priors may be: Litterman
random walk plus drift prior

Clipping Indicator

Clipping is the main program.
There are three inputs: y is
the time record,
threshhold_value is the
clipping threshhold, ...

Binary to Decimal

Binary to Decimal converts
binary data of any format in a
string to floating point

ldapvi

ldapvi is an interactive LDAP
client for Unix terminals.