Search Results for 'buddypress'
-
AuthorSearch Results
-
August 26, 2015 at 3:31 pm #243653
In reply to: Create Function When Favorite Button Clicked
danbp
Participant@bfchris2, sorry, the file is here /bp-legacy/buddypress-functions.php
August 26, 2015 at 3:12 pm #243648In reply to: Terms & Conditions Checkbox
danbp
Participantconsider this plugin: https://wordpress.org/plugins/auto-terms-of-service-and-privacy-policy/
and read this plugin support topic:
https://wordpress.org/support/topic/buddypress-integration-11?replies=4Other technique
Create a new page and add your terms of service. Save.
Add a new field to profile Base tab (the one which shows on register page).
Field title: Terms of Service
Field description: by checking this box you agree with our TOS. And a link to the page:
<a href='http://my-site.com/page_name/'>Read our Terms of Services</a>Caution: use single quotes to enclose the url
Field type: checkboxes.
Field option: custom and only one option: TOS ! Leave it unchecked.On the right of the screen:
Field requirement: required.
Field visibility: only me and check Enforce field visibilityGuess we’re done !
While registering, if the checkbox is not checked, the process will stop and user will be adviced that he omited a field. Once he checked it, he can finish his subscription. This doesn’t mean he read your TOS, but you’re covered if you warned him to read TOS first. And ensure that the link is working and the page exist with content !
Depending your country law, TOS can be more or less regulated. It’s your responsability to get informed about that before using it.
August 26, 2015 at 2:38 pm #243644In reply to: Create Function When Favorite Button Clicked
bfchris2
Participant@danbp..
Thanks. I don’t have buddypress-functions.php in my legacy/buddypress folder? Any thoughts?
bp-activity-actions.php I do have however.-c-
August 26, 2015 at 2:32 pm #243643In reply to: Create Function When Favorite Button Clicked
danbp
ParticipantAugust 26, 2015 at 2:10 pm #243642cplouffe
ParticipantSorry for the late reply – I was on vacation. Thank you for referring me to that URL, Hugo. I will admit that I should have visited the ‘Getting Started’ page before installing BuddyPress and looked for big picture issues in the WordPress installation as opposed to zoning in on my specific problem.
I don’t know if an error message could be added letting the user know when the GD module is not installed on the server (perhaps this could be difficult…), but having some sort of indication of why the error was encountered would be helpful in debugging.
Thanks again,
CamAugust 26, 2015 at 12:41 pm #243640In reply to: Creating marketplace using buddypress
Paul Bursnall
Participant@olliecard I would suggest after reading your requirements you could save yourself a good few headaches by considering using Ultimate Member over Buddypress. If I understand what you need correctly, it has a stronger base than BP in this scenario.
August 26, 2015 at 11:11 am #243635In reply to: How to change the “Members” color in members page
CreationP
ParticipantI am using xplicit for a theme. I also use a cache plugin that is not caching for logged in users.
I am taking local backups and restoring if something does not feel good. Through all my testing and experimentation with buddypress nothing have been changed as I revert all changes that do not work.
Now that you mentioned templates, is it possible to find somewhere already created templates with different color profiles and change them from there?
I found yesterday the buddypress.css maybe the answer lies there? I don’t mind redoing all the work every update as I only need to change 2 titles. Everything else fits to us.
August 26, 2015 at 10:53 am #243634jessy
ParticipantFor all private social network, but login and register page is available to access.
add_action( 'template_redirect', 'redirect_to_login_page_for_premium_members' ); function redirect_to_login_page_for_premium_members() { if( (!is_page_template("loginpage.php")) && (!is_user_logged_in()) && (!is_page("Register") )) { $page = get_page_by_title( 'Login' ); wp_redirect(get_permalink($page->ID)); exit(); } }Restrict buddypress components just for logged-in users:
*UNTESTEDadd_action( 'template_redirect', 'redirect_to_login_page_for_premium_members' ); function redirect_to_login_page_for_premium_members() { if( (is_buddypress()) && (!is_user_logged_in()) ) { $page = get_page_by_title( 'Login' ); wp_redirect(get_permalink($page->ID)); exit(); } }August 26, 2015 at 2:36 am #243631In reply to: Removing the Member Navigation Menu
Ben Riga
ParticipantThanks for the quick response, shane.
I think I may need some more remedial help though as in trying to do that I broke the page.
I am using the twentyfourteen theme as a base so have created a child of that called twentyfourteen-child.
To override the home.php page like you suggested. I created a new file at:
twentyfourteen-child\buddypress\members\single\home.phpEven just copying the exact same file over from the buddypress members\single folder broke the page (lost most of the styling and item body and left sidebar etc) so clearly I’m doing this wrong.
I think I need to have a better idea of how template overriding works. I’ve searched through the codex but have not been able to find anything that helps. What’s the best place to learn more about that? A how-to tutorial or something like that would be great.
Thanks again for the help and support,
BenAugust 26, 2015 at 12:55 am #243624In reply to: How to change the “Members” color in members page
danbp
ParticipantWhich theme do you use ? Seems you renamed yours to Test, and i was unable to find it somewhere.
Also, do you use a cache plugin ? If it’s the case, disable it or clear it while testing CSS.I cannot put it in maintenance mode
This is not necessary if you had a local copy. I strongly recommend you do that if you want to manage correctly a high traffic site.
You can use a child-theme for your theme, not for BP which has no theme since 1.9. The one called bp-default is no more maintained and is only in for temporary backward compatibility for (very) old BP site.
BP use templates, which are stored in bp-templates/bp-legacy/buddypress/. Those templates are tailored to fit with almost any recent (and decently coded) themes.
Creating a child theme is explained on hundreds of sites and on WP’s codex. Additionnal infos for BP are given here.
August 26, 2015 at 12:12 am #243621In reply to: thumb and full avatars are the same size -_-
Henry Wright
ModeratorYour theme might be Customizing BuddyPress Avatars?
August 25, 2015 at 11:59 pm #243617shadow_boi
Participantokay, i tried the following:
tag user in BuddyPress Activity, user could receive notification
tag user in bbpress forum post/comment, user could not receive notificationit seems like tagging user in forum does trigger notification, can anyone here confirm if this is expected behaviour?
if i want to trigger notification when user is tagged in forum post/comment, what should i do? thanks
August 25, 2015 at 11:51 pm #243615In reply to: How to change the “Members” color in members page
CreationP
ParticipantI’m trying and trying and can’t find any lead on that.
The codex is complex and I cannot understand the child theme concept. Is it a child theme of the bp or a child theme of the theme I use (explicit)? If it is of the theme I use how can i make it to incorporate buddypress?
To add to the problems, alt-tab is a website that receives 1000+ visits/day and I cannot put it in maintenance mode in order to work on my leisure.
I hate to ask you that, and I know you have better things to do rather than answering questions, but can you please take me by the hand and lead me to solving this problem as I am unable to solve it on my own. Especially in a live environment.
When I firebug the “Members” title in the alt-tab.gr/members page I get the following:


