by Ange Tuteur August 10th 2015, 2:14 pm
Thanks, for reference your forum version is phpbb2.
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>
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>
Save and publish the template.