Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'forum'

Viewing 25 results - 15,526 through 15,550 (of 20,258 total)
  • Author
    Search Results
  • #65846
    andrew_s1
    Participant

    I’ve just attached the theme patch to the trac ticket here https://trac.buddypress.org/ticket/2063#comment:1

    #65843
    sakthig
    Participant

    Yes i think the issue is not yet resolved by buddypress!

    Being a admin of my group forum i can not moderate the forum topics that posted by others .

    Any answers from our members?

    #65841
    andrew_s1
    Participant

    I’ve just proposed the adding of a new action hook that would make it easy to develop a plugin for this. The action hook is suggested for another purpose, but would work for this purpose as well.

    See https://buddypress.org/forums/topic/new-plugin-buddypress-rate-forum-posts/page/2#post-39751 – the proposed action is bp_single_forum_topic_links

    If that hook gets incorporated, then writing a plugin to do what you want would be very easy.

    Alternatively, you could also just modify your theme directly, to add it. See the theme file groups/single/forum/topic.php</b> , in the loop:

    while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post();

    #65839
    andrew_s1
    Participant

    At the moment, the classes are added to individual posts in a topic, by javascript. This results in extra server load, because wordpress has to do two whole startups for each such page. The trade-off is adding another apply_filter and a do_action to the theme, but as this plugin already benefits from one such proposed theme change, we can get two for the price of one.

    Proposed change to buddypress/bp-themes/bp-default/groups/single/forum/topic.php, from line 26:

    <ul id="topic-post-list" class="item-list">
    <?php while ( bp_forum_topic_posts() ) : bp_the_forum_topic_post(); ?>
    <li <?php
    $topic_post_id = bp_get_the_topic_post_id();
    echo "id='post-$topic_post_id' class='",
    apply_filters('bp_single_forum_topic_post_css',array('class'=>'', 'post_id'=>$topic_post_id)),
    "'";
    ?> >
    <div class="poster-meta">
    <a href="<?php bp_the_topic_post_poster_link() ?>">
    <?php bp_the_topic_post_poster_avatar( 'width=40&height=40' ) ?>
    </a>
    <?php echo sprintf( __( '%s said %s ago:', 'buddypress' ), bp_get_the_topic_post_poster_name(), bp_get_the_topic_post_time_since() ) ?>
    </div>

    <div class="post-content">
    <?php bp_the_topic_post_content() ?>
    </div>

    <div class="admin-links">
    <?php
    if ( bp_group_is_admin() || bp_group_is_mod() || bp_get_the_topic_post_is_mine() ) :
    bp_the_topic_post_admin_links();
    endif;
    do_action( 'bp_single_forum_topic_links' , $topic_post_id );
    ?>
    <a href="#post-<?php echo $topic_post_id; ?>" title="<?php _e( 'Permanent link to this post', 'buddypress' ) ?>">#</a>
    </div>
    </li>
    <?php endwhile; ?>
    </ul>

    Proposed change to buddypress-rate-forum-posts/bp-rate-forum-posts.php, insert:

    // modifies the css class for topics to highlight popular posts, and hide very unpopular ones
    function rfp_css_class_for_post($args) {
    global $rfp;
    $class = $args['class'];
    $post_rating = rfp_get_post_rating( $args['post_id'] );
    $rfpclass = '';
    error_log('rfp='.print_r($rfp,true));
    if ( $post_rating == NULL )
    $rfpclass = '';
    else if ( $post_rating >= $rfp->superboost )
    $rfpclass = 'rfp-superboost';
    elseif ( $post_rating >= $rfp->boost )
    $rfpclass = 'rfp-boost';
    elseif ( $post_rating <= $rfp->hide )
    $rfpclass = 'rfp-hide';
    elseif ( $post_rating <= $rfp->diminish )
    $rfpclass = 'rfp-diminish';
    //error_log("in rfp_css_class_for_post rating '$post_rating' adding class '$rfpclass' to '$class' with args ".print_r($args,true));
    return $class.($class?' ':'').$rfpclass;
    }
    add_filter( 'bp_single_forum_topic_post_css', 'rfp_css_class_for_post', 3);

    function rfp_echo_hidden_post_link($post_id) {
    global $rfp;
    $post_rating = rfp_get_post_rating( $post_id );
    if ( $post_rating && $post_rating <= $rfp->hide )
    echo "<span class='rfp-show' onclick='jQuery(this).remove();jQuery("#post-$post_id").removeClass( "rfp-hide" );'>Click to show this hidden post</span>";
    }
    add_action( 'bp_single_forum_topic_links', 'rfp_echo_hidden_post_link', 3);

    And then the javascript section starting jQuery(document).ready( function() can be removed from buddypress-rate-forum-posts/js, and the corresponding section can be removed from the end of buddypress-rate-forum-posts/rate.php

    #65835
    John Stringfellow
    Participant

    Ray, Good Morning. Thank you for sharing your experience with a similar issue.

    Unfortunately, I think that your problem might relate to mine. I shut down the site completely to do the MU install and I used Ron’s Advanced Import Tool/Widget. I thought all the categories were imported and working fine until this last BP update. Something in that update made my category structure go all pear shaped.

    I guess I’ll have to spend some time over in the MU forums. I think this relates to BP too since the update seems to have changed the way categories are changed or shown. Specifically, the category slugs cannot be edited anymore. [at least that I can find]

    I hardly know where to start to find the problem in the database.

    BNJ

    #65824

    In reply to: Location Profile Field

    xspringe
    Participant

    There used to be the possibility to use pre-built fields to the registration form (as described here: https://buddypress.org/forums/topic/what-happened-to-add-prebuilt-field), which would take care of at least part of this problem. But it appears this is no longer supported for 1.2.

    So I definitely support the request for the ability to add pre-built registration fields.

    #65815
    nickrita
    Participant
    #65811
    snark
    Participant

    Yes, that makes sense, until there are hundreds of IP addresses to try to ban. Also, WP isn’t logging the IP addresses, though I suppose I could install a plugin to do that.

    Philosophically, it goes back to the debate over sending new users a confirmation email or not. I’m in the yes camp, because many forum spambots will sign up for memberships with a bogus email address, so if they have to confirm via email, their memberships will never get confirmed. But I suppose there’s a performance trade-off to sending out a high percentage of emails that end up bouncing.

    Ideally I can figure out a set of methods to stop most spam registrations from happening in the first place, greatly reducing the amount of user editing I would otherwise have to do after the fact.

    #65809
    pandragon
    Member

    Also where can I go to remove the yellow notice for forum posting? As i want to disable users from creating groups themselves I only want admin to be able to do this – So far I have gotten rid of create button for normal users but if normal user tries to post in forum the yellow notice comes up and says “why not create a group” which then enables members to make a group – I want to remove this option from the notice for members?

    #65799
    Sabuntu
    Member

    Thanks everybody for the backup

    Actually, I raised this issue and I found the answers, Thanks to both wpmudev and buddypress docs

    But after activating buddypress on a subdomain, I found it better if I activated it on the root blog, so I will not confuse my members.

    I tried to reverse the process, But I completely failed

    I tried the following maneuvers but non of them succeeded:

    1- I deactivated bp plugin and deleted it –> once installed and activated again it will be activated back on blog 3

    2- I droped the bp tables in the database, installed again but the same problem

    3- I added this code to wp-config:

    define ( ‘BP_ROOT_BLOG’, 1 );

    define( ‘BP_AVATAR_UPLOAD_PATH’, ‘/var/www/wp-content/blogs.dir/3/files’ );

    define( ‘BP_AVATAR_URL’, ‘hxxp://community.example.com’ );

    and tried to activate bp plugin again

    it activated nicely and asked me to choose a theme for buddypress but once choosing a theme I see only a blank white page and I can’t access my dashboard even

    I get to it by accessing another blog and deactivating bp plugin to get through my dashboard

    so I tried another way

    I did all of the mentioned in addition to editing my .htaccess and adding the following codes

    RedirectMatch 301 ^/members/(.*)$ http://community.example.com/members/$1

    RedirectMatch 301 ^/groups/(.*)$ http://community.example.com/groups/$1

    RedirectMatch 301 ^/blogs/(.*)$ http://community.example.com/blogs/$1

    RedirectMatch 301 ^/forums/(.*)$ http://community.example.com/forums/$1

    but non of them helped

    I still have one option to delete blog 3, but I’m afraid I will be stuck and No way to do it back

    I Know I’m asking too much but Please Help Me

    #65791
    r-a-y
    Keymaster

    Hey BNJ,

    You’re lucky that this also happened to me!

    Read up on what I did to overcome this:

    https://mu.wordpress.org/forums/topic/15553?replies=7#post-89067

    [EDIT]

    You say you did a completely clean WPMU install, so I’m not sure if the link I posted above will help you.

    #65776
    bpisimone
    Participant

    @Dwenaus, haha good one! At the moment there’s no hurry for me. I just wanted to check what you think about that. But who knows maybe I will need the feature in a few weeks.

    But again, good plugin, nice implementation.

    #65770
    rich! @ etiviti
    Participant

    I think my situation is somewhat unique as

    $bp->forums->bbconfig = $bp->site_options['bb-config-location']; which is loaded in bp-forums.php is different (subdomain) than the wp root bb-config.php which had a stale reference to the default bb table prefix.

    I’m not certain – but you may be able to call do_action( 'bbpress_init' );

    #65764
    Dwenaus
    Participant

    @andrew_s1 thanks for the code, I’ll add that soon.

    @nuprn1 – I would love to not hard code it, but I was having trouble getting those variables. Can you give me a suggestion on how I can do that. One solution could be to check a db option value, and if it exists (for example in a custom install) then use that instead of the default one. what do you think?

    @Bpisimone – I might get around to comment rating, but that is a pretty low priority because those plugins already exist. However it would be good to combine points rather that have two systems. Things like this that don’t effect the project i’m working on are lower priority. (but donations do make them higher priority. :)

    #65746
    bpisimone
    Participant

    This thing works well on my test install, very well done @Dwenaus! Right now I’m also using another plugin called comment rating. Any chance you might extend yours to comments also?

    #65745
    rich! @ etiviti
    Participant

    @dwenaus

    Ok, just updated to 1.0.3 and hit another snag. Seems you have the bb_meta table hardcoded as I’m using an external forum install

    nevermind – looks like i have weird issue with an external bbpress install and various prefix values being defined (might be a buddypress bug)

    code012
    Member

    BuddyPress works like a central community, so it’s either you have one BuddyPress website or not.

    What you can do is to install it on a single subdomain.

    like community.abc.com

    then you would have to edit your wp-config.php file, add the following line

    define ( ‘BP_ROOT_BLOG’, 3 );

    the number 3 is your blog id.

    I’ve found the solution from

    http://premium.wpmudev.org/forums/topic/how-to-install-buddypress-as-a-sub-domain

    Thanks to Sabuntu!

    I’m requesting the subdomain installation as a feature though.

    #65743
    code012
    Member

    Hi Sabuntu.

    Thank you so much for your contribution on wpmudev.

    http://premium.wpmudev.org/forums/topic/how-to-install-buddypress-as-a-sub-domain

    You saved me so much time on this.

    I’m adding this post so that maybe it can help out people here as well.

    #65740
    andrew_s1
    Participant

    What do you think about displaying the karma on the profile page too?

    Something like this:

    function rfp_show_poster_karma() {
    global $bp;
    $poster_id = $bp->displayed_user->id;
    $karma = get_usermeta( $poster_id, 'rfp_post_karma' );
    echo rfp_poster_karma($karma);
    return;
    }
    add_filter( 'bp_before_member_header_meta', 'rfp_show_poster_karma' );

    #65738

    In reply to: bbPress issue

    r-a-y
    Keymaster

    @idotter

    Can you be specific when you say “reinstalled bbPress twice”?

    Are you trying to have an external bbPress install?

    Or are you trying to use the BP group forums? eg. testbp.org/forums

    #65734
    snark
    Participant

    Man I’m dense — too many sleepless nights doing this are taking their toll on me. I already asked for help on this in another thread, received help, and even successfully implemented it. I thought it seemed like deja vu all over again. Doh! See this thread, especially the last few posts:

    https://buddypress.org/forums/topic/forum-user-roles-and-moderator-ability-bp-12-rc2-wp-291#post-36543

    The solution by intimez near the end of the thread is basically the one above, but with the button code included.

    Ahh, now it’s all coming back to me…

    #65728

    In reply to: Avatar Upload Issues

    lyricalbiz
    Participant

    My avatars are showing up, but the alignment is all vertical on the sidebar with no spacing . What I would love is an avatar block to show up. I’m also having the spacing issues (or lack of spacing) in my Members page.

    I’m using the BuddyPress Template plugin on BuddyPress 1.2.1 for WordPress single user 2.9.2. This site is a test site for a client project and it’s pretty much the last hurdle. The website is http://workingonthisnow.com/MHA

    I appreciate all the help! This forum is amazing.

    #65723
    kim-culhan
    Member

    BP depends on .htaccess being enabled.

    In apache in httpd.conf AllowOverride controls

    what directives will be allowed in .htaccess files.

    I’m using:

    AllowOverride FileInfo Options

    The default value was:

    AllowOverride None

    Which caused problems when installing BuddyPress

    -kim

    #65705
    rich! @ etiviti
    Participant

    check out:

    https://buddypress.org/forums/topic/removing-blog-posts-form-the-swa-widget#post-36775

    but instead of component == ‘blogs’ change it to type == ‘new_member’

    then change your theme activity/index.php to remove the select option ‘show new members’

    I would also like to see this filter turned off if logged in as admin, so we could administer the the spammers better –

    using the above example – add before the loop

    if ( is_site_admin() )
    return $activities;

    #65704
    Dwenaus
    Participant

    good to know the plugin is working well.

    @andrew_s1 thanks for the headsup

Viewing 25 results - 15,526 through 15,550 (of 20,258 total)
Skip to toolbar