Advertisement:

Author Topic: Need Help Removing the REPLY Button  (Read 4033 times)

Offline AtariKid

  • Jr. Member
  • **
  • Posts: 194
  • Gender: Male
Need Help Removing the REPLY Button
« on: October 13, 2005, 11:30:53 PM »
Hello. We just got done tweaking the 'reply to' mod to enhance the feature by adding a time stamp to replies and a link to the specified post replying to. Example:
Date & Time ยป Post #101  Reply to:  Username, at Post #98.

Since each post made now has a small , I'd like to remove the larger and link that appears at the end of the thread.

Can anyone help in identifying which file(s) and code(s) I need to change so I can get rid of

Thanks in advance.  Once this project is complete, I'll post the 'how to do' so others can mirror the modifications.
« Last Edit: October 13, 2005, 11:33:02 PM by AtariKid »
Rawk on dude!
SMF 1.1 RC1 | MKP 1.1 Rc1

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,119
  • Gender: Male
    • Kindred-999 on GitHub
Re: Need Help Removing the REPLY Button
« Reply #1 on: October 13, 2005, 11:54:05 PM »
display.template.php
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline AtariKid

  • Jr. Member
  • **
  • Posts: 194
  • Gender: Male
Re: Need Help Removing the REPLY Button
« Reply #2 on: October 14, 2005, 12:18:44 AM »
Line 216
Code: [Select]
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
Line 547
Code: [Select]
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';
Do you know exactly what to remove?

I am guessing:
Code: [Select]
'/reply.gif" alt="' . $txt[146] .from both lines.
Rawk on dude!
SMF 1.1 RC1 | MKP 1.1 Rc1

Offline AtariKid

  • Jr. Member
  • **
  • Posts: 194
  • Gender: Male
Re: Need Help Removing the REPLY Button
« Reply #3 on: October 14, 2005, 12:53:53 AM »
I removed this from Lines 215 & 216
Code: [Select]
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';

I removed this from Lines 544 & 545
Code: [Select]
if ($context['can_reply'])
$buttonArray[] = '<a href="' . $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/reply.gif" alt="' . $txt[146] . '" border="0" />' : $txt[146]) . '</a>';

Mission Accomplished!  :D
Rawk on dude!
SMF 1.1 RC1 | MKP 1.1 Rc1

Offline AtariKid

  • Jr. Member
  • **
  • Posts: 194
  • Gender: Male
Re: Need Help Removing the REPLY Button
« Reply #4 on: October 15, 2005, 03:11:13 AM »
The How To Do:)
Rawk on dude!
SMF 1.1 RC1 | MKP 1.1 Rc1