Search Results for 'wordpress'
-
AuthorSearch Results
-
September 29, 2014 at 1:36 pm #202514
In 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
September 23, 2014 at 8:46 pm #200770r-a-y
KeymasterThanks for reporting, @qobalt.
Looking into it.
Update
This fix should work:
https://buddypress.trac.wordpress.org/attachment/ticket/5900/5900.01.patchSeptember 23, 2014 at 8:01 pm #200759In reply to: BP 2.1 – Javascript issues
r-a-y
Keymaster@androidforlife46 – I split your reply from the main 2.1 thread because your issues should have been placed in a new topic.
As for your issue, I’m guessing you are using a bp-default deriviative for your theme. There was an issue with javascript breaking on these themes.
For an interim fix, see:
https://buddypress.trac.wordpress.org/attachment/ticket/5889/5889.01.patchIf you’re using a bp-default theme, you should use this fix instead:
https://github.com/buddypress/BP-Default/commit/619efe8527847266c961fa43775eade42c7ff70dSeptember 23, 2014 at 8:58 am #200324In reply to: 2.1 Bugs – Activity
Cartographer
ParticipantHi there,
I face the same problem.
Buddypres: 2.1
Wordpress: 4.0
Theme: TwentyFourteenSeptember 22, 2014 at 7:33 pm #199807cwjordan
Participant@r-a-y Thanks! You are right, I’m not using an object cache. That function isn’t in the WordPress codex, so I missed it. It looks very much like what I wanted, except that I’m a bit worried, because if I follow the Buddypress logic correctly, Buddypress gets the data, puts it into the cache, and then reads it from the cache to give it to the caller. Hope I misread that or something. Anyway I’ll give it a try when I get a chance and let you know. Otherwise I have a workaround, just pull the old version of the function into the plugin I’m using and use that. Just a workaround though.
September 22, 2014 at 6:54 pm #199803In reply to: Can't create Buddypress child theme
r-a-y
KeymasterAs of BuddyPress 1.7, you no longer need to make a child theme of bp-default to make your changes.
Follow this guide:
This is an example of customizing the Twenty Twelve theme:
September 22, 2014 at 2:15 pm #199796In reply to: Create a group
shanebp
ModeratorSeptember 22, 2014 at 1:02 pm #199789In reply to: Issue with w3 Total Cache
danbp
ParticipantThank you for reporting this !
i opened a ticket
https://buddypress.trac.wordpress.org/ticket/5895#ticketSeptember 22, 2014 at 12:55 pm #199787In reply to: Profile Picture
danbp
Participanthttps://codex.buddypress.org/getting-started/guides/customizing-buddypress-avatars/
https://codex.buddypress.org/buddypress-components-and-features/member/https://codex.wordpress.org/Using_Gravatars
https://wordpress.org/plugins/bp-avatar-suggestions/… and many related topics on this forum.
https://buddypress.org/support/tag/avatars/September 22, 2014 at 11:07 am #199358Henry Wright
ModeratorThe core team are aware of the problem. See here for the fix:
September 22, 2014 at 8:38 am #199348In reply to: Home Activity Screen
danbp
ParticipantProblems with activity stream ?
Please read here:
Changes to bp_has_activities() queries in BP 2.1September 22, 2014 at 6:50 am #199345In reply to: Problems with BuddyPress 2.1 updated from 2.02
r-a-y
Keymaster@marcella1981 – You should read this article about activity pagination on the BP development blog:
Changes to bp_has_activities() queries in BP 2.1 -
AuthorSearch Results