Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] specify admin comment in answer of visitor comment. (http://forum.bytesforall.com/showthread.php?t=19086)

fafa Dec 10, 2012 03:38 AM

[SOLVED] specify admin comment in answer of visitor comment.
 
hi

I saw in some theme that in comments when admin answered the question of visitor if we don't use avatar . the name of him is diffident from other visitor for example:

1. there is an small icon near the admin name
2.or after his name in used the tow ( ) like : fafa (admin) say:
3. or the color of admin is diffident from other comment.

so visitor understand that which comments is send by admin...and which from visitor ...

can you help to do something like that's? if it possible that use icon that's excellent .

juggledad Dec 10, 2012 12:49 PM

you would have to dig into the theme code and make some changes to impliment something like this

fafa Dec 10, 2012 02:06 PM

please help me:) ... witch file should i edit .:confused:

juggledad Dec 11, 2012 04:48 AM

Quote:

witch file should i edit
off the top of my head, I don't know.

Not being the theme eveloper, it would take me some time to dig thru the code to answer that question. If you would like to hire me to dig thru the code, send me a PM and I'll quote you my rate.

fafa Dec 12, 2012 05:33 AM

I try to find and tell ...

I think WE shoud make task that check id of coments if Thay are same with admin id do som thing like add small icon.

may be in function or comment we should do ... I try to find way but I'm not good in css & php

Thanks

fafa Dec 13, 2012 11:56 AM

we can do it by this code to function.php

Code:

add_filter( 'comment_text', 'my_comment_text' );
function my_comment_text( $mytext ) {
        $id = get_comment(get_comment_ID())->user_id;
        global $comment;
        if($id == 1 ){
                $mytext = get_comment_text( $comment ) . '<hr />YOUR TXTE';
        }else{
                $mytext = get_comment_text( $comment );
        }
        return $mytext;
}

THANKS "juggledad"

IT'S SOLVED


All times are GMT -6. The time now is 07:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.