Forum Replies Created
-
In reply to: BP Album+ || New Features Requests and Discussion
For photo upload and photo deletion. Would it be possible to use a do_action?
Reason I ask is I got the points awarded for photo upload/delete working!

But I have to put the code directly in the bp-album-core.php file. Not a big deal, but I have to re-do that each time the plugin is updated.
Here is how I award points for a reply in buddypress, I put this code in my themes function.php file at the end.
// Add 5 Points for a comment or reply
function my_bp_update_comment_add_cppoints() {
if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), 5);
cp_log('Comment', cp_currentUser(), 5, Community);
}
}
add_action('bp_activity_comment_posted','my_bp_update_comment_add_cppoints');Looking forward to the 0.1.7 release, sounds very cool!
In reply to: BP Album+ || New Features Requests and DiscussionI prefer the Flickr Style myself. Any ideas on this?
One thing I noticed. After I upload a photo, then I post a regular update (not a reply). It acts like a reply sorta. But it shouldn’t be displayed under a photo upload. Here are some screenshots
http://i41.tinypic.com/2lmpcg6.png
http://i42.tinypic.com/21nmzcy.png
Then where could I place this code so it will run when a new photo is uploaded or deleted so my members can earn points for uploading pics
‘
if( function_exists(‘cp_alterPoints’) && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), 20);
cp_log(‘Photo Upload’, cp_currentUser(), 20, Community)
}
‘
So far I love it! Keep up the great work guys!
In reply to: BP Album+ : my new plugin for picturesOne thing I noticed. After I upload a photo, then I post a regular update (not a reply). It acts like a reply sorta. But it shouldn’t be displayed under a photo upload. Here are some screenshots
Any other ideas?
In reply to: [Resolved] CubePoints and BuddyPress Intregration?I’d love to, but I’ve never made a plugin before. But it’s something I’m willing to tackle. Would be nice to have an option in the backend so people could change how much points people get.
I’ll try that admin code snippet when I get home tonight. Thanks!
In reply to: BP Album+ : my new plugin for picturesUpgraded to the latest version btw. Working great now

I’ve been using CubePoints with my single WP install to get people on contribute to my site.
They get points for posts, comments, forum posts, daily visit, etc
https://wordpress.org/extend/plugins/cubepoints/
Anyway, they provide a simple API, so I was just wondering where I could put this code. So when people upload a photo they get some points. If they delete a photo it will take away points.
<php
if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), 20);
cp_log('Photo Upload', cp_currentUser(), 20, Community)
}
if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), -20);
cp_log('Photo Deleted', cp_currentUser(), -20, Community)
}
?>In reply to: [Resolved] CubePoints and BuddyPress Intregration?I got it working
Adding a update or reply, they get points. If a user deletes his/her own update it’s takes points away.Only thought I had if I where to delete another users comment/update. It deletes the points from my account instead of theres.
Here is how I’m deleting points:
// Remove 5 points for comment delete
function my_bp_delete_comment_add_cppoints() {
if( function_exists('cp_alterPoints') && is_user_logged_in() ){
cp_alterPoints(cp_currentUser(), -5);
cp_log('Comment Removed', cp_currentUser(), -5, Community);
}
}
add_action('bp_activity_action_delete_activity','my_bp_delete_comment_add_cppoints');In reply to: BP Album+ : my new plugin for picturesI upgrade and it went ok. But on the front end I get this above my header. And I’m not able to access the images any more.
‘Warning: Division by zero in /home/tosh/public_html/mysite/wp-content/plugins/bp-album/includes/bp-album-templatetags.php on line 79’
In reply to: [Resolved] CubePoints and BuddyPress Intregration?Perfection
Your the man!Where should I start looking for giving points for updates/replies in BuddyPress?
Thanks Again
In reply to: [Resolved] CubePoints and BuddyPress Intregration?Cool. I tried that. It gave points for each step of the group creation process. Instead of just the first step. I put the code in my themes functions.php file fyi
I couldn’t find the bb-custom.php file though. Is that something I have to create?
But it worked

I’ll still searching to find the spot to put the code so it gives points for updates/replies.
Thanks Ray!
In reply to: BP Album+ : my new plugin for picturesoh cool. Thank you. What’s the default max width/height for photos btw?
In reply to: BP Album+ : my new plugin for picturesAs a admin I’m not able to delete other users photos from the front end. Not a huge deal at this point. But needed just in case of abuse.
So far it’s working great. Love it!
In reply to: BP Album+ : my new plugin for picturesInstalled on my test site and works perfect. My one concern though … if people where to upload inappropriate photos. How would I go about deleting those photos from there profile and taking away there access to upload any future photos?
Other than that, LOVE IT! Keep up the great work.
I didn’t disable the “BP Template Pack JS / AJAX ” option.
I looked at the page source and it is pointing to the file correctly:
http://www.mysite.com/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/global.js?ver=2.9.1
the ajax file is located here:
http://www.mysite.com/wp-content/plugins/buddypress/bp-themes/bp-default/_inc/ajax.php
Very odd … thanks for replying by the way
In reply to: BP Album+ : my new plugin for picturesVery cool, I’ll be testing this out on my single wp install soon.
Hello, hellllo, helllooo.
Anyone out there? lol
In reply to: oEmbed for BuddyPress plugin – out now!Sounds good
Looking forward to it.
In reply to: oEmbed for BuddyPress plugin – out now!When is v0.6 coming out?
In reply to: Buddypress Links Redirect To Home PageWow, that sucks, lol
Any ideas?
In reply to: Buddypress Links Redirect To Home PageTurns out the username has a space in it. I modified it directly in the database to remove the space and it works now. Anyway make this work without modifying the database directly?
In reply to: Buddypress Links Redirect To Home PageAnother issue here, when somebody clicks on this: http://www.p3blog.net/members/gm-luke/
They get redirected to the home page.
Is the – in the username an issue? My permalinks structure is not default either.
1. Which version of WP/MU are you running? 2.9.1 Single WP
2. Did you install WP/MU as a directory or subdomain install? http://www.mysite.com
3. If a directory install, is it in root or in a subdirectory? root
4. Did you upgraded from a previous version of WP/MU? If so, from which version? No
5. Was WP/MU functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes
6. Which version of BP are you running? Version 1.2.1
7. Did you upgraded from a previous version of BP? If so, from which version? No
8. Do you have any plugins other than BuddyPress installed and activated? Yes
9. Are you using the standard BuddyPress themes or customized themes? Using BuddyPress Template Pack
10. Have you modified the core files in any way? Yes, to fix the avatar upload issue:
bp-core-avatars.php line 389
Replace:
if ( !$path = get_option( ‘upload_path’ ) )
$path = WP_CONTENT_DIR . ‘/uploads’;
With:
if ( !$path = get_option( ‘upload_path’ ) )
$path = WP_CONTENT_DIR . ‘/uploads’;
else
$path = ABSPATH . $path;
…and report back?
https://trac.buddypress.org/ticket/1970
11. Do you have any custom functions in bp-custom.php? No
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? Not using bbPress.
13. Please provide a list of any errors in your server’s log files. – Nope, shared server.
14. Which company provides your hosting? Hostgator