Customizing SMF > Modifications and Packages

Enhanced Quick Reply 2.0

(1/90) > >>

Kirby:
Link to Mod

WARNING: If you have the old 1.0 version of this mod  (http://www.simplemachines.org/community/index.php?topic=21902), uninstall it before installing this one.
Remove all references to it in other themes as well. It was poorly coded.

Enhanced Quick Reply Mod 2.0
Author: Kirby (simplemachines.org member)
Most, if not all, of the code is actually from the SMF dev team. It has just been moved around and edited to fit a quick reply box.

SUMMARY: This mod replaces the dull quick reply box with one that has BBcode and smiley icons. It also shrinks the box and centers it on the page.

COMPATIBILITY: Tested only with 1.1.3. If you think it can work with an older version, you may edit the package-info.xml and try it.

VERSIONS:
   2.0- Initial release
   2.0.1-Fixes IE7 surroundText() bug. Patch 2.0 without upgrading.

Please read the readme.txt in the package for more details (how to include it in your own theme).

shadow82x:
Thanks whats new in version 2?

Kirby:
Its smaller and the code is MUCH cleaner.

djzzero:
How do I install this on Neon Theme? I tried manually installing it, but I cant seem to find this code to replace

$themedir/Display.template.php
 which I edited the display.template.php in the custom theme Neon

--- Code: --- if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a name="quickreply"></a>
<table border="0" cellspacing="1" cellpadding="3" class="bordercolor" width="100%" style="clear: both;">
<tr>
<td colspan="2" class="catbg"><a href="javascript:swapQuickReply();"><img src="', $settings['images_url'], '/', $options['display_quick_reply'] == 2 ? 'collapse' : 'expand', '.gif" alt="+" id="quickReplyExpand" /></a> <a href="javascript:swapQuickReply();">', $txt['quick_reply_1'], '</a></td>
</tr>
<tr id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>
<td class="windowbg" width="25%" valign="top">', $txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '</td>
<td class="windowbg" width="75%" align="center">
<form action="', $scripturl, '?action=post2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">
<input type="hidden" name="topic" value="' . $context['current_topic'] . '" />
<input type="hidden" name="subject" value="' . $context['response_prefix'] . $context['subject'] . '" />
<input type="hidden" name="icon" value="xx" />
<input type="hidden" name="notify" value="', $context['is_marked_notify'] || !empty($options['auto_notify']) ? '1' : '0', '" />
<input type="hidden" name="goback" value="', empty($options['return_to_post']) ? '0' : '1', '" />
<input type="hidden" name="num_replies" value="', $context['num_replies'], '" />
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
<input type="submit" name="post" value="' . $txt[105] . '" onclick="return submitThisOnce(this);" accesskey="s" tabindex="2" />
<input type="submit" name="preview" value="' . $txt[507] . '" onclick="return submitThisOnce(this);" accesskey="p" tabindex="4" />';
if ($context['show_spellchecking'])
echo '
<input type="button" value="', $txt['spell_check'], '" onclick="spellCheck(\'postmodify\', \'message\');" tabindex="5"/>';
echo '
<input type="hidden" name="sc" value="' . $context['session_id'] . '" />
<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
</form>
</td>
</tr>
</table>';
}
 
--- End code ---
^^ Can't find it. Can someone help please.

Kirby:
It is there, I just found it. Look for this line:

--- Code: ---if ($context['can_reply'] && !empty($options['display_quick_reply']))

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version