I am at a loss here…
August 25, 2015 at 10:46 pm #243612In reply to: How to add user profile link to specific menu?
danbp
ParticipantHi @djsteveb,
I don’t have that tab under menus on my other bp install Really ? Have you activated buddypress in screen options ? Just in case of… 😉August 25, 2015 at 10:20 pm #243611shadow_boi
Participantthanks for you reply.
i thought that is buddypress feature so i asked here.
i have also posted the same thing in bbpress now. hopefull will get an response.August 25, 2015 at 8:40 pm #243605In reply to: How to add user profile link to specific menu?
djsteveb
Participant@dayan89 – with one of my bp installs I can go to appearance -> menus.. select main-menu (or topmenu, or whatever you called the one you want on top) – click select.. then on the left side I had a tab for buddypress.. with cool links for dynamic links like “my profile” – login.. etc..
click to add to your menu, save..
easy now these days..for some reason I don’t have that tab under menus on my other bp install – so your setup may vary.
August 25, 2015 at 8:02 pm #243603In reply to: WP profile fields with BP XProfile Sync
shaunik
ParticipantThanks for advice, I’ll look into script available on forum.
Any reviews on this pluginAugust 25, 2015 at 7:58 pm #243601In reply to: Removing the Member Navigation Menu
shanebp
ModeratorYou want to remove navigation from all profile pages?
Create a template overload of this file:
bp-templates\bp-legacy\buddypress\members\single\home.phpAnd remove this div:
<div id="item-nav">August 25, 2015 at 4:58 pm #243599In reply to: How to change the “Members” color in members page
danbp
Participanth1.main-title, h1.page-titledoesn’t exist. Why don’t you try the example at first ?Also, don’t apply template models to BP pages. These are only placeholders used internally, not ordinary WP pages.
Follow some guidelines on Codex before getting in more trouble.
August 25, 2015 at 4:43 pm #243598In reply to: Good group chat plugin for bp?
August 25, 2015 at 4:26 pm #243597In reply to: Good group chat plugin for bp?
nolls
Participant@kookidooki
where had you downloaded the plugin Skype for Buddypress?August 25, 2015 at 1:52 pm #243572In reply to: PHP 7.0 compatibility
danbp
Participant@vinzen, wait a little or accept yes and no ;-). PHP 7.0.0 RC 1 is out since 2015/08/21…. RC version should not be used on production sites.
WordPress and BP are both guaranted to work only on the latest stable release of anything needed to get them to work. But you can test at your own risk, RC’s and trunk version are avaible for that.
php7 has a projected release date of November 2015. Next WP release is scheduled in december 2015. And BP around october…
WP devs are already using php7 for unit test. More from here (WP) and here (BP).
August 24, 2015 at 7:05 pm #243548In reply to: members feature with a relationship 1:n
danbp
ParticipantIdea Stream use the new post type activity introduced in BP 2.2
August 24, 2015 at 3:43 pm #243538In reply to: Add New User Activity on Button Click
coffeywebdev
ParticipantTake a look at this code, I think it may be helpful for you…
I created a function vp_add_group_activity_comments() that hooks to the ‘post_comment’ action, so when a user posts a comment an activity stream item is created and added to their group’s feed.. (on my site users can only be in one group at a time)
It’s all about what you set for the $args array….
function vp_add_group_activity_comments($comment_id){ $comment = get_comment( $comment_id ); GLOBAL $wpdb; $user_id = get_current_user_id(); $user_info = get_userdata( $user_id ); $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'"); $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>"; // arguments to pass to the bp_activity_add() function $args = array( 'action' => $comment_action, // The activity action - e.g. "Jon Doe posted an update" 'content' => $comment->comment_content, // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!" 'component' => 'groups', // The name/ID of the component e.g. groups, profile, mycomponent 'type' => 'activity_update', // The activity type e.g. activity_update, profile_updated 'primary_link' => get_permalink($comment->comment_post_ID ), // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink) 'user_id' => $user_id, // Optional: The user to record the activity for, can be false if this activity is not for a user. 'item_id' => $current_user_group_id, // Optional: The ID of the specific item being recorded, e.g. a blog_id 'secondary_item_id' => $comment->comment_ID, // Optional: A second ID used to further filter e.g. a comment_id 'recorded_time' => bp_core_current_time(), // The GMT time that this activity was recorded 'hide_sitewide' => 0, // Should this be hidden on the sitewide activity stream? 'is_spam' => 0, // Is this activity item to be marked as spam? ); $add_activity = bp_activity_add($args); // Update the group's last activity groups_update_last_activity( $current_user_group_id ); return true; } add_action('comment_post', 'vp_add_group_activity_comments' );August 24, 2015 at 3:38 pm #243537In reply to: Post comments not appearing in activity stream?
coffeywebdev
ParticipantTake a look at the code below to see how I use the post_comment action to hook my function vp_add_group_activity_comments(), which creates an activity stream item when a user posts a comment and adds it to their group’s activity stream… This is just what we are doing for our site, but if you look at the code you should be able to figure out how to do it for your site….
function vp_add_group_activity_comments($comment_id){ $comment = get_comment( $comment_id ); GLOBAL $wpdb; $user_id = get_current_user_id(); $user_info = get_userdata( $user_id ); $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'"); $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>"; // arguments to pass to the bp_activity_add() function $args = array( 'action' => $comment_action, // The activity action - e.g. "Jon Doe posted an update" 'content' => $comment->comment_content, // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!" 'component' => 'groups', // The name/ID of the component e.g. groups, profile, mycomponent 'type' => 'activity_update', // The activity type e.g. activity_update, profile_updated 'primary_link' => get_permalink($comment->comment_post_ID ), // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink) 'user_id' => $user_id, // Optional: The user to record the activity for, can be false if this activity is not for a user. 'item_id' => $current_user_group_id, // Optional: The ID of the specific item being recorded, e.g. a blog_id 'secondary_item_id' => $comment->comment_ID, // Optional: A second ID used to further filter e.g. a comment_id 'recorded_time' => bp_core_current_time(), // The GMT time that this activity was recorded 'hide_sitewide' => 0, // Should this be hidden on the sitewide activity stream? 'is_spam' => 0, // Is this activity item to be marked as spam? ); $add_activity = bp_activity_add($args); // Update the group's last activity groups_update_last_activity( $current_user_group_id ); return true; } add_action('comment_post', 'vp_add_group_activity_comments' ); -
AuthorSearch Results