General Community > Scripting Help
Quote/Modify/Remove. Shows up twice. Top/bottom of each post. Help.
(1/1)
BoxingChaos:
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.
:(
BoxingChaos:
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: ---<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>';
--- End code ---
and I removed:
--- Code: --- <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>';
--- End code ---
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.
Colin:
Thanks for posting your solution. Sorry someone couldn't help you out sooner.
Navigation
[0] Message Index
Go to full version