Search Results for 'wordpress'
-
AuthorSearch Results
-
March 13, 2018 at 4:37 pm #271310
In reply to: How to Insert @username in activity comment replies.
giulietta
ParticipantThank you very much for your reply!!!
What I want to do is to echo in the reply comment form textarea “@username” (where username is the username author of the comment I’m going to reply.Add the “@username” for activity update relpy is very easy. I edited the file /plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/entry.php
from:
<textarea id=”ac-input-<?php bp_activity_id(); ?>” class=”ac-input bp-suggestions” name=”ac_input_<?php bp_activity_id(); ?>”></textarea>to:
<?php $userid” = ‘@’ . bp_core_get_username(bp_get_activity_user_id()); ?><textarea id=”ac-input-<?php bp_activity_id(); ?>” class=”ac-input bp-suggestions” name=”ac_input_<?php bp_activity_id(); ?>”> <?php echo $userid; ?> </textarea>
and it work!
On the contrary, when I reply to an activity comment (acomment) I can get the author username by bp_core_get_username(bp_get_activity_comment_user_id()); editing the file: /plugins/buddypress/bp-templates/bp-legacy/buddypress/activity/comment.php
but the button “reply” created by comment.php open the form created by edit.php and within this file I can get only the activity root user_id and I can’t get the comment user_id ๐
I tried also with the GLOBALS variables but noway ๐So what I need is to pass bp_core_get_username(bp_get_activity_comment_user_id()) executed by comment.php to the file edit.php
If this is not possible or to difficult to perform there is a second possibility.
When I reply to a comment the post form is opened attached to the right comment. So it is enought to get the username from the <div class=”acomment-meta”> in the comment area itself. I tried to do that by a little js inside entry.php but I’m too basic to do that ๐
If you need I can give you credentials to work on my test site. But it is a normal wordpress site with only buddypress plugin and the Minimal theme.
I hope to have been more clear now. If not, I can do another try ๐ but I think that images are not useful for a better explanation of the problem ๐
It would be fantastic if you could help me as I can’t solve it by myself ๐
Kisses!
GiulyMarch 13, 2018 at 2:52 pm #271305In reply to: version 2.9.5 for bug fixes!?
David Cavins
KeymasterHello, not sure about the timing of a 2.9.4 release. Also unaware of a bug with the number of friends not matching the indicator bubble. If you can verify that there is a bug, please open a trac ticket: https://buddypress.trac.wordpress.org/
Thanks!
March 13, 2018 at 8:52 am #271294In reply to: Edit fields in members directory
andreasnordengen
ParticipantWell, I asked the developer behind the theme Iยดm using and got this code:
function sq7_extra_fields_members_directory() { $location = bp_get_member_profile_data('field=Location'); $specialization = bp_get_member_profile_data('field=Specialization'); if ($specialization || $location) { echo '<div class="mdetcenter">'. 'Location : ' . $location . '</div>'; echo '<div class="mdetcenter">'. 'Specialization : ' . $specialization . '</div>'; } } add_action('bp_directory_members_item', 'sq7_extra_fields_members_directory');But, when I add the code and update, I get this message from WordPress:
Could not communicate back with the site to check for faulty errors, so the PHP change was reset. You must upload your change to the PHP file in another way, for example, with SFTP.Could be related to my PHP version…
March 11, 2018 at 6:35 pm #271264In reply to: can’t reinstall buddypress after uninstalling it
Venutius
ModeratorYes, I’m wondering if it’s getting deleted properly.
Another thing, last time I had something like this I’d hit a limit from my hosting provider, but it was affecting all plugins I was trying to install. Still it’s something to look at since ovbiously WordPress is struggling to create the file.
March 10, 2018 at 11:44 am #271253In reply to: Create Group not showing up
Venutius
ModeratorTake a look at this Trac ticket https://buddypress.trac.wordpress.org/ticket/7673
March 10, 2018 at 10:25 am #271251In reply to: How to edit Registration Denied email?
Venutius
ModeratorThe registration denied email I think is actually a WordPress email that is also used by BuddyPress. There’s a premium plugin that allows you to edit these system emails, but I’ve not been able to find if it allows you to edit the registration denied email, yu’d need to ask the plugin developers. the plugin is All in One Email for WordPress. That might be able to do what you are looking for.
March 9, 2018 at 10:43 pm #271247In reply to: How to make members page blur
Henry Wright
ModeratorYou could filter body_class and add a logged-in and logged-out class. Then style in your child theme’s style.css document. For example:
body.logged-out { // Do some blurring }March 9, 2018 at 8:46 pm #271246In reply to: BP Multiline Text Box Alignment
rexormunde
ParticipantWow I’m late on getting back to this. The issue is still ongoing. Nothing aligns in the multiline text box element in user profiles. I noticed that when centering in the “Visual” tab, and then going to the “Text” tab, I can see the HTML code that would center the text. After saving, that HTML code vanishes. It doesn’t seem to get saved or applied to the page, like it’s being stripped away.
WordPress: 4.9.4
BuddyPress: 2.9.3
Site: newenglandfurs.org
Theme(s) tested: Avant (Primary)
Example: http://newenglandfurs.org/members/rexormunde/profile/March 8, 2018 at 12:36 am #271223In reply to: Impossible to upload photos (profile and cover)
phonoptikj
ParticipantHi everyone ๐
Iยดm having the same issue, but only with the profile and cover images. The rest of the images are uploading fine (PHP its running GD already). The thing is that my site is running WordPress with BuddyPress on Heroku. All the uploaded images go to the s3 amazon bucket, except for the profile image and cover image, which, once they are uploaded, go to the Heroku ephemeral file system, so after a little while they disappear (as this is their policy on free accounts, they restart the “dyno” as they call it, which means the server). The difference you can tell on the permalink generated for every image, for instance, If I upload an image normally from the media library or even from a plugin which let me upload images and media from my BuddyPress profile, they get this kind of permalink: “http://s3-sa-east-1.amazonaws.com/artlikeall1/content/uploads/2018/03/07212557/my-image.jpg”, now when I try to change my cover and profile image from my BuddyPress profile view, the images get uploaded with this kind of permalink: “http://mysite.herokuapp.com/content/uploads/avatars/61/myprofilepic.jpg”, and after a while it disappears.So please anyone could shed some light on this? it seems that there is no info about running BuddyPress with Heroku. Thanks!!
March 6, 2018 at 9:38 pm #271206In reply to: Can I have 2 sets of Groups?
Venutius
ModeratorOne option could be to use group hierarchy to nest the city groups within countries. Another option is to take a look at the group types plugins that will allow you to have different categories for groups in effect, you could then add cope to change how WordPress/BuddyPress behaves with those groups.
March 6, 2018 at 12:25 am #271197In reply to: I want to delete Activity Page.
Arize Nnonyelu
ParticipantSo after making it private, it started showing me that error you said it would show if I deleted it.
The following active BuddyPress Components do not have associated WordPress Pages: Activity Streams. RepairMarch 5, 2018 at 3:24 pm #271187March 3, 2018 at 2:47 pm #271161In reply to: Buttons Turn Grey when Hovering
David Cavins
KeymasterHi, it looks like this rule is what’s active when hovering on your registration form, so I suspect it’s what you’ll need to override:
https://buddypress.trac.wordpress.org/browser/tags/2.9.3/src/bp-templates/bp-legacy/css/buddypress.css#L956March 3, 2018 at 12:37 am #271158In reply to: Buttons Turn Grey when Hovering
orribu
ParticipantAh, forgot to answer these:
- WordPress ver. 4.9.4
- BuddyPress ver. 2.9.3
- Installation: Runs in main directory (public_html)
- Upgraded from WordPress ver. — I’m going to guess 4.9.3?
- Yep, WP was working fine. It still is, I just recovered it from a pretty bad PHP error. (disclaimer, I have NO idea how to PHP)
- Upgraded from bbPress 2.9.2
- Other Plugins: Akismet 4.0.3; bbpress 2.5.14; Blackhole for Bad Bots 1.8; Comment Mention Notifications 1.0.0; Custom Sidebars 3.1.2; Fancybox for WordPress 3.0.13; Jetpack 5.8; MailChimp 4.1.15; Maintenance 3.6.1; SiteOrigin Page Builder 2.6.2; Patreon for WordPress 2.6.2; Responsive Menu 3.1.13; Shortcodes Ultimate 5.0.3; SiteOrigin CSS 1.1.5; SiteOrigin Widgets Bundle 1.11.4; UpdraftPlus – Backup/Restore 1.14.4; User Role Editor 4.4; WooCommerce 3.3.3; WooCommerce Services 1.11.0; WordPoints 2.4.1; WP Super Cache 1.5.9; Yoast SEO 6.3.1
- Parent Theme: Rose
- I’ve uploaded the Rose theme and made a child theme. I’ve also altered wp-config.php to allow Multisite functionality.
- bbp-custom.php– I made one now! There are no functions.
- Hosted through BlueHost.
- Server OS: More than likely Linux (Apache).
Recent errors:
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 1 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162
[03-Mar-2018 00:25:08 UTC] PHP Warning: Missing argument 2 for WP_Widget::__construct(), called in /home1/database/public_html/wp-includes/class-wp-widget-factory.php on line 100 and defined in /home1/database/public_html/wp-includes/class-wp-widget.php on line 162March 1, 2018 at 4:47 pm #271137Henry Wright
Moderator“bp_loaded” will also get the job done. You just need to find a hook that’s appropriate. A function needs to be defined before you call it so it’s always worth keeping track of the load order in both WordPress and BuddyPress.
Feel free to edit the documentation if you find an error. BuddyPress welcomes contributions
February 28, 2018 at 5:21 pm #271104In reply to: Cannot update cover image
Nik
ParticipantI can’t personally answer that as it’s obviously down to the Buddypress development team(!) but as mentioned above, the fix which can be found here – https://buddypress.trac.wordpress.org/attachment/ticket/7674/7674.01.patch works perfectly well in the meantime…
February 28, 2018 at 4:46 pm #271101In reply to: New user Activation email is not received
David Cavins
KeymasterHi there-
There’s a known issue with outlook/hotmail emails being rejected:
https://buddypress.trac.wordpress.org/ticket/7697#comment:7A fix is forthcoming (but there’s no timetable for that update).
February 28, 2018 at 4:43 pm #271100In reply to: deny access to subscriber profile
David Cavins
KeymasterHa, that’s because there was an extra semi-colon. Try this:
add_action( 'wp', function() { if ( bp_is_profile() ) { $user_meta = get_userdata( bp_displayed_user_id() ); if ( in_array( 'subscriber', $user_meta->roles ) ) { wp_redirect( home_url() ); exit; } } }, 1 );What I was saying about roles is that WordPress handles roles. BuddyPress doesn’t create or really use them that much.
February 28, 2018 at 1:22 pm #271095Venutius
ModeratorI think the first thing I would try would be to disable the plugin that is creating the member types and see if that works. You can do that by accessing your wordpress file structure using FTP and then changing the name of the member type plugin directory.
February 27, 2018 at 11:07 am #271073In reply to: Buddypress.pot corrupt
Varun Dubey
Participant@oliverrealize You can download from https://plugins.svn.wordpress.org/buddypress/trunk/buddypress.pot
February 27, 2018 at 7:42 am #271067In reply to: New user login not working
Varun Dubey
ParticipantHi @jonowen2k, Seems like you have enabled jetpack single sign-on and it’s added a login with WordPress.com, you can skip it and login with regular WordPress login page. It’s that’s still confusing you can disable single sign-in from jetpack settings.
February 26, 2018 at 9:37 pm #271057In reply to: deny access to subscriber profile
David Cavins
KeymasterHere’s some untested code that should prevent anyone from visiting the profile of a subscriber user. Roles are not a BP construct, so you’ve got to look to WordPress for that info.
add_action( 'wp', function() { if ( bp_is_profile() ) { $user_meta = get_userdata( bp_displayed_user_id() ); if ( in_array( 'subscriber', $user_meta->roles; ) ) { wp_redirect( home_url() ); exit; } } }, 1 );February 26, 2018 at 9:09 pm #271051In reply to: Group user list doesn’t work correctly
David Cavins
KeymasterHere’s another report of this with a suggested fix: https://buddypress.trac.wordpress.org/ticket/7704
February 26, 2018 at 9:03 pm #271049In reply to: User Tag in Profile
David Cavins
KeymasterMaybe you could use friend relationships for this. If the “friend” terminology doesn’t make sense for your use, there is a plugin that creates one-way relationships called “follows” https://wordpress.org/plugins/buddypress-followers/
February 26, 2018 at 9:01 pm #271048In reply to: Allow Moderators to see private messages?
David Cavins
KeymasterHi James, I guess it depends on what a moderator is. (I can only think of Group Mods in BP, not sure what would count as a site-wide moderator.)
The ability to see private messages is controlled by the check
bp_current_user_can( 'bp_moderate' )which is true for site or network admins.You could probably filter that value for some other role, like editor, but it would be a bit complicated to make it work only for private messages. Here’s more information about working with the WP capabilities system: http://mannieschumpert.com/blog/wordpress-capabilities-magic-with-map_meta_cap/
-
AuthorSearch Results