I have installed four following plug-ins.
2. Cubepoint Buddyshare Integration
If i add:
alert(“<? cp_alterPoints(cp_currentUser(), +8); ?>”);
..After that I have put the function on click event
echo ‘<li class=”bpsi”><img src=”‘ .$pluginpath . ‘/buddypress-share-it/img/’.$bpsi_iconsize.’px/Facebook.png” alt=”Share on Facebook”>‘;
But it is not working onclick, it doesnot wait for the ‘onclick’ event.
I want to know if i can add any PHP function in HTML onclick event.
I would be very much thankful to you.
Ow, i came up with this code in ‘bp-share-it.php’
if( function_exists(‘cp_alterPoints’) && is_user_logged_in() )
Now, could anyone please tell me add_action(‘bp_media_after_activity_meta’,’addpts’); this function’s 1st parameter? i think i have to put the correct parameter so that ‘addpts()’ function will be call on that particular FB icon click.
Thanks in advance!
- The topic ‘Cubepoint BuddyShare Modification’ is closed to new replies.