Search Results for 'buddypress'
-
AuthorSearch Results
-
October 26, 2013 at 4:58 pm #173398
In reply to: What to use when, and HOW?
Hugo Ashmore
ParticipantPlease 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 🙂
October 26, 2013 at 9:09 am #173390In reply to: Ajax load more posts on BuddyPress member profile
Henry
MemberI 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.
October 26, 2013 at 3:42 am #173386In reply to: Ajax load more posts on BuddyPress member profile
modemlooper
ModeratorWhy not just create a custom activity feed for only blog posts?
October 26, 2013 at 2:30 am #173384In reply to: Ajax load more posts on BuddyPress member profile
Henry
MemberA 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.
October 26, 2013 at 2:12 am #173383In reply to: Ajax load more posts on BuddyPress member profile
modemlooper
Moderatorwhy ajax? you will need a fall back if its disabled.
October 26, 2013 at 12:59 am #173382In reply to: Ajax load more posts on BuddyPress member profile
Henry
MemberOK 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?October 25, 2013 at 10:44 pm #173380In reply to: Update child xprofile fields.
Marc
ParticipantWhen 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.
October 25, 2013 at 9:27 pm #173377In reply to: HTTP Error 500 on Topics within "Group" Forums
RiGoRmOrTiS_UK
Participanti 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.
October 25, 2013 at 9:11 pm #173376In reply to: How to add item to main activity Subnav
shanebp
ModeratorTake a look at:
\buddypress\bp-templates\bp-legacy\buddypress\activity\index.phpYou’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.October 25, 2013 at 7:24 pm #173373In reply to: Making Buddypress Private.
Asynaptic
Participantthanks @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
October 25, 2013 at 5:41 pm #173367In reply to: Display user's social follow buttons in profile
jaxdestroyer
ParticipantI 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:

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.
October 25, 2013 at 5:17 pm #173366In reply to: What to use when, and HOW?
shanebp
ModeratorTry posting here:
October 25, 2013 at 2:30 pm #173361In reply to: [Resolved] Register Page as Homepage redirect issue
@mercime
ParticipantOctober 25, 2013 at 2:04 pm #173357In reply to: HTTP Error 500 on Topics within "Group" Forums
@mercime
ParticipantI’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.October 25, 2013 at 8:58 am #173352In reply to: Making Buddypress Private.
tse11
Participant@synaptic There is a great tutorial on this here:
http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/
October 25, 2013 at 8:51 am #173349In reply to: [Resolved] Forum root returns my WP Archive page!
AntonyC
ParticipantHi @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,
AntonyOctober 25, 2013 at 4:30 am #173344In reply to: Making Buddypress Private.
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!
October 25, 2013 at 12:49 am #173341In reply to: Customizing Page Templates
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
October 24, 2013 at 7:57 pm #173324In reply to: Responsive BuddyPress Examples?
TJ
ParticipantOctober 24, 2013 at 4:26 pm #173319Robert Trevellyan
ParticipantI 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.
October 24, 2013 at 3:48 pm #173316willandmae
ParticipantI 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
October 24, 2013 at 1:56 pm #173313In reply to: BP breaks OP2 pages (a CSS issue)
@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.
Or you could customize each BP component in detail https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/
October 24, 2013 at 1:18 pm #173312In reply to: Adding a particular user type as friend
shanebp
ModeratorThat 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.
October 24, 2013 at 12:35 pm #173311In reply to: Updating avatar from another page.
martinbeaulne
ParticipantI tried to find bp_after_profile_avatar_upload_content somewhere in my buddypress files, and can’t find it…
October 24, 2013 at 10:28 am #173307In reply to: javascript precedence
Paul Wong-Gibbs
KeymasterWe 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!
-
AuthorSearch Results
