Forum Replies Created
-
in the function, where color = your main field heading, I’ve used a dropdown. and Red is one of the drop down items to select from.
I don’t know if it works the same if the field was just a text field. I imagine so.
@gregfielding I forgot where I found this (maybe bp-tricks)
put this in your bp-custom
`//CHECK IF THE ACCT IS CERTAIN ACCT TYPE
function My_Function ($user_id) {
global $bp;
$type_member = xprofile_get_field_data( ‘Color’, $user_id );
if($type_member == ‘Red’) {
return true;
} else {
return false;
}
}`Then to display in sidebar
`
loggedin_user->id)) : ?>
Red SidebarSome other Sidebar
`In reply to: Create a Title Field for Buddypress Updates@gregfielding have you considered using p2 on a community blog where members can submit those community updates you need? In a sense it could serve as an activity stream for posts. and think of all you could do with wp posts that you can’t with activity stream entries.
In reply to: Network Activated BP Plugins Selective DisableIn reply to: Beta Testers Warmly Appreciatedwill do. been admiring your updated design!
* when I first tried updating the “what’s happening…” status, the activity didn’t immediately appear. i had to refresh the page.
In reply to: Letting the user upload a custom background?anywhere we can see this awesomeness in action? like modemlooper said, and I suggested also months back to see if that groups-css plugin could be done to work with profiles. that would be A-OK.
In reply to: Problems with buddypressdo you have a buddypress ready theme? BP will not work automatically for all themes. You’ll need a Buddypress ready theme and/or use the BP Template Pack plugin. https://wordpress.org/extend/plugins/bp-template-pack/
yes at least the featured image field. i think i’d be ok with that. and I’ll give it a try my self for now.
I see. Well. In the activity stream there is a thumbnail pulled for blog post activity items if there’s an attachment. If the blog post has an image saved in a custom field, the activity stream will not display a thumbnail. Would it be possible to get it to check first for a custom field image and then check for an inserted image.
In reply to: Default Tab depending on Friendshipbp_is_my_profile seemed to work but I’ll take your advice for sure. thanks!
In reply to: Default Tab depending on Friendship@sbrajesh
to account for your own profile? would it be good to do this to this line:`if(friends_check_friendship( $current_user_id, $displayed_user_id ) || bp_is_my_profile())`
In reply to: Default Tab depending on Friendship@sbrajesh Now…that! is awesome.
In reply to: Limiting text length of activity update posts@aljuk thanks for the tip. that was just something i dragged together and it has worked for me. i’m no pro is for sure but what a pro once told me, “if it works!, it works!” hehe. I thought the copy and paste issue was an issue but folks are saying it hasn’t been so right on.
@justbishop sorry i had my code highlighter plugin deactivated on that post…i’ve fixed it now.
In reply to: Progress bar plugin@nlvp this is as far as I got…the goal number would have to be created manually instead of user being able to just enter it into a preset custom field. They’d have to make a custom field called Goal and enter the number.
`
<?php
$args = array_merge( $wp_query->query, array( ‘post_type’ => ‘post’, ‘post_author’ => $bp->displayed_user->id,
‘post_status’ => ‘draft, pending’, ‘order’ => ‘DESC’, ‘posts_per_page’ => 1 ) );query_posts($args);
?>-
/*This will show the current word count of the listed post */
post_content));?>/*This next piece is what I haven’t accomplished fully, it is supposed to show a custom field designated “goal” */
ID, “goal”, $single = true); ?>
`
place this in your member header. should work. maybe someone else can refine it for you and add that visual graphic progress bar. Also this is if your members are authors on the main site and that’s where the posts are.
In reply to: Progress bar pluginOne way is show drafts for user(post author) with the wordcount next to it with the goal number set next to that. Draft Post Name (190 wds) / Goal (800wds) — This is actually something I’m going to try for a bp user stats page I’m working on. It’s not a visual progress bar but close you could probably build it out further to be visual. If I get it to work I’ll post it back here.
*edit I think I’ve came up with something pretty close to what i proposed. I just need to add a custom field for the post where you can enter the goal word count.
In reply to: Getting a list of users activity countI’m trying to figure out what the difference is between the activity count that spits out using the old plugin Buddypress Member Profile Stats and using this code. This code shows a higher number than that of the plugin. Does one take into account reply comments or deleted updates. Anyone know this. trying to decide which one is more accurate.
In reply to: How to add registration form to front pagecool…thanks for reporting it back. I will try it out.
In reply to: How to add registration form to front pageMaking it a custom page template and dropping in the entire register.php block didn’t work?
Also I’ve tried out the Gravity Forms add on for a registration form like this that can be placed in the page but I didn’t get into it much as I only tested it quickly when they introduced those addons. From what I recall it worked but something weird happened after the registration like the page not refreshing — I don’t remember. It also didn’t do what I wanted as far as no activation key and redirect to profile like what I use currently. So i shelf’d it. I think that would be a good option if you don’t mind getting GF. It’s a good investment! Actually, I think I’ll look into tinkering with it again.
In reply to: Mention Drop Down Box?Does this hint have to do with the autocomplete member search feature mentioned in a recent thread?
In reply to: Buddypress – TwitterIn reply to: Profile pagesa crazy thought but if you’re not using groups for anything that might be round-about way to do something like this.
In reply to: BuddyPress and Site wide tags plugin@doctordr activate that plugin I mentioned and add this to your bp-custom.php
`
//if php is older then change $a to &$a
function my_block_activity_type_blog_id_before_save( $type, $a ) {
global $bp;//if there is an id – we don’t care… updating
if ( $a->id )
return $type;//Come and see the violence inherent in the system. Help! Help! I’m being repressed!
//key on the blog types (even for comments posted to that blog)
if ( $a->type == ‘new_blog_post’ || $a->type == ‘new_blog_comment’ ) {//item_id is the blog_id in this context
//could add more blog_ids here as well or even parlay into switch_to_blog to block categories, etc
if ( $a->item_id == 1) {
$a->type = null;
return null;
}
}//otherwise continue if nothing happened
return $type;
}
add_filter(‘bp_activity_type_before_save’, ‘my_block_activity_type_blog_id_before_save’, 9999, 2);
`
I think that works. If item_id == 1 is the blog_id you want to exclude.In reply to: BuddyPress and Site wide tags plugin@doctordr You could make your SWT blog private or try this plugin https://buddypress.org/community/groups/buddypress-block-activity-stream-types/ I remember there is a way to block specific blog IDs from appearing in the activity stream but the plugin developer is no longer keeping up with this plugin and it appears his site is offline. there may be instances of the fix around here on the forums though.
In reply to: Same user database in two websiteIn reply to: Buddypress Styling HelpI think you the latest version of BP but an old members-loop.php file.
`
`
I believe this is all that needs to be in those lines in the /members/members-loop.php
-