vB4 Hide banned user's post

  • Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Radio

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,466
    7,708
    321
    localhost
    Heisenberg submitted a new resource:

    - Hide banned user's post

    vB Version: 4.1.x

    Sometimes our forum will spammed with lot of spam bots.
    You have banned most of the bots, but they have created thousands of threads.
    Deleting those threads takes time.
    So while waiting those threads to be deleted, you can hide their content automatically so their content won't hurt you on SEO etc.

    • Zero additional query.
    • Tested on 4.1.11
    • I think it is supported too on previous...

     
    Last edited:

    ven0m

    Administrator
    Staff member
    Administrator
    Moderator
    Platinum
    xenForo 2.x.x
    xenForo 1.x.x
    Contributor
    vBulletin All Access Pass
    The Chest
    Verified
    Ultra Platinum VIP
    Platinum VIP
    Gold VIP
    Silver VIP
    Premium
    Member
    Jul 17, 2005
    20,466
    7,708
    321
    localhost
    Use an image instead of a message:

    Code:
    [I][B]$my_banned_ids = array(8);/* Banned usergroup ids */
    if (THIS_SCRIPT == 'showthread') {
        if (isset($post['usergroupid']) && in_array($post['usergroupid'], $my_banned_ids)) {
            $post['title'] = 'User is banned';
            $post['message'] = '<img src="/images/[COLOR=Red]Your image Here[/COLOR]">';
        }
    }[/B][/I]
    Upload your image to forum root and put the location of image where its marked red above...