How to hide posts in one topics?

Go down

Solved How to hide posts in one topics?

Post by Rejnok1 on Sat 19 Jul - 10:35

Hallo,

I am new in using forum, so I would like to ask you for help.
I have a forum:
http://prase-svine.team-forum.net/
where I want to make some competition, so I want users to insert they results to one topic, but I want to make this not seen for the others. I want to avoid to copy answers.
My idea is that users will write they answers to forum, they send them, but noone except administrators and Moderators will not see this post.


I know, that the prefix [ hide] [ /hide] is possible, but I want to make this as simple as possible not to use this prefix.

Can you please help me? I saw this on some others forums, so I hope this will be able.


Thank you very much.


Rejnok1

Rejnok1
New Member

Posts : 3
Reputation : 1
Language : Czech/english

http://bobek.vidlak@seznam.cz

Back to top Go down

Solved Re: How to hide posts in one topics?

Post by SLGray on Sat 19 Jul - 11:19

Sorry, what you want to achieve is not possible.  How about having the members seen the information by private messages?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 43109
Reputation : 3054
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Solved Re: How to hide posts in one topics?

Post by Ange Tuteur on Sat 19 Jul - 14:54

Hi Rejnok,

Gray is correct that it is not possible, at least by the options available in Administration. You could hide the posts after the first post with JavaScript, however, if someone disables JavaScript they'll be able to see the posts. Private messages would be the best for security, but in case you want to try it, read below.

It only removes the posts if the following conditions are met :
You are a Guest or Member and You a viewing a specific topic ( t134360 )

The script :
Administration Panel > Modules > JavaScript codes management > Create a new script

Title : your choice
Placement : in the topics
Paste the code below :
Code:
$(function() {if (_userdata.user_level === 0 && /t134360/.test(location.pathname)) $('.post:not(.post:eq(0))').remove()});

Simply replace t134360 by the ID of your topic. You can see this ID from the address bar, for example :
help.forumotion.com/t134360-how-to-hide-posts-in-one-topics
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Solved

Post by Rejnok1 on Mon 21 Jul - 10:28

Dear Ange Tuteur,

thank you very much. I used your java script and I hope It will work (I mean members use java).

Thanks

Rejnok1
New Member

Posts : 3
Reputation : 1
Language : Czech/english

http://bobek.vidlak@seznam.cz

Back to top Go down

Solved Re: How to hide posts in one topics?

Post by SLGray on Mon 21 Jul - 10:42

Topic Solved & Archived


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

avatar
SLGray
Administrator
Administrator

Male Posts : 43109
Reputation : 3054
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Back to top


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