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.

How to hide posts in one topics?

View previous topic View next topic Go down

Solved How to hide posts in one topics?

Post by Rejnok1 on July 19th 2014, 7:35 pm

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 July 19th 2014, 8:19 pm

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.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: How to hide posts in one topics?

Post by Ange Tuteur on July 19th 2014, 11:54 pm

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

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Solved

Post by Rejnok1 on July 21st 2014, 7:28 pm

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 July 21st 2014, 7:42 pm

Topic Solved & Archived


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


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.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