General Community > Scripting Help

Removing edit button

<< < (2/3) > >>

Labradoodle-360:
Then it'd be in ./Themes/default/Display.template.php, and like Arantor said, it's actually very useful to leave in place.

K@:
Plus, of course, your members might like it, even if you don't.

oOTrentOo:
Could anyone help me figure out which part of the code to remove? :P When I look at code, it's just a big confusing mess.

phantomm:
If you really want to remove this useful button find in Display.template.php:

--- Code: --- // Can the user modify the contents of this post?  Show the modify inline image.
if ($message['can_modify'])
echo '
<img src="', $settings['images_url'], '/icons/modify_inline.gif" alt="', $txt['modify_msg'], '" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: ', ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer'), '; display: none;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />';

--- End code ---

and replace it with:

--- Code: --- // Can the user modify the contents of this post?  Show the modify inline image.
/*if ($message['can_modify'])
echo '
<img src="', $settings['images_url'], '/icons/modify_inline.gif" alt="', $txt['modify_msg'], '" title="', $txt['modify_msg'], '" class="modifybutton" id="modify_button_', $message['id'], '" style="cursor: ', ($context['browser']['is_ie5'] || $context['browser']['is_ie5.5'] ? 'hand' : 'pointer'), '; display: none;" onclick="oQuickModify.modifyMsg(\'', $message['id'], '\')" />';*/

--- End code ---

Yoshi:
Although as said earlier, members might like this feature. In fact you might get complaints about it disappearing.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version