Search Results for 'wordpress'
-
AuthorSearch Results
-
June 6, 2016 at 11:39 am #254182
Paul Wong-Gibbs
KeymasterBuddyPress doesn’t support conditional profile fields (yet?). This is asked frequently but I can’t remember if anyone’s built a plugin that handles this. You might have to hack something together bespoke for your theme.
Regarding the second point, I’d recommend creating a custom field type, if you know PHP. It’s not too hard to do — I worked on this code a year or two ago, and it’s pretty easy to do now. You could look at https://en-gb.wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ for examples of how to add and register custom field types — specifically https://plugins.svn.wordpress.org/buddypress-xprofile-custom-fields-type/trunk/classes/Bxcft_Field_Type_SelectCustomPostType.php I think is a good example to work from as it displays custom post types in a list (you’d just query your custom table and pull in the values, wrap it in some caching, etc).
June 6, 2016 at 11:34 am #254180Paul Wong-Gibbs
KeymasterYou’re correct. The relevant function is messages_new_message(): https://buddypress.trac.wordpress.org/browser/trunk/src/bp-messages/bp-messages-functions.php#L130
You can set the
BP_ENABLE_USERNAME_COMPATIBILITY_MODEconstant to get BuddyPress to accept user_login values on the message compose screen rather than the user_nicename. See https://codex.buddypress.org/getting-started/customizing/changing-internal-configuration-settings/ for how to set it, basically you add it to wp-config.php.BUT setting this will also change the member URLs. For example: example.com/members/user-nicename/ will become example.com/members/user-login/. If you choose to change this, at the very least, you will have to set up redirects manually so as to not harm SEO.
I think probably changing your modification to use the user_nicename will be best.
June 6, 2016 at 11:27 am #254179In reply to: Recommend caching plugin for BP
Paul Wong-Gibbs
KeymasterI can’t speak for all the BuddyPress development team but, personally, I would not recommend W3TC. There is a specific bug with its Object Caching implementation that breaks password resets on BuddyPress for some obscure reason we weren’t able to track down.
You need an Object Cache plugin, which will be backed by a Memcached or Redis instance, or something. If you’re using a great WordPress host rather than any old common host, like WP Engine or Pantheon or Siteground, they already have this infrastructure in place.
You could have a full-page cache, but be sure to only configure it to cache requests for logged-out users. You can imagine that if the majority of your traffic is from logged in, then having a cache for logged-out views isn’t going to have much impact.
June 6, 2016 at 7:44 am #254177In reply to: Display group name on message
danbp
ParticipantHi,
have you tested this plugin ?
https://wordpress.org/plugins/buddypress-group-email-subscription/ADMIN NOTIFICATION Group admins can send out an email to all group members from the group’s admin section. The email will be sent to all group members regardless of subscription status. This feature is helpful to quickly communicate to the whole group, but it should be used with caution.
June 6, 2016 at 5:42 am #254171In reply to: BP compatable youtube gallery plugin?
June 4, 2016 at 7:30 pm #254137danbp
ParticipantGive this a try: (add to bp-custom.php) 1) & 2):
function bpfr_hide_tabs() { global $bp; if ( bp_is_user() && !is_super_admin() ) { bp_core_remove_nav_item( 'notifications' ); bp_core_remove_subnav_item( 'messages', 'compose' ); } } add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );3) With BP and xprofile component activated, a user doesn’t need access to WP dashboard. He can change his profile credentials from front-end.
Easiest way would be to use this plugin.Retrieving them the possibility to change their email is anyway not a good idea. What happen when a user changed from yahoo to gmail, but can’t login because he lost his password ? Where will the new pwd be sent ?
Perhaps you have also to remove this from the BP usermenu on toolbar ?
Here’s how you can do it:function admin_bar_remove_this(){ global $wp_admin_bar; $wp_admin_bar->remove_node('my-account-messages-compose'); } add_action('wp_before_admin_bar_render','admin_bar_remove_this');June 4, 2016 at 7:20 pm #254136In reply to: private buddy press
cspub
Participanti installed it but seem to be having issues with the buddy press page members. the website folder that wordpress is installed in is members also. can i change the file name of the member’s page? i see where in settings to associate a page for member. but didn’t know if it caused other issues
June 4, 2016 at 4:43 pm #254131In reply to: private buddy press
shanebp
ModeratorWP users are BP users, except for the profile fields you add in wp-admin > Users > Profile Fields
For granular control of both WP and BP content re logged-in vs. not-logged-in, have you tried BP Simple Private ?
You can get it here: WP Repo – BP Simple Private
Or here: PhiloPress – BP Simple Private
June 4, 2016 at 2:36 pm #254129In reply to: [Resolved] Need to change profile fields colour
alibong0
Participanti just wanted to know the term ‘alternate row colour for…*****’to google help about it, hence the lack of detail.. i figured you wanted me to figure it out myself. http://www.templatemonster.com/demo/52997.html <— this is my theme. on the newest wordpress and buddypress.
June 4, 2016 at 6:46 am #254120In reply to: Replicate data to another database
sharmavishal
Participantyou need to have a wordpress multisite done….and install buddypress on a folder/domain…check codex’s of both..you will get an idea how you can run wp on main domain and bp on sub domain or sub folder
trust me..you are not able to manage in the current scenario which you have…
this is a free support forum..you dont need to talk to me on a one2one basis…custom help is not an option here…you might have a look at the job board if you are looking at custom help
best of luck
June 4, 2016 at 6:25 am #254117In reply to: Replicate data to another database
mujalumni
ParticipantI have two site one for static info about MUJ Alumni (http://mujalumni.in/muj2). It is also a wordpress site. The second one is a portal for our members (http://mujalumni.in/portal). It is also a wordpress site with buddypress support.
No, I am not thinking of having subdomain /subfolder. I am already managing that.
If you can provide your contact details, we can have a talk about this.
June 4, 2016 at 6:11 am #254115In reply to: Replicate data to another database
sharmavishal
Participantno plugin for that…as @danbp suggested better to have one db of users..else its going to get quite complicated…
before you installed buddypress was your site a wordpress site?
also i see you installed bp in a sub folder..not in the root…http://mujalumni.in/portal/ is that correct?
is the root site a wordpress enabled site?
are you looking at having a main site and the community (powered by buddypress) on a seperate folder/subdomain?
June 3, 2016 at 4:27 pm #254104In reply to: Replicate data to another database
danbp
ParticipantIt woud be better if you merge your 2 db to the one controlled by WP.
That said, you can also try to get something (even if not easy), after reading from here.June 3, 2016 at 3:47 pm #254097In reply to: Users cannot register since update 2.53
shanebp
ModeratorYou can get older versions here:
https://wordpress.org/plugins/buddypress/developers/June 3, 2016 at 2:18 am #254079In reply to: Wierd Buddypress Issue
mugluck
ParticipantIs there a way to set the default page template for profiles in Buddpress? I’ve isolated the problem to the fact that it’s generating from the default profile in our wordpress theme. But I don’t know which file in the buddypress system I should add the php code to.
June 2, 2016 at 10:27 pm #254065danbp
ParticipantThat is an old bbPress issue. When you edit a topic, i some case, the topic comes up twice(or more, depending how many edit you made) on the site activity.
This bug will be corrected in bbP 2.6 (actual version is 2.5.9). See ticket & patch here.
What you can do immediatly is to modify following file:wp-content/plugins/bbpress/includes/extend/buddypress/activity.phpReplace code between line 277/279
$existing = bp_activity_get_specific( array( 'activity_ids' => $activity_id, 'show_hidden' => true, 'spam' => 'all', ) ); if ( empty( $existing['total'] ) || ( 1 !== (int) $existing['total'] ) ) return null;by
$existing = new BP_Activity_Activity( $activity_id ); if ( empty( $existing->component ) ) { return null; }June 2, 2016 at 10:03 pm #254061In reply to: Registration and Edit Profile Issue
r-a-y
Keymaster@angelaq – I think your problem is related to this:
https://buddypress.org/support/topic/bad-link-to-profile-edit/#post-174602I’m quoting the workaround solution below:
Since I’ve seen so many threads regarding it and I was having same issue.
this is regarding 404 error page if you are on page profile/edit/group/1/
Problem is group 1 is missing in your profile section.
All you need to do is go into you DB and look for table: wp_bp_xprofile_groups
Then look for id=2, Base
then just change id=2 to 1 and that’s it.
This does sound like a legitimate bug.
I’ve opened an issue about this here:
https://buddypress.trac.wordpress.org/ticket/7109June 2, 2016 at 12:57 pm #254046In reply to: Premium Content or Payment System
sharmavishal
Participants2Member | A powerful (free) membership plugin for WordPress
June 2, 2016 at 12:05 pm #254043In reply to: Page display problems Activity of Buddy Press
amaya_terry
ParticipantBuddy press’ve installed directly from the free version of wordpress, the theme we are using is a validly licensed own theme. All steps that tell me I activated as previously I worked correctly … I have other sisitos with the same plugin and does not happen to me
June 1, 2016 at 11:20 pm #254026In reply to: Mentions – Embedded videos not working as expected
r-a-y
KeymasterThe link has to be added on a new line.
This is the same as how WordPress does embeds:
https://codex.wordpress.org/EmbedsJune 1, 2016 at 10:18 pm #254021In reply to: How would I do this in BuddyPress?
danbp
Participanti suppose you already read the codex, thousand of topics and of course, that you have some php knowledge. 🙂
Groups
Add following conditionnal to the what’s new form of the group activity page.bp_current_user_can( 'bp_moderate' )To do this, you need a child-theme and to overload the template file. The original file is here:
wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/post-form.php
Copy it to child to get:
wp-content/themes/child-theme-name/buddypress/activity/post-form.phpMembers
See if these plugins can be usefull.
Geo myWP or one or the other of @shanebp ‘s Geo plugins.June 1, 2016 at 1:42 pm #253992In reply to: Membership Codes
danbp
Participantit’s possible. I suppose you need a unique code for some later user specific actions. But that code exist nowhere when a user register. What can we do ?
1) generate a 6 digit code and show it on the register page
2) asign that code to the user
3) show the code on his profile1 – we use php mt_rand to generate the code and one of the available action hook on the register page for his output. Add this snippet to bp-custom.php
function bpfr_digit_generator() { $num = mt_rand ( 0, 0xffffff ); $output = sprintf ( "%06x" , $num ); echo '<strong>Your personnal code: '. $output .'</strong>'; } add_action( 'bp_after_account_details_fields', 'bpfr_digit_generator' );2) create a new xprofile field, call it Personnal Code or whatever. Make it mandatory and asign it the visibility level you want. In field description, ask the user to copy/paste in the code.
3) as the user entered the code in a xprofile field, you get automagically this field on his profile.
I’m a bit unsure how to insert this field value in the activation email, or if it’s even possible. Perhaps somebody else can help you. See email on codex.
A bit raw, but at least you have a start point how to do that.
Here also another method, you may use if you don’t want the user to copy/paste the code.
June 1, 2016 at 1:35 pm #253991In reply to: Membership Codes
Henry Wright
ModeratorYes. Every member in your install will have a user ID. So both BuddyPress and WordPress users will get a number. In fact, at the back end WordPress users and BuddyPress members are the same thing.
June 1, 2016 at 1:26 pm #253990In reply to: Membership Codes
maganiza
Participantthank you for the speedy response. If I am not mistaken the article is more related to signed in/loggen in user IDs.
I am looking at a solution whereby I will even view the member ID numbers on the list with the backend buddypress/wordpress system. Also I would like for these numbers to be static. For example if I run a search I want the numbers to be populated. Is this possible?
June 1, 2016 at 12:07 pm #253980In reply to: Maintenance Mode message appears in login page
danbp
ParticipantMaintenance mode is related to WP. BuddyPress was updated 24th may and WordPress 6th may.
Have you tried to debug by deactivating theme and all plugins (except BP) ? Use one of Twenty’s theme for that test and see if the notice remains.
Read also here to have a global overview of how this notice is coming up.
-
AuthorSearch Results