Helping you Build Your Own Social Network!

Faster, better and easier!

Join Group / Add friend / Cancel friendship buttons do not appear

(8 posts) (2 voices)

Tags:

No tags yet.


  1. Hi,

    I have Bp 1.2.7 and wp 3.0.4 with a custom theme.
    I used the bp-template-pack to make my wp theme bp compatible.

    Everything seems to be working fine except the action buttons in member/group loops. These buttons have disappeared.

    I tired the same thing on Bp 1.2.6 and wp 3.0.1 and it works fine.

    I did it over n over again with Bp 1.2.7 and wp 3.0.4 but still the same pbm.

    Can someone help me with this?

    Thanks.

    Posted 1 year ago #
  2. is it something to do with “BP_DTheme.accepted” replacing “bp_terms_accepted” from the older version of global.gs.

    it is somehow to do with the use of BP_DTheme in the new global.js

    Posted 1 year ago #
  3. ok now i get the buttons in the loops when i viewing the directory page. but i do not get the buttons in the members/user/friends and the members/user/groups

    which adds to the confusion since the same loop is used at all places.

    Posted 1 year ago #
  4. too much of digging still no answers but more clues

    when i use the bp-default theme i see this javascript in the <head>, but does not get inserted into mu custom theme <head>

    /* <![CDATA[ */var BP_DTheme = { my_favs: "My Favorites", accepted: "Accepted", rejected: "Rejected", show_all_comments: "Show all comments for this thread", show_all: "Show all", comments: "comments", close: "Close", mention_explain: "@ is a unique identifier for that you can type into any message on this site. will be sent a notification and a link to your message any time you use it."};/* ]]> */

    Posted 1 year ago #
  5. Your Theme lacks the proper javascript terms localization,

    Check if yopur theme has following line

    wp_localize_script( 'YourTheme_js_handle', 'BP_DTheme', $params );

    where "YourTheme_js_handle" is the unique handle used by your theme to enqueue javascript.

    Posted 1 year ago #
  6. yeh, i cannot find this. Where can i find it? or is there a way to add this?

    Posted 1 year ago #
  7. lets add one more strange thing to this.

    Suppose I am user1, I go to my profile->groups, i dot not see the buttons to leave group

    Now if user1 goes to profile->groups user2, and user2 and user 1 have groups in common, user1 can see the buttons to leave group

    user1 should not be seeing the leave group button for groups he already of member of on someone elses profile :)

    How strange is that or how confusing is that.

    initial condition still holds good - is user1 goes to profile->friends or profile->groups he cannot see any buttons (join,leave, cancel friendship).

    hopefully adding this will solve it. let me know here to add it.
    wp_localize_script( 'YourTheme_js_handle', 'BP_DTheme', $params );

    Posted 1 year ago #
  8. Hi gwu, this should be in the functions.php of your theme(if your theme is not child theme).

    Please take a look at bp-default/functions.php for the whole data.

    The button issue:- Cancel friendship button will not appear in your profile->friends, It's a bug with Bp 1.2.7 if the buttons are added using action.

    The leave group button will appear on profile groups if a group has more than 1 member and you are not the only admi of that group.

    Posted 1 year ago #

Reply

You must log in to post.