Hide new topic button inside a topic... Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Hide new topic button inside a topic...

    avatar
    iarmagedon
    New Member


    Posts : 10
    Reputation : 1
    Language : Greek

    Solved Hide new topic button inside a topic...

    Post by iarmagedon Sun 9 Aug - 16:33

    As title says is it possible to hide the new topic button inside an already created topic? I only want to keep the reply button and quote.
    Many members of my forum believe that they can use the new button to make a reply to the topic and the result is to have many new topics than replies.
    Can you help me with a css code perhaps???
    Thank you in advance.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51556
    Reputation : 3519
    Language : English
    Location : United States

    Solved Re: Hide new topic button inside a topic...

    Post by SLGray Sun 9 Aug - 17:20

    You can replace the buttons with ones that members can understand better.



    Hide new topic button inside a topic... Slgray10

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


    Posts : 10
    Reputation : 1
    Language : Greek

    Solved Re: Hide new topic button inside a topic...

    Post by iarmagedon Mon 10 Aug - 5:24

    There is no possibility to remove it with a css code?
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Hide new topic button inside a topic...

    Post by Ange Tuteur Mon 10 Aug - 9:00

    iarmagedon wrote:There is no possibility to remove it with a css code?
    Provide the URL of the forum and then we can see. Smile
    avatar
    iarmagedon
    New Member


    Posts : 10
    Reputation : 1
    Language : Greek

    Solved Re: Hide new topic button inside a topic...

    Post by iarmagedon Mon 10 Aug - 10:59

    Sure here it is: hellasd3.4umer.com language is Greek.


    Last edited by iarmagedon on Mon 10 Aug - 19:53; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Hide new topic button inside a topic...

    Post by Ange Tuteur Mon 10 Aug - 12:14

    Thanks, for reference your forum version is phpbb2. Smile

    To hide the new topic buttons in the topics, go to Administration Panel > Modules > JavaScript codes management

    Make sure JS codes management is enabled ( the Yes / No radio buttons ), then create a new script with the following settings.

    Placement : In the topics
    Code:
    $(function() {
      var sujet_a = document.getElementById('one'),
          sujet_b = document.getElementById('Newtopic');
     
      if (sujet_a) sujet_a.parentNode.style.display = 'none';
      if (sujet_b) sujet_b.parentNode.style.display = 'none';
    });


    If you don't want this method you can also remove them via the templates. However, you must be logged into the foundation account ( user 1 ) for this method.
    Display > Templates > General > viewtopic_body

    Find and remove :
    Code:
    <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}one" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>&nbsp;&nbsp;&nbsp;

    Find and remove :
    Code:
    <a href="{U_POST_NEW_TOPIC}" rel="nofollow"><img src="{POST_IMG}" id="{POST_IMG_ID}Newtopic" alt="{L_POST_NEW_TOPIC}" align="middle" border="0" /></a>&nbsp;&nbsp;&nbsp;

    Save and publish the template. Add
    avatar
    iarmagedon
    New Member


    Posts : 10
    Reputation : 1
    Language : Greek

    Solved Re: Hide new topic button inside a topic...

    Post by iarmagedon Mon 10 Aug - 19:19

    YOU are the man ... worked perfect ...
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51556
    Reputation : 3519
    Language : English
    Location : United States

    Solved Re: Hide new topic button inside a topic...

    Post by SLGray Mon 10 Aug - 21:00

    Topic solved and archived



    Hide new topic button inside a topic... Slgray10

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