Experimental project

This is a sandbox project, which contains experimental code for developer use only.

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,'')

Project information