Advertisement:

Author Topic: Quote/Modify/Remove. Shows up twice. Top/bottom of each post. Help.  (Read 1362 times)

Offline BoxingChaos

  • Jr. Member
  • **
  • Posts: 174
  • Gender: Male
  • www.BoxingChaos.com


On my forum, the Quote/Modify/Remove buttons show up twice and the ones on the bottom are not working. how do I remove the bottom instance from showing up?
It has already been reported by others and it confuses and frustrates us.

Any help would be appreciated.

Basically, when any one tries using the  Quote/Modify/Remove buttons at the bottom, they don't do anything.

:(

Offline BoxingChaos

  • Jr. Member
  • **
  • Posts: 174
  • Gender: Male
  • www.BoxingChaos.com
ok, I solved my problem. After tweaking the

/public_html/forum/Themes/defaultDisplay.template.php file,

I did the following:

There are 3 instances of this in the file:

I of course edited the last instance which is at the very bottom of the file 3/4 down the page.

Code: [Select]
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<li class="quote_button"><a>', $txt['quote'], '</a></li>';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<li class="modify_button"><a>', $txt['modify'], '</a></li>';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<li class="remove_button"><a>', $txt['remove'], '</a></li>';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
<li class="split_button"><a>', $txt['split'], '</a></li>';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';


and I removed:


Code: [Select]
<ul class="reset smalltext quickbuttons">';

// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
';

// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
';

// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
';

// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
';

// What about splitting it off the rest of the topic?
if ($context['can_split'] && !empty($context['num_replies']))
echo '
';

// Can we restore topics?
if ($context['can_restore_msg'])
echo '
<li class="restore_button"><a>', $txt['restore_message'], '</a></li>';


Just thought I would post my solution in case some one else runs into the same problem.
Nothing pisses me off more than I person who posts something, solves his problem and does not share his/her fix.

Peace.

Online Colin

  • Customizer
  • SMF Hero
  • *
  • Posts: 4,746
  • Gender: Male
  • SMF and Web Hosting Enthusiast
    • Gray Web Host
Thanks for posting your solution. Sorry someone couldn't help you out sooner.
https://www.graywebhost.com - Affordable, reliable hosting starting at $2.95 per month