Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 12,976 through 13,000 (of 32,688 total)
  • Author
    Search Results
  • #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.

    dmpastuf
    Participant

    Greetings,
    Im wrapping up a plugin development which is tied into a second database and manipulates that through a post. On the development site the program seems to be working fine, though it was using the last version of buddypress. Now I’m using it on the latest version of buddypress and wordpress and its throwing a nonce error whenever I try to post the form; Im using a form setup like the following: ‘<form action=”” method=”post”>’; I’ve also added to the forms the following to try to get the nonce failure past:

    wp_nonce_field( ‘closedpostboxes’, ‘closedpostboxesnonce’, false );
    wp_nonce_field( ‘meta-box-order’, ‘meta-box-order-nonce’, false );
    wp_nonce_field( ‘edit-group_’ . $group->id );
    wp_nonce_field( ‘groups_edit_group_settings’ );
    wp_nonce_field( );
    echo ‘<input type=”hidden” name=”group-id” id=”group-id” value=”‘. bp_group_id() .'” />’;

    Is there a way to figure out what group nonce if failing from a post error? or is there an alternative method of posting which would be preferred?

    Thanks

    #171353
    @mercime
    Participant
    #171349
    @mercime
    Participant

    If 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!

    #171347

    In reply to: Sitewide Activity

    rameshwor.maharjan
    Participant

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

    #171346
    sedhai
    Participant

    Hi,
    Is there any plugin or tweaks to let the users to choose which sites they want to be member of .
    i have few number of sites and not all site are revelent to all users/possible users .
    Thanks in advance.-:).

    latest wordpress and buddypress installed.
    http://www.school.sedhai.com

    Marvin Alexander
    Participant

    I have a client who likes buddypress and I heard that the new theme compatibility features make it easy to work with in the new 1.8 release. But it looks too plain and ugly. Is there a “bolt-on” solution of some sort. Like copying premade Buddypress pages with it’s own stylesheet and functions to drop into the child theme. We need a buddypress sidebar and currently it’s only full width. If there’s a tutorial on how to convert the default pages into buddypress ones I’d take that too.

    Here are the details.
    WEBSITE URL http://www.vedicsage.com/members/
    Wordpress 3.6.1
    Buddypress 1.8.1

    Theme: FUSE
    Link to theme http://themeforest.net/item/fuse-responsive-portfolio-blog-wordpress-theme/5136837?WT.ac=search_item&WT.seg_1=search_item&WT.z_author=pixelgrade

    resistoyen
    Participant

    @mercime

    Thanks 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 !!

    #171337
    CC-Cailin
    Participant

    Hey guys!
    I’m building a buddypress site on localhost, and no avatar is showing. When I look at the page source, I see the following:

    <a href="http://localhost/wordpress2/members/admin/">
    <img src="http://gravatar.com/avatar/0a2f25e933263273629e254cb4001651?d=http://localhost/wordpress2/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg&s=150&r=G" width="150" height="150" alt="Profile picture of admin" />
    </a>

    Something looks quite wrong with the src URL there… or is it supposed to be like that?

    towhidn
    Participant

    when another script is integrated with WordPress & BuddyPress and it uses ‘search’ keyword in URI BuddyPress automatically redirects it to WP’s homepage(in cases WP is in a directory).
    it happens in this file:
    \wp-content\plugins\buddypress\bp-core\bp-core-catchuri.php
    and this code is responsible for redirection:

        if ( !empty( $bp_uri[0] ) && ( bp_get_search_slug() == $bp_uri[0] ) ) {
            $matches[]   = 1;
            $match       = new stdClass;
            $match->key  = 'search';
            $match->slug = bp_get_search_slug();
        }

    when it’s a match with ‘search’ keyword it blindly redirects to homepage URL. it should check if the matches are a part of WP URL instead of domain URL.

    well that’s all. thanks

    resistoyen
    Participant

    @mercime

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

    with 100% or 940 px

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

    1500px

    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

    Ikenna
    Participant

    Hello, I have a problem that is troubleing me for quite a long time now and I have tried all my possible best but all seems futile. A quick fix for this will cause my heart to overjoy in thanks.

    I use bbpress and when creating new topics, I upload images and in buddypress activity plus I also upload image. But the problem is that when the image is displayed in the activity page, it cuts and looks ugly.

    I want to find a way to resize the width of the image so that it may be 300px width and 200px height. I went to wordpress admin and changed the default image size and yet it did not work. I tried firebug, and it couldn’t work either. A help will be ok. Watch the images below carefully to understand better!


    #171327
    Erlend
    Participant

    We’re using bbPress and BuddyPress to power the jMonkeyEngine community site:
    http://hub.jmonkeyengine.org/

    Using the excellent Firmasite as our parent theme, our child theme is a modified version of the ACME Dashboard. It is indeed marketed as an admin theme, but we found it to be nicely suited for a clean discussion-centric layout.

    We’re not taking great advantage of BuddyPress at the moment, in great part due to a pending bbPress/BuddyPress bug that makes it difficult for us to repurpose our groups. In the future we want to use vanilla groups for task-centric “workgroups”, and we’ve long been entertaining the idea of making a customized version of groups to create a plugin front-end for our SDK.

    bbPress on the other hand is constantly being pushed to its limits, and we’re very happy with it. We’re using the Support Topic plugin to great effect, along with our custom made Quotes plugin, among many others.

    Huge thanks to the developers and contributors of bbPress and BuddyPress for making two outstanding pieces of free software.

    p.s. If any budding WordPress developers out there would like an opportunity to get some experience contributing to an open source project, you’re very welcome to get in touch.

    #171320
    stevehutcheson
    Participant

    I cannot find a suitable answer to getting the Avatars to appear. I am using wordpress version 3.6.1 and have downloaded the latest version of buddypress 1.8.1 and am using the theme Buddypress Default 1.8.1

    I can load the avatar and see it in order to crop it however once cropped, it does not appear although the profile avatar is in the folder http://aidwork.net/wp-content/uploads/avatars/1/ and the group avatars are in http://aidwork.net/wp-content/uploads/group-avatars/8/ The code in the program does not appear to point towards these avatar folder and as such cannot locate the file and only the default text appears.

    How can this be rectified? What file and part of the code do I need to alter?

    @mercime
    Participant

    I created a buddypress.php by copying the code tooked from the page-template-fullwidth.php. It didn’t work

    @resistoyen sometimes it doesn’t work right away. To continue, using this page as reference:
    https://themes.trac.wordpress.org/browser/oxygen/0.5/page-template-fullwidth.php?rev=24186

    a) Remove the following from your buddypress.php file
    Line 3: Template Name: Full Width
    Line 13-17: <div class="aside"> to closing </div>

    b) Change Line 21 from
    <div class="content-wrap">
    to
    <div class="content-wrap bp-full-width">

    c) Add this to your theme’s stylesheet

    .bp-full-width {
    width: 100% !important; 
    }
    #171305
    catwomanbadkitty
    Participant

    The above plugin does not exist and the code must be outdated.

    I am on Buddypress 1.8.1 and WordPress 3.6. I want to remove Activity from the member profile. I was able to style it out by placing the following into my childtheme CSS file:

    #user-activity {
    display: none;
    }

    I then made my Profile tab display first using the following in bp-custom.php:

    // define the profile tab that opens by default
    define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );

    So activity does not appear, however if you type in the URL: mysite/members/username/activity the Activity stream is still there.

    Any best practices for getting rid of Activity in the Profile.
    I also want to make changes to the main Activity stream and Group Activity stream so a point to good resources would be great.

    resistoyen
    Participant

    Sorry i forgot to say i’m on wordpress 3.6.1.

    valuser
    Participant

    Many thanks for your reply.

    The theme is that at https://wordpress.org/themes/wordstrap

    Have taken your advice and am almost there! (i think !)

    I just have not altered the index.php file correctly – (your advice very welcome)

    With an index.php file in directory —> themes/wordstrap/groups/index.php

    (no change whatsoever if in themes/wordstrap/buddypress/groups/index.php)

    see altered file at http://pastebin.com/VAfJAjbj

    and a jpg of the result at https://i.imgur.com/7fRK8at.jpg (where within the content everything has floated left!).

    Any advice most welcome

    #171271
    3×7
    Participant

    found it. I’ll try to do it with this:

    https://wordpress.org/plugins/bp-group-frontpage/

    Thanks!

    #171256
    Uncle Jimmy
    Participant

    My Site
    ChristianiTees
    This is the Problem

    Here’s What I’m Using

    • WordPress 3.6
    • BuddyPress 1.8.1
    • Gantry Theme for WordPress – By RocketTheme, LLCVersion 4.0.6 [Basic default Gantry theme for WordPress]
    • Gantry BuddyPress – Version 1.3 | By RocketTheme, LLC
    • Gantry Template Framework – Version 4.0.7 | By RocketTheme

    Prior Issues With gantry-buddypress Plugin

    <p>This Plugin has been responsible for all other issues with BuddyPress that I’ve had, e.g., [[Resolved] Registration/Activation Brokenand[Resolved] Duplicate Profile Meta Error]

    I believe the present issue is within this plugin somewhere here, not sure.</p>
    <p></p>
    The entry.php file code is;
    <p> </p>

    
    <?php
    /**
     * @version   1.3 November 8, 2012
     * @author    RocketTheme, LLC http://www.rockettheme.com
     * @copyright Copyright © 2007 - 2012 RocketTheme, LLC
     * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
     */
    
    /**
     * BuddyPress - Activity Stream (Single Item)
     *
     * This template is used by activity-loop.php and AJAX functions to show
     * each activity.
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php do_action( 'bp_before_activity_entry' ); ?>
    
    <li class="<?php bp_activity_css_class(); ?>" id="activity-<?php bp_activity_id(); ?>">
    	<div class="activity-avatar">
    		">
    
    			<?php bp_activity_avatar(); ?>
    
    		
    	</div>
    
    	<div class="activity-content">
    
    		<div class="activity-header">
    
    			<?php bp_activity_action(); ?>
    
    		</div>
    
    		<?php if ( 'activity_comment' == bp_get_activity_type() ) : ?>
    
    			<div class="activity-inreplyto">
    				<?php _e( 'In reply to: ', 'buddypress' ); ?><?php bp_activity_parent_content(); ?> " class="view" title="<?php _e( 'View Thread / Permalink', 'buddypress' ); ?>"><?php _e( 'View', 'buddypress' ); ?>
    			</div>
    
    		<?php endif; ?>
    
    		<?php if ( bp_activity_has_content() ) : ?>
    
    			<div class="activity-inner">
    
    				<?php bp_activity_content_body(); ?>
    
    			</div>
    
    		<?php endif; ?>
    
    		<?php do_action( 'bp_activity_entry_content' ); ?>
    
    		<?php if ( is_user_logged_in() ) : ?>
    
    			<div class="activity-meta">
    
    				<?php if ( bp_activity_can_comment() ) : ?>
    
    					" class="button acomment-reply bp-primary-action" id="acomment-comment-<?php bp_activity_id(); ?>"><?php printf( __( 'Comment <span>%s</span>', 'buddypress' ), bp_activity_get_comment_count() ); ?>
    
    				<?php endif; ?>
    
    				<?php if ( bp_activity_can_favorite() ) : ?>
    
    					<?php if ( !bp_get_activity_is_favorite() ) : ?>
    
    						" class="button fav bp-secondary-action" title="<?php esc_attr_e( 'Mark as Favorite', 'buddypress' ); ?>"><?php _e( 'Favorite', 'buddypress' ); ?>
    
    					<?php else : ?>
    
    						" class="button unfav bp-secondary-action" title="<?php esc_attr_e( 'Remove Favorite', 'buddypress' ); ?>"><?php _e( 'Remove Favorite', 'buddypress' ); ?>
    
    					<?php endif; ?>
    
    				<?php endif; ?>
    
    				<?php if ( bp_activity_user_can_delete() ) bp_activity_delete_link(); ?>
    
    				<?php do_action( 'bp_activity_entry_meta' ); ?>
    
    			</div>
    
    		<?php endif; ?>
    
    	</div>
    
    	<?php do_action( 'bp_before_activity_entry_comments' ); ?>
    
    	<?php if ( ( is_user_logged_in() && bp_activity_can_comment() ) || bp_activity_get_comment_count() ) : ?>
    
    		<div class="activity-comments">
    
    			<?php bp_activity_comments(); ?>
    
    			<?php if ( is_user_logged_in() ) : ?>
    
    				<form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>>
    					<div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ); ?></div>
    					<div class="ac-reply-content">
    						<div class="ac-textarea">
    							<textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input" name="ac_input_<?php bp_activity_id(); ?>"></textarea>
    						</div>
    						<input type="submit" name="ac_form_submit" value="<?php _e( 'Post', 'buddypress' ); ?>" />   <?php _e( 'or press esc to cancel.', 'buddypress' ); ?>
    						<input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" />
    					</div>
    
    					<?php do_action( 'bp_activity_entry_comments' ); ?>
    
    					<?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?>
    
    				</form>
    
    			<?php endif; ?>
    
    		</div>
    
    	<?php endif; ?>
    
    	<?php do_action( 'bp_after_activity_entry_comments' ); ?>
    
    
    
    <?php do_action( 'bp_after_activity_entry' ); ?>
    
    
    

    The activity-loop.php file code is;

    
    <?php
    /**
     * @version   1.3 November 8, 2012
     * @author    RocketTheme, LLC http://www.rockettheme.com
     * @copyright Copyright © 2007 - 2012 RocketTheme, LLC
     * @license   http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
     */
    
    /**
     * BuddyPress - Activity Loop
     *
     * Querystring is set via AJAX in _inc/ajax.php - bp_dtheme_object_filter()
     *
     * @package BuddyPress
     * @subpackage bp-default
     */
    
    ?>
    
    <?php do_action( 'bp_before_activity_loop' ); ?>
    
    <?php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) ) ) : ?>
    
    	<?php /* Show pagination if JS is not enabled, since the "Load More" link will do nothing */ ?>
    	<noscript>
    		<div class="pagination">
    			<div class="pag-count"><?php bp_activity_pagination_count(); ?></div>
    			<div class="pagination-links"><?php bp_activity_pagination_links(); ?></div>
    		</div>
    	</noscript>
    
    	<?php if ( empty( $_POST['page'] ) ) : ?>
    
    		<ul id="activity-stream" class="activity-list item-list">
    
    	<?php endif; ?>
    
    	<?php while ( bp_activities() ) : bp_the_activity(); ?>
    
    		<?php gantry_bp_locate_type( array( 'activity/entry.php' ), true, false ); ?>
    
    	<?php endwhile; ?>
    
    	<?php if ( bp_activity_has_more_items() ) : ?>
    
    		<li class="load-more">
    			<?php _e( 'Load More', 'buddypress' ); ?>
    		
    
    	<?php endif; ?>
    
    	<?php if ( empty( $_POST['page'] ) ) : ?>
    
    		
    
    	<?php endif; ?>
    
    <?php else : ?>
    
    	<div id="message" class="info">
    		<p><?php _e( 'Sorry, there was no activity found. Please try a different filter.', 'buddypress' ); ?></p>
    	</div>
    
    <?php endif; ?>
    
    <?php do_action( 'bp_after_activity_loop' ); ?>
    
    <form action="" name="activity-loop-form" id="activity-loop-form" method="post">
    
    	<?php wp_nonce_field( 'activity_filter', '_wpnonce_activity_filter' ); ?>
    
    </form>
    
    

    Any help resolving this issue is greatly appreciated, I will post the resolution here even if I recieve no response, so either BuddyPress Support or Users can benefit from these Gantry-BuddyPress Plugin Issues/Resolutions.

    Thank you in advance for your time.

    #171225
    @mercime
    Participant

    @jonesstl not sure where you’re trying to place that code, you might want to check out https://wordpress.org/plugins/bp-facebook-style-friend-lists/

    #171222
    damienoneill2001
    Participant

    Hi all,

    I want to add a piece of code to display some text saying “Welcome, username” in the WordPress Menus. This will only display when a Buddypress user has logged in and it links them to their profile page.

    So far, I have this in my function.php:

    // Filter wp_nav_menu() to add profile link
        add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link',10,2 );
        function my_nav_menu_profile_link($menu, $args) {      
                if( is_user_logged_in() && $args->theme_location == 'header2' ){
            $profilelink = '<li>Welcome, <a href="' . bp_loggedin_user_domain( '/' ) . '">' . bp_loggedin_user_id() . '</a></li>';
            $menu = $menu . $profilelink;
        }
        return $menu;
        }

    This works for everything but the Username.

    It is currently displaying the user ID correctly – obviously because the code states bp_loggedin_user_id() – but anything else I try doesnt work. Most terms just leave the space blank and all it returns is “Welcome, ”

    If I use bp_loggedin_user_username(), the username displays, but it breaks out of the code and places itself outside of the tags.

    I hope someone can help.

    Thanks

    Damien

    #171213
    @mercime
    Participant

    @koomak @tperkins there’s a trac ticket for this https://buddypress.trac.wordpress.org/ticket/5140 = would be helpful if you provide more information about your installation, also if this happened only when you upgraded to BP 1.8.1 or do you have a new installation?

    #171208
    @mercime
    Participant

    Haven’t used WAMP for a long while (XAMPP is tops) … You mentioned you have pretty permalinks working in WAMP. Was that before you activated BuddyPress or after? Btw, if you have SKYPE installed, you have to go through an extra step.

    #171198
    Artisantopia
    Participant

    ok – just adding this here so I have everything in one place:
    How to Add an Image Field to Buddypress Extended Profile Fields

Viewing 25 results - 12,976 through 13,000 (of 32,688 total)
Skip to toolbar