Skip to:
Content
Pages
Categories
Search
Top
Bottom

Add as favorite/remove favorite function doesn’t work only on Members pages.

  • @cpkid2

    Participant

    It’s working fine on the Latest Activity page. For example, when I click on ‘add favorite’, it changes to ‘remove favorite’ and vice-versa like it’s supposed to.

    However, on my Members pages (/members and /members/admin/activity/13), when I click on ‘add favorite’, it doesn’t change to ‘remove favorite’. It just stays on ‘add favorite’. I looked at the html and I noticed the ‘a’ class under ‘activity-reply’ changes from ‘fav’ to ‘fav loading’ and back to ‘fav’.

    The exact same scripts and styles are being loaded on both the Latest Activity and Members pages so I’m stumped as to why the add/remove favorite function only works on the Latest Activity page. I am hoping someone more experienced than I am can help me out.

Viewing 10 replies - 1 through 10 (of 10 total)
  • @cpkid2

    Participant

    Still having trouble with this one. Any ideas on what can be causing this?

    @dre1080

    Member

    im also having trouble with this, anyone???

    @boonebgorges

    Keymaster

    It’s working OK for me. Are you using the default theme, or a custom theme? What version of BP?

    @cpkid2

    Participant

    I used “Buddypress Template Pack” to add support for my existing WordPress theme. Buddypress v. 1.2.3

    @boonebgorges

    Keymaster

    Can you switch back to bp-default to see if the problem still happens?

    @cpkid2

    Participant

    It doesn’t happen with bp-default.

    @boonebgorges

    Keymaster

    Ok. In that case you’ll have to check the JavaScript to see what element it’s trying to grab. (I’m not at my computer at the moment so I can’t). It’s likely that the problem has to do with the parent elements of the favorite button – somewhere up the tree, your theme doesn’t have the necessary CSS selector.

    @cpkid2

    Participant

    I’m not sure if this helps but this is what Firebug is telling me:

    http://img709.imageshack.us/img709/6290/breakc.jpg

    @boonebgorges

    Keymaster

    Go into bp-themes/bp-default/functions.php and find the function called bp_dtheme_js_terms. Copy it (including the add_action line at the bottom) and paste into functions.php of the theme you’re using.

    That should at least fix the error I’m seeing in that screenshot.

    @cpkid2

    Participant

    Thank you for your time, Boone. It worked!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Add as favorite/remove favorite function doesn’t work only on Members pages.’ is closed to new replies.
Skip to toolbar