The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Change user posts automatically

View previous topic View next topic Go down

Solved Change user posts automatically

Post by TamDonCo on 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
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by APE on 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 ?





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

Solved Re: Change user posts automatically

Post by TamDonCo on 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
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

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

change all posts from a specific user?

Thanks

TamDonCo
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by APE on 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
http://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.





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

Solved Re: Change user posts automatically

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

Post by TamDonCo on 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
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

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

I just try above code, nothing happens ..

Do I have to turn on HTML page somewhere ???

TamDonCo
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

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

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

Thanks

TamDonCo
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by TamDonCo on 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
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by brandon_g on 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


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5144
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by APE on 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 >> 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

Then you need to open a new window on your browser and go get your URl of your page

head to

ACP >> Modules tab >> 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 >> 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





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

Solved Re: Change user posts automatically

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

Thank You Very Much

Let me try again

TamDonCo
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by APE on 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.





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

Solved Re: Change user posts automatically

Post by SLGray on 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:


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Change user posts automatically

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

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

Ace 1
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

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

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


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by TamDonCo on 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
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

Post by TamDonCo on 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
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

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

Thanks Ace 1

I will try it later, I am busy this weekend

TamDonCo
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

Post by TamDonCo on 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
Forumember

Posts : 172
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Solved Re: Change user posts automatically

Post by Ace 1 on 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
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Change user posts automatically

Post by APE on 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





APE
Manager
Manager

Male Posts : 8339
Reputation : 718
Language : fluent in dork / mumbojumbo & English haha
Location : STUCK IN FORUMOTIONS SERVERS HELP ME !!!!!!

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

Back to top Go down

Solved Re: Change user posts automatically

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

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

Nemo
Support Moderator
Support Moderator

Male Posts : 994
Reputation : 101
Language : Greek, English, French

http://www.helpgr.forumgreek.com

Back to top Go down

View previous topic View next topic Back to top


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