Search Results for 'buddypress'
-
AuthorSearch Results
-
September 17, 2013 at 3:33 am #171403
In reply to: Unable to Change My Group Avatar
@mercime
Participantedit – closing this topic – issue is resolved at https://buddypress.org/support/topic/how-to-change-group-avatar/#post-171367
September 17, 2013 at 2:26 am #171400In reply to: Activate page does nothing
@mercime
Participant@anamassien WP/BP versions? Have you tried changing to BP Default theme to see if issue persists? Have you tried deactivating plugins except BuddyPress to check for any conflicts?
Check Settings > BuddyPress > Pages if you assigned a page to Activate
September 17, 2013 at 2:23 am #171399In reply to: Error with buddypress bp-blogs line 65
@mercime
Participant@jhvaletaolcom This is mostly a server issue. Looks like you have a multisite installation where you allow users to create blog sites. Where are you hosted? There are hosting plans which limit execution time to 30 seconds only. You can increase max_execution_time in php.ini from 30 to 60 if you have access to it. Do also search for alternative ways to increase max_execution_time in your WP install or contact your host’s tech support about this issue.
Beyond that, search online for ways to optimize your WP site and consider using a cache plugin like W3TC or the simpler one WP Super Cache.
September 16, 2013 at 9:37 pm #171395In reply to: Is BuddyPress right for me?
Ben Hansen
Participantit can definitely do the items you listed out specifically.
September 16, 2013 at 5:18 pm #171384In reply to: Why are display name char amounts not limited?
modemlooper
ModeratorYou still need to use a maxlength on input for the user. If you want to block a bypass then you can filter
http://etivite.com/api-hooks/buddypress/trigger/apply_filters/xprofile_data_value_before_save/
September 16, 2013 at 5:16 pm #171383In reply to: Buddypress x-profile visibility doesn't work
sbahns
ParticipantI have this exact same issue and need to fix it ASAP. Anyone have a solution?
September 16, 2013 at 2:58 pm #171380In reply to: Plugin Dev – Group Admin Add subnav form nonce fails
dmpastuf
ParticipantI added a printout to see what nonce was failing in the wp_nonce_ays function to display what action was giving me the error; it was failing on checking “bp_group_extension_bpcivi-groupedit_edit”; it looks like its some sort of combination nonce from the extension and function. At any rate, I added the the following to the form and it is still failing; could the nonce be being deleted by buddypress before being read?
September 16, 2013 at 12:40 pm #171378In reply to: Plugin Dev – Group Admin Add subnav form nonce fails
dmpastuf
ParticipantWhen I post my custom form on a custom tab, I get a wordpress “Are you sure?” page (i.e. a wp_nonce_ays). Not so much an error as a failure (i.e. I’d expect nonce to be causing what its causing, but have no idea what field is doing so).
Here’s the code I’m using for one of the two form tabs:
add_action('bp_init', 'bpcivi_addgroupeditnav1'); function bpcivi_addgroupeditnav1() { if ( class_exists( 'BP_Group_Extension' ) ) { // Recommended, to prevent problems during upgrade or when Groups are disabled //Run to find out if a chapter global $wpdb; global $bp; $bpcivi_ck_currgroup = $bp->groups->current_group->id; if(is_numeric($bpcivi_ck_currgroup)) { //Check if the group is set $bpcivi_ck_querytext = 'SELECT * FROM <code>wp_bpcivi_groupsync</code> WHERE <code>buddypress_group</code> =' . $bpcivi_ck_currgroup; $bpcivi_ck_settinggroups = $wpdb->get_results($bpcivi_ck_querytext); } class BPCivigroupedit extends BP_Group_Extension { function __construct() { $this->name = 'Edit Chapter Info'; $this->slug = 'bpcivi-groupedit'; $this->nav_item_position = 2; $this->visibility = 'private'; $this->enable_nav_item = false; $this->enable_create_step = false; } /** * The content of the My Group Extension tab of the group admin */ function edit_screen() { if ( !bp_is_group_admin_screen( $this->slug ) ) return false; //Include Files include_once(ABSPATH . '/wp-blog-header.php'); include_once(ABSPATH . 'wp-content/plugins/civicrm/civicrm.settings.php'); include_once(ABSPATH . 'wp-content/plugins/civicrm/civicrm/CRM/Core/Config.php'); include_once(ABSPATH . 'wp-content/plugins/civicrm/civicrm/civicrm.config.php'); $config = CRM_Core_Config::singleton(); global $wpdb; global $bp; //Current Buddypress Group $bpcivi_currgroup = $bp->groups->current_group->id; //Run Query on DB $bpvivi_querytext = 'SELECT * FROM <code>wp_bpcivi_groupsync</code> WHERE <code>buddypress_group</code> =' . $bpcivi_currgroup; $bpcivisync_settinggroups = $wpdb->get_results($bpvivi_querytext); //Assign to array from first membership found - oldest set effectively $bpcivi_groupsettings = get_object_vars($bpcivisync_settinggroups[0]); //Form Reaction TODO if (isset($_POST['groupeditsubmit'])) { //Contact Update $bpcivi_groupupdateparams = array('version' => 3,'page' => 'CiviCRM','q' => 'civicrm/ajax/rest','sequential' => 1, 'id' => $bpcivi_groupsettings['orgid'], 'organization_name' => $_POST['orgname'], 'legal_name' => $_POST['legalname'], 'nick_name' =>$_POST['nickname'], ); $bpcivi_groupeditpostresult = civicrm_api('Contact', 'create', $bpcivi_groupupdateparams); //Address Update $bpcivi_groupaddressupdateparams = array('version' => 3,'page' => 'CiviCRM','q' => 'civicrm/ajax/rest','sequential' => 1, 'id' => $_POST['addressid'], 'street_address' => $_POST['street1'], 'supplemental_address_1' => $_POST['street2'], 'supplemental_address_2' => $_POST['street3'], 'city' => $_POST['city1'], 'geo_code_1' => $_POST['latitude'], 'geo_code_2' => $_POST['longitude'], 'state_province_id' => $_POST['state'], ); $bpcivi_groupaddresseditpostresult = civicrm_api('Address', 'create', $bpcivi_groupaddressupdateparams); //Website Update $bpcivi_groupwebupdateparams = array('version' => 3,'page' => 'CiviCRM','q' => 'civicrm/ajax/rest','sequential' => 1, 'id' => $_POST['webid'], 'url' => $_POST['website1'], ); $bpcivi_groupwebupdateresult = civicrm_api('Website', 'create', $bpcivi_groupwebupdateparams); /*//Diagnostics echo "Being Sent to API - Address: <pre>"; print_r($bpcivi_groupwebupdateresult); echo "<pre>";*/ } //Run Query API Against Group $bpcivi_groupeditparams = array('version' => 3,'page' => 'CiviCRM','q' => 'civicrm/ajax/rest','sequential' => 1, 'contact_id' => $bpcivi_groupsettings['orgid'],); $bpcivi_groupeditresult = civicrm_api('Contact', 'get', $bpcivi_groupeditparams); //Array of assignments $bpcivi_groupedit_orgname = $bpcivi_groupeditresult['values'][0]['organization_name']; $bpcivi_groupedit_legalname = $bpcivi_groupeditresult['values'][0]['legal_name']; $bpcivi_groupedit_nickname = $bpcivi_groupeditresult['values'][0]['nick_name']; $bpcivi_groupedit_streetaddress = $bpcivi_groupeditresult['values'][0]['street_address']; $bpcivi_groupedit_supplemental_address_1 = $bpcivi_groupeditresult['values'][0]['supplemental_address_1']; $bpcivi_groupedit_supplemental_address_2 = $bpcivi_groupeditresult['values'][0]['supplemental_address_2']; $bpcivi_groupedit_city = $bpcivi_groupeditresult['values'][0]['city']; $bpcivi_groupedit_geo_code_1 = $bpcivi_groupeditresult['values'][0]['geo_code_1']; $bpcivi_groupedit_geo_code_2 = $bpcivi_groupeditresult['values'][0]['geo_code_2']; $bpcivi_groupedit_state_province_id = $bpcivi_groupeditresult['values'][0]['state_province_id']; $bpcivi_groupedit_country_id = $bpcivi_groupeditresult['values'][0]['country_id']; //Organization Website Query $bpcivi_groupeditwebsiteparams = array('version' => 3,'page' => 'CiviCRM','q' => 'civicrm/ajax/rest','sequential' => 1, 'contact_id' => $bpcivi_groupsettings['orgid'],); $bpcivi_groupeditwebsiteresult = civicrm_api('Website', 'get', $bpcivi_groupeditwebsiteparams); $bpcivi_groupedit_website1 = $bpcivi_groupeditwebsiteresult['values'][0]['url']; //Get the states list $bpcivi_statesparams = array('version' => 3,'page' => 'CiviCRM','q' => 'civicrm/ajax/rest','name' => 'stateProvince',); $bpcivi_statesresult = civicrm_api('Constant', 'get', $bpcivi_statesparams); $bpcivi_statesresultarr = $bpcivi_statesresult['values']; $bpcivi_statesresultarrkeyd = array_values($bpcivi_statesresultarr); $bpcivi_statesresultarrkeys = array_keys($bpcivi_statesresultarr); //Get the Countries list $bpcivi_countriesparams = array('version' => 3,'page' => 'CiviCRM','q' => 'civicrm/ajax/rest','name' => 'country',); $bpcivi_countriesresult = civicrm_api('Constant', 'get', $bpcivi_countriesparams); $bpcivi_countriesresultarr = $bpcivi_countriesresult['values']; $bpcivi_countriesresultarrkeyd = array_values($bpcivi_countriesresultarr); $bpcivi_countriesresultarrkeys = array_keys($bpcivi_countriesresultarr); //Display Form echo '<div id="bpcivigroupeditform">'; echo '<form action="" method="post">'; echo '<input type="hidden" name="addressid" value="' . $bpcivi_groupeditresult['values'][0]['address_id'] . '">'; echo '<input type="hidden" name="webid" value="' . $bpcivi_groupeditwebsiteresult['values'][0]['id'] . '">'; echo '<table border=1>'; echo "<tr><td>" . "Organization Name" . "</td><td>" . '<input type="text" name="orgname" value="' .$bpcivi_groupedit_orgname . '"></td><tr>'; echo "<tr><td>" . "Legal Name" . "</td><td>" . '<input type="text" name="legalname" value="' .$bpcivi_groupedit_legalname . '"></td><tr>'; echo "<tr><td>" . "Nickname" . "</td><td>" . '<input type="text" name="nickname" value="' .$bpcivi_groupedit_nickname . '"></td><tr>'; echo "<tr><td>" . "Website" . "</td><td>" . '<input type="url" name="website1" value="' .$bpcivi_groupedit_website1 . '"></td><tr>'; echo "<tr><td>" . "Street Address" . "</td><td>" . '<input type="text" name="street1" value="' .$bpcivi_groupedit_streetaddress . '"></td><tr>'; echo "<tr><td>" . "Street Address 2" . "</td><td>" . '<input type="text" name="street2" value="' .$bpcivi_groupedit_supplemental_address_1 . '"></td><tr>'; echo "<tr><td>" . "Street Address 3" . "</td><td>" . '<input type="text" name="street3" value="' .$bpcivi_groupedit_supplemental_address_2 . '"></td><tr>'; echo "<tr><td>" . "City" . "</td><td>" . '<input type="text" name="city1" value="' .$bpcivi_groupedit_city . '"></td><tr>'; echo "<tr><td>" . "Latitude" . "</td><td>" . '<input type="text" name="latitude" value="' .$bpcivi_groupedit_geo_code_1 . '"></td><tr>'; echo "<tr><td>" . "Longitude" . "</td><td>" . '<input type="text" name="longitude" value="' .$bpcivi_groupedit_geo_code_2 . '"></td><tr>'; echo "<tr><td>" . "State" . "</td><td>" . '<select name="state">'; for ($i=0;$i<count($bpcivi_statesresultarr);$i++) { if ($bpcivi_statesresultarrkeys[$i] == $bpcivi_groupedit_state_province_id) { echo '<option value="' . $bpcivi_statesresultarrkeys[$i] . '" selected>' . $bpcivi_statesresultarrkeyd[$i] . '</option>'; } else { echo '<option value="' . $bpcivi_statesresultarrkeys[$i] . '">' . $bpcivi_statesresultarrkeyd[$i] . '</option>'; } } echo '</select></td><tr>'; //value="' .$bpcivi_groupedit_state_province_id . '" echo "<tr><td>" . "Country" . "</td><td>" . '<input type="text" name="orgname" disabled value="' .$bpcivi_countriesresultarr[$bpcivi_groupedit_country_id] . '"></td><tr>'; echo '<tr><td colspan="2">' . '<input id="bpedit_submit" type="submit" name="groupeditsubmit" value="Submit">' . '</td></tr>'; echo "</table></form>"; echo "</div>"; //Diagnostics /* echo "<br>Post: <pre>"; print_r($_POST); echo "</pre>"; echo "<br>API Call: <pre>"; print_r($bpcivi_groupeditwebsiteresult); echo "</pre>"; */ } } if(count($bpcivi_ck_settinggroups) > 0) { //Make it so that the group exension is only used for chapter bp_register_group_extension( 'BPCivigroupedit' ); } } }This code is the initial code before I started adding the nonces to see if the problem could be resolved.
September 16, 2013 at 4:37 am #171370turleybw
ParticipantThis is still a current problem. I’m unable to edit or delete my forum post on buddypress support.
September 16, 2013 at 3:47 am #171368In reply to: Plugin Dev – Group Admin Add subnav form nonce fails
dmpastuf
ParticipantI intentionally had no nonces for development purposes and then added one, though my code bit in particular dosn’t have any nonce checks.
Could I somehow be triggering a buddypress nonce check failure (why I tried adding the additional nonces)
September 16, 2013 at 3:09 am #171366In reply to: Unable to Change My Group Avatar
Eric J T
ParticipantI have the same problem. Just installed today with wp 3.6.1 and the latest buddypress and bb press, all uploaded manually (via upload zip file functionality), with WildCommunity theme, and there is no admin area for groups. In the edit group area, all you can change is the name and description, add and manage members and some settings on the right.
On top of that, when I go to the group on the front end I get “page not found”. When I created the group i did see the add avatar option but skipped it as I didn’t have the image ready, and now I can’t find a way to add one.
This is not good at all. Please help. Thanks.
September 16, 2013 at 2:59 am #171365In reply to: How to change group avatar?
Eric J T
Participantthis page
https://codex.buddypress.org/user/setting-up-a-new-installation/group-settings-and-roles/
Says there’s supposed to be a place admins can change group avatars and do other things, but the functionality listed is nowhere to be found in the installation. What’s going on with this? If a user creates a group and doesn’t use their one chance to upload a group avatar there seems to be now way to change it.
September 16, 2013 at 2:40 am #171364In reply to: Why are display name char amounts not limited?
modemlooper
ModeratorIf you don’t want to edit core files then create the same files in your theme folder with the same folder structure and those files will override BP.
copy file from:
buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php
to:
your-theme-folder/buddypress/members/single/profile/edit.php
September 16, 2013 at 2:36 am #171363In reply to: Why are display name char amounts not limited?
modemlooper
Moderatoropen file edit.php in buddypress/bp-templates/bp-legacy/buddypress/members/single/profile/edit.php
find:
<?php if ( ‘textbox’ == bp_get_the_profile_field_type() ) : ?> <label for=”<?php bp_the_profile_field_input_name(); ?>”><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘(required)’, ‘buddypress’ ); ?><?php endif; ?></label> <input type=”text” name=”<?php bp_the_profile_field_input_name(); ?>” id=”<?php bp_the_profile_field_input_name(); ?>” value=”<?php bp_the_profile_field_edit_value(); ?>” <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required=”true”<?php endif; ?>/> <?php endif; ?>change to:
<?php if ( ‘textbox’ == bp_get_the_profile_field_type() ) : ?> <label for=”<?php bp_the_profile_field_input_name(); ?>”><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( ‘(required)’, ‘buddypress’ ); ?><?php endif; ?></label> <input <?php if ( bp_get_the_profile_field_input_name() == ‘field_1′) : ?>maxlength=”10″<?php endif; ?> type=”text” name=”<?php bp_the_profile_field_input_name(); ?>” id=”<?php bp_the_profile_field_input_name(); ?>” value=”<?php bp_the_profile_field_edit_value(); ?>” <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required=”true”<?php endif; ?>/> <?php endif; ?>that will limit the profile username form field. To limit the sign up name you add maxlength to the register.php form input for username. change max length to however long you want to cut the name off at.
<input maxlength="10" type="text" name="signup_username" id="signup_username" value="<?php bp_signup_username_value(); ?>" />September 15, 2013 at 11:04 pm #171355@mercime
Participant@gearmx whether BP is installed or not, only the Site/Super Admin can delete a member (delete_users, remove_users). Group Administrators can already Kick and Ban the member from the group and can contact Site Admin to delete the users if necessary. Having said that, if you still want WP Author roles to have capability of deleting users, contact plugin author or check if your Role Scoper plugin can add the function to delete a member by anyone with Author role.
September 15, 2013 at 8:51 pm #171353In reply to: User registration on multisite
@mercime
ParticipantSeptember 15, 2013 at 8:48 pm #171352In reply to: User registration on multisite
@mercime
Participantclosing duplicate of https://buddypress.org/support/topic/user-registration-on-multisite-2/
September 15, 2013 at 8:24 pm #171350palmdoc
ParticipantSeptember 15, 2013 at 7:43 pm #171349@mercime
ParticipantIf there’s a tutorial on how to convert the default pages into buddypress ones I’d take that too.
@ptvstudios BuddyPress components are in fact inserted into the default pages (page.php) of WordPress themes and have only the basic styles so that the elements of the BP components would take on the styles set up by your theme for a more seamless integration.If the BP pages are showing as full-width, it could most probably be because the default page of your premium theme is full-width in the first place. To make all BP pages 2 columns, find your theme’s template with a 2-column layout and copy source code over to a new file named buddypress.php, save and then upload buddypress.php to your theme folder in server. If this doesn’t work out for you, please contact the premium theme author to help you set up the buddypress.php file to 2 columns. Good luck!
September 15, 2013 at 2:25 pm #171347In reply to: Sitewide Activity
rameshwor.maharjan
ParticipantMy problem is I don’t want to display user specific activities. it should list all the activities regardless of which page you are on. However I have found the solution. On members profile page it takes scope=only-me parameter by default which forces to load activities from current logged in user. Below is the completed plugin for my project which I uploaded to WordPress.
Cheers!!! and thanks for the help.
https://wordpress.org/plugins/buddypress-activity-sidebar-widget-resubmission/
September 15, 2013 at 3:22 am #171342GearMX
ParticipantIf anyone has any advice, it’s much appreciated… if I can better explain:
I want authors of groups to add/delete members to their group, but they disappear on the dashboard (when not Admin)
September 14, 2013 at 10:33 pm #171339resistoyen
ParticipantThanks you a lot, apparently i solve the problem now by changing more the style.css of the child theme.
Here’s the working code of style.css but it needs the change of buddypress.php that @mercime gave us previously. The code may not be perfect as i copyed what i found on the net + i added a code that is present in the main style.css of oxygen theme, which refers to the full-width layout.
/* Theme Name: Oxygen Child Theme Author: Self-Help WordPress User Template: oxygen */ @import url("../oxygen/style.css"); #tertiary { display: none; } #content { margin-right: 0 !important; } .bp-full-width { width: 100% !important; } .bp-full-width #content { width: 100%; } .content-wrap { float: right; width: 79.78723404255319%; /* 750 / 940 = 0.79787234042553 */ } .bp-full-width{ width: 100%; } #content { float: left; width: 62.66666666666667%; /* 470 / 750 = 0.6266666666666667 */ margin: 0 0 30px 0; } .aside { float: left; width: 17.02127659574468%; /* 160 / 940 = 0.1702127659574468 */ } #sidebar-primary { float: left; width: 100%; /* 160 / 940 = 0.1702127659574468 */ } #sidebar-secondary { float: right; width: 33.33333333333333%; /* 250 / 750 = 0.3333333333333333 */ }Thanks again @mercime !!
September 14, 2013 at 8:01 pm #171336In reply to: hub.jmonkeyengine.org – Game engine community site
Unsal Korkmaz
ParticipantErlend, i would suggest you to wait commercial release for group customization. I am preparing those content blocks to work in user profiles & buddypress groups.
For people interesting, this is an example of content block usage in bbpress replies: http://theme.firmasite.com/support/topic/firmasite-as-a-childtheme/#content_block5
Think about using this in user profiles & buddypress groups !!September 14, 2013 at 6:31 pm #171334resistoyen
ParticipantThx a lot for you help here. There is some change but it’s not working yet.
Though, this is encouraging as it have now an effect, but not the good one.Here’s the screenshots of 2 tests
The code of my style.css of child theme
/* Theme Name: Oxygen Child Theme Author: Self-Help WordPress User Template: oxygen */ @import url("../oxygen/style.css"); .bp-full-width { width: 100% !important; }The effect is different: the bar go to left just under the main menu, which is the right place where it should be ! But the bar remains too little. I got the same effect with a 940 px width, which is the normal px of the full-width of oxygene.

Then i tryed to put 1500 px, or 200% to see if the bar go longer :

I searched for like one hour or two by now on google to find the right thing & still trying. I also tryed on main theme, changing the stylesheet. Same effect.
Here’s the codes of all this documents.
buddypress.php : http://pastebin.com/xs8BUN14
Again, thanks for your help
September 14, 2013 at 6:21 pm #171333In reply to: Problem Adding New Members to a Group
mirgcire
Participant@bp-help
Thanks for the suggestions, but, those manuals did not help. They did give me lots of things to divert my attention when I should have been working on solving this issue.
I am still trying to add someone to a group.
It seems there are two ways people can become users of a site, the first is to have the admin register them with “add user” and the other way is to allow them to self register. Currently I am exploring self registration, but still haven’t figured out what role buddypress plays in the registration process.
-
AuthorSearch Results

