Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'spam'

Viewing 25 results - 551 through 575 (of 3,349 total)
  • Author
    Search Results
  • bfchris2
    Participant

    Hello:

    Trying to insert a new function that uses the “favorite” button in Users Activity Stream.
    Instead of “favoriting”, I’d like it to basically mimic the spam button, but instead of writing to the is_spam row in the activity table, I’d like it to write to a new row I’ve created. Same functions, etc.

    How can I rename and revamp the favorite button function to do this?

    Thanks in advance for any assistance.

    Chris

    #243562
    XrossGG
    Participant

    Does anyone know a solution for online spam and unwanted links, pictures etc?

    On Facebook you can report people and posts, I want that for my BP community as well. Any suggestions?

    #243538
    coffeywebdev
    Participant

    Take a look at this code, I think it may be helpful for you…

    I created a function vp_add_group_activity_comments() that hooks to the ‘post_comment’ action, so when a user posts a comment an activity stream item is created and added to their group’s feed.. (on my site users can only be in one group at a time)

    It’s all about what you set for the $args array….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    #243537
    coffeywebdev
    Participant

    Take a look at the code below to see how I use the post_comment action to hook my function vp_add_group_activity_comments(), which creates an activity stream item when a user posts a comment and adds it to their group’s activity stream… This is just what we are doing for our site, but if you look at the code you should be able to figure out how to do it for your site….

    
    function vp_add_group_activity_comments($comment_id){
    
    $comment = get_comment( $comment_id );
    GLOBAL $wpdb;
    $user_id = get_current_user_id();
    $user_info = get_userdata( $user_id );
    
    $current_user_group_id = $wpdb->get_var("SELECT group_id FROM ".$wpdb->prefix."bp_groups_members WHERE user_id = '".(int)$user_id."'");
    
    $comment_action = "<a href='".site_url()."/members/".$user_info->user_login."'>".$user_info->first_name." ".$user_info->last_name."</a> posted a comment on <a href='".get_permalink($comment->comment_post_ID )."'>".get_the_title($comment->comment_post_ID)."</a>";
    
    // arguments to pass to the bp_activity_add() function
    $args = array(
    'action'            => $comment_action,                     // The activity action - e.g. "Jon Doe posted an update"
    'content'           => $comment->comment_content,                     // Optional: The content of the activity item e.g. "BuddyPress is awesome guys!"
    'component'         => 'groups',                  // The name/ID of the component e.g. groups, profile, mycomponent
    'type'              => 'activity_update',                  // The activity type e.g. activity_update, profile_updated
    'primary_link'      => get_permalink($comment->comment_post_ID ),                     // Optional: The primary URL for this item in RSS feeds (defaults to activity permalink)
    'user_id'           => $user_id,  // Optional: The user to record the activity for, can be false if this activity is not for a user.
    'item_id'           => $current_user_group_id,                  // Optional: The ID of the specific item being recorded, e.g. a blog_id
    'secondary_item_id' => $comment->comment_ID,                  // Optional: A second ID used to further filter e.g. a comment_id
    'recorded_time'     => bp_core_current_time(), // The GMT time that this activity was recorded
    'hide_sitewide'     => 0,                  // Should this be hidden on the sitewide activity stream?
    'is_spam'           => 0,                  // Is this activity item to be marked as spam?
    );
    
    $add_activity = bp_activity_add($args);
    
    // Update the group's last activity
    groups_update_last_activity( $current_user_group_id );
    
    return true;
    }  
    add_action('comment_post', 'vp_add_group_activity_comments' );
    
    #243477
    djsteveb
    Participant

    @atfpodcast – quick chat is working 24/7 on my busiest bp site with 11,000 members.. only thing that screws up that page is when rtmedia has an update the screws with permalinks (messes up all of my static “pages” – have to change and resave.. but that is an issue with rtmedia and permalinks – nothing to do with quickchat.. it works fine and I deploy it on different sites in different ways. I did some write up about it on one of the comment threads I originally linked to in the first response to the original post I think..

    anyhow, I think quickchat is the perfect text-chat plugin for a small web site that does not hammer the chat system with hundreds of simultaneous users.

    It does chat, avatars, bad words filter, admin can delete stuff – it’s quite the package – I wish the original dev would of answered my emails offering some paid enhancements.. but it’s fine as it is. I did a long write up on one site talking about the drawbacks of ANY chat system that hooks into sql – but I doubt most people will run into those issues until they get more than 20 or so same-time chatters – that’s when you start to look at things to limit sql requests to keep your server from choking – which is usually more of an issue with robots and scrapers and brute force login stuff – comment spam – all that.. guess that’s more of a slightly different discussion – lol.

    #243410
    DJ9
    Participant

    Yes buddypress is on both pages, I control both pages through 1 cpanel, and yes I can activate 1 at a time, the bulk is what is not working. I always have had pending since I started my page and the bulk activate use to work just fine. I have separate plugin ins to catch spammers and spam. I only use the settings buddypress comes with, no mods at all.

    #243407
    danbp
    Participant

    Have you installed both site on a same or separate WordPress, and same question about BuddyPress ?

    Another question about 3500 pending request.

    Are you sure these aren’t spammers ? Why are they pending ? Have you setup this behave or is it a sudden amount of registerer ?

    Can you activate one account at time ? Or is only bulk activation defect ?

    Quinn Goldwin
    Participant

    Hello Buddypress community!

    1. I had signed up for a social network and after signing up, the CEO posted something to my wall. I thought it was a great personal touch, letting the users know who he is and if they had questions to reach out to him. Now I know he didn’t personally post that on my wall, it had to be a scheduled or auto post for new users. Is there a plugin out there or some code I can add to have the ability to do something similar?

    2. I also have a another related feature that I would like. Does anyone know if there is a plugin that allows buddypress users to schedule content to the activity feed. I understand it could be abused with spammers but its more for an APP i’m developing. I would like the ability to create an activity post and tell the system to post this weekly or monthly. IE. Every Monday I would like this particular post to be shared on the activity stream. or 1 once a month I would like to share this on my activity feed.

    If anyone can direct me to a plugin or resources on being able to accomplish these 2 things, I’d greatly appreciate it.

    If no one has a solution, does anyone know good places I can hire PHP coders online or overseas to get this accomplished for a somewhat affordable rate? I tried this site called codeable, but they charge $75 an hour for custom coding. If anyone has a site or place to share that is far more affordable I would greatly appreciate it.

    Thanks!

    #243178
    dngerdave
    Participant

    Registration emails are not being sent to the users. I have checked and no one is getting them in their spam folder.

    #242952
    Hugo Ashmore
    Participant

    @bobbingwide Existing user accounts should have edit capability, it was only newer accounts where we needed to manage the spam activity, so if you could try editing a page and let us know if you are having issues.

    #242915
    Shaktimaan
    Participant

    If moderators could mark members as spam on front-end, it is also acceptable.

    But Moderator (test user) with list_user capability can’t see this option on front-end.

    If he clicks on settings, there should be a link Capabilities on user profile. But there is no Capabilities link.

    #242914
    shanebp
    Moderator

    >If moderator could mark a member as spam only via dashboard, i am ok with it.

    Due to the current_user_can check, afaik it is not possible via dashboard unless you hack core files.

    #242913
    Shaktimaan
    Participant

    Members can also be marked as spammers via the front-end.

    Moderator (test user) with list_user capability can see spam option on Back-end/dashboard but he can’t see this option on front-end.

    As an admin i can mark a member as spam on front-end also.

    If moderator could mark a member as spam only via dashboard, i am ok with it.

    I am not a coder. Can you help me? How to edit it to achieve desired results? Is there a code that i can add in functions.php?

    I want this for 2 /users/moderators.

    #242912
    shanebp
    Moderator

    >I think spam and extended features have been added by buddypress therefore i am asking here.
    Sorry, my mistake.

    Before adding the ‘spam’ link BP checks to see if
    current_user_can( 'edit_user', $user_id )

    Members can also be marked as spammers via the front-end.
    Take a look at :
    \bp-templates\bp-legacy\buddypress\members\single\settings.php
    You might be able to adjust it to check for a cap of your choice.

    #242911
    Shaktimaan
    Participant

    edit_users capability will let them do many other things that i don’t want.

    I think spam and extended features have been added by buddypress therefore i am asking here.

    I have a blog where i am not using buddypress plugin. I don’t see spam and extended option there.

    #242908
    Shaktimaan
    Participant

    Please check this image

    Direct Link: http://s10.postimg.org/84qc1h4zd/markspam.jpg

    null

    I as an admin can mark a member as spam. I also want to give this option to moderators. How can i achieve this?

    I am using a role editor plugin and have already enabled list_users capability for them.

    Thanks

    #242838
    danbp
    Participant

    @nasongo,
    Over 16.700 groups with only 2 having 4 members and 99% having 1 member, looks to me like your members are allowed to publish anything without control.

    Group content is a huge collection of external links, and of what i’ve seen not very related to your site (The worlds Premier Staffing Solution).

    Have you being spammed recently ?

    #242819
    djsteveb
    Participant

    there are several wp plugins that can redirect a user upon login to specific pages.
    I can’t put more than two links in a reply without getting moderation held / akistmet spammed.

    not sure if / how this works – seen it – never played with it:
    https://wordpress.org/plugins/bp-my-home/

    might also take a peek if these can updated / adapted..
    https://wordpress.org/plugins/bp-profile-widgets/

    BuddyPress Cover
    Content Aware Sidebars

    several others – now do any of these work with the current version of wp / bp ? I don’t know.
    Do they work with the default theme and then cause issues if a different theme was used? don’t know.

    Do they cause conflicts with other plugins? have not tested.

    mycru.io
    Participant

    @djsteveb

    Oh I found the error.
    I banned a special domain during the registration process like @xyz.com
    users with this email domain are not supposed to sign up at my website,
    what i didn’t knew is that all members who previously signed up with an email like that
    got black listed. It means they where posting and than the system was removing their posts like spam !

    #242105
    djsteveb
    Participant

    @ravan – I would think multi-site is the best way to go for this. Use like a new-blog-defaults plugin to auto make their new sites a certain theme and have pre-populated content to make it easy.

    Of course you would setup a single site blog, give each new user editor privelages and manually create a page for each person.. I did that once.. I think the way multi-site seperates things is a little less messy – and a “full blown multi-site” is not that big a deal these days – back in the early wpmu days it was a lot – these days adding the couple lines of code and telling wp to put the new blogs -err “sites” into a subfolder is not much to deal with.

    I have found as long as you use a blog defaults plugin to set a bunch of settings for each one automatically (users must be logged in to comment) – stuff like that – you can save server resources and not have to worry too much about users who are not paying attention to comments spam and the like.

    Marcos Nobre
    Participant

    Hey guys,

    I been at this for a week now… one of my sites is getting spam links on the activity page, I added captcha to the sign up, require email confirmation to sign up, etc. and still getting people posting spam links.

    I would like do disable the links from the activity stream complete and return text only.

    I see that the content is outputted by bp_activity_content_body(), but I cant figure it out how to strip the “a” tags =(

    Thank you!

    #241912
    COOLBEANSDUDE
    Participant

    Problem with that is that you can only delete groups 20 at a time. The spam got bad, I have over 4000 spam groups and I need them all to go at once, I don’t exactly have time to repeat the same process over 200 times. I was asking about a measure to get rid of all of them at once.

    #241906
    COOLBEANSDUDE
    Participant

    That’s massively outdated and doesn’t work, and I put the anti-spam into place after I noticed this and it works great. But that organizer is for very, very old versions of buddypress.

    jreeve
    Participant

    I’ve been getting weird errors when trying to log an activity item via bp_activity_add():

    WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '( user_id, component, type, action, content, primary_link, date_recorded, item_i' at line 1 for query INSERT INTO ( user_id, component, type, action, content, primary_link, date_recorded, item_id, secondary_item_id, hide_sitewide, is_spam ) VALUES ( 3163, 'members', 'new_member', '', '', '', '2015-07-16 15:47:00', 0, 0, 0, 0 ) made by require('wp-blog-header. php'), require_once('wp-load.php'), require_once('/srv/www/commons/current/web/wp-config. php'), require_once('wp-settings.php'), include('/themes/tuileries/functions.php'), bp_activity_add, BP_Activity_Activity->save

    As you can see, there’s no table name here. It should be INSERT INTO wp_bp_activities... or thereabouts. It looks like BP_Activity_Activity->save() is trying to access $bp->activity->table_name, but $bp->activity doesn’t have a table_name property at this stage. Instead, this is all that is in $bp->activity:

    
    BP_Activity_Component Object
    (
        [name] => Activity Streams
        [id] => activity
        [slug] =>
        [has_directory] =>
        [path] => /srv/www/commons/current/web/app/plugins/buddypress/
        [query] =>
        [current_id] =>
        [notification_callback] =>
        [admin_menu] =>
        [search_string] =>
        [root_slug] =>
        [meta_tables] => Array
            (
            )
    
        [global_tables] => Array
            (
            )
    
        [adminbar_myaccount_order] => 10
    )

    Why isn’t there a table name here? How can I fix this?

    #241902
    sharmavishal
    Participant

    This works for me
    https://wordpress.org/plugins/bp-group-organizer/

    Your anti spam not working use stop spam control plugin

Viewing 25 results - 551 through 575 (of 3,349 total)
Skip to toolbar