Search Results for 'wordpress'
-
AuthorSearch Results
-
December 3, 2015 at 2:36 pm #247374
In reply to: Sizing specific avatar img
Ynasr
ParticipantMany thanks Henry!
Yes that is what would be needed, but how can i assign “.some-wrapper-class” to the element i am trying to resize ? I am still a newbie with wordpress and buddypress … i have looked all over the net and couldnt find anything helpful.
Best,
YvanDecember 3, 2015 at 1:05 pm #247373In reply to: Private Site????
danbp
ParticipantHi,
have you found https://wordpress.org/plugins/restricted-site-access/ ?
In addition to this plugin, @imath coded an add-on which can be found here:
https://github.com/imath/bp-restricted-community/December 3, 2015 at 12:05 am #247347In reply to: Where is the group directory?
balmainboy
ParticipantHi Henry,
Yes i have done that, but there’s still no option for users to join groups, nor anything other than very basic styling.

Whereas the documentaiton shows a ‘group directory’ which looks like this

I have no group avatars, join now buttons or anything like that. Do we actually have to create all those basic features manually every time? I would have thought it should be automatic…?
Thanks
December 2, 2015 at 7:05 pm #247343shanebp
ModeratorPlease use the
codewhen sharing code.current_user_xxx refers to the logged in user – not the displayed user.
Use
is_super_admin()to determine if the current user is a site admin.
https://codex.wordpress.org/Function_Reference/is_super_admin$displayed_user_level = some_s2_function( bp_displayed_user_id() ); if( is_super_admin() && $displayed_user_level == 'some level' ) )some_s2_functionis whatever s2 function returns the member level based on a user_id.December 2, 2015 at 5:47 pm #247341In reply to: Buddypress profile photo / cover image fails
Bas van der Togt
ParticipantThis is everything what is written to the log after i tried to upload an image:
[02-Dec-2015 17:45:42 UTC] PHP Notice: bp_setup_current_user was called <strong>incorrectly</strong>. The current user is being initialized without using $wp->init(). Please see <a href="https://codex.wordpress.org/Debugging_in_WordPress">Debugging in WordPress</a> for more information. (This message was added in version 1.7.) in /home/***/domains/***/public_html/wp-includes/functions.php on line 3622 [02-Dec-2015 17:45:43 UTC] PHP Fatal error: Cannot use object of type WP_Error as array in /home/***/domains/***/public_html/wp-content/plugins/buddypress/bp-core/bp-core-avatars.php on line 874December 1, 2015 at 2:29 am #247314In reply to: Add profile fields groups to registration
@mercime
Participant>> I know that Base group are shown in the Registration Form
@shmk thanks for confirming, just had to make sure you did. There’s a trac ticket which needs some more work done to get the feature you want at https://buddypress.trac.wordpress.org/ticket/6347November 30, 2015 at 10:34 pm #247310In reply to: Changing Page Titles On The Page
djsteveb
Participant@darkdog
This post may help you with this: https://buddypress.org/support/topic/swap-out-the-buddypress-page-title-with-the-wordpress-page-tile/I have no idea if BP is going to make this easier in the future to change these things dashboard backend or not – I have made some posts about this a time or two around here – but bp pages, their displayed on screen titled, and the meta titles have been a mess for a long time. Unless you know php and are willing to dig deep through documentation that is disorganized and possible outdated, there is no easy way of handling these issues.
November 30, 2015 at 4:48 pm #247300In reply to: organize users into groups
Henry Wright
ModeratorThis isn’t currently possible. Your best bet is to try searching for a plugin.
November 29, 2015 at 10:36 pm #247273In reply to: Changing avatar images and profile links
jimme595
ParticipantSo i’ve had some success trying to change the profile links with this code:
function _bp_core_get_user_domain($domain) { $url = get_home_url(); $user_id = bp_get_member_user_id(); if (empty($user_id)) { $user_id = bp_get_activity_user_id(); } if (empty($user_id)) { //$user_id = bp_displayed_user_id(); } $user_info = get_userdata($user_id); $link = $user_info->display_name; $domain = '' . $url . '/profiles/' . $link . ''; return $domain; } add_filter('bp_core_get_user_domain', '_bp_core_get_user_domain', 10, 4); apply_filters( 'bp_get_activity_user_link', '_bp_core_get_user_domain', 15, 1);This seems to work on every profile link except the one in the activity header section. This link is being changed but just to /profiles/. The display name is not being added to the end… so looking at my code this means i’m not retrieving the user id in the activity. Strangely enough though the user avatar next to the post has the correct link applied to it with the above filter! Any ideas?
My other option is to use the buddypress member profile location but replace it with my profile templates. I tried to implement this by creaing a members/single/home.php in my wordpress custom theme folder… but the profile loads inside another page, i get a page within a page type effect with the username above the inner page… not sure what is going on there? If anyone can help with either of these solutions i’d really appreciate it!
James
November 29, 2015 at 10:40 am #247253In reply to: Extra White Space In Groups
dwsowash
ParticipantI have the exact same problem.

Newest wordpress Newest Buddypress using 2014 theme.
November 28, 2015 at 7:42 pm #247243In reply to: Problem with the send button in Buddypress comment
r-a-y
KeymasterWhen you click inside the textarea box, the textarea should expand and show the submit button.
Does that work?
If not, it might be related to the Sahira theme. Since Sahira is a premium theme, we do not have access to it. What happens when you switch to one of the WordPress Twenty themes?
Do you have the BuddyPress Activity Privacy plugin activated? If so, read this:
https://buddypress.org/support/topic/buddypress-2-4-0-and-buddypress-activity-privacy/#post-246630November 28, 2015 at 6:39 pm #247242tstrickland415
ParticipantSorry for keeping you guys in the dark but what I’ve discovered is that BP’s implementation of member types is pretty underwhelming since it’s only an xprofile field. In regards to my original use case, I discovered I was better off defining custom user roles (AKA member types) and adding appropriate permissions. This can easily be achieved with a few simple lines of code in your functions.php or your custom plugin. If coding isn’t your thing then there are a bunch of freemium plugins available for you to use. Why the Buddypress team elected not to leverage WordPress’ built in User Roles for this feature is beyond me, but if anybody is still looking for an answer to this then I highly recommend checking out the WordPress Codex on User Roles and Capabilities. Hope this helps!
November 27, 2015 at 4:43 pm #247229In reply to: Can’t upload Group Avatars
Pietro117
ParticipantHi, we’re having exactly the same problem with not being able to upload avatar photos, and we have the repeated path in the error message, e.g.: Upload Failed! Error was: The uploaded file could not be moved to wp-content/uploads/avatars/9/avatars/9.
We are on a fresh (< 1 week old) 1-click WordPress installation, with BuddyPress, bbPress and a few other plugins.
Did you have any joy with resolving this issue please?
Many thanks
PeterNovember 27, 2015 at 3:08 pm #247228shanebp
ModeratorYou can use multiple filters with commas:
&action=activity_update,new_blog_postSee the comments here for other info:
Using bp_parse_args() to filter BuddyPress template loopsNovember 26, 2015 at 6:23 pm #247208In reply to: Buddypress profile photo / cover image fails
r-a-y
KeymasterThanks for the report.
Can you do three things?
1) Set
WP_DEBUGto true inwp-config.php:
https://codex.wordpress.org/WP_DEBUG2) Open up
/bp-core/bp-core-attachments.phpand look for the following lines:// Resize the image so that it fit with the cover image dimensions $cover_image = $cover_image_class->fit( $args['file'], $dimensions );Right after that line, add:
_doing_it_wrong( 'bp_attachments_cover_image_generate_file', print_r( $cover_image, true ), '2.4.0' );3) Go to the “Change Cover Photo” page and try reuploading a photo.
Next, go to
/wp-content/debug.log, copy the entirebp_attachments_cover_image_generate_file was called incorrectlydebug message and paste it here.Going to ping @imath as well.
November 26, 2015 at 6:03 pm #247207In reply to: Problem with language/translate
r-a-y
KeymasterTry downloading the following:
- https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/de/default/export-translations
- https://translate.wordpress.org/projects/wp-plugins/buddypress/stable/de/default/export-translations?format=mo
Rename the files to
buddypress-de_DE.poandbuddypress-de-DE.morespectively.Then, move the files to
/wp-content/languages/plugins/.Since the translation is not 100% complete, you might see some English strings.
Let me know if that works for you.
November 25, 2015 at 7:44 pm #247191In reply to: Problem with language/translate
r-a-y
KeymasterI think the German translation is not fully 100% translated, which is preventing WordPress from fetching the latest German translation for BuddyPress.
If you are able to help translate the remaining strings, please visit:
https://translate.wordpress.org/locale/de/default/wp-plugins/buddypressAlso, read the following guide to find out how to contribute towards the translation:
November 25, 2015 at 7:29 pm #247190In reply to: Dynamically Display HTML depending on User
cameck
ParticipantYou’re right! I didn’t realize it at first…. I appreciate all the help you’ve given so far. I can continue this on the S2 Member Forum if you like, you’re just doing such an awesome job though :D.
Regarding the
$s2member_level1, I was just pulling that out of my butt and it was only thing I put there that didn’t break the pages.But if you’re curious, this is what I have now:
<?php if(is_user_logged_in() && 4 == S2MEMBER_CURRENT_USER_ACCESS_LEVEL){ ?> <div class="paybox"> <h3>Make Payment with PayPal®</h3> <?php $uemail = getDisplayedUserEmail(); ?> <?php echo do_shortcode('[gravityforms id="7" field_values="recip-email=' . $uemail . '"]'); ?> </div><!-- .paybox --> <?php } ?>This is working for the most part, but oddly enough there are a few more employers that are still showing the paypal button. So, I started using this:
<?php echo S2MEMBER_CURRENT_USER_ACCESS_LEVEL; ?>
to see the output and most employers are the number 2, but a few are listed as 4 – which creates the problem. Ideally, I could just do it like in the previous code I had put up$type === $s2member_level1as that’s how they are listed in the backend of WordPress.November 25, 2015 at 6:57 pm #247189In reply to: php fatal error $message->send()
r-a-y
Keymaster@garprogram – This fatal error is due to some changes we made in BP v2.4.0 to give users proper feedback messages when a private message fails to send.
It looks like we might have to add some additional hooks so plugin devs can set the error message.
In the meantime, here are two things I would recommend:
1. Use the
'bp_messages_recipients'filter instead of using the'messages_message_before_save'action:
https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-messages/bp-messages-actions.php?marks=77-84#L772. As Henry mentioned, if you have to unset one recipient, you should unset all of the recipients to avoid the message from sending. The default error message will probably not suit your needs, so you might have to filter the error message with the
'gettext'filter temporarily until we introduce better error handling for plugin developers.November 25, 2015 at 2:17 pm #247176lifeisgood134
ParticipantHi,
That’s what I did, but it is still showing the error “Vendor registration is currently closed. if you have an existing account, you may log in and apply to become a vendor”. How do I fix this? I think the code is not completely removed from WordPress even when I delete BuddyPress in Plugins.
November 25, 2015 at 11:55 am #247168Henry Wright
ModeratorHow do I remove buddyPress completely from my wordpress and restore everything as pre-installation of BuddyPress?
You can just deactivate the plugin and remove the “Register” and “Activate” pages you created at Dashboard > Pages.
November 25, 2015 at 9:58 am #247167lifeisgood134
ParticipantHi, Any update on this? 🙁
How do I remove buddyPress completely from my wordpress and restore everything as pre-installation of BuddyPress?
November 25, 2015 at 9:13 am #247166In reply to: Cannot activate Buddypress
doncobb
ParticipantI posted three times yesterday, and none of my posts showed up in the forum. Today an Administrator contacted me and said my posts got caught up in the cache. But then, someone deleted two of my posts and changed the header of the only existing post to “How to install WordPress”, which isn’t at ALL what my post said. It said “How to install Buddypress”.
Now, I’m reposting again because I cannot change the header BACK, on my own post, and suddenly it activates correctly. Now, I can’t delete THIS post for some reason. No “Delete” link anywhere, so it’s a useless, resolved post that I don’t want any answers to. FYI…
November 24, 2015 at 7:50 pm #247151In reply to: Error on install and when trying to repair..??
r-a-y
KeymasterYou can ignore this message if you’re using BuddyPress on a production site.
To turn off debugging notices on production, set
WP_DEBUGto false inwp-config.php:
https://codex.wordpress.org/WP_DEBUGThis is a notice caused by a plugin that is initializing user info too early. If you want to find out which plugin is causing this, deactivate all your plugins and only activate BuddyPress. Next, activate your plugins one-by-one until you find the culprit.
November 23, 2015 at 10:02 pm #247126In reply to: No youtube preview
Venutius
ModeratorOne tip is to check if is because YouYupe are using different URL’s these days, I had an issue which I’ve still got where the old URL works fine but the new one does not, wordpress wraps the content in a link instead of previewing it.
-
AuthorSearch Results

