Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 19,001 through 19,025 (of 68,969 total)
  • Author
    Search Results
  • #171469
    @mercime
    Participant

    @bgt9752 Have you checked if registration works if BP is deactivated? Have you checked with hosting provider if there were any changes to your server?

    #171461
    @mercime
    Participant

    @bphelp bp_is_page() has been deprecated since BP 1.7
    Check out bp_is_members_component() and more at https://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-core/bp-core-template.php esp. line 791 downwards

    #171458
    valuser
    Participant

    Had a similar problem on a site awhile back. One advice on this forum (i think) was to ensure that the buddypress folder name was buddypress and not Buddypress. Why/How i had named the folder with a capital B is beyond me but the result of the change back to lowercase b (i believe) was that users could register.

    I have absolutely no idea why or even if there was in fact an exact cause/effect.

    and

    I very much doubt there would be many similar instances (of the capital B) but thought i’d mention it.

    #171455
    modemlooper
    Moderator

    BuddyPress already has notifications, what is the benefit of your plugin?

    #171451
    mirgcire
    Participant

    I managed to fix the “site has no members” issue by doing two things.

    First, I installed the plugin “BuddyPress Automatic Friends” and made the admin an automatic friend to anyone who registers. Then I registered a new user. Suddenly there are 3 members (as opposed to zero before). Is 3 the magic threshold? If I had registered the 2nd user before installing the plugin, I might have been able to answer this.

    Having overcome this hurtle I was able to return to my original goal of inviting someone to a group. What I discovered is painfully inefficient.

    In order for a visitor to become a member of a group the following steps must occur:

    1) The visitor must register (no complaint here)
    2) The new user must be a friend of the group owner (a plugin is necessary for this)
    3) The new user then requests membership
    4) The group owner sends an invitation
    5) The the new user then accepts the invitation

    Each of the steps may include a log in process as well as navigation of a less-than-intuitive user profile interface. It would take a very patient and motivated visitor to survive this process.

    It would be nice if the process looked more like:

    1) Register as a new user.
    2) Select the class you want to take.
    3) Pay your money (or submit promotion code)
    4) Gain access to the class
    5) Start participating

    Maybe there are themes and/or plugins that could help.
    Hope I don’t have to write it all myself.

    Looking forward to comments, feedback or suggestions.

    #171449

    In reply to: BPAZ

    modemlooper
    Moderator

    BuddyPress would need some core changes to make privacy work on things like individual activity items. You can get some type of privacy by blocking pages. BuddySuite has a few options for users to block certain profile pages to friends only.

    https://github.com/modemlooper/BuddySuite

    #171440
    mirgcire
    Participant

    Hooray!

    I finally created a buddypress installation where strangers can become members. It turns out that you must have “Anyone can register” enabled WHEN YOU ACTIVATE BUDDYPRESS. Just a minor detail which only took me a few days of my undivided attention to discover. Well, actually I was distracted a little my a mysql db corruption which required a complete wp re-install.

    However, even though strangers can now register, they are still not “members”. When I try to add a friend, I am told that the site has no members. My site has two users: the admin, and the stranger. But when I log in as either one, bp/wp consistently claims there are no members.

    If anyone can shed some light on how to become a “member” of my own web site I would much appreciate it. Thanks!

    #171438
    smartino53
    Participant

    Thank you for your reply. I will do as you suggest, just have been busy with other work…wanted to acknowledge your response…

    #171429
    justintyme
    Participant

    Using Networks for WordPress, does the same I believe yet for free. This still doesn’t provide a good solution since Buddypress users and Groups are not shared between network, yet are shared between sites inside the same network. And really, if I have 42 sites, I’m not going to create 31 seperate networks with the majority only consisting of one site just to have BP groups and users seperated. There are much better and easier option, as I provided in my initial post.

    As I have been told, a well oiled coder can make this in a week or less, so my question remains, why hasn’t anyone done this already?

    #171426
    justintyme
    Participant

    Sure, I agree with you on some of the points you make, and yes I also understand very well that most contributors do it without earning a penny from it while doing it in their free time. That is very applaudable. But there’s fact remaining that when you search Google for forum threads regarding this exact (and directly related) issue(s) you will find a whole bunch of people who are stuck with the same thing. While (on WP and BP forums not any of the BP team members seems to take it serious or even explains why it is not being worked on at this moment. In this case, as for the few dozens of discussions I’ve read, not one good answer from any of the BP team members has been given. And that is very sad!

    I personally believe that such a feature would be something that can be expected as being quite essential for a product as BuddyPress. Especially since so many people using BP also run a WP network or even WP Multi Networks.

    And again, if BuddyPress would have a premium version which would have this feature, or even a seperate single site BP and paid network BP, well I wouldn’t mind to pay $50 for it. As long as the product does what it says. And at present, in a few instances, that is still not the case.

    #171420
    Carco
    Participant

    function bp_like_check_installed() {
    global $wpdb;

    if ( !is_site_admin() )
    return false;

    if ( !get_site_option( ‘bp_like_settings’ ) || get_site_option( ‘bp-like-db-version’ ) )
    bp_like_install();

    if ( get_site_option( ‘bp_like_db_version’ ) < BP_LIKE_DB_VERSION )
    bp_like_install();
    }
    add_action( ‘admin_menu’, ‘bp_like_check_installed’ );
    add_action( ‘network_admin_menu’, ‘bp_like_check_installed’ );

    /**
    * for notifications
    */

    function bp_like_setup_globals() {
    global $bp, $current_blog;
    $bp->bp_like=new stdClass();
    $bp->bp_like->id = ‘bp-like’;
    $bp->bp_like->slug = ‘bp_like’;
    $bp->bp_like->notification_callback = ‘bp_like_format_notifications’;
    $bp->active_components[$bp->bp_like->slug] = $bp->bp_like->id;
    do_action( ‘bp_like_setup_globals’ );
    }
    add_action( ‘bp_setup_globals’, ‘bp_like_setup_globals’ );

    function bp_like_format_notifications( $action, $item_id, $secondary_item_id, $total_items,$format=’string’) {
    global $bp;
    $glue=”;
    $user_names=array();
    $activity = new BP_Activity_Activity( $item_id );
    $link=like_notifier_activity_get_permalink( $item_id );

    if($activity->user_id==$bp->loggedin_user->id){
    $text=__(“your”);
    $also=””;
    }
    else{
    $text=sprintf(__(“%s’s”), bp_core_get_user_displayname ($activity->user_id));//somone’s
    $also=” also”;
    }

    $users = array_keys( bp_activity_get_meta( $item_id, ‘liked_count’ ) );
    $total_user= $count=count($users);

    if ($count==0){
    bp_core_delete_notifications_by_item_id( $bp->loggedin_user->id, $activity->id, $bp->bp_like->slug, ‘new_bp_like_’.$activity->id);
    }

    if($count>2){
    $users=array_slice($users, $count-2);
    $count=$count-2;
    $glue=”, “;
    }

    else if($total_user==2)
    $glue=” and “;

    foreach((array)$users as $id)
    $user_names[]=bp_core_get_user_displayname ($id);

    if(!empty($user_names))
    $commenting_users=join ($glue, $user_names);
    else
    $commenting_users=”Somebody remove it after”;

    if($total_user>2)
    $text=$commenting_users.” and “.$count.” others”.$also.” liked on “.$text. ” post”;
    else
    $text=$commenting_users.$also .” liked on “.$text. ” post”;

    return array(‘link’=>$link,
    ‘text’=>$text);

    }

    function like_notifier_activity_get_permalink( $activity_id, $activity_obj = false ) {
    global $bp;

    if ( !$activity_obj )
    $activity_obj = new BP_Activity_Activity( $activity_id );

    $link = bp_get_activity_directory_permalink() . ‘p/’ . $activity_obj->id . ‘/’;

    return apply_filters( ‘like_notifier_activity_get_permalink’, $link );
    }

    function like_notifier_remove_notification($activity,$has_access){
    global $bp;
    if($has_access)
    bp_core_delete_notifications_by_item_id( $bp->loggedin_user->id, $activity->id, $bp->bp_like->slug, ‘new_bp_like_’.$activity->id);

    }
    add_action(“bp_activity_screen_single_activity_permalink”,”like_notifier_remove_notification”,10,2);

    ….

    bp_core_add_notification( $item_id, $activity[‘activities’][0]->user_id, $bp->bp_like->slug, ‘new_bp_like_’.$item_id );

    #171415
    justintyme
    Participant

    Posting a plugin job offers doesn’t help all those other thousands of people coping with the same problem… I’m not abusing anyone, just telling the truth. BuddyPress may be open source but does that mean that the team working on it should just ignore all the signals and complaints? This is a very well known issue, not for the past month but for many month already. So yes, I blame the BuddyPress team for being lazy and not doing anything about it, after all it’s “their” product.

    If I give you a free cheese and after eating it you find out it’s rotten…can I say “don’t complain, it’s free”???

    Hope someone gets some working spirit over there, or quit. Just provide a GOOD product or NONE AT ALL!

    #171413
    valuser
    Participant

    and if you really want to commission a plugin why not post the job on https://buddypress.org/support/forum/plugin-forums/bp-jobs-board/ or the many other freelance sites on the web ?

    #171406
    Ben Hansen
    Participant

    pretty cool!

    #171403
    @mercime
    Participant

    edit – closing this topic – issue is resolved at https://buddypress.org/support/topic/how-to-change-group-avatar/#post-171367

    #171400
    @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

    #171399
    @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.

    #171395
    Ben Hansen
    Participant

    it can definitely do the items you listed out specifically.

    #171384
    modemlooper
    Moderator

    You 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/

    #171383
    sbahns
    Participant

    I have this exact same issue and need to fix it ASAP. Anyone have a solution?

    #171380
    dmpastuf
    Participant

    I 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?

    #171378
    dmpastuf
    Participant

    When 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.

    #171370
    turleybw
    Participant

    This is still a current problem. I’m unable to edit or delete my forum post on buddypress support.

    #171368
    dmpastuf
    Participant

    I 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)

    #171366
    Eric J T
    Participant

    I 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.

Viewing 25 results - 19,001 through 19,025 (of 68,969 total)
Skip to toolbar