Search Results for 'buddypress'
-
Search Results
-
I’m running the latest WP, BuddyP and BBP,
Setting up new functionality, and now I am strugling:
I successed in creating groups, making memebers, and creating forums.
Also users who are not members of a forum need to ask memebersship.What I can not fix is following:
I want to create child (bbpress) forums under a group forum.
This works OK, but somehow everyone is then allowed to access it….Thanks
Topic: Add custom xprofile links
Hi guys!
You already helped me to remove the xprofile links and to display a filtered view of all members on my homepage (https://buddypress.org/support/topic/display-filtered-overview-of-members/#post-231596).
So I hope you can help me once again.
I’ve build a network for athletes. Among many other profile fields every athlete have a profile field called “gender” and “sport”. As already mentioned I’ve filtered this on my landing page for a nice overview. The code for female athletes looks like this:<?php $sports = array('Archery', 'Badminton', 'Baseball', 'Basketball', 'Bowling', 'Equestrian', 'Fencing', 'Field Hockey', 'Football', 'Golf', 'Gymnastics', 'Ice Hockey', 'Lacrosse', 'Rifle', 'Rowing', 'Skiing (Cross Country)', 'Skiing (Downhill)', 'Soccer', 'Softball', 'Squash', 'Swimming and Diving', 'Tennis', 'Track and Field', 'Volleyball', 'Water Polo', 'Wrestling'); $sportsSize = sizeof($sports); $femaleCounter = 0; for ($i = 0; $i < $sportsSize; $i++) { $femaleSport = $wpdb->get_var( "SELECT COUNT(user_id) FROM ar_bp_xprofile_data WHERE value = 'female' AND user_id IN (SELECT user_id FROM ar_bp_xprofile_data WHERE value = '" . $sports[$i] . "')" ); if ($femaleSport != 0) { echo '<p>' . $sports[$i] . ' (' . $femaleSport . ')</p>'; $femaleCounter++; } } if ($femaleCounter == 0) { echo '<p>Sorry, there are no female athletes registered yet.</p>'; } ?>In the Frontend it could look like this:
Female:
Baseball(4)
Basketball(2)
Soccer(8)Male:
Baseball(20)
Basketball(30)
Tennis(5)Now I would like to generate links on the sports as it’s automatically done with profile fields.
I think there are two problems:
1) I have already removed xprofile links in profile/members loop.
2) The sports are not in the members or profile loop.Can you help me?
Hello everybody
I’d like to ask you for a help with assigning a WP user role based on a BuddyPress registration.
REASON: I do this because I want to have an automatic way of allowing users after their registration to see and contribude only to specific forums.For subscribers I have Forum1 ready,
for contributors Forum1 AND Forum2.
Subscribers cannot see the content of Forum2!Everything should be automatically done. User comes to the website, registers (chooses type of account), gets access to specific forum.
If you could suggest a better solution, OK, if not, plese, try to fix this:
I have BuddyPress installed. I used extended profile fields to create a list of different users, let’s say User1, User2, User3. After hitting “finish registration” button, based on a selection of User1 or User2 or User3, specific role is assigned. So for example:
If User1 is chosen, user gets WP role subscriber,
if User2 is chosen, user gets WP role subscriber,
if User3 is chosen, user gets WP role contributor.Something similar is mentioned below with Cimy User Extra Fields, but it does NOT work with BuddyPress registration. If you add anything with Cimy User Extra Fields, you cannot see it in BuddyPress registration.
What function/code, to what file I should add so I could have my solution?
Thank you.———————————————————————-
// // Modify registration form to include roles // add_action('user_register', 'register_role'); function register_role($user_id, $password="", $meta=array()) { $userdata = array(); $userdata['ID'] = $user_id; $userdata['role'] = $_POST['cimy_uef_USERTYPE']; if ($userdata['role'] == 'A Contributor') { $userdata['role'] = 'contributor'; } if ($userdata['role'] == 'An Editor') { $userdata['role'] = 'editor'; } //only allow if user role is my_role if (($userdata['role'] == "contributor") or ($userdata['role'] == "editor")){ wp_update_user($userdata); } }Hi!
I am trying to create a custom search page with BP Profile Search to search buddypress users. However, I don’t know how to add a search by keywords, so I have thought that maybe I could use the standard buddypress search box (I think it can be a good solution), but I don’t know how to add that search box to a specific page. Can anybody help me with this?
Thank you!
Hi Buddies,
Firstly, My english very bad for me but I must explain my problem.
I can writing code for wordpress themes but My problem: i don’t use buddypress for the themes.When i create wordpress theme, This theme don’t harmonizing with buddypress.For example when I entered http://websitename.com/groups, I saw error page.I deal with the problem for a week but i don’t find solution.What can i do for the problem.Please help friends…Hi i have found this solution to add a cover photo on a users profile using the answer and plugin linked in this post.
https://buddypress.org/support/topic/cover-photos-for-profiles/
it works really well apart from one thing, the user can only see his own cover photo when viewing his own profile where as i would like for other users to see the cover photos when visiting someone elses profiles! any ideas what extra code i would need to add to make them show to other users?
After activating BuddyPress, my admin area turned to a blank screen. Launching FTP client and renaming the buddypress subdirectory solved it immediately, but no matter what I tried (deleting the files, reinstalling, cleaning up the transient records from the database, etc), re-activating BP immediately results in everything behind wp-admin turning to a blank screen.
Search through support forums here lead to no solution. There are recommendations to increase the available memory, but I’m on a very powerful dedicated server with more than 50% memory available. I had this confirmed after consulting with my webhost.
What’s a guy to do to make BP work?
PS – I run a very busy website with 10 Million uniques a month, 20% bounce rate, 12 pages accessed per visit, 480k registered members and a new comment made approximately every 2 to 3 minutes. The server is powerful enough to handle this load of traffic and have a lot of extra power for spikes. I’m sure the problem is not with insufficient server resources. Help?
Hey
I have installed buddypress and if I click settings or anything from the admin area I go to an error page “You do not have sufficient permissions to access this page.”
so what’s wrong?
thanks