Change user posts automatically Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
+2
Ape
TamDonCo
6 posters

    Change user posts automatically

    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Change user posts automatically

    Post by TamDonCo July 1st 2016, 3:56 pm

    Hi All

    Is it anyway to have script/code to change the contents of specific user posts instead of keeping ban him/her ? Sad


    Last edited by TamDonCo on July 5th 2016, 12:57 am; edited 1 time in total
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19212
    Reputation : 1998
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Change user posts automatically

    Post by Ape July 1st 2016, 4:04 pm

    Hello im not sure i get what you mean can you be a little more precise on what your trying to do ?



    Change user posts automatically Left1212Change user posts automatically Center11Change user posts automatically Right112
    Change user posts automatically Ape_b110
    Change user posts automatically Ape1010
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 1st 2016, 4:11 pm

    I have a user who spams a forum, I just want change his/her post to the word "spam" automatically by using script/code instead ban him/her . s/he has nothing to do Sad
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 1st 2016, 4:13 pm

    So you want a script that will automatically find when a user is spamming?

    Or you want to change all posts from a specific user?
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 1st 2016, 4:16 pm

    change all posts from a specific user?

    Thanks
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19212
    Reputation : 1998
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Change user posts automatically

    Post by Ape July 1st 2016, 4:24 pm

    but would it be better just to ban them member for a set time and then if they keep sending spam ban then long term.

    and if you ban them long term you can use this to remove all there posts all in one go
    https://help.forumotion.com/t134526-remove-messages-of-a-member

    Remember your forum will not look good if you have members posting spam your better off getting rid of them before it gets to bad.



    Change user posts automatically Left1212Change user posts automatically Center11Change user posts automatically Right112
    Change user posts automatically Ape_b110
    Change user posts automatically Ape1010
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 1st 2016, 4:27 pm

    Also if you give me time, I could get a code that would hide all messages from a specific user.
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 1st 2016, 4:32 pm

    Ace 1 wrote:Also if you give me time, I could get a code that would hide all messages from a specific user.


    sounds wonderful


    either hide or delete is good for me

    I do not want other members get sick of it


    Thanks a lot


    Thanks APE for the deleting code, I try later
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 1st 2016, 5:09 pm

    I just try above code, nothing happens ..

    Do I have to turn on HTML page somewhere ???
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 1st 2016, 5:11 pm

    Yes you do. And I recommend hiding the messages so you have evidence of the spam. But if it doesn't matter, then Ape's link should solve your problem.
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 1st 2016, 5:15 pm

    where do I turn on HTML , I saw somewhere before ...

    Thanks
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 1st 2016, 5:29 pm

    I found it but still does not work, Do I need to put HTML file in specific page/location ?
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10112
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Change user posts automatically

    Post by brandon_g July 1st 2016, 5:29 pm

    Hello,

    To create a new html page or modify a current one go to: ACP (Admin panel)-->Modules--->HTML Pages management

    -Brandon



    Change user posts automatically Brando10
    Remember to mark your topic Change user posts automatically Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Change user posts automatically Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19212
    Reputation : 1998
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Change user posts automatically

    Post by Ape July 1st 2016, 5:29 pm

    How i do this is to add it to your toolbar and then only set it to your Admin's

    This is how its done.

    ACP >> Display Tan >> Change user posts automatically Portail Homepage >>

    • Headers & Navigation >> Add a custom menu >>

    Now your see this page you need to set it as you wish but i have set this as i would use it
    Change user posts automatically Captur29
    Then you need to open a new window on your browser and go get your URl of your page

    head to

    ACP >> Modules tab >>   Change user posts automatically Html HTML & JAVASCRIPT >>

    • HTML pages management >> find your URL in the list and copy the url now head back to the settings you are making the navbar in and then paste the code then save,

    Now you will have your tool in your navbar and only admins can see it


    if you want to give this right to other staff then you just need to change it from admin to admin and mods Smile

    To turn on your HTML go ACP >> General Tab >> Change user posts automatically Boite_email Messages and e-mails >> Configuration >> Allow HTML : YES SAVE don't got get to go to your profile and set it to yes aswell Smile



    Change user posts automatically Left1212Change user posts automatically Center11Change user posts automatically Right112
    Change user posts automatically Ape_b110
    Change user posts automatically Ape1010
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 1st 2016, 5:31 pm

    Thank You Very Much

    Let me try again
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19212
    Reputation : 1998
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Change user posts automatically

    Post by Ape July 1st 2016, 5:34 pm

    if your still having problems and you have a test account on your forum with admin rights i will be happy to set this up for you.

    All you have to do is PM me a test account Not founders account thou and i will install this for you but its better if you give this a go first.

    Remember you should not post your admin account in full public view only by pm to staff members.



    Change user posts automatically Left1212Change user posts automatically Center11Change user posts automatically Right112
    Change user posts automatically Ape_b110
    Change user posts automatically Ape1010
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51553
    Reputation : 3519
    Language : English
    Location : United States

    Solved Re: Change user posts automatically

    Post by SLGray July 1st 2016, 8:41 pm

    Do you have the feature activated where ban members' messages are hidden?

    Administration Panel > Messages & E-Mails > Configuration
    Topics Section
    Hide messages from banned members:



    Change user posts automatically Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 1st 2016, 9:04 pm

    That option still allows users to read the messages by clicking "Read the message" I believe.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51553
    Reputation : 3519
    Language : English
    Location : United States

    Solved Re: Change user posts automatically

    Post by SLGray July 1st 2016, 9:11 pm

    I know.  It gives the staff team time to remove them or delete.



    Change user posts automatically Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 3rd 2016, 12:46 am

    APE

    Thank You very much, it works good but I still like Ace 1 idea

    ACE 1

    It 's very useful to hide than delete just in case I want something back

    Thanks in advance for your code
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 3rd 2016, 1:27 am

    Oh @TamDonCo I'm so sorry I forgot to give you the script.

    Administration Panel >> Modules >> HTML & Javascript >> Javascript codes management >> Create a new javascript

    Title: Hidden Messages
    Placement: In all the pages

    Code:
    Code:
    $(function() {
       var $link = $('a[id^="hidden-title"]');
       var $post = $link.parents(".post.row2");
       $post.css("display","none");
    });

    And this should hide all posts from banned members. If you want to hide all posts from a specific user just let me know Wink
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 3rd 2016, 1:49 am

    Ace 1 :

    I thinks we have a setting to hide message from ban members already

    I want to to hide all messages of certain members so NO ONE can see his/her messages, is it possible ?
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 3rd 2016, 2:18 am

    Oh alright. Then create a new javascript with the following code:

    Code:
    $(function() {
        $('a[href="/u1"]').parents("div.post").css("display", "none");
    });

    Code:
    u1
    is the URL of the user that you want to hide their posts.
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 3rd 2016, 2:27 am

    Thanks Ace 1

    I will try it later, I am busy this weekend
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 3rd 2016, 2:29 am

    Alright let me know how it works out.

    And I think you should still use the first script because it hides banned messages.
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Solved Re: Change user posts automatically

    Post by TamDonCo July 4th 2016, 2:18 am

    Ace 1 wrote:Alright let me know how it works out.

    And I think you should still use the first script because it hides banned messages.

    wow, it works perfectly Clap Clap Clap

    Thanks a lot


    it 's wonderful if you have IF condition to allow owner to see the messages his/her self Smile
    Ace 1
    Ace 1
    Helper
    Helper


    Male Posts : 843
    Reputation : 64
    Language : English - French?
    Location : Druid Hill Park

    Solved Re: Change user posts automatically

    Post by Ace 1 July 4th 2016, 3:55 pm

    There is a way to do this but I don't think I know how. Kinda over my head Razz
    Ape
    Ape
    Administrator
    Administrator


    Male Posts : 19212
    Reputation : 1998
    Language : fluent in dork / mumbojumbo & English haha

    Solved Re: Change user posts automatically

    Post by Ape July 4th 2016, 6:27 pm

    Hello is this topic solved ?
    Please mark your topic as Solved if it is completed.

    Thank you.

    Please read our forum rules: ESF General Rules



    Change user posts automatically Left1212Change user posts automatically Center11Change user posts automatically Right112
    Change user posts automatically Ape_b110
    Change user posts automatically Ape1010
    Nemo
    Nemo
    Active Poster


    Male Posts : 1203
    Reputation : 119
    Language : Greek, English, French

    Solved Re: Change user posts automatically

    Post by Nemo July 5th 2016, 8:03 am

    Problem solved & topic archived.
    Please read our forum rules: ESF General Rules