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.
The forum of the forums
3 posters

    How to hide posts in one topics?

    avatar
    Rejnok1
    New Member


    Posts : 3
    Reputation : 1
    Language : Czech/english

    Solved How to hide posts in one topics?

    Post by Rejnok1 Sat 19 Jul - 17: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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to hide posts in one topics?

    Post by SLGray Sat 19 Jul - 18:19

    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.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: How to hide posts in one topics?

    Post by Ange Tuteur Sat 19 Jul - 21: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
    Rejnok1
    New Member


    Posts : 3
    Reputation : 1
    Language : Czech/english

    Solved Solved

    Post by Rejnok1 Mon 21 Jul - 17: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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: How to hide posts in one topics?

    Post by SLGray Mon 21 Jul - 17:42

    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.

      Current date/time is Sun 22 Sep - 14:25