Search Results for 'buddypress'
-
AuthorSearch Results
-
May 23, 2013 at 9:23 am #164588
In reply to: Individual template pages
Hugo Ashmore
ParticipantYou can prevent theme compatibility running by simply overloading those BP files as you did before in your theme root using full bp templates – in 1.8 we are looking to introduce the ability to overload templates in theme compatibility mode with files such as index-activity.php, index-component-profile.php etc:
https://buddypress.trac.wordpress.org/ticket/4639May 23, 2013 at 8:58 am #164586In reply to: Best way to limit friend requests to avoid spam
P
Participant@Chouf1, that’s my blog you’re linking to. I am not sure if they added Throttling to the new Buddypress version. I opened a ticket months ago, the milestone has been set to: version 1.7 to Future Release https://buddypress.trac.wordpress.org/ticket/3732. This is a bit frustrating since Throttling makes for great spam control.
@tifire Go to /bp-friends/bp-friends-functions.php in your Buddypress installation and change the friends_add_friend function to the following:function friends_add_friend( $initiator_userid, $friend_userid, $force_accept = false ) { global $bp; $friendship = new BP_Friends_Friendship; if ( (int) $friendship->is_confirmed ) return true; $friendship->initiator_user_id = $initiator_userid; $friendship->friend_user_id = $friend_userid; $friendship->is_confirmed = 0; $friendship->is_limited = 0; $friendship->date_created = bp_core_current_time(); /** * BuddyPress Friend Request Throttling * * Set a throttle period for user friendship requests * * @author Patrick Saad */ global $wpdb; $qry = "SELECT date_created FROM wp_bp_friends where initiator_user_id = '".$initiator_userid."' order by date_created desc limit 1"; $user_friend_requests = $wpdb->get_results( $qry ); if ($user_friend_requests) { $latest_user_request = strtotime($user_friend_requests[0]->date_created, time()); $time_since_latest_request = time() - $latest_user_request; // that's 2 minutes $throttle_period = 60 * 2; // if the last request was over 5 minutes ago, allow it if ($time_since_latest_request < $throttle_period) return false; } // End of BuddyPress Friend Request Throttling // if ( $force_accept ) $friendship->is_confirmed = 1; if ( $friendship->save() ) { if ( !$force_accept ) { // Add the on screen notification bp_core_add_notification( $friendship->initiator_user_id, $friendship->friend_user_id, $bp->friends->id, 'friendship_request' ); // Send the email notification friends_notification_new_request( $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id ); do_action( 'friends_friendship_requested', $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id ); } else { // Update friend totals friends_update_friend_totals( $friendship->initiator_user_id, $friendship->friend_user_id, 'add' ); do_action( 'friends_friendship_accepted', $friendship->id, $friendship->initiator_user_id, $friendship->friend_user_id ); } return true; } return false; }This will prevent a user from sending a friendship request to someone if their recent friendship request date was less than, say 2 minutes (change the $throttle_period variable to modify this time)
Just gave this a fresh test, works in Buddypress 1.7.2. This same concept can be applied to comments, groups, etc, you just have to find the functions and play around.
May 23, 2013 at 5:41 am #164576In reply to: Any successful Buddypress site?
dbd13
Participant@mjbenzon I am willing to spend my own money in continuing the development of it if you guys would be willing to share it. I can also sign any agreement that I would not step in your niche. I would like to use it for my ethnicity as a casual dating site.
May 23, 2013 at 3:25 am #164574In reply to: Wierd issue with group forum
hiboy
Participant@mercime Thank you for replying again
Settings > forums , i only got the following option , no buddypress
Main Settings
Main forum settings for enabling features and setting time limits
Disallow editing after minutes
Throttle posting every seconds
Revisions Allow topic and reply revision logging
Favorites Allow users to mark topics as favorites
Subscriptions Allow users to subscribe to topics
Topic tags Allow topics to have tags
Anonymous posting Allow guest users without accounts to create topics and replies
Default user role
Auto role Automatically assign default role to new, registered users upon visiting the site.
Fancy editor Use the fancy WordPress editor to create and edit topics and replies
Auto-embed links Embed media (YouTube, Twitter, Flickr, etc…) directly into topics and replies
Per PageHow many topics and replies to show per page
Topics per page
Replies per page
Per RSS PageHow many topics and replies to show per RSS page
Topics per page
Replies per page
Archive SlugsCustom root slugs to prefix your forums and topics with. These can be partnered with WordPress pages to allow more flexibility.
Forums base
Topics base
Single SlugsCustom slugs for single forums, topics, replies, tags, users, and views here. If you change these, existing permalinks will also change.
Forum Prefix Prefix your forum area with the Forum Base slug (Recommended)
Forum slug
Topic slug
Topic tag slug
Reply slug
User slug
Topic view slug
Search slugSorry i couldnt upload images
May 23, 2013 at 3:22 am #164573In reply to: Duplicate Group Components (Multiple Group Types)
facs01
Participant@fordp I wanted to ask you where exactly did you put the copy of the bp-groups and where did you replace the word “vehicle” for “group” I’m very new at buddypress, and need to build a site with a similar functionality as you.
Thanks!
Fabio C.
May 23, 2013 at 3:11 am #164572In reply to: Wierd issue with group forum
@mercime
Participant@hiboy just to be clear, did you upgrade from previous BuddyPress version with the old group forum installed OR is this a new install on WP 3.5.1 and BP 1.7.2? If this is a new install, then just go to admin dashboard menu Settings > Forums and go to the bottom of that page and uncheck “Enable Group Forums”
May 23, 2013 at 2:27 am #164571In reply to: Wierd issue with group forum
hiboy
Participant@mercime Thank you thank you of replying me , yes is a typo,
my wordpress is 3.5.1
bp is 1.7.1I would like to remove the option 3. Forum, cause i also have bbpress installed, i want user to use 1 forum as global, secondly it also causing a issue, when they create a group forum , the thread is shown in bbpress forum too.
I think to remove this is edit through buddypress plugin, but i unsure how.
May 23, 2013 at 2:26 am #164570@mercime
Participanti think i did this by just not displaying the comment buttons in the activity stream … something like that.
@dainismichel go to Settings > BuddyPress > Settings – Activity Streams and check “Disable activity stream commenting on blog and forum posts?”May 23, 2013 at 2:18 am #164568In reply to: Can not delete when I am logged in as admin
@mercime
Participant@mookmik is your issue about not being able to delete an image via BuddyPress Media? If so, have you posted in their support forums?
May 23, 2013 at 12:41 am #164563In reply to: Hide General Settings
alienalias
ParticipantI know this is probably the dumbest question ever, but I am a non-techy type and could REALLY use some help. I don’t write nor understand code, but have successfully inserted multitudes of code successfully when given good instruction. So, I apologize for my lack of knowledge in advance, and also extend sincere thanks for your help. What I’m wondering is this:
I have a membership site that auto-assigns passwords and such, so similarly to the original poster, I can’t have that “Settings” tab under my BuddyPress profiles and etc. However, I have NO idea exactly WHERE to place that code. I tried inserting it at the end of the code, at the line before the ending ?> . It doesn’t work.
Furthermore, I need to make sure it is the correct function.php file. Should it be in the function.php file for the actual theme, or the BuddyPress child theme?
THANK YOU so much for your help!
May 22, 2013 at 9:42 pm #164556In reply to: Adding the BP Signup/Login Page to themes
bp-help
Participant@nanaimomen
You could try something like this approach:
http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/May 22, 2013 at 7:57 pm #164547In reply to: Capabilities Editor
Ben Hansen
Participantthe problem is that the capabilities do not actually exist like they do for bbpress and wordpress maybe you should try to ask your questions after the next devchat. @jjj mentioned that they do want to add them at some point in the future perhaps you can pitch in if you are eager to make it happen.
devchat info here:
May 22, 2013 at 7:05 pm #164542bp-help
Participant@hnla
Hi Hugo! Yes the plugin was listed at the top of the plugins page here for many months. You are precise that the plugin was not BP related. The author had tagged it buddypress in the readme.txt and any time a BP relatated plugin author would release a legitimate new release plugin, then the author of AtContent would manipulate the plugins readme.txt in the SVN without any legitimate change to the plugin in an effort to stay at the top of the list on this site which was pushing down legitimate BP plugin releases and making it harder for users to find new legitimate BP plugin releases. I know the plugins are not hosted here but I found that practice to be a little unethical. I have had some correspondence with the author and apparently he has decided to do the right thing by removing the buddypress tag from the readme.txt, now the only way it shows up on here is if you do a search:
https://buddypress.org/extend/plugins/?ps=AtContent
I suppose this could be marked as resolved if you would like. Thanks! @hnla @johnjamesjacobyMay 22, 2013 at 6:52 pm #164540In reply to: Wierd issue with group forum
@mercime
Participanti running wordpress 3.4.2 with buddypress 1.7.1.
@hiboy Please clarify, do you have a typo above? Makes a difference.
WP 3.4.2 is compatible with BP 1.6.1
BP 1.7.1 is compatible with WP 3.5.1May 22, 2013 at 6:13 pm #164535In reply to: [Read more…] not working in activity streams
Andres Felipe
ParticipantUPDATE
Just after send the activity, this is what I can see:
<a href="http://site.com/red-social/actividad/p/383/" rel="nofollow">[Leer más]</a>and in that moment it works, but after refresh the page, I see this:
<a href="http://site.com/red-social/actividad/p/383/" rel="nofollow"></a>and it doesn’t works.
Maybe this could be related with this topic https://buddypress.org/support/topic/real-name-h2-tag-not-displaying/#post-164348 but I have not a solution yet.
May 22, 2013 at 3:40 pm #164528In reply to: Capabilities Editor
Ben Hansen
Participantnot really super knowledgable about the exact structure of how buddypress is built but i suspect that may also be relatively difficult both capabilities are typically only available to super admins in a multisite environment so at least in that situation you would be granting your editors access to the network admin.
May 22, 2013 at 3:30 pm #164527In reply to: Capabilities Editor
dswright
ParticipantHi
Thank you @ubernaut. I apologize as I was rather tired when I wrote this.
I need the Editor role to have the ability to manage the groups and activity of buddypress.
Sorry for the confusion.May 22, 2013 at 3:08 pm #164526In reply to: BuddyPress 1.7.1
Suraj
Participantyou guys are just awesome.
I have a feature request. I searched for the same using Google and almost across all the buddypress related support forum and tried all the codes but the thing is not working for me, I want to hide the admin activities to appear on my site, but it is not working, if possible, can you add a feature to hide all the activity of any particular user if he wants to including his/her online status.May 22, 2013 at 12:56 pm #164511In reply to: Fatal error when posting bbPress's Group Forum topic
fagiano1973
ParticipantFixed : reuploading file wp-login.php in master directory, ‘re logged in, reinstal buddypress 1.7.2 from ftp and all work ok!
May 22, 2013 at 12:53 pm #164510In reply to: Reinstall 1.7.2
fagiano1973
ParticipantFixed : reuploading file wp-login.php in master directory, ‘re logged in, reinstal buddypress 1.7.2 from ftp and all work ok!
May 22, 2013 at 10:56 am #164506paddelboot
ParticipantI have the same issue. I even get a fatal error clicking on the extension link under “Admin”:
Fatal error: Call to undefined function bp_locate_template() in /data/xxx/xxx/html/wp-content/plugins/buddypress/bp-groups/bp-groups-classes.php on line 1438
Anyone?
May 22, 2013 at 9:06 am #164502In reply to: Best way to limit friend requests to avoid spam
danbpfr
Participanthi all,
you can perhaps investigate around here: http://a-patricksaad-z.blogspot.fr/2013/01/download-buddypress-163-with-activity.htmlMay 22, 2013 at 2:53 am #164490fredang85
ParticipantI found a buddypress child theme for the theme i am using. Thanks for answering!
May 22, 2013 at 12:29 am #164487@mercime
Participantclosing this topic by same user in favor of https://buddypress.org/support/topic/upload-avatar-page-after-registration/
May 22, 2013 at 12:28 am #164486In reply to: Basic Questions about Conditional Tags in Buddypress
@mercime
Participant@mulkins2013 activity-permalink page: bp_is_single_activity()
-
AuthorSearch Results