Search Results for 'wordpress'
-
AuthorSearch Results
-
October 1, 2014 at 6:58 am #203190
In reply to: [Resolved] Remove GRAVATAR completely
danbp
Participantthe link given by @drakedoc was started over 4 years. Many solutions are given in this thread, and the last one was published a year ago.
That solution works for 1.9 and above !
/* Skip the Gravatar check when using a default BP avatar */ add_filter( 'bp_core_fetch_avatar_no_grav', '__return_true' );By the way you have also to modify the global WP setting of avatars to “mystery man” or “nothing”.
Another solution to avoid gravatars slowing down a big site (at least > 500 members), is to use a specific cache plugin like Nix Gravatar Cache. Complete list here.
September 30, 2014 at 3:36 pm #202823In reply to: Activity Stream For Groups ONLY?
1a-spielwiese
ParticipantInstall BP extended settings plugin and choose option to hide activity tab on profiles.
Does this plugin still exist and work? – I couldn’t find it on wordpress.org.
September 30, 2014 at 12:13 pm #202809danbp
Participantsee here if it can help you:
https://buddypress.org/support/topic/bp-wordpress-activity-stream-excerpt-problem/#post-202047
September 30, 2014 at 12:02 pm #202808bitpath
ParticipantOK, but is there a way to just get rid of the “read more” behavior anyway? I would like to please control the length of the excerpt, and make it long enough where it is a non-issue regardless of theme. The posting and other parts of buddypress are working great with the theme I have chosen, and other than this I don’t seem to have any “theme issues” yet. I’ve found the less ajax I have on pages the less conflicts I get with different themes and plugins anyway and would rather increase the size and test getting rid of excerpt cutoffs altogether due to potential conflicts and funky interaction with other ajax components. For this implementation, I think it would be much better to limit the size of posts when people make them, and not attempt to truncate them in the activity stream at all, to avoid other possible ajax interactions with something like lightbox or different themes. I’m not sure the ideal size to allow yet though. I would also like to look at limiting the size of posts but am hoping that’s easier after changing the “…” [read more] behavior. I am comfortable editing code if I have to, I’m just not sure where to yet.
These are the posts I’ve found of people trying to get rid of the “…” and [read more], or change the excerpt size and wording, but they’re old. There may be partial solutions in these threads but I’m afraid I don’t understand how to pull it all together or if they resolved it.
thank you.
Similar issue but didn’t see resolved, just replies stopped- https://buddypress.org/support/topic/activity-stream-read-moreview-link-missing/
https://wordpress.org/support/topic/vexatious-read-more-linkslack-thereof/
https://buddypress.org/support/topic/need-help-with-activity-stream/
September 30, 2014 at 6:39 am #202796In reply to: Customizing BuddyPress 2.1
OurWebMedia
ParticipantHello,
I tried installing the “bp-theme-pack” plugin from an old backup we had since it’s no longer available on WordPress.org and didn’t seem to make a difference. However, I have (since posting this) made some progress. I guess what my biggest challenge is, so many things have changed since my last using BP.
I may post back with some questions but right now I’ve finally made some progress.
Thank you for your reply.
September 29, 2014 at 9:22 pm #202776In reply to: Using wp_dequeue_script for BP js
r-a-y
KeymasterThe following functions register the scripts that BP uses.
bp_core_get_js_dependencies():
https://buddypress.trac.wordpress.org/browser/tags/2.1/src/bp-core/bp-core-cssjs.php#L246bp_core_register_common_scripts():
https://buddypress.trac.wordpress.org/browser/tags/2.1/src/bp-core/bp-core-cssjs.php#L12The actual enqueuing occurs in
/buddypress/bp-templates/bp-legacy/buddypress-functions.php:
https://buddypress.trac.wordpress.org/browser/tags/2.1/src/bp-templates/bp-legacy/buddypress-functions.php#L229September 29, 2014 at 6:56 pm #202764In reply to: [Resolved] How to disable bp-legacy css
r-a-y
KeymasterDoes this mean that BP will ship with an unminified version of buddypress.css?
Sorry, I should clarify! BP already ships with an unminified version of buddypress.css. See
/wp-content/plugins/buddypress/bp-templates/bp-legacy/css/buddypress.css.buddypress.min.cssis loaded unless theSCRIPT_DEBUGis set totrue.Most installs will not have
SCRIPT_DEBUGset so the minified version is loaded.However, when you override the CSS in your child theme, in BP 2.1, this meant that we looked only for
/wp-content/themes/YOUR-THEME/buddypress/css/buddypress.min.css, this broke customizations for sites relying on the CSS file to be named/wp-content/themes/YOUR-THEME/buddypress/css/buddypress.css.See https://buddypress.trac.wordpress.org/ticket/5888.
—
To fix this, we are currently proposing that BP looks for CSS files on a production site in this order:
1.
/wp-content/themes/CHILD-THEME/buddypress/css/buddypress.css(this can be minified or not, your call)
2./wp-content/themes/PARENT-THEME/buddypress/css/buddypress.css(this can be minified or not, your call)
3./wp-content/plugins/buddypress/bp-templates/bp-legacy/css/buddypress.min.cssIf your child or parent theme does not have a buddypress.css file, it will fallback on the bp-legacy’s minified CSS.
Does this clarify things? Or does this further add to the confusion š
September 29, 2014 at 5:48 pm #202757r-a-y
KeymasterThis is a bug that is fixed and scheduled for v2.1.1.
In the meantime, add this interim fix to
/bp-blogs/bp-blogs-functions.php:
https://buddypress.trac.wordpress.org/attachment/ticket/5897/5897.01.patchSeptember 29, 2014 at 5:34 pm #202681In reply to: Question about Buddy press
missnishar
Participantyes,it absoulty possible with wordpress,Even for security you can also include login process with registration.
September 29, 2014 at 4:53 pm #202524In reply to: Security – Hidden groups
danbp
Participantit depends on how you use bbpress ! As standalone forum or as group forum.
If you use buddypress’s group forums, you create a hidden group which will be only seen by the members who belongs to it and nobody else.
If you use bbpress outside of BP as standalone forum, you can use Private Groups plugin.
Remember also that Everything in a BuddyPress community revolves around its members.
September 29, 2014 at 3:42 pm #202521In reply to: Can I add payment option to registration later on?
bp-help
Participant@kris35
Have you tried:
https://wordpress.org/plugins/s2member/
?September 29, 2014 at 1:36 pm #202514In reply to: Make a AJAX button to call a function
shanebp
ModeratorThere are lots of examples re using ajax and WP via google.
Here’s two:
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_ajax_(action)
http://www.smashingmagazine.com/2011/10/18/how-to-use-ajax-in-wordpress/September 28, 2014 at 9:25 pm #202286In reply to: Seeking guidance on building multisided directory
Henry Wright
ModeratorHi @dogguyjosh
You could certainly achieve something like this with WordPress and BuddyPress (and maybe one or two more plugins). Try searching the WordPress Plugin Directory for membership plugins and try some out on a test install to see which work best for you.
Regarding Geolocation, I’ve used Geo Mashup and can recommend it. That said, I haven’t tried it with BuddyPress but I have found the developer usually responds to support questions if anything is needed to be asked. See their Google Group
September 26, 2014 at 5:32 pm #201180In reply to: Heartbeat API and the "Load Newest" function
Henry Wright
ModeratorHi @namrons
This will most likely need a Trac ticket. Feel free to create one here:
September 26, 2014 at 2:04 pm #2011511a-spielwiese
ParticipantFollow-up:
7th:
Capability Manager Enhanced to define custom user roles, if youāre not satisfied with the default wordpress roles (subscriber, contributor,ā¦).
The first step is to create your user roleshttps://buddypress.org/support/topic/resolved-different-profile-types-and-different-user-roles/
As ready implied there: I did this – and it works so far.
8th:
Create a xprofile field (selectbox) with the title āUser Roleā and name the options āBand Roleā and āFan Roleā ā in my case. You can call them whatever you want. Place this field in the ābaseā profile group, otherwise it wonāt be shown during registration. Also make the field ārequiredā. In my case the user canāt decide, if the visibility of the field can be changed.
I did it already, when I installed and activated ‘BP Profile Search’-plugin – and it works.
However, to choosed a dropdown menu and the categories ‘team’ and ‘fan’.
9th:
I modified:
?php function custom_bp_core_signup_user($user_id) { $user_role = strtolower(xprofile_get_field_data('User Role', $user_id)); switch($user_role) { case "Band Role": $new_role = 'band'; break; case "Fan Role": $new_role = 'fan'; break; } wp_update_user(array( 'ID' => $user_id, 'role' => $new_role )); } add_action( 'bp_core_signup_user', 'custom_bp_core_signup_user', 10, 1);into:
function custom_bp_core_signup_user($user_id) { $user_role = strtolower(xprofile_get_field_data('Mitglieder-Kategorie (Team oder Fan?)', $user_id)); switch($user_role) { case "Team": $new_role = team'; break; case "Fan": $new_role = 'fan'; break; } wp_update_user(array( 'ID' => $user_id, 'role' => $new_role )); } add_action( 'bp_core_signup_user', 'custom_bp_core_signup_user', 10, 1);(I omitted
<?php, because I created not a new bp-costum.php, rather inserted the code into my yet existing bp-costum.php. I inserted the modified code above the line?>.)I did not understand, which effect this insertion should have – but, however, – as far as I see – it causes no harm.
Did anyone understood, for which purpose the above mentioned code is?
10th:
I inserted as well:
//hide the user role select field in edit-screen to prevent changes after registration add_filter("xprofile_group_fields","bpdev_filter_profile_fields_by_usertype",10,2); function bpdev_filter_profile_fields_by_usertype($fields,$group_id){ //only disable these fields on edit page if(!bp_is_profile_edit()) return $fields; //please change it with the name of fields you don't want to allow editing $field_to_remove=array("User Role"); $count=count($fields); $flds=array(); for($i=0;$i<$count;$i++){ if(in_array($fields[$i]->name,$field_to_remove)) unset($fields[$i]); else $flds[]=$fields[$i];//doh, I did not remember a way to reset the index, so creating a new array } return $flds; }into my bp-costum.php – again above the line
?>.It does not work:
— threre the user role is still changeable:
— http://1a-spielwiese.de/members/kampfsportlerinnenneuwied/profile/edit/group/1 causes an redirection error. – The redirection error disappears, when I’m not logged in as kampfsportlerinnenneuwied, rather as superadmin.
September 26, 2014 at 8:38 am #201130In reply to: [Resolved] Translation for Spanish
ivanguinea
ParticipantSorry:
This is the list of my plugins:
BackWPup
Better WordPress Minify
Breadcrumb NavXT
Buddypress
BuddyPress Registration Groups
Formulario de Contacto 7
Cookie Law Info
Gears
Hide Admin Bar From Non-admins
Hide User Profile Fields
LĆmitador de intentos de login
Nav Menu Images
Paid Memberships Pro
PMPro Check Levels
PMPro Customizations
PMPro Email Templates
PMPro Register Helper
Regenerate Thumbnails
Remove Dashboard Access
Revolution Slider
Simple Social Icons
Editor de Roles
WordPress SEO
WP-Optimize
WPBakery Visual Composer
WP Google Fonts
WP Smush.it
WP Super Cache
WP User Frontend ProMy theme is Klein (http://klein.dunhakdis.me/)
September 25, 2014 at 6:58 pm #201098In reply to: BP only for Role: Contributor and above
Henry Wright
ModeratorHi @chiefalchemist,
Should I add a new Role and have a cap (say) āemployeeā? Or remove caps from the Contributor role?
Both are completely valid approaches but perhaps creating an ’employee’ role with custom capabilities would make more sense?
Regarding the use of a membership plugin, you could go down that route, else the
current_user_can()anduser_can()functions will help if you decide to use custom code.Refs:
September 25, 2014 at 5:17 pm #201090In reply to: [Resolved] Translation for Spanish
mabellaneda
ParticipantHello,
I’m suffering a lot of issues too with the translation into Spanish, in such a way that I had to patch it several times after trying different configurations.
So! To the point. It works for me now and I explain here my current configuration:
1. I’ve downloaded the BuddyPress translation package from https://translate.wordpress.org/projects/buddypress/ and contributed with some translations (specifically for Spanish: https://translate.wordpress.org/projects/buddypress/dev/es/default)
2. Saved the .mo and .po files in /wp-content/languages/plugins as recommended by the Moderators: https://translate.wordpress.org/projects/buddypress/dev/es/default.
And configured the site in Spanish (particularly I tried to do it dinamically)3. Becuase I try to change the language dinamically according to the browser preferred language I use the xili-language plugin, which “helps” you to manage in what language you’ll display your WordPress, but I’m no sure if it is decisive for the BuddyPress translation. In this plugin there’s a configuration to mention and not enough documented. In case you use the plugn, in the tub “Settings for expert” there are rules to specify. My configuration is:
Wordress rule –> translation in local
BuddyPress rule –> no modification5. At this point the translation didn’t work correctly or I didn’t succeed in translating some strings that remained in English (like: “Members”, “Groups”, “Notifications”, “Activity” in the BuddyPress navigation menu and others). So, I edited the .po file with PoEdit and updated it with the BuddyPress catalog “buddypress.pot”:
6. I updoaded the modified .po and .mo files to the mentioned folder /wp-content/languages/plugins and didn’t change a thing. I read then in forums the different issues with translations, for example:
https://buddypress.org/support/topic/translation-fails-only-at-sitewide-activity/
https://buddypress.trac.wordpress.org/ticket/5655
https://buddypress.org/support/topic/buddypress-2-1-bp-language/
https://buddypress.trac.wordpress.org/ticket/5887
https://buddypress.org/support/topic/buddypress-2-1-known-issues/ (here there’s another workaround)7. And I added the following lines to the file functions.php of my child theme:
function igf_my_child_theme_setup() {
load_child_theme_textdomain( ‘my_child_theme’, get_stylesheet_directory() . ‘/languages’ );
load_plugin_textdomain(‘buddypress’, false, basename( dirname( __FILE__ ) ) . ‘/languages/’ );
}
add_action( ‘after_setup_theme’, ‘igf_my_child_theme_setup’ );And it begans to translate correctly! I’m sorry I really don’t understand why. Furthermore I thought that the buddypress textdomain was set by the plugin xili-language but, as I said, I’m not clever enough or it is not well documented.
I know there’s a lot of steps to do, I was really frustated with it, but if you try something like this
Anyway, as this is my first post, I have to thank to the developers for the software and the great effort, of course; it has helped me a lot too.
Regards.
September 25, 2014 at 4:11 pm #201085In reply to: [Resolved] Translation for Spanish
r-a-y
Keymaster@ivanguinea – If you recently added some new strings on translate.wordpress.org, you might need to force a translation update to see the changes.
By default, translation updates get updated when WordPress checks for new versions of plugins.
One way to force this is by installing the WP Crontrol plugin and by forcing the
'wp_update_plugins'cronjob to run. Untested, but please do try and let us know if it works.September 25, 2014 at 12:12 pm #201062shanebp
ModeratorSeptember 24, 2014 at 8:31 pm #201027In reply to: Welcome Message for Users comes from Hosting'
dasfx3
ParticipantBTW
I’m new to wordpress – how were you able to find my user name? Should I be concerned about this as a security risk?
September 24, 2014 at 8:19 pm #201022r-a-y
KeymasterThanks for reporting, @michaeltransmissions.
I’ve added a fix for this here:
https://buddypress.trac.wordpress.org/attachment/ticket/5903/5903.01.patchLet me know if this works for you.
September 24, 2014 at 5:06 pm #201004In reply to: [Resolved] Translation for Spanish
r-a-y
Keymasterivanguinea – If you look at the Spanish translation on translate.wordpress.org, there are still some strings that haven’t been translated:
https://translate.wordpress.org/projects/buddypress/dev/es/default?filters[status]=untranslatedYou can help by translating these strings. If you decide to help and are not sure how to add your contributions, let us know and we’ll point you in the right direction.
September 24, 2014 at 4:07 pm #201000In reply to: Create a social matchup network
Henry Wright
ModeratorHi @manag99
This can definitely be implemented with BuddyPress but you’ll need to use plugins and or custom code because what you need to happen doesn’t happen out-of-the-box. Try searching the WordPress Plugin Directory for individual plugins and then try them out on a test install.
September 24, 2014 at 2:09 pm #200993shanebp
ModeratorFrom what I recall, BP uses the bp_xprofile_data table to store the display name, field_id = 1, for each user.
There is a BP setting for syncing BP and WP profiles.
Some info on what that does:
https://buddypress.org/support/topic/please-help-me-understand-a-wordpressbp-feature/#post-97470Re profile edit handling code: Look at function save() in class BP_XProfile_ProfileData in bp-xprofile\bp-xprofile-classes.php
-
AuthorSearch Results