Search Results for 'buddypress'
-
AuthorSearch Results
-
April 4, 2014 at 1:33 pm #180785
robertFudge
ParticipantHi Mike,
I don’t think that you can entirely remove the xProfile name field from BuddyPress (Even with the plugin that is available). So I decided why fight it? I cloned the WP username. The only potential problem with this is that the WP username is public – I used a plugin to force stronger WP username and passwords to help with this.
Here is the base of what I did:
– On the registration form hide the xProfile name field (CSS display: none) and make a javascript listener (CHANGE) function to change the xProfile name field to the value of the WP username. This will take care of the form validation – xProfile name field is required. See reference…
– For the edit your profile section I hide the xProfile name field, I also included a PHP function that made the value of this equal to the WP username, in the state that a user was added from the dashboard. (I did not provide PHP, I essentially grabbed WP logged in username…) – You can also display the xProfile name field input as readonly (add attribute: readonly).
Now all xProfile name field instances in BP are the same as the WP user.
Reference:
jQuery(‘input#signup_username’).change(function () {
jQuery(‘input#field_1’).val(jQuery(this).val());
});April 4, 2014 at 1:29 pm #180783danbp
ParticipantHi @metalmick
@username on the profile header is displayed with this code in BP 1.9.2
(see bp-themes/bp-default/members/single/members-header.php:28)if ( bp_is_active( 'activity' ) && bp_activity_do_mentions() ) : ?> <span class="user-nicename">@<?php bp_displayed_user_mentionname(); ?></span> endif;The @ sign is hardcoded in the span, so you have to remove it manualy from the file.
To do this, you can hide it with a CSS rule or you can remove the whole if statement if you use member-header.php file within a child theme/theme.A more elegant solution would be to do this with a function, so we haven’t to think about theme modification or to forgot a CSS rule or to check BP after each update.
The function bp_displayed_user_mentionname is declared in /plugins/buddypress/bp-activity/bp-activity-template.php:1027
As this function is a filter, we can simply remove it to remove the @username from the template. But because the hardcoded @ sign before the username, we have to add a CSS rule with the remove_filter function. The function above will do all that.
Add these snippet to your bp-custom.php (read here if you don’t know this file)
/* remove @username from the profile header */ function bpfr_remove_mention_from_profile() { echo '<style> h2.user-nicename { display:none; } </style>'; // hide the h2 containing the @ if( bp_is_user() && ! bp_get_member_user_id() ) { // be sure we get the right user_id $user_id = 'displayed: '. bp_displayed_user_id(); } else { $user_id = 'get_member_user: '. bp_get_member_user_id(); } remove_filter( 'bp_get_displayed_user_mentionname', bp_activity_get_user_mentionname( bp_displayed_user_id() ) ); } add_filter( 'bp_get_displayed_user_mentionname', 'bpfr_remove_mention_from_profile' );Succesfully tested on BP 1.9.2 and 2.0 beta 1
April 4, 2014 at 1:12 pm #180782In reply to: Activity Wall Time Setting
John James Jacoby
KeymasterGreat Scott!
These time issues crop up every blue moon, so any insight you can provide into the following time settings would be awesome:
- Your physical timezone
- The timezone setting of your server(s)
- The timezone setting of your PHP configuration
- The timezone setting of your WordPress installation
Seems somewhere down the line, there’s a problem with our calculations in a certain configuration. It could be the math, could be daylight savings time, could be a WordPress bug, a BuddyPress bug, or a rip in the space-time continuum!
April 4, 2014 at 7:34 am #180764danbp
Participanthi @saiallexander,
have you tried this plugin ?
https://wordpress.org/plugins/buddypress-featured-members/April 4, 2014 at 7:29 am #180763In reply to: Name instead of username
danbp
ParticipantFYI, this function will show user_login instead of member_name on the members directory.
Add it to the theme’s functions.php/* Display Username in Directory */ function my_member_username() { global $members_template; return $members_template->member->user_login; } add_filter('bp_member_name','my_member_username');Tested on WordPress 3.8.1 – BuddyPress 1.9.2
April 4, 2014 at 1:50 am #180759In reply to: Manually create activity posts
modemlooper
ModeratorIf it’s deleted it’s gone. Still confused about why the date or specific activity is important. How would you get group info if there are no groups?
This is how you manually add activity with code: https://codex.buddypress.org/developer/function-examples/bp_activity_add/
April 4, 2014 at 1:06 am #180754In reply to: display profile fields in member header
Lerroy
ParticipantArguments aside.
I actually need the same thing would like to show Users full name above his @username and show State field and About/ bio field
Have been reading the buddypress documentation with no luck and searching forums.
April 3, 2014 at 11:09 pm #180748In reply to: URL behavior warnings on setup pages
Halo Diehard
ParticipantAaaaaaand now I have my group MMHC redirecting to a post that starts with MMHC instead of to the group :/ What is this? This can’t be BuddyPress or it’d be happening to everyone 🙁
I don’t know what to do.
April 3, 2014 at 10:58 pm #180747In reply to: Where do I find what my htaccess should be?
Halo Diehard
ParticipantI… don’t think they are deprecated, in fact, they’ve received a freshening up…
Anyway, I found the issue, and it has to do with redirect conflicts in the BuddyPress code itself. I’ve responded here w/ moar infos:
https://buddypress.org/support/topic/url-behavior-warnings-on-setup-pages/
April 3, 2014 at 10:49 pm #180745In reply to: Making Plugin activity show in Activitiy Stream
Gem @White Rabit
Participant@barney92 I’m not making any excuses and you should know better than to attack some one over a simple spelling mistake. However I must thank you as you have made this post more active than any of my others. Maybe I will get some help.
@shanebp I know that it is a premium plugin. I know there for it costs money. However I have always been told even by the WordPress and Buddypress people that the forums are the best place to get help.
I am very new to tweaking, modifying etc plugins. I normally find whats has already been done works and does the job I need it for. A friend told me that this community was very helpful so I though some one might be able to help.
I must be mistaken in thinking that the World Wide Web was created in the spirit of sharing and helping people. Maybe I am a Hippie at hart but in the areas that I am strong if some one asks for help I help and I expect that in the areas I am weak and I ask for help people will do as I do and help.
I wish you all well with the projects your running. Thank you and Good Night!
April 3, 2014 at 10:22 pm #180743In reply to: Making Plugin activity show in Activitiy Stream
shanebp
Moderator>The plugin is currently not compatible with BuddyPress.
So you talking about adapting a premium plugin.
Is it reasonable to expect somebody to buy the plugin in order to help you?
Perhaps you’re hoping somebody already has it; but even then they would have to be willing to do the work and deliver it to you.Therefore it’s unlikely that anyone here can help.
If you get to the point where you can be specific about a code issue – iow. you’ve tried to extend the plugin and are struggling, you might want to use
http://stackoverflow.com as it will reach a broader audience.Also – you could try to hire a developer thru
April 3, 2014 at 9:35 pm #180739In reply to: Making Plugin activity show in Activitiy Stream
Gem @White Rabit
Participant@barney92 I do beg your pardon however I am dyslexic and so spell checking and all that doesn’t work. I never thought in my wildest dreams that some one in the BuddyPress forum would be so pedantic.
April 3, 2014 at 7:45 pm #180731In reply to: Where do I find what my htaccess should be?
Ben Hansen
Participantsorry i read the title of you post too quickly htaccess shouldn’t need anything special for buddypress the standard wordpress compatible htaccess is fine. group based forums are depreciated so i wouldn’t expect that work anymore anyway.
April 3, 2014 at 7:18 pm #180728In reply to: Where do I find what my htaccess should be?
Halo Diehard
Participant@ubernaut, I guess I wasn’t clear: I’m looking for resources to explain what’s supposed to be *inside* htaccess for the most recent BuddyPress installation, as in the code. All the posts about it have different code, and after hours and days of research I can’t find what it’s supposed to have for the latest version, thanks for your response 🙂
April 3, 2014 at 4:17 pm #180719In reply to: Translation Issue
danbp
ParticipantCould be a theme issue. For ex. a custom file in “community” or “buddypress” folder of a child theme.
Groups directory and Create a Group are used in bp-themes/bp-default/groups/create.php and index.php
Create a group is also in 4 other filesMay also be a group related plugin dependancy.
Please give your BP version, theme name and plugin list.
April 3, 2014 at 3:56 pm #180715In reply to: Translation Issue
JamRizzi Technologies
ParticipantIn the buddypress.pot file, the translations that aren’t working are between lines…
1892-1897
and between…
6149-6152
April 3, 2014 at 3:40 pm #180713In reply to: Looking for ads manager plugin to buddupress
Renato Alves
Moderator@rudik123 What do you mean by using with BuddyPress? The Ads Manager plugin work with WordPress. To include the file in some BP pages, I think you’d have to alter some templates files.
April 3, 2014 at 4:39 am #180699In reply to: Manually create activity posts
Renato Alves
ModeratorI have no idea how to do that, but just to clarify, I think what you are trying to do is exactly what @modemlooper suggested, it appears you’re trying to “change the location” from the groups activity to the user activity, maintaining the proper date, user and etc. Correct?!
If that’s the case, maybe there is a way of automatically copying, with PHP, from the group to the user activity. The user is already set, because it is not gonna change, just the location is gonna change (it’s not gonna continue in the Groups, it’s gonna to the user activity). After copying, you could delete the groups activity and deactivate the Groups Component.
I’m not aware how BuddyPress works with urls, but you would probably need to update to reflect the new location.
April 3, 2014 at 4:14 am #180697In reply to: display profile fields in member header
Renato Alves
Moderator@cdb3212 As far as I understood your problem, there are two articles that would save your life if you had a chance of looking in the Codex. These are:
Take a look at those and try it out. =)
April 3, 2014 at 4:09 am #180695In reply to: Need initial advice on custom design capabilities
Renato Alves
ModeratorHi @theatereleven,
I’d say that what you aim for is perfectly possible with BuddyPress. You could the following, just suggestions:
- Your users could register themselves;
- Just active the Extended Profile component;
- Use Extended Profiles Fields so that your users can add information when signing up or later;
- And you could customize the appearance customizing the template the way you want.
Maybe there is a better solution, but with BuddyPress you would get already built-in, profiles, profile fields, register process/page, user roles and etc.
April 3, 2014 at 2:50 am #180694In reply to: Need initial advice on custom design capabilities
theatereleven
ParticipantAnyone on this? I purchased S2 member and User Roles pro in hopes to do public profiles, but that was a waste of money. So it looks like BuddyPress is in fact the way for me to go, but I don’t want to dive in unless profile pages can be heavily customized, down to the last pixel.
Thanks for any help.
April 2, 2014 at 10:45 pm #180687In reply to: [Resolved] Username vs display name
shanebp
ModeratorHe means you can over-ride a BP template by following the directions here
April 2, 2014 at 8:52 pm #180682In reply to: Ajax Activity
Renato Alves
ModeratorEnglish Answer – @stuffgrid As I myself told you in the BuddyPress Brasil Facebook group, it is not a BP problem. The problem lies in the ajax, js conflicts that your theme is using. Besides, when I looked at it, it seems it lacked some customizations in some BP files.
Resposta em Português – @stuffgrid Como eu mesmo te falei no grupo do Facebook do BuddyPress Brasil. O problema não é no BP, e sim está em um conflito do AJAX e do JS que seu tema está injetando. Eu também vi que algumas páginas faltava configurações/alterações, assim estava falhando quando você carregava mais atividades, por exemplo.
April 2, 2014 at 8:47 pm #180681In reply to: Registration page – how to get SSL working?
Renato Alves
ModeratorAs your first question, this is not a BuddyPress problem, you should check out the WP Doc for more information on how to do this. https://codex.wordpress.org/Administration_Over_SSL
For your second question, I believe it is redirecting from the WP login into the BP login page.
April 2, 2014 at 8:34 pm #180678In reply to: How to add favorite button to posts?
Renato Alves
ModeratorI don’t think this is related to BuddyPress. Check out some possible plugins here: https://wordpress.org/search/favourite+posts
-
AuthorSearch Results