Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Stream Questions – adding tags and comments


  • ClaireBearBunch
    Participant

    @clairebearbunch

    hey guys, im pulling my hair out here, been trying to sort both of these problems out for days.

    please help if you can.

    1. im trying to add a predefined hashtag to all status updates posted from the main activity posting form. everything ive tried has failed, anybody have a clue about php?

    2. ideally id like all visitors to the site to freely post anything they want, anywhere they want, however i cant even get comments to appear to logged out users, far less mess around with name fields so they can post etc

    please help. im near ready to pack it in. x

Viewing 5 replies - 1 through 5 (of 5 total)

  • ClaireBearBunch
    Participant

    @clairebearbunch

    <?php
    /**
    * BuddyPress – Activity Post Form
    *
    * @package Status
    * @since 1.0
    */
    ?>

    <div id=”whats-new-declare” class=”clearfix”>
    <form action=”<?php bp_activity_post_form_action(); ?>” method=”post” id=”whats-new-form” name=”whats-new-form” role=”complementary”>
    <?php do_action( ‘bp_before_activity_post_form’ ); ?>
    <section id=”whats-new-about”>
    <div id=”whats-new-avatar”>
    “>
    <?php bp_loggedin_user_avatar( ‘width=’ . bp_core_avatar_thumb_width() . ‘&height=’ . bp_core_avatar_thumb_height() ); ?>

    </div>
    <div id=”whats-new-wrapper”>
    <div id=”whats-new-tail”></div>
    <div id=”whats-new-textarea”>
    <textarea name=”whats-new” id=”whats-new” cols=”50″ rows=”10″>topic<?php if ( isset( $_GET[‘r’] ) ) : ?><?php echo esc_attr( $_GET[‘r’] ); ?>topic<?php endif; ?>topic</textarea>
    </div>
    </div>
    </section>

    <section id=”whats-new-content”>
    <div id=”whats-new-options”>

    <div id=”whats-new-submit”>
    <input type=”submit” name=”aw-whats-new-submit” id=”aw-whats-new-submit” value=”<?php _e( ‘Post Update’, ‘status’ ); ?>” class=”submitbutton”/>
    </div>
    <?php if ( bp_is_active( ‘groups’ ) && !bp_is_my_profile() && !bp_is_group() ) : ?>
    <div id=”whats-new-post-in-box”>
    <?php _e( ‘Post in’, ‘status’ ) ?>:
    <select id=”whats-new-post-in” name=”whats-new-post-in”>
    <option selected=”selected” value=”0″><?php _e( ‘My Profile’, ‘status’ ); ?></option>
    <?php if ( bp_has_groups( ‘user_id=’ . bp_loggedin_user_id() . ‘&type=alphabetical&max=100&per_page=100&populate_extras=0’ ) ) :
    while ( bp_groups() ) : bp_the_group(); ?>
    <option value=”<?php bp_group_id(); ?>”><?php bp_group_name(); ?></option>
    <?php endwhile;
    endif; ?>
    </select>
    </div>
    <input type=”hidden” id=”whats-new-post-object” name=”whats-new-post-object” value=”groups” />
    <?php elseif ( bp_is_group_home() ) : ?>
    <input type=”hidden” id=”whats-new-post-object” name=”whats-new-post-object” value=”groups” />
    <input type=”hidden” id=”whats-new-post-in” name=”whats-new-post-in” value=”<?php bp_group_id(); ?>” />
    <?php endif; ?>
    <?php do_action( ‘bp_activity_post_form_options’ ); ?>
    </div><!– #whats-new-options –>
    </section><!– #whats-new-content –>
    <?php wp_nonce_field( ‘post_update’, ‘_wpnonce_post_update’ ); ?>
    <?php do_action( ‘bp_after_activity_post_form’ ); ?>

    </form><!– #whats-new-form –>
    </div>

    thats the right php i think, post-form.php, how could i modify a line or two here for posting my own tags?


    ClaireBearBunch
    Participant

    @clairebearbunch

    ive pretty much given up on this. been 20 hours straight trying lol

    as for opening up the status comments to all site visitors, it looks like that one is impossible aswell.

    its a shamebecause i think both features would be universally popular.

    ill take a break and maybe try later. take care folks x

    I’m afraid you’re trying to achieve something not possible, WP might allow anonymous posting of comments but BP is a membership system, you must be a member to be able to add items to something like the activity stream (otherwise it simply won’t know who to attribute data to) , and many such functions in BP are based on a logged in requirement.


    ClaireBearBunch
    Participant

    @clairebearbunch

    hey.

    yeah i suspected as much sadly.

    i know on simplepress forums they get round it by creating a ‘fake’ account for whatever username is typed in as the guest username, i was just hoping somebody had tried to modify it to work on buddypress at some point.

    i dont have anything like the skills to try it lol.

    ill have a coffee and look at the adding hidden text to the status update field again

    BP isn’t a forum app, you can’t have non registered users, wouldn’t bother to try hacking it to, however comment posting to blog posts or allowing anonymous topics and replies in bbPress can be allowed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Activity Stream Questions – adding tags and comments’ is closed to new replies.
Skip to toolbar