Search Results for 'buddypress'
-
Search Results
-
Topic: Buddypress User Comments
Hello!
I’m developing a medical online community based on BuddyPress and I’d like to know how to check the value from a specific bp_member_profile_data field. If the user put a specific value (this field is a Dropdown with several choices), such as a Physician or a Student, I’ll like to display a specific button on the user’s profile.
Does anyone have an idea on how to accomplish this?
Thanks!
buddypress activity comment system, is so great, I ‘m sure it ‘s better than blog comment system.
So I’d like to take buddypress activity comment system to instead of blog comment system.
My first solution is to apply one plugin: buddypress-activity-as-blog-comments
within this pluging, there’s a function: bp_activity_blog_comments_template( $file = ” ), to filter the new_blog_post and its comments,but there’s a problem, all comments are appearing all at once, no pages, it’s not good.
So I’d like to filter the activity_comment towards to the new_blog_post, instead of the new_blog_post with its comment.
in this way, all activity_comment can be pages, or “load more” will apear.but I’m very poor in coding,
I can’t filter the activity_comment,
who can hell me?following is my code in theme: single.php
<?php get_header(); ?>
<div id=”content”>
<div class=”padder”>
<?php do_action( ‘bp_before_blog_single_post’ ); ?>
<div class=”page” id=”blog-single” role=”main”>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
…. ….
<?php comments_template(); ?>// my code
<div class=”activity” role=”main”>
<?php do_action( ‘bp_before_activity_loop’ ); ?><?php
global $bp,$wpdb;
$object = $bp->blogs->id;
$primary_id = (int) $wpdb->blogid;
$post_id = get_the_ID();
$post_activity_id = bp_activity_get_activity_id( array( ‘component’ => $object, ‘type’ => ‘new_blog_post’, ‘item_id’ => $primary_id, ‘secondary_item_id’ => $post_id ) );$a_id = array();
$post_activity_childrens = $wpdb->get_results( “SELECT id FROM {$bp->activity->table_name} WHERE type = ‘activity_comment’ AND secondary_item_id = ({$post_activity_id})”);foreach( (array) $post_activity_childrens as $child ) {
$a_id[] = $child->id;
}$params = array(‘per_page’ => ‘6’, ‘in’ => $a_id);
?><?php if ( bp_has_activities( $params ) ) : ?>
…….
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<?php locate_template( array( ‘activity/entry.php’ ), true, false ); ?>
<?php endwhile; ?>
…. ….Hi guys
I’m in the process of writing the spec for a new project that will be using Buddypress 1.8.
I have a WordPress starter theme of my own, built with Bootstrap 3.0 (RC1 right now), upon which the whole site will be built.
We’d like to integrate BP 1.8 into the new site, however instead of writing a bunch of CSS to make the BP pages look like the rest of the site, I’d like to change the layout files of BuddyPress to use Bootstrap’s HTML syntax therefore inheriting the styles and layouts of the whole theme automatically.
My question is, how to best approach this:
1 – Should I copy all the files from /bp-templates/bp-legacy/buddypress into my own theme’s /themeroot/buddypress and modify from there?
2 – Should I override only the files I need, by copying them into my theme and obeying the theme hirearchy?
3 – Is there a better way?
Thanks very much in advance for any help or tips!
I am trying to add custom code to the edit page on my Buddypress profile form so that it displays images in place of radio buttons. This is the HTML code that is outputted:
<div class="radio"> <span class="label">Hair Colour </span> <div id="field_521"> <label><input checked="checked" name="field_521" id="option_533" value="Blonde" type="radio"> Blonde</label> <label><input name="field_521" id="option_534" value="Light Brown Brunette" type="radio"> Light Brown Brunette</label> <label><input name="field_521" id="option_535" value="Dark Brown" type="radio"> Dark Brown</label> <label><input name="field_521" id="option_536" value="Black" type="radio"> Black</label></div> <a class="clear-value" href="javascript:clear( 'field_521' );">Clear</a> </div>I have found a number of different solutions for changing radio buttons to images using jQuery but none appear to suit the code that is outputted but the Buddypress profile page. Any help would be greatly appreciated.
Thanks
When I try to register in my Buddypresss social site I recieve this message: The requested URL /sign-up/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Please, help.
Is there a plug in or something i can add to my buddypress site to allow users to comment on other user’s pages? Maybe im not finding something here?