Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 651 through 675 (of 709 total)
  • @nuprn1

    Participant

    since i use bbPress as an external install (on a subdomain and within bp) – want to carry over some of the basic plugins. So, I’m working on bb-signatures, bb-code, bb-smiles into the BP group forums section (maybe ajaxed quote – not sure yet)

    also, i have company directory app (standard address, contact, members, deals, reviews, tagging) that runs on a hybrid wordpress based site – i’m thinking about converting this into a bp component (based on groups?)

    @nuprn1

    Participant

    i just wrote a plugin to restrict group creation to wp cap levels, pretty basic for the first release though

    https://wordpress.org/extend/plugins/buddypress-restrict-group-creation/

    @nuprn1

    Participant

    This is more of a teaser than an explanation

    ah yes, i tend to post in quick theory :-P

    I don’t know if it would work but essentially;

    you would need to write your own action function that hooks on bp_activity_posted_update that mimics the logic of bp_activity_at_message_notification (where it looks for an username match in the content – then on the match issue the notification. have to figure out a way to delete the notification though)

    function bp_core_add_notification( $item_id, $user_id, $component_name, $component_action, $secondary_item_id = false, $date_notified = false ) { (located in bp-core-notifications.php)

    I wouldn’t know what the proper component name/type in this case would be

    i did submit a trac ticket enhancement for this though

    @nuprn1

    Participant

    see my post above – that fixed the problem for me and duplicates. (basically get_activity_id kept looking at the hashed blogurl instead of the posturl) i also had to remove the action piece from the get_activity_id

    @nuprn1

    Participant

    FWIW,

    I installed the plugin – enabled the settings/authorized the account and didn’t do anything over the weekend. (this is on a test install with no active users)

    Then I got this message yesterday:

    This is a notice that your OAuth token for VWGroups has been suspended from interacting with the Twitter API.

    Please make sure that your application follows Twitter’s policies, including the Twitter rules, the API rules, and the automation rules.

    To request for your token to be re-enabled, please write to api@twitter.com

    is the plugin polling too much?

    @nuprn1

    Participant

    At first, after saving the new settings, I got the WP page that prompted me that I needed correct password etc to create database.

    I’m not sure what would cause this. Is this a MU thing? (i’m only on single) I’m not creating any new tables/etc just using the add/update_option to store some metadata.

    and other new plugin-generated group functions like creating group blogs and group wikis, etc.

    i’ll definitely add some more cap levels to plugin steps in some future release.

    @nuprn1

    Participant

    already a feed and email notification

    though i’m sure it is possible to take the function bp_activity_at_message_notification duplicate the atme part and have it hook into bp_core_add_notification (adminbar notification)

    @nuprn1

    Participant

    the only place i see the new activity update 'type' => 'new_member' is under bp_core_screen_activation() which is called with an activation key – maybe this is restricted to multisite installs?

    @nuprn1

    Participant

    only problem with removing the link:

    <?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/create/' ?> someone could still access the url directly to start the process.

    I went ahead and created a plugin (waiting on repo request on wordpress.org) to disable the steps and show a ‘new groups creation is closed’ message. Also added in a midlevel-cap to allow another set of users the ability to create private/hidden + w/forums. I may expand this to restrict other steps in the group creation process (as other plugins using the group extension api may add in their own step)

    Basically the plugin removes the $bp->groups->group_creation_steps – adds in a custom position 0 step to display a closed page.

    @nuprn1

    Participant

    sorry, here is the code that works:

    (bp_get_activity_object_name() == 'groups' && groups_is_user_member( bp_loggedin_user_id(), bp_get_activity_item_id() ) )

    @nuprn1

    Participant

    edit the theme file /activity/entry.php and under the activity-meta div – you’ll see the link for comments. you could add the following checks to that section:

    bp_get_activity_object_name() == 'groups'  //the component name
    groups_is_user_member( $bp->loggedin_user->id, bp_get_activity_item_id() ) //if a group then item_id references the group_id

    (i didn’t test this – just what i found)

    @nuprn1

    Participant

    The best way would probably be to write a new component and turn off the friends component.

    sounds tempting to figure out :)

    @nuprn1

    Participant

    check out this function in bp-friends.php

    function friends_check_friendship_status( $user_id, $possible_friend_id ) {

    that will return a string depending on the friend status

    @nuprn1

    Participant

    google search for sql ISO 3166 country tables – as many sites provide a basic list

    @nuprn1

    Participant

    posted my temp fix for the dups – and i haven’t seen any on my site since the change

    https://buddypress.org/forums/topic/external-group-blogs-bug#post-40090

    @nuprn1

    Participant

    i notified Andy of this problem, but here is my fix – needs to hash the post link (but this would leave to problems when removing a feed and the activity not deleting)

    /* Fetch an existing activity_id if one exists. */
    if ( function_exists( 'bp_activity_get_activity_id' ) )
    $id = bp_activity_get_activity_id( array( 'user_id' => false, 'component' => $bp->groups->id, 'type' => 'exb', 'item_id' => $group_id, 'secondary_item_id' => wp_hash( $post['link'] ) ) );

    /* Record or update in activity streams. */
    groups_record_activity( array(
    'id' => $id,
    'user_id' => false,
    'action' => $activity_action,
    'content' => $activity_content,
    'primary_link' => $post['link'],
    'type' => 'exb',
    'item_id' => $group_id,
    'secondary_item_id' => wp_hash( $post['link'] ),
    'recorded_time' => gmdate( "Y-m-d H:i:s", $post_date ),
    'hide_sitewide' => $hide_sitewide
    ) );

    @nuprn1

    Participant

    It strikes me that people, when hitting ‘Reply’ to a Forum post that appears in the Activity stream, are going to assume that they’re actually replying inline in the forum thread in question, but this is, of course, not the case. It’s just adding a comment to an activity ‘item’.

    I had this same thought – so i just removed the reply button on all forum related activity updates

    @nuprn1

    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' );

    @nuprn1

    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)

    @nuprn1

    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;

    @nuprn1

    Participant

    what about get_site_option( "illegal_names" ) – maybe hook into that? already in the function wpmu_validate_user_signup

    @nuprn1

    Participant

    fast work! thanks.

    @nuprn1

    Participant

    probably give it more than 3 hours for a response but if you crack open the bp-activity-templatetags file. You’ll see bp_activity_user_link() and how it pulls up the info. Also above that is a function just for the user_id (and i’m sure there is another function around to pull in the fullname from the user_id)

    @nuprn1

    Participant

    small bug from downloading at the WP repo

    some of the js and css calls are referring to bp-rate-forum-posts instead of buddypress-rate-forum-posts

    even after updating the bad references – i can’t seem to get it to work. It will rate to a +1 but nothing is being saved to the db. Maybe the repo has a bad version?

    @nuprn1

    Participant

    probably a half dozen threads discussing the same howto

Viewing 25 replies - 651 through 675 (of 709 total)
Skip to toolbar