1 honorgate Apr 08, 2009 15:04
3 honorgate Apr 27, 2009 13:42
Thank you so much ! :)
I'll have a look this week.
4 honorgate May 29, 2009 11:59
Well ... I try ... but i don't know how to do it.
I could made it only with mistaken, by editing _global.php :-/
Any help is welcome, i will be very interest about that ! :)
5 edb May 29, 2009 19:41
Your skin might have a few files that would need the following change. index.main.php, posts.main.php, single.main.php, page.main.php come to mind. Also _item_content.inc.php, which might be in the /skins/ folder. The first 4 files would be in your /skins/yourskin/ folder.
Anyway once you find where the "feedback maker" bit is, change it to be like this in all cases and see what you get on your blog.
$Item->feedback_link( array(
'type' => 'comments',
'link_before' => '',
'link_after' => '',
'link_text_zero' => 'NO COMMENTS',
'link_text_one' => '<img src="full_path_to_image" width="15" height="15" alt="no comments" />',
'link_text_more' => 'MORE THAN ONE COMMENT',
'link_title' => '#',
'use_popup' => false,
) );
Remember that 'type' can be something other than 'comments'. Try it with both text and an image so that the text can show you if in fact you are editing the right place(s).
6 honorgate May 29, 2009 21:49
Great !
It was in posts.main.php, editing 3 times :
// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
'type' => 'feedbacks',
'link_before' => '<span class="cadre">',
'link_after' => '</span> ',
'link_text_zero' => '<img width="15" height="16" border="0" align="top" alt="" src="http://blog.honorgate.net/rsc/icons/nocomments.gif" /> Réagir',
'link_text_one' => '<img width="15" height="16" border="0" align="top" alt="" src="http://blog.honorgate.net/rsc/icons/comments.gif" /> 1 réaction',
'link_text_more' => '<img width="15" height="16" border="0" align="top" alt="" src="http://blog.honorgate.net/rsc/icons/comments.gif" /> %d retours',
'link_title' => '#',
'use_popup' => false,
) );
Thank you very much for your help ! :)
Honorgate wrote:
3.* is still beta releases so I can't really help there, but one thing that stands out is that you really have no reason to modify _global.php unless your translation is in error. In other words, adding functionality by editing that file is a mistake.
What you probably should do is first undo the change you made, then find where your "feedback" link is coming from in your skin. Typically it'll be $Item->feedback_link() with a bunch of params. In the custom skin in 246 it looks like this:
The "type" param can be comments or trackbacks or feedbacks, with feedbacks being both comments and trackbacks mixed. Anyway that function is what you would want to investigate so that you could feed it the correct params to use an image instead of text. The section you probably want to be most interested in is
Hope it helps!