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.

How to hide posts in one topics?

3 posters

Go down

Solved How to hide posts in one topics?

Post by Rejnok1 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
avatar
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 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?


How to hide posts in one topics? 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 : 51555
Reputation : 3524
Language : English
Location : United States

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

Back to top Go down

Solved Re: How to hide posts in one topics?

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Solved

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

Topic Solved & Archived


How to hide posts in one topics? 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 : 51555
Reputation : 3524
Language : English
Location : United States

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

Back to top Go down

Back to top

- Similar topics

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