News:

Wondering if this will always be free?  See why free is better.

Main Menu

Enhanced Quick Reply 2.0

Started by Kirby, August 06, 2007, 10:35:59 PM

Previous topic - Next topic

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

Colin B
Former Spammer, Customize, & Support Team Member

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
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>';
}

^^ Can't find it. Can someone help please.

Kirby

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

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

chep

The download page isn't working for me. How did you download this mod?


chep

I always get an error

"An Error Has Occurred!
The mod you have requested has not been approved yet for downloads. 
"

Kirby

Really? I just got a PM saying it was approved. Try logging out and logging back in, or it may be a mod site bug because a lot of changes have been going down recently. I've attached the mod to this pos :)

chep


pulkit


Pranav

#11
You people should use this package parser : http://modparser.dev.dansoftaustralia.net/
It's really useful!

Works like charm on my forum!

janitro

Hi, I´ve installed it in my forum without any errors, but it looks somewhat smaller than the previous version:



Is there any way to make it bigger?

Kirby

Quote from: pulkit on August 07, 2007, 05:07:01 AM
still doesn't work for MeshTP theme ...
http://www.simplemachines.org/community/index.php?topic=21902.msg1024928#msg1024928
Can you link me to the theme?

You may adjust the width in the Display.template.php file. Set width: 50% to width: 100%; or whatever you want.

chep

To make it bigger I changed this:
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">


to this:

<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 100%;" align="left">


I was also able to get mine to work with the mod which changes post box size.

Sweet mod.

janitro

done!

thanks for the help and the mod :)

chep

#16
I soon discovered in IE that width 100% cut off the right side of the border. It could be an artifact that I have some other mods like tinyportal...

Therefore I chose auto instead. Which works for me. Only tested on IE , Opera and Firefox latest and greatest...

<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: auto;" align="left">

Kirby

Cool, thanks for contributing chep...I hope others will find it useful :)

Defused

Cant get this to work! Help? Appreciate it.
http://defused.us/forums/ [nofollow]

Kirby

Do you get an error? What happens?

Advertisement: