Recent Topics

Where can I change the word "feedbacks" to "c

Started by on Apr 27, 2008 – Contents updated: Apr 27, 2008

Apr 27, 2008 20:05    

My b2evolution Version: Not Entered

Sorry about dominating the board but I'm in the final stages of an upgrade from 1.8 to 2.4. Wasn't nearly as hard as I feared but I had so many customizations that these tiny issues are all I have left.

Apr 27, 2008 20:18

It is in your skin somewhere, but exactly where no one can say without having your skin. So I looked at the "custom" skin and found this in index.main.php:

Code

// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
        'type' => 'comments',
        'link_before' => '',
        'link_after' => '',
        'link_text_zero' => '#',
        'link_text_one' => '#',
        'link_text_more' => '#',
        'link_title' => '#',
        'use_popup' => false,
      ) );

A similar bit in the "evopress" skin posts.main.php file:

Code

// Link to comments, trackbacks, etc.:
$Item->feedback_link( array(
    'type' => 'feedbacks',
    'link_before' => ' | ',
    'link_after' => '',
    'link_text_zero' => '#',
    'link_text_one' => '#',
    'link_text_more' => '#',
    'link_title' => '#',
    'use_popup' => false,
  ) );

So I'm pretty sure if you change 'type' => 'feedbacks', to 'type' => 'comments', you will also change the text.

Apr 27, 2008 20:53

I tried that before and again just now and get the following error on my blog:

An unexpected error has occured!

If this error persits, please report it to the administrator.

Go back to home page
Additional information about this error:
Unknown feedback type [Comments]

Apr 27, 2008 20:56

Code

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

Replace "#" with whatever you like, %d or summat gets converted to the number of feedbacks

¥

Apr 27, 2008 21:40

¥åßßå is completely correct: you can change the text for the three different things it might display (no feedback, 1 feedback, multiple feedbacks) using those three parameters. BUT getting an error didn't come from changing the type to 'comments' because 'comments' is one of 4 legal values for that parameter (feedbacks, comments, trackbacks, and pingbacks). Therefore the error came from something else being wrong.

By the way to get the multiple different bits you would want to change each of the three that ¥åßßå showed to something like this:

Code

'link_text_zero' => 'Leave a comment',
'link_text_one' => '1 comment',
'link_text_more' => '%d comments',

That's what the feedback_link function would change them to if you have # for those parameters and 'comments' for the "type" parameter ... and nothing bonked up anywhere like whitespace that scares php or a random character or a missing ; or a missing , or who knows what else ;)

EDIT: gotta love the "=> = =>" smilie :(

Apr 27, 2008 23:55

Got it. Thanks gentlemen. I realized I got that error because I capitalized the "C". D'oh!

Apr 09, 2010 23:38

Sorry for dragging up an old thread, but I think it fits what I'd like to change.

I'm using v. 3.3.3 and the skin I have loaded is [url=http://skins.b2evolution.net/two.php?s=firebug&sentence=AND&submit=Search]firebug[/url] which shows "Send Feedback", but in the sidebar it shows "Recent Comments".

I'd like to change either / or to; "Post Comment" or "Recent Feedback". I've looked through all I could think to be relevant, but don't seem to be able to find the correct entry to edit.

Being a novice, a walk through would be appreciated.

Thanks in advance

Apr 10, 2010 00:09

Sidebar== widget == change the title on your widgets page ( admin > blog settings > [blog] > widgets, click the edit icon on the widget )

¥

Apr 10, 2010 00:18

Thankyou ¥åßßå :D

Now why didn't I think of that, I'm usually good at spotting the obvious :oops: :smiley - banging his head against a wall:

Apr 10, 2010 00:21

It's always "the bloody obvious" that trips us ;)

¥

Apr 10, 2010 00:32

LOL :lol: Many a true word....

Thanks again, fix is already in place B)


Form is loading...

powered by b2evolution – This forum is powered by b2evolution CMS, a complete engine for your website.