Recent Topics

1 Apr 08, 2009 15:04    

My b2evolution Version: Not Entered

Hi,

Because i want adding picture for comments in frontend, i've wrong display in admin.
As you can see with this two pictures :

Front end : http://img149.imageshack.us/img149/8923/08042009capt000.png

Back end : http://img149.imageshack.us/img149/8837/08042009capt001.png

For that, i've just modify in locales/fr_FR/_global.php those lines :

'Send feedback' => "<img width=\"15\" height=\"16\" border=\"0\" align=\"top\" alt=\"no comment\" src=\"../rsc/icons/nocomments.gif\" /> Réagir",
	'1 feedback' => "<img width=\"15\" height=\"16\" border=\"0\" align=\"top\" alt=\"commentaires\" src=\"../rsc/icons/comments.gif\" /> 1 réaction",
	'%d feedbacks' => "<img width=\"15\" height=\"16\" border=\"0\" align=\"top\" alt=\"commentaires\" src=\"../rsc/icons/comments.gif\" /> %d retours",

instead of

        'Send feedback' => "Réagir",
	'1 feedback' => "1 réaction",
	'%d feedbacks' => "%d retours",

Problem, now i've " class=""> in my admin panel when i want listing all items.
In 2.x version i've made some changes, it was good. But now i cannot see where to do that (in fact i've forgotten how to do it).

So my question is, how can i found folder displaying ../admin.php?ctrl=items&blog, when you are in admin panel for have a look to yours all items ?

Code for those lines is :

<a src="../rsc/icons/comments.gif" alt="commentaires" align="top" border="0" height="16" 15="" title="<img width=" href="?ctrl=items&blog=2&p=283">
9 retours" class="">
<img height="16" border="0" align="top" width="15" alt="Commentaires" src="../rsc/icons/comments.gif"/>
</a>


So i want erase argument title="" for that, it seems to be the problem.

Thank you for help ! :)

2 Apr 25, 2009 22:17

Honorgate wrote:

... For that, i've just modify in locales/fr_FR/_global.php those lines : ...

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:

$Item->feedback_link( array( 
		'type' => 'comments',
		'link_before' => '',
		'link_after' => '',
		'link_text_zero' => '#',
		'link_text_one' => '#',
		'link_text_more' => '#',
		'link_title' => '#',
		'use_popup' => false,
	) );


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

		'link_text_zero' => '#',
		'link_text_one' => '#',
		'link_text_more' => '#',

Hope it helps!

3 Apr 27, 2009 13:42

Thank you so much ! :)
I'll have a look this week.

4 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 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 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 ! :)


Form is loading...