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.

Change user posts automatically

+2
Ape
TamDonCo
6 posters

Go down

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
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

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
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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?
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

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

change all posts from a specific user?

Thanks
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

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.
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

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

http://nhomcho.forummotion.com/

Back to top Go down

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 ???
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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.
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

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

http://nhomcho.forummotion.com/

Back to top Go down

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 ?
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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
brandon_g
brandon_g
Manager
Manager

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

https://www.broadcastingduo.com

Back to top Go down

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
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Change user posts automatically

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

Thank You Very Much

Let me try again
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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.
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

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

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

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 ?
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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.
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

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
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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.
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

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
TamDonCo
TamDonCo
Forumember

Posts : 427
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

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
Ace 1
Ace 1
Helper
Helper

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

https://help.forumotion.com

Back to top Go down

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
Ape
Ape
Administrator
Administrator

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

http://chatworld.forumotion.co.uk/

Back to top Go down

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
Nemo
Nemo
Active Poster

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

http://www.helpgr.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum