Comment Face

Categories

Component ID

1383896

Component name

Comment Face

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

This module allow user add face into comment, and show comment face.


Usage:

1.Replace comment content in comment.tpl.php

//print render($content);
print comment_face_replace($comment->comment_body['und'][0]['safe_value']);

2.Replace comment subject in comment.tpl.php

//print comment_face_replace($title); 
print comment_face_replace($title); 

3.Replace content of comment blocks in template.php
add following code in yourthemename_preprocess_block(&$variables)

if ($variables['block']->module == 'comment') {
   $variables['content'] = comment_face_replace($variables['content']);
}

4.If don't want to show comment face, you should do like this.
comment_face_replace($string,'')