Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I remove the […] from my activity pages

  • Avatar of fitnessblogger
    fitnessblogger
    Participant

    @fitnessblogger

    Hi Guys,

    I am sure this must be pretty straightforward but I cant figure out how to remove this […] from my activity boxes??

    It looks like a read more box but you cant’t click on it and it just looks odd??

    Any help would be great!!

    Wordpress V.3.4.2
    BuddyPress V .1.6.1

    http://fitnessblogger.net/groups/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of johnjf
    johnjf
    Participant

    @johnjf

    I was wondering about the same thing

    Avatar of johnjf
    johnjf
    Participant

    @johnjf

    Sorry to bring this back up but does anyone have a solution for this?

    Avatar of fitnessblogger
    fitnessblogger
    Participant

    @fitnessblogger

    Still not got a solution to this one ? ? ? ?

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    hi @fitnessblogger,

    use this in wp-content/plugins/ bp-custom.php
    (If you haven’t this file you have to create it first)

    Tested on 1.6.3

    `function bpfr_excerpt($text) {
    return trim($text,’[…]‘);
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 );`

    if you want to replace [...] by ‘xxx’ you use this

    `function bpfr_excerpt($text) {
    return str_replace( ‘[…]‘,’xxx’,$text );
    }
    add_filter(‘bp_activity_truncate_entry’, ‘bpfr_excerpt’, 3, 3 ); `

    Take care with copy/pasting from here. Quotes must be single quotes at least.

    Avatar of fitnessblogger
    fitnessblogger
    Participant

    @fitnessblogger

    Thanks @Chouf1

    I will have a look at this later tonight :)

    Avatar of danbpfr
    danbpfr
    Participant

    @chouf1

    oops !  dots are stripped here….
    in the brackets you should enter & hellip; (retrieve also the white space  &! hellip) not dots

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.