Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Montezuma Theme »

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


  #1  
Old Dec 10, 2012, 03:38 AM
fafa
 
39 posts · Dec 2012
[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 .
  #2  
Old Dec 10, 2012, 12:49 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you would have to dig into the theme code and make some changes to impliment something like this
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Dec 10, 2012, 02:06 PM
fafa
 
39 posts · Dec 2012
please help me ... witch file should i edit .
  #4  
Old Dec 11, 2012, 04:48 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Dec 12, 2012, 05:33 AM
fafa
 
39 posts · Dec 2012
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
  #6  
Old Dec 13, 2012, 11:56 AM
fafa
 
39 posts · Dec 2012
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

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Comment admin language interfering with SEO - Can I modify theme files to fix it? mkellam Atahualpa 3 Wordpress theme 5 Sep 17, 2012 08:06 PM
How to move the comment author name and reply link below the comment sober Comments, trackbacks & pings 1 Sep 4, 2011 12:21 PM
[SOLVED] Website in comment form leads to author name as a link in the comment list --yeah--wow Comments, trackbacks & pings 2 Jun 2, 2011 08:34 PM
Changing the comment links to send to the comment form johnd28 Comments, trackbacks & pings 5 Jun 15, 2010 02:33 AM


All times are GMT -6. The time now is 08:55 PM.


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