Forum Replies Created
-
$defaults = array(
‘id’ => ‘transfer_offer’,
‘component’ => ‘xprofile’,
‘must_be_logged_in’ => true,
‘block_self’ => true,
‘wrapper_class’ => ‘transfer-button ‘,
‘wrapper_id’ => ‘transferbutton-‘,
‘link_href’ => I DONT KNOW WHAT TO PUT HERE‘link_text’ => __( ‘Transfer Verzoek’, ‘buddypress’ ),
‘link_class’ => ‘profile-button transfer-verzoek’,
);I switched the debug mode and used :
function jay_check_transfer_click() { echo bp_current_action(); home <--- results echo bp_current_item(); // sfc-ajax <--- results echo bp_current_component(); groups <--- results } add_action( 'bp_actions', 'jay_check_transfer_click' );
Then i tried them all in the function but so far it only worked when i clicked on “Profile” in the X-profile of the user, but this is not what i want. When i clicked the button it didn’t call the function. Hope anyone has the solution to this because its driving me nuts lol
Hi, i dont know how to do that i’m new to this sorry. I did try
component’ => ‘profile’,
also with the echo
echo bp_current_component(); said my-clubs
and echo bp_current_action(); said joingroups when i pressed the button (also had the call on but nothing happened there)
I’m completely fresh with this i have been reading alot but there are stil some things i need to learn.
The function just fires instantly when you go the profile page of a user without pressing any buttons on that page.
Hi thanks for the reply. I tried that and when i clicked on a profile (without it loading to go to the button) it was already adding 4000+ new entries in my DB with the same group_id and user_id.