Search Results for 'wordpress'
-
Search Results
-
I’m currently want to display a ribbon on certain profile pictures depending on the membership level my users have.
I’m currently rocking this code to achive this on the member listing and friendship listing:
CSS:
#buddypress #members-list li{padding-left:20px;} #buddypress #members-list li .action{margin-right:20px;} #buddypress #members-list li.premium {background-color:#fdf8e8;} .ribbon { position: absolute; left: -5px; top: -5px; z-index: 1; overflow: hidden; width: 75px; height: 75px; text-align: right; } .ribbon span { font-size: 10px; font-weight: bold; color: #FFF; text-transform: uppercase; text-align: center; line-height: 20px; transform: rotate(-45deg); -webkit-transform: rotate(-45deg); width: 100px; display: block; background: #79A70A; background: linear-gradient(#E9AD00 0%, #F79E05 100%); box-shadow: 0 3px 10px -5px rgba(0, 0, 0, 1); position: absolute; top: 19px; left: -21px; } .ribbon span::before { content: ""; position: absolute; left: 0px; top: 100%; z-index: -1; border-left: 3px solid #F79E05; border-right: 3px solid transparent; border-bottom: 3px solid transparent; border-top: 3px solid #F79E05; } .ribbon span::after { content: ""; position: absolute; right: 0px; top: 100%; z-index: -1; border-left: 3px solid transparent; border-right: 3px solid #F79E05; border-bottom: 3px solid transparent; border-top: 3px solid #F79E05; }functions.php:
function bp_visibility_add_member_visibility_css_class( $classes ) { global $members_template; if (user_can($members_template->member->id,'s2member_level1')){ $classes[] = 'premium'; } if (user_can($members_template->member->id,'s2member_level0')){ $classes[] = 'basic'; } return $classes; } add_filter('bp_get_member_class','bp_visibility_add_member_visibility_css_class'); //Mitgliederliste add_filter('bp_user_query_populate_extras','bp_visibility_add_member_visibility_css_class'); //freundesliste function add_ribbon(){ global $members_template; if (user_can($members_template->member->id,'s2member_level1')){ echo "<div class='ribbon'><span><i class='fa fa-diamond' aria-hidden='true'></i></span></div>"; } } add_action('bp_directory_members_item', 'add_ribbon');As you can see i added my function ‘bp_visibility_add_member_visibility_css_class’ to the 2 different filters with:
add_filter('bp_get_member_class','bp_visibility_add_member_visibility_css_class'); add_filter('bp_user_query_populate_extras','bp_visibility_add_member_visibility_css_class');It works just fine but i also need to ribbon to apear in the following places on every member profile with the membership level 1:
profile picture/avatar
activity feed
group activity stream
Does anyone knows to hooks/filters i need to attach my function and achieve this.By the way I’m currently running WordPress Version:4.6.1. and BuddyPress Version 2.7.2
Thanks for the help guys. It’s much appreciated.
If you need more Information please ask.
I want non-users of the website to be able to view a Private Group’s member list. But I cannot find anywhere I can catch this redirect.
So far I’ve found..
This no access redirect must be happening from a call to the function bp_core_noaccess
I found the filter bp_group_user_has_access within the function bp_groups_group_access_protection … But this does not appear to fire for the group members screen when a logged out user tries to access.
I’m currently on WordPress version 4.5.4 and BuddyPress version 2.5.2
Thanks in advance!
Hello friends,
I spent a long time to learn using wordpress and create my own beautiful custom wordpress themes…
But for the last 3 days I am tryiing to run BuddyPress with the custom theme I designed…and after 3 days I am stuck tired of not being able to make my theme compatible with Buddypress…
I searched n read hundreds of topics but still I m confused…and buddypress is not working welll with my theme…
Kindly someone help and let me understand how to make buddypress compatible with my theme…or you can say how to make a buddypress compatible wp theme…
problems
– cover image is not showing
– activation page not loading
– registration page not loading
– profile image cropper not working…and a lot of other errors.. Pls let me know how to add buddypress to my theme… and make it work properly….
Million Thanks in Advance
VickievikHi,
Wanted a permanent solution so that if a person puts down wrong login details. Still my website doesn’t gets blocked by hosting firewall.
Please suggest a way or plugin
Hi
Since wordpress login email id will be unique. So i want that same email id should be inserted automatically in a profile parameter.It will help a customer to search somebody by unique mail id.
OR else suggest a different way to search unqiue person in buddypress.
Hi guys,
I need a solution to add people that signed up via gravity forms “User Registration Add-On” to a specific buddypress group.Group-o-Matic Plugin looks like a very good solution:
https://wefoster.co/buddypress-group-o-matic-adding-members-to-groups-based-on-profile-fields/
https://wordpress.org/plugins/buddypress-groupomatic/But it is very outdated. Or does it still run on an up-to-date Buddypress and WordPress installation?
Do you know an alternative? Or another solution for my problem?
Thankyou for your support!
Cheers,
MattHello everyone,
I just made a fresh installation of WP and BP (by uploading it by FTP) and when I try to activate the plugin, the website returns a “500 error”.
The website runs on Ubuntu and there’s the error log from Apache :
[Fri Nov 11 10:26:19.101841 2016] [:error] [pid 3931] [client …] PHP Fatal error: Call to undefined function bp_is_user_inactive() in /srv/www/…/wordpress/wp-content/plugins/buddypress/bp-core/bp-core-caps.php on line 390, referer: http://www…../wordpress/wp-admin/plugins.php
Could anybody guess what the problem is ?
Thank you very much !
Hi,
Does anyone know why the register button on my site is almost invisible? The text is unreadable.
This is WordPress 4.6.1, BuddyPress 2.7.2, bbPress 2.5.11 and theme SongWriter 2.0.5.
Topic: Getting latest reply
I’m currently working on a project for a client who wants to have the latest reply from any topic in a forum show up on the main bbpress page under the forum name. Is there a way to get this reply from the database using either built in functions or a wp_query. I also need to show the persons avatar, name, and when it was posted. Any help would be greatly appreciated. Dev site is at http://realestateinvesting.how/topics/. I can’t tell you exactly what version of bbpress they are using as the client hired a developer before me who hid the plugins unless your at a user level higher than admin. WordPress version is 4.5
Hi everyone,
I am currently setting up an association website using Paid Memberships Pro. I have decided to add Buddypress support.Everything seems to work well except users cannot upload profile or cover image photos. After clicking ‘select your file’ and selecting an image, the browser pauses for a moment and then nothing happens.
However it’s possible for the admin user to upload photos via the WordPress “user” management.We are using accesspress theme.
Please help
Hi,
I have encounter an issue that I wish that I can get some help here:
Currently I have created some custom profile field, that allows my user to input his bio and social media field. It displays at the buddypress profile page nicely. However, i will like the bio field that my user has input to be shown on the product page. You can take a look at my page, at the bottom, the “About post author” section
http://www.chalktalk.com.sg/courses/chalktalk-demo-course/currently, this section is using the wordpress default description field to display it here. I will like to get the custom bio field that I created in buddypress to be display here instead. May i know how can i go by doing this? where can i retrieve the ID of my custom field to place here instead?
Hope to hear from you soon.
Regards
Chris
Good day everyone, I’m new to BP and the forum as well!
I’m using WordPress with GravityForms to signup users for monthly subscriptions.
Basically I’m wondering if it is possible to do the following :
– When a new user sign up via GF > create a private group(business) exclusively assigned to this new user (which will be a group admin)?
– This admin would be able to invite users(employees) to be added to that exclusive group?
– Would it be possible to list GF submissions for other forms (uploads for instance) by users (employees & business owners) and/or by Group(business)?
– Any way to link a Dropbox folder created via Zapier for those specific users and/or group?
– In the end, we want to use BP capabilities to create a sort of internal communication tool in regards of those uploads made our way?Thank you so much in advance !
TaharMy site features Sensei courses that have Buddypress groups/forums associated with them. Once someone signs up for a course, they are automatically in the group/forum. Is there some way to automatically subscribe those learners to the course group’s forum so they don’t have to take any action to be notified when new topics are created? I tried this plugin (https://wordpress.org/plugins/buddypress-group-email-subscription/) but it seems to tack on separate email options functionality instead of using the built-in “subscribe/unsubscribe” functionality.
Hello Buddypress buds!
A lot of people have been talking over the past couple of years about “how to require a profile photo upon registration. And I know it’s a risky thing to do, but many of us are willing to take that risk.
There are a handful of plugins that try to assist with this procedure, but some fail, and some are only partially successful. The best solution that I’ve found is Xprofile Custom Fields. With this plugin, and a lot of help from the author, I’ve managed to get profile photos to be required in the registration process. However, the issue I’m having is that the users are unable to effectively change their profile photo by using the options in the Buddypress “Profile” section/menu. The user can still click “Change Profile Photo,” and it will accept their upload, but the old photo remains in the member directory & in the user’s profile itself.
I think there must be a miscommunication occurring due to this new way of gathering the user’s original profile photo. It seems like some code, pertaining to the Buddypress “Change Profile Photo” function needs to be tweaked, but I can not pinpoint the function, which would be the first step towards fixing this issue.
To demonstrate how I’m requiring the profile photo upload in the registration, here is the function I’ve added to my theme’s functions.php file:
add_filter( 'bp_core_fetch_avatar', 'my_custom_avatar', 10, 2 ); function my_custom_avatar( $avatar, $params ) { if ( 'user' === $params['object'] ) { // Get the src of the original avatar. $array = array(); preg_match( '/src="([^\"]*)"/i', $avatar, $array ); if ( count( $array ) > 1 ) { $old_url_avatar = $array[1]; // Get the new url of image. $uploads = wp_upload_dir(); $img = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( 5218, $params['item_id'] ) ); if ( ! empty( $img ) ) { $new_url_avatar = $uploads['baseurl'] . $img; // Replace the old src with the new url. $avatar = str_replace( $old_url_avatar, $new_url_avatar, $avatar ); } } } // Return the avatar. return $avatar; }I’d like to mention that I have asked the plugin author about this, but my message on that plugin’s support forum has been deleted twice, making me think I should give the man a break.
Here are some specifications of my site:
It’s running on WordPress v4.6.1, Buddypress v2.7.0, & using BuddyPress Xprofile Custom Fields Type v2.6
“5218” is the field ID for the “Upload Image” field.
Thanks and sorry if I posted in an inappropriate forum, I think I chose the right one.