Search Results for 'buddypress'
-
Search Results
-
I’ve created a plugin to detect the user’s language and modify my site’s interface accordingly. The code uses several methods to determine language. The main method is to look at meta data associated with each post. I’d like to expand this functionality to the buddypress interface as well, but I’m having a very hard time of it. Here’s some code to illustrate my problem:
`
add_action( ‘bp_include’, ‘language_plugin_init’ ); # only load the plugin once buddypress is online because it uses a buddypress-specific functionfunction language_plugin_init() {add_action(‘wp’, ‘id_language’);} # if I hook earlier, I have trouble accessing the $post variable
function id_language() {
# get the page language from the post metadata. preferred method.
$GLOBALS[‘CustomInfo’] = get_post_custom();
if ($GLOBALS[‘Lang’] == ”) {$GLOBALS[‘Lang’] = $GLOBALS[‘CustomInfo’][‘Lang’][0];}# if that doesn’t work, try to get language information from buddypress userdata instead
if ($GLOBALS[‘Lang’] == ”) {
global $current_user;
get_currentuserinfo();
$user_id = $current_user->ID;
$alang = xprofile_get_field_data(“Language”, $user_id); # “Language” is a custom buddypress field I createdif ($alang == “English”) {$GLOBALS[‘Lang’] = ‘en-US’;}
else if ($alang == “Português”) {$GLOBALS[‘Lang’] = ‘pt-BR’;}
else if ($alang == “Español”) {$GLOBALS[‘Lang’] = ‘es-ES’;}
}# now look to a cookie if the above failed
if ($GLOBALS[‘Lang’] == ”) {if ($_COOKIE[‘Lang’] != ”) {$GLOBALS[‘Lang’] = $_COOKIE[‘Lang’];}}# now look at browser settings to try to discover the language
if ($GLOBALS[‘Lang’] == ”) {
$langid = substr($_SERVER[“HTTP_ACCEPT_LANGUAGE”],0,2);if ($langid == ‘en’) {$GLOBALS[‘Lang’] = ‘en-US’;}
if ($langid == ‘es’) {$GLOBALS[‘Lang’] = ‘es-ES’;}
if ($langid == ‘pt’) {$GLOBALS[‘Lang’] = ‘pt-BR’;}
}# now update the locale according to the identified language
function wpsx_redefine_locale($locale) {return str_replace(‘-‘,’_’,$GLOBALS[‘Lang’]);}
add_filter(‘locale’,’wpsx_redefine_locale’,10);load_default_textdomain(); # now that the locale has been set, this correctly changes the language for all of wordpress (admin bar)
#### HERE I WANT TO PUT CODE TO CHANGE THE BUDDYPRESS LANGUAGE ACCORDING TO THE VALUE OF $GLOBALS[‘Lang’] AS WELL!!!####
}
`Any help you could offer would be most appreciated. I’ve really bruised my brain trying to figure this out. Thanks.
I’m trying to take advantage of BuddyPress 1.7’s new theme independence to effectively create different pages and instances of the Activity Stream with different themes.
I can use HeadSpace (an options plugin) to change the theme for a specific page and one “Template” under Page Attributes is BuddyPress – Activity Directory.
I use both in conjunction (as shown above), but setting HeadSpace to use a child theme returns the BuddyPress Default Theme (but correctly returning another instance of the Activity Stream, proving that it can be done) and trying to use a normal WordPress theme (i.e. Twenty Twelve) returns an HTTP 500 error.
Is this possible?
Topic: File manager for BuddyPress
Hi
I am looking for a plugin which would be more like a Google Docs. Currently I am using BuddyPress Docs. It is good but default is a Doc file. Couldnt create a spreadsheet. Also if files can be uploaded using the same plugin it would have been great. So I started using BP Group Documents. Its not working with BP 1.7. Also this plugin doesnt support sub-folder creation or multiple file upload.
Thanks
POST UPDATE BUTTON NEVER STOPS LOOPING AND NO UPDATES ARE MADE
HOW TO DEBUG IT? WHAT TO LOOK FOR
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=Hello,
I’m using a new installed WordPress, NO plugins installed, and using the Buddypress theme.
When I’m clicking the “Post update” button to submit any update, the icon stays looping and never submits the update.
I presume it is something to do with my installation/server/NGINX/PHP-FPM settings (or permissions to access certain buddypress sub-folder??)
I’m wondering guys if you could help me understand what to look for or how to debug what it is going on while pressing the update, as the debug.log (define(‘WP_DEBUG’, true); and define(‘WP_DEBUG_LOG’, true); are set) are not showing any errors.
Hello, I installed the latest version of buddypress on my latest version of WP thats running a theme.
Everything is looking good so far but on my Register page the text is black, which is the same color as my transparent and black backgrounds.
In white font, I see, “create an account” “registration is easy…”, “account details”, “profile details”, “this field can be seen by: anyone”
I am unable to see: “Username (required)”, “Email Address (required)”, “Choose a Password (required)”, “Confirm Password (required)”, “Name (required)”
I know this is a newb question! I’m sure it’s somewhere in a .css file and have searched these forums. Thanks!!
How can I change the buddypress tab text to an image instead? For instance settings
Activity
Profile
Sites
Friends
Groups
Forums
SettingsThanks
Double buddypress boxes on page
http://img818.imageshack.us/img818/2091/themecompatibilitybug.jpgHow can I solve this problem?
Thank you for your comments.I’ve just updated the buddypress from 1.6.5 to 1.7 but I got this error message, below my header in the forum section. Did I do something wrong?
Deprecated: Assigning the return value of new by reference is deprecated in /home/xxx/wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/backpress/class.wp-taxonomy.php on line 586
Is this a feature in the later versions of BuddyPress, or is there a recent plugin that does this? No luck searching for an answer. I would think this is a standard feature of registration, no?
I’ve been using the BP Xtra Signup plugin to get a terms of agreement checkbox during registration, but it hasn’t been updated in two years and doesn’t work with newer versions of BuddyPress anymore.
Thanks in advance!