Search Results for 'custom activity page'
-
Search Results
-
I posted up on this a little while ago, and danbp was a boss and helped me out, and I thought I could get it to work, but the end fix ended up unfortunately not really fixing the problem.
I’m having difficulty with a profile tab that is supposed to link to a separate forums profile (wpForo) via a dynamic link that recognizes the displayed user’s page. danbp set me up with something like the below, I changed a bit to make it work better…
function tab_custom_link_to_page() { if ( bp_is_page( 'BP_MEMBERS' ) || bp_is_activity_component() || bp_is_profile_component () || bp_is_groups_component () || bp_is_notifications_component () || bp_is_messages_component () || bp_is_settings_component () || bp_is_following_component () || bp_is_followers_component () ) { $link = bp_get_root_domain() . '/community/profile/'. bp_get_displayed_user_username(); echo '<li><a href="'. $link .'">Community</a></li>'; } } add_action( 'bp_member_options_nav', 'tab_custom_link_to_page', 10 );but I couldnt change the location of the tab, using code or BuddyBoss Reorder Tabs plugin, which is an issue because the theme I’m using (BuddyBoss Boss.) hides the tabs at the end under a clickable “…”. I spoke to someone at BuddyBoss and they told me I wouldn’t be able to move the tab unless it was registered as a “bp_core_new_nav_item( array(“, which requires an array like:
function add_communityprofile_tab() { global $bp; bp_core_new_nav_item( array( 'name' => 'Community', 'slug' => 'community', 'parent_url' => $bp->displayed_user->domain, 'parent_slug' => $bp->profile->slug, 'position' => 200, 'default_subnav_slug' => 'community' ) ); } add_action( 'bp_setup_nav', 'add_communityprofile_tab', 100 );which works fine until I have to link it, apparently I can’t use the tab array/slug thing to reach a dynamic link without the same “$bp->displayed_user->domain”. The link I’m trying to reach is currently at:
http://localhost/wordpress/community/profile/*displayeduser*/
from:
http://localhost/wordpress/users/*displayeduser*/
If nobody has any helpful suggestions otherwise, I’m thinking the best route might be to have the page
http://localhost/wordpress/users/*displayeduser*/community/
redirect to
http://localhost/wordpress/community/profile/*displayeduser*/
via a dynamic redirect…I’m trying to figure out how to do that.
If anyone has any helpful advice it would be super appreciated. My boss wants me to take the site live this week and I think I’m just about there…aside from this huge disconnect between the two separate user profiles…not too bad for someone who has barely any idea what they’re doing. but yeah, sorry for the super long post. thanks for reading and hopefully you can throw me a line.
– Andrew
WP ver 4.6.1
BuddyPress ver 2.6.2Members, activity, profile, are all empty…. Register redirects to something that doesn’t exist, despite setting a known page in the dropdown. Attempted to redirect to known page, via bp-custom.php -this moved it to the page, but it rendered entirely blank. Attempted re-install of buddypress – somehow it claims there’s everything deleted but magically retains all settings when installed again – tried several themes, See mention of “bp template pack” plugin in forum that’d reset it all up, but unable to locate it as an installable plugin…
I’m trying to edit BP theme and to figure out which files control what. Would appreciate if someone could go over a couple of basics:
I’m looking in the folder: plugins/buddypress/bp-templates/bp-legacy/buddypress
1) What does the /activity folder control?
2) There’s another instance of activity related file in /members/single/activity.php
what’s the difference?3) What’s the difference between
plugins/buddypress/bp-templates/bp-legacy/ and
plugins/buddypress/bp-templates/bp-themes/4) Which file controls the header? Where the cover photo and avatar image are displayed towards the top.
5) I would like to add a custom BP page/tab. I’ve found instructions to add pages through the function.php file (located in my child-theme), is that the best way?
I have a problem with the Jetpack sharing buttons in combination with buddypress.
Obviously they don’t make much sense there anyways, it’s not like I want to share my settings page or sth similar, so I am looking for a way to get rid of the sharing buttons on these pages.
I tried hiding them via custom css, but with no success (I can either hide them globally or not at all, since I can’t find a post-id to use it only there). So I searched the web and found this code:function jptweak_remove_share() { if ( bp_is_user_profile() ) { remove_filter( 'the_content', 'sharing_display',19 ); remove_filter( 'the_excerpt', 'sharing_display',19 ); if ( class_exists( 'Jetpack_Likes' ) ) { remove_filter( 'the_content', array( Jetpack_Likes::init(), 'post_likes' ), 30, 1 ); } } } add_action( 'loop_start', 'jptweak_remove_share' );This disabled the sharing buttons when viewing the user profile. I just wonder what to replace the “bp_is_user_profile()” with to get rid of the sharing buttons on the activity site, the user settings page etc.
Hope you can help me. Thank you in advanceHello posting this question again, hopefully all is well and I’m informative as much as I can be.
WP 4.6.1
bbpress 2.5.10
buddypress 2.6.2
rtmedia 4.1.6WP installed as directory in root, no sub-directory
Tested with no plugins other then the ones listed above.
Custom theme SweetDate
No core files changed other than a landing page changed in wp-config.php
which was this:/** * Change BuddyPress default Members landing tab. */ define('BP_DEFAULT_COMPONENT', 'profile' );I use bluehost version that has an installed WP
I’ve inquired this issue with the SweetDate Theme support forum and they told me to ask
about it here.My site is not live yet.
I hope that these two questions are at the right place.
I just have 2 concerns:
1. When creating a Group there is the option to post texts, pics, etc. If it is a long post and then it is submitted, the post comes with a ‘Read More’. When I click on it it opens up to a new page. From there if I hit the back button the post is gone. If I remove the Read More using:
.activity-read-more { display: none !important; }then the text field is limited to about 30 words. Is there a way to remove the Read More and just have it as an open regular forum where there isn’t a need to expand or have it go to another page?
I’ve shared images labeled GroupPost 1to42. The other concern I have is in regards to uploading a Cover Photo for the User Group. If I post an intro text and it winds up being lengthy, the text expands the image. That seems odd. Wondered if this is how it is or on my end. Is there a way to have the text separate and not laid out on the Cover Photo? Would rather have the Cover Photo as a stand alone.
I’ve added an image COVER-TEXTThanks.
I realize the photos are a little small.
Hello,
The ultimate goal is to mask the content and selector when a member arrives on the page of a public group to which it has not acceded. In fact he will see just the top of the page, and description button to join group
screenshot:
https://framapic.org/j4FYWFvZmHVI/sOyIzEz0Gl7F.pngThe idea is to reach over activities and other menu group visited oblige to register if he sees that description, avatar and the button to join
I found bp_group_is_member to test ()
http://buddypress.wp-a2z.org/oik_api/bp_group_is_member/
If I do not put any argument, I understand that it will test whether the member is party group (and I add the condition to be displayed in a group?I have an error message:
« Fatal error: Call to undefined function bp_group_is_member() in /var/www/../wp-content/plugins/bp-custom.php on line 3 »What I found to achieve the goal:
if ( !bp_group_is_member() || bp_is_active('groups') ) {add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activity_types_non-membre' );} function my_bp_activity_types_non-membre( $retval ) { $retval['action'] = array( //'activity_comment', //'activity_update', //'created_group', //'friendship_created', nouv relation entre membre //'joined_group', //'last_activity', //'new_avatar', //'new_blog_comment', //'new_blog_post', //'new_member', //'updated_profile', //'rtmedia_update' ); return $retval;Regards
I would like to show a new custom button in the activity stream’s entry page just beside delete button, which action hook should I use.
I’m trying to change the way new blog posts are seen on the Site Wide Activity page and I’m halfway there, but having a few issues. Here what I have so far (in bp-custom.php):
<?php // Edits how blog posts appears on activity feed. function bp_full_posts_in_activity_feed( $content, $activity ) { if ( 'new_blog_post' == $activity->type ) { $post = get_post( $activity->secondary_item_id ); if ( 'post' == $post->post_type ) $title = isset( $post->post_title ) ? $post->post_title : ''; $content = apply_filters( 'the_content', $post->post_content ); $author = "<h5 align=center>By Author Name Here</h5>"; } echo "<h2 align=center>" .$title. "</h2>"; echo $author; echo $content; } add_filter( 'bp_get_activity_content_body', 'bp_full_posts_in_activity_feed', 10, 2 );What I’m trying to do is instead of having the full post I want for the post to break whenever the more tag is used in a post. After the more tag a text or button should appear saying “Read More”. I tried a few things with no success, will appreciate some pointers in the right direction.
Another thing (although not that important) is that instead of having a default text with “By Author Name Here” it would be great if it can print the name of the post author. I tried using get_the_author(), the_author() and the_author_link(), but none of them were able to show the name in the activity feed.
Thanks in advance
Hi,
I am using WP 4.6.1 in a network site, directory install using a Divi child theme. I have BuddyPress 2.6.2 with BuddyBlock, BuddyPress Cover Photo, BuddyPress Group Email Subscription and BuddyPress Group Tags. No bbPress.
I would like to make all posts and comments in a group visible to anyone who joins the group. At the moment group members can only see the posts and comments of their friends.
This implies that if a new member wants to see all the activity in a group, they have to send friend requests to everyone in the group.
I believe this should be done in bp-custom.php with code something like the following. I don’t know if I should be using the ‘has_groups’ or ‘has_activites’ loop or some other loop. I confirmed that bp_is_group_single does target the page in question because I could change the per_page entries successfully.
Thanks for any suggestions,
David Tuttle