Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 18,651 through 18,675 (of 69,109 total)
  • Author
    Search Results
  • #173398
    Hugo Ashmore
    Participant

    Please don’t open duplicate threads, you have one running and a response.
    https://buddypress.org/support/topic/what-to-use-when-and-how/

    Closing this post.

    N.B The reason for the response you got on your initial posting is that your asking for quite a lot of ‘functionality’ and some moves into developer expertise rather than providing explanations on how to do something, also requesting ‘detailed’ descriptions is a little off on a volunteer help forum, people will help and give advise where they can and to the depth they are able, but be patient s it is the weekend 🙂

    #173390
    Henry
    Member

    I need the post list to stay updated e.g when a member updates a post, WP Query will display the updated title in the post list. With activity, the old entry will remain in the list and a new item will be written to the list as well.

    #173386
    modemlooper
    Moderator

    Why not just create a custom activity feed for only blog posts?

    #173384
    Henry
    Member

    A couple of reasons but mainly to keep everything on one page. A load more button for posts is also consistent with the activity feed load more approach.

    I was thinking the same about a fallback so I’ve added plain pagination to the page too – it gets hidden via the js so falls back nicely when js is disabled.

    #173383
    modemlooper
    Moderator

    why ajax? you will need a fall back if its disabled.

    #173382
    Henry
    Member

    OK got it down to the built in WP function next_posts() not taking into account the current component and current action parts of the URL.

    The URL getting passed to the script is this username/page/3 whereas in BuddyPress we need username/current_component/current_action/page/3

    Now my next problem is how to modify the link returned by next_posts() to add in the additional bit of the URL?

    #173380
    Marc
    Participant

    When you update an profile field, it is first deleted, then re-created. I’m sure of that, after looking the BuddyPress code.

    Why the BuddyPress works like this ? How to prevent this issue, to keep the same ID when the field is updated ?

    I just realise that I didn’t say Hi, to the community! Mistake fixed! I’m sorry.

    #173377
    RiGoRmOrTiS_UK
    Participant

    i changed the permissions on the file and the error is fixed; so back to the original issues.

    Still can’t view topics in “Group Forums”. They show blank in the browser when clicking on them; but topics in the regular site-wide bbpress forums are fine. I’ve tried a different theme and disabling all plugins and still happens 🙁 also tried updating buddypress to the latest version without success.

    #173376
    shanebp
    Moderator

    Take a look at:
    \buddypress\bp-templates\bp-legacy\buddypress\activity\index.php

    You’ll see the link markup there.
    So you can over-ride that template and add some markup.

    Or you can leave it alone and use one of the many hooks, such as:
    do_action( 'bp_activity_type_tabs' );
    To insert your link via a function.

    #173373
    Asynaptic
    Participant

    thanks @tse11 but that’s not what I was asking :).

    I’ve already seen the tutorial you linked to and btw, that tutorial has nothing to do with S2member or the private plugin @bp-help developed so I’m rather confused

    #173367
    jaxdestroyer
    Participant

    I have Actually done this on my own site that I am developing. I at first Used Buddypress Facebook, Buddypress Googleplus and Buddypress Twitter and they work well enough but I wanted to be able to add some other sites as well as use my own icons. So I figured out what they did and updated it for my needs.
    Here is what I came up with. The following code will go into your themes functions.php.

    <?php
    //Social Media Icons based on the profile user info
    function member_social_extend(){
    		$dmember_id = $bp->displayed_user->id;
    		$fb_info = xprofile_get_field_data('facebook', $dmember_id);
    		$google_info = xprofile_get_field_data('googleplus', $dmember_id);
    		$twitch_info = xprofile_get_field_data('twitch', $dmember_id);
    		$twitter_info = xprofile_get_field_data('twitter', $dmember_id);
    		echo '<div class="member-social">';
    		if($fb_info||$google_info||$twitch_info||$twitter_info){
    			echo 'My Social: ';
    		}
    
    		if ($fb_info) {
    		?>
    		<span class="fb-info"><a href="https://www.facebook.com/<?php echo $fb_info; ?>"  title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/facebook.png" /></a></span>
    	<?php
    	}
    		?>
    		<?php
    		if ($google_info) {
    		?>
    		<span class="google-info"><a href="https://profiles.google.com/<?php echo $google_info; ?>" title="My Googleplus" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/google-plus.png" /></a></span>
    	<?php
    	}
    		?>
    		<?php
    		if ($twitch_info) {
    		?>
    		<span class="twitch-info"><a href="http://www.twitch.tv/<?php echo $twitch_info; ?>" title="My Twitch" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/twitch.png" /></a></span>
    	<?php
    	}
    		?>
    		<?php
    		if ($twitter_info) {
    		?>
    		<span class="twitter-info"><a href="https://twitter.com/<?php echo $twitter_info; ?>" title="My Twitter" target="_blank" class="twitter-follow-button""><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/twitter.png" /></a></span>
    	<?php
    	}
    	echo '</div>';
    }
    add_filter( 'bp_before_member_header_meta', 'member_social_extend' ); ?>

    I will explain the code to you so that you can use it for more than just these 4 sites.
    First the Variables

    $dmember_id = $bp->displayed_user->id;
    $fb_info = xprofile_get_field_data('facebook', $dmember_id);
    

    $dmember_id grabs the currently displayed user id.
    $fb_info gets the data that was placed the facebook text box I created in extended users profiles.
    The same goes for $google_info, $twitch_info, and $twitter_info all you need to do is change 2 simple things.
    $your_variablename_here = xprofile_get_field_data('your_textbox_field_name_here', $dmember_id);

    That textbox field name can be anything you want it to be as long as it is the same as the extended profile field name. For each different site you will need to do that line.

    echo '<div class="member-social">'; All this does is start a div with a class of member-social so you can box all the different icons in one place.

    The below code is optional but may be important if you want to prefix the icons with something.

    if($fb_info||$google_info||$twitch_info||$twitter_info){
    			echo 'My Social: ';
    		}

    This asks if any of the variables have data in them. If so then prefix the icons with “My Social: ” if not then show nothing. You will need to add your new variables each seperated with the horizontal bars as shown. So that it will show as long as any of them have one field filled in.

    if ($fb_info) {
    		?>
    		<span class="fb-info"><a href="https://www.facebook.com/<?php echo $fb_info; ?>"  title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/facebook.png" /></a></span>
    	<?php
    	}
    		?>

    This asks if $fb_info has any data then show the icon.

    The Below code can differ based on your preference.
    <span class="fb-info"><a href="https://www.facebook.com/<?php echo $fb_info; ?>" title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name/images/facebook.png" /></a></span>
    I wrapped each icon in its own span HTML tag. Then create the link.
    <a href="https://www.facebook.com/<?php echo $fb_info; ?>" title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name/images/facebook.png" /></a>
    In this example I am linking to facebook.com with the $fb_info data. Here is where the preference comes in if you want them to just put their whole social profile link in the profile field then all it needs to look like is
    <a href="<?php echo $fb_info; ?>" title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name/images/facebook.png" /></a>
    the title=”put_hover_text_here” is what you want to show when hovering over the link the target= “_blank” makes the link open in a new tab.

    <img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/facebook.png" />
    This is where you placed the image of the icon. Currently this will point to the images folder of your theme and the image name of facebook.png as long as you updated the theme name.

    <?php
    	}
    	echo '</div>';
    }
    add_filter( 'bp_before_member_header_meta', 'member_social_extend' ); ?>

    this closes the if statement and closes the div that I made earlier. Then adds the function to the buddypress profile.

    here is an image of the results:
    social Results

    The Twitch icon I made myself but the others are free here http://icondock.com/free/vector-social-media-icons along with many more social sites. I used the 32px images.

    If you have any questions or need some extra explanation of this or want to add these social icons to the group header,or even add them to a users authorbox(this will require you to change your themes code) just PM Me or reply. I hope this helps anyone else looking to do something similar Note this will only send people to their respective social media profiles not allow them to follow or friend straight from your site.

    #173366
    shanebp
    Moderator

    Try posting here:

    BP Jobs Board

    #173361
    @mercime
    Participant
    #173357
    @mercime
    Participant

    I’ve noticed under permalinks wordpress is complaining about access to the .htaccess file


    @rigormortis_uk
    Did you change to a new theme or add any new plugins recently? Revert to old theme or Twenty Twelve theme and deactivate all other plugins except BuddyPress and bbPress then run Settings > Permalinks again.

    #173352
    tse11
    Participant
    #173349
    AntonyC
    Participant

    Hi @mercime, you are right. Sorry I haven’t replied sooner as have been away.
    My theme designer had a couple of forum template pages (archive-forum.php and forum.php) that I added to my buddypress child theme – it’s fixed both my forum issues and my blog.
    Really appreciated your support with this one – a big thank you!
    Cheers,
    Antony

    #173344
    Asynaptic
    Participant

    @bp-help can you pls describe what the difference is between your plugin and S2member (the free edition)?

    Not that your plugin isn’t great, I’m just trying to understand things a bit more 🙂

    thanks!

    #173341
    strangechild
    Participant

    *head desk*

    That was EXACTLY IT. Thank you @modemlooper for asking me the right question. I knew I was looking in the wrong place.

    The solution is here: http://forum.graphene-theme.com/graphene-support/all-website-page-titles-showing-in-buddypress-pages

    #173324
    TJ
    Participant
    #173319
    Robert Trevellyan
    Participant

    I don’t know if there’s a way to do it natively in BuddyPress (I’m new here), but s2member can be used to create additional member fields that are only accessible to administrators, and I expect there are other plugins that offer similar functionality.

    #173316
    willandmae
    Participant

    I just installed Buddypress today, the latest version and for some reason when I write on the activity stream it says 6 hours ago.

    Looks like this could be the same issue even with the update. Any simple way to fix this issue? Thanks.

    William

    #173313
    @mercime
    Participant

    @gcbz BuddyPress is commpatible with nearly all WP themes. Other WP themes have their own proprietary templating system (instead of WP’s loop with the_title and the_content in the theme’s page.php file) which trips BP’s theme compatibility process.

    One way to address the issue is by creating a new file named buddypress.php which would be a custom template for all BP content in your site. You’d need to copy the content of your theme’s page.php file and paste it into buddypress.php; then change proprietary template tags to the_title and the_content within the WP loop. After you’re done upload buddypress.php file into your theme’s folder in server.

    Theme Compatibility & Template Files

    Or you could customize each BP component in detail https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    #173312
    shanebp
    Moderator

    That can be done via filters.

    For example, look at function bp_is_friend in buddypress\bp-friends\bp-friends-template.php

    For the members loop, you could use that filter to hook into a custom function that determines whether the members is a client or lawyer or already a friend and return true or false or empty depending on whether you want to show the add_friend button.

    #173311
    martinbeaulne
    Participant

    I tried to find bp_after_profile_avatar_upload_content somewhere in my buddypress files, and can’t find it…

    #173307

    In reply to: javascript precedence

    Paul Wong-Gibbs
    Keymaster

    We saw your bug report and left an initial response on the ticket at https://buddypress.trac.wordpress.org/ticket/5208.

    We need a bit more information to work on this issue. Thanks!

Viewing 25 results - 18,651 through 18,675 (of 69,109 total)
Skip to toolbar