Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=883)
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 (http://www.simplemachines.org/community/index.php?topic=187281.msg1223767#msg1223767).
Please read the readme.txt in the package for more details (how to include it in your own theme).
Thanks whats new in version 2?
Its smaller and the code is MUCH cleaner.
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.
It is there, I just found it. Look for this line:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
The download page isn't working for me. How did you download this mod?
Here is the direct link: http://custom.simplemachines.org/mods/index.php?action=download;mod=883;id=37483
I always get an error
"An Error Has Occurred!
The mod you have requested has not been approved yet for downloads.
"
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 :)
the download is working now.
still doesn't work for MeshTP theme ...
http://www.simplemachines.org/community/index.php?topic=21902.msg1024928#msg1024928
You people should use this package parser : http://modparser.dev.dansoftaustralia.net/
It's really useful!
Works like charm on my forum!
Hi, I´ve installed it in my forum without any errors, but it looks somewhat smaller than the previous version:
(http://img357.imageshack.us/img357/2226/dibujocu1.jpg) (http://imageshack.us)
Is there any way to make it bigger?
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.
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.
done!
thanks for the help and the mod :)
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">
Cool, thanks for contributing chep...I hope others will find it useful :)
Cant get this to work! Help? Appreciate it.
http://defused.us/forums/
Do you get an error? What happens?
It just doesnt show up what-so-ever.
Im using a theme, Dilber MC Theme by HarzeM.
The readme says i need to alter some things? I found the line but im really confused about what to do.
Yes. You need to modify the quick reply portion of the theme's Display.template.php to match the one in the newly modded default Display.template.php. You also need to add the function from the modded file to your theme's file. I can do it for you if you like, simply attach the file to a post.
I dont see a Display.template file, these are what I see:
(http://defused.us/list.png)
Then the mod is either not applied or is applied correctly. No further changes should be necessary. You have to enable quick reply from your profile.
Thank you! Didnt know I had to do that, is there a way to have it default for other members instead of them manually doing it? And can I add the YouTube BCC to it like I have with regular reply?
Yes and yes :)
You can enable it by default via your admin panel under theme settings.
You can add the YouTube BBC tag by doing the following in /default/Display.template.php.
Look for:
'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),
add after:
'youtube' => array('code' => 'youtube', 'before' => '[youtube]', 'after' => '[youtube]', 'description' => 'YouTube'),
You left out / in after array, incase anyone else wanted to know:
'youtube' => array('code' => 'youtube', 'before' => '
', 'description' => 'YouTube'),
how can I add the Spoiler Tag button also?
I´ve tried with
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => 'Spoiler Tag'),
and
'spoiler_tag' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => 'Spoiler Tag'),
to no avail.
The first one should work. Clicking it doesn't add [spoiler][/spoiler] to the post box?
This mod work with Smf 1.1.2 (I tested)
But, one problem found.
BBC tag focus problem,
Selected text BBC tags not usable.
Preview
Word[b][/b]
Require
[b]Word[/b]
Thanks...
I added this mod to my forum two days ago. I like it and had NO trouble adding it :D Thanks
hello and thanks for taking the time to make this mod...
well my users did not like and i have no idea why... so i decided to uninstall it... i never had any kind of quickreply before so I said ok if no one wants it ok I will remove.... i uninstall it but instead of the function going away it seems to have changed to the way you see in the link below.... I am confused about how this could happen when i uninstall it changes to a different kind of quickreply..lol ... can you help me know how to uninstall?
http://www.melindaspenpals.com/penpal-community/index.php?topic=2392.60
Can someone tell me where the permisions are set please, admins & Mods can see the quick reply but not normal users.
I have looked everywhere :(
Quote from: DiKMeN on August 10, 2007, 09:05:07 AM
This mod work with Smf 1.1.2 (I tested)
But, one problem found.
BBC tag focus problem,
Selected text BBC tags not usable.
Preview
Word[b][/b]
Require
[b]Word[/b]
Thanks...
Are you referring to highlighting text then clicking the BBC button?
Quote from: Ashdaw on August 10, 2007, 09:25:55 AM
I added this mod to my forum two days ago. I like it and had NO trouble adding it :D Thanks
No problem :)
Quote from: Filipina on August 10, 2007, 09:53:04 AM
hello and thanks for taking the time to make this mod...
well my users did not like and i have no idea why... so i decided to uninstall it... i never had any kind of quickreply before so I said ok if no one wants it ok I will remove.... i uninstall it but instead of the function going away it seems to have changed to the way you see in the link below.... I am confused about how this could happen when i uninstall it changes to a different kind of quickreply..lol ... can you help me know how to uninstall?
http://www.melindaspenpals.com/penpal-community/index.php?topic=2392.60
There is a quick reply in SMF. This mod changes how the quick reply looks and operates. Simply have your members disable it from their profile or you can reset the default option.
Quote from: dkthompson on August 10, 2007, 12:23:55 PM
Can someone tell me where the permisions are set please, admins & Mods can see the quick reply but not normal users.
I have looked everywhere :(
Again, it has to be enabled from their profile ;)
Quote from: dkthompson on August 10, 2007, 12:23:55 PM
Can someone tell me where the permisions are set please, admins & Mods can see the quick reply but not normal users.
I have looked everywhere :(
I saw the answer to this, but is there any way to make it enabled in member's profiles by default? I think the old standard Quick reply box was always visible, and most members won't bother to look for something, if there's no clue that it's there.
TIA,
Simon.
Theme Settings => Change default options.
Ah, I thought as it said 'reset' options, that's what it did, but I've found it now, thanks. :)
thank you kirby :)
No problem :)
can you post the manual edits for this, because i get an error when I try to use that package installer.
You can see them in the modification.xml file in the package.
Quote from: Kirby on August 09, 2007, 01:03:46 AM
The first one should work. Clicking it doesn't add [spoiler][/spoiler] to the post box?
Nop...
When I add that line ('spoiler' => array('code' =>...) I´ve got messed up fonts and a strange line on top:
(http://img518.imageshack.us/img518/6189/dibujopq1.th.jpg) (http://img518.imageshack.us/my.php?image=dibujopq1.jpg)
I´m using this spoiler tag (http://custom.simplemachines.org/mods/index.php?mod=195) unofficial version 0.3.3 (http://www.simplemachines.org/community/index.php?topic=50261.msg1175347#msg1175347)
Sorry to be a bother, but would you mind posting the surrounding lines?
no prob
$context['bbc_tags'][] = array(
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),
'url' => array('code' => 'url', 'before' => '[url]', 'after' => '[/url]', 'description' => $txt[257]),
'email' => array('code' => 'email', 'before' => '[email]', 'after' => '[/email]', 'description' => $txt[258]),
'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),
array(),
'table' => array('code' => 'table', 'before' => '[table]', 'after' => '[/table]', 'description' => $txt[436]),
'tr' => array('code' => 'td', 'before' => '[tr]', 'after' => '[/tr]', 'description' => $txt[449]),
'td' => array('code' => 'td', 'before' => '[td]', 'after' => '[/td]', 'description' => $txt[437]),
array(),
'sup' => array('code' => 'sup', 'before' => '[sup]', 'after' => '[/sup]', 'description' => $txt[447]),
'sub' => array('code' => 'sub', 'before' => '[sub]', 'after' => '[/sub]', 'description' => $txt[448]),
'tele' => array('code' => 'tt', 'before' => '[tt]', 'after' => '[/tt]', 'description' => $txt[440]),
array(),
'code' => array('code' => 'code', 'before' => '[code.]', 'after' => '[code.]', 'description' => $txt[259]),
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),
array(),
'list' => array('code' => 'list', 'before' => '[list]\n[li]', 'after' => '[/li]\n[li][/li]\n[/list]', 'description' => $txt[261]),
array(),
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => 'YouTube'),
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => 'Spoiler Tag'),
);
$found_button = false;
// Here loop through the array, printing the images/rows/separators!
foreach ($context['bbc_tags'][0] as $image => $tag)
link for the whole file (http://download.yousendit.com/9D64B17C26AB549B)
Ok, I tested this on my own install and it worked. Try the file I have attached.. Back yours up just in case :)
Hi, I'm using the TPstyle theme so I had to edit Display.template.php
Kirby can you look at my display.template.php as where the mod says replace
if ($context['can_reply'] && !empty($options['display_quick_reply']))
and a whole lot more.
I have extra lines like this one
<a href="javascript:void(0);" onclick="replaceText(\' ;)\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/wink.gif" align="bottom" alt="Wink" title="Wink" border="0" /></a>
if I ignore these lines and replace the coding as your mod says then all I get is all the script written above my forums in the header area.
please help as I'm being nagged to install this mod.
Quote from: Kirby on August 13, 2007, 01:26:32 PM
Ok, I tested this on my own install and it worked. Try the file I have attached.. Back yours up just in case :)
it worked like a charm
you´re my hero :)
Quote from: ulgaming.net on August 07, 2007, 06:41:32 AM
You people should use this package parser : http://modparser.dev.dansoftaustralia.net/
It's really useful!
Works like charm on my forum!
Ill second that.. if I figure it out I am going to add that parser to my forums.. just so i never lose it.. that thing ROCKS..
ok I read the whole thread.. I know I am a PITA.. but I want to make the box WIDER.. in my forum there is alot of unused space at the bottom.. I would like it to be less lines long but wider to match the forum..
awesome mod tho.. now the users posting pics all over will be happy they dont have to hit reply... :D
Thanks..
I found the one line where it says 75 as a width.. I changed that but.. it didnt seem to make ANY difference.. and the columns were 7.. I didnt mess with that..
Quote from: janitro on August 13, 2007, 03:26:27 PM
Quote from: Kirby on August 13, 2007, 01:26:32 PM
Ok, I tested this on my own install and it worked. Try the file I have attached.. Back yours up just in case :)
it worked like a charm
you´re my hero :)
Any time :)
Quote from: hvyhitter on August 13, 2007, 04:17:27 PM
ok I read the whole thread.. I know I am a PITA.. but I want to make the box WIDER.. in my forum there is alot of unused space at the bottom.. I would like it to be less lines long but wider to match the forum..
awesome mod tho.. now the users posting pics all over will be happy they dont have to hit reply... :D
Thanks..
I found the one line where it says 75 as a width.. I changed that but.. it didnt seem to make ANY difference.. and the columns were 7.. I didnt mess with that..
I think you have the wrong stuff copied. The Display.template.php you posted earlier doesn't have anything from my mod. Double check the "how to add to my theme" text ;)
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
Is what you need to change (the 50%)
Thanks.. that worked awesome..
yeah.. I set it at 95%.. now its EXACTLY how I want it..
thanks.. yeah i dont know what code i was looking at .. i installed 18 new mods today.. lol..
thanks for the reply.. awesome mod.. I love it.. this mod has been a LONG time coming for me..
great! but i need to spread in wide reply box
(http://www.fotorola.com/uploads/19e4984908.jpg) (http://www.fotorola.com/)
and there isn't place for text explanation as before
(http://www.fotorola.com/uploads/2291db115d.jpg) (http://www.fotorola.com/)
umm.. thats the question he answered for me.. look for that line with 50% change it for 95%
works like a charm.
omg, i must be blind when i didn't see your post just above mine! :)
it's ok for width but problem with text stay...
No problem :)
Quote from: Farmacija on August 13, 2007, 11:44:13 PM
omg, i must be blind when i didn't see your post just above mine! :)
it's ok for width but problem with text stay...
ok, look for
// Finally the most important bit - the actual text box to write in!
echo '
<textarea class="editor" cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea>';
Edit that line to adjust the width and height :)
Hi, I need to add this mod manually because i got an error in package installer in display. template Ive got that code sorted. I just wanted to know where to add the coding in display.php? It doesnt say what to find to add it, so should it just be added at the bottom?
Thanks
Nat
It should be the same as the instructions in the readme except the data to add is in modification.xml. I will help you out with this further if needed, I am about to run right now :)
A little help please.
It appears that IE is adding "Â" at the end of sentences when a message is quoted.
Hi TimL,
What is the charset on your theme?
Quote from: Kirby on August 16, 2007, 09:51:55 AM
Hi TimL,
What is the charset on your theme?
I'm assuming this is what you are asking me? Thanks!
Default theme: index.english
$txt['lang_character_set'] = 'ISO-8859-1';
Yes :) Try changing it to UTF-8.
Hi, im using the tp style theme so I need to modify display.template.php but when i have gone to modify the file i noticed that i have extra coding.
where you mod says
<search position="replace"><![CDATA[
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>';
}
]]></search>
i have
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'], '" /><center><a href="javascript:void(0);" onclick="replaceText(\' :)\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/smiley.gif" align="bottom" alt="Smiley" title="Smiley" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' ;)\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/wink.gif" align="bottom" alt="Wink" title="Wink" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :D\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/cheesy.gif" align="bottom" alt="Cheesy" title="Cheesy" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' ;D\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/grin.gif" align="bottom" alt="Grin" title="Grin" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' >:(\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/angry.gif" align="bottom" alt="Angry" title="Angry" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :(\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/sad.gif" align="bottom" alt="Sad" title="Sad" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :o\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/shocked.gif" align="bottom" alt="Shocked" title="Shocked" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' 8)\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/cool.gif" align="bottom" alt="Cool" title="Cool" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' ???\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/huh.gif" align="bottom" alt="Huh" title="Huh" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' ::)\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/rolleyes.gif" align="bottom" alt="Roll Eyes" title="Roll Eyes" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :P\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/tongue.gif" align="bottom" alt="Tongue" title="Tongue" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :-[\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/embarassed.gif" align="bottom" alt="Embarrassed" title="Embarrassed" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :-X\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/lipsrsealed.gif" align="bottom" alt="Lips Sealed" title="Lips Sealed" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :-\\\ \', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/undecided.gif" align="bottom" alt="Undecided" title="Undecided" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :-*\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/kiss.gif" align="bottom" alt="Kiss" title="Kiss" border="0" /></a>
<a href="javascript:void(0);" onclick="replaceText(\' :\\\'(\', document.postmodify.message); return false;"><img src="' . $settings['images_url'] . '/cry.gif" align="bottom" alt="cry" title="cry" border="0" /></a>
<br/></center>
<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>';
if i ignore the extra coding then your mod just pastes all the coding at the top of the forum and I can't work out how to finish adding this last bit.
Nice Mod.........works like a charm on 1.1.3 :) .......keep it up mate...... ;)
Quote from: chep on August 08, 2007, 01:15:31 AM
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">
thanks......it really helped me :)
Attach your Display.template.php to a post, I will mod it and attach it back for you :) It would be easier that way.
Quote from: riderraghav on August 16, 2007, 04:53:05 PM
Nice Mod.........works like a charm on 1.1.3 :) .......keep it up mate...... ;)
Any time :) I will be releasing a few more mods next week
I can't belive I forgot to attach this on my last post doh .... here you go and thanks
how we can put just smiley in quick reply without the rest bbc codes??
Quote from: Kirby on August 16, 2007, 12:40:03 PM
Yes :) Try changing it to UTF-8.
The issue was that I had "
URL Popup" & "
Font and Size Dropdown" installed. Your Mod or the other two give errors if they are installed along with Quick Reply.
Any chance of changing your mod to work with these two enhancements? Or a Lite version to just have emotions?
PROBLEM! When I highlight text and click on a BBConde symbol (e.g. bold text) - it doesn't apply the function to the highlighted text it simply places the code at the end of the piece. Anyone else noticed this?
(running 1.1.3. std. theme - ad management, visual warning mods also running)
Quote from: Tinny on August 17, 2007, 01:53:19 AM
I can't belive I forgot to attach this on my last post doh .... here you go and thanks
attached :)
Quote from: Farmacija on August 17, 2007, 10:13:20 AM
how we can put just smiley in quick reply without the rest bbc codes??
Remove the
if ($context['show_bbc'])
{
..............
}
block from the template.
Quote from: TimL on August 17, 2007, 06:49:30 PM
Quote from: Kirby on August 16, 2007, 12:40:03 PM
Yes :) Try changing it to UTF-8.
The issue was that I had "URL Popup" & "Font and Size Dropdown" installed. Your Mod or the other two give errors if they are installed along with Quick Reply.
Any chance of changing your mod to work with these two enhancements? Or a Lite version to just have emotions?
I'm not sure what those two mods do or why they are affecting this mod. Do you have any more information?
Quote from: TDW on August 18, 2007, 01:51:58 AM
PROBLEM! When I highlight text and click on a BBConde symbol (e.g. bold text) - it doesn't apply the function to the highlighted text it simply places the code at the end of the piece. Anyone else noticed this?
(running 1.1.3. std. theme - ad management, visual warning mods also running)
I haven't noticed that (it works for me) but if it is a problem for anyone else I will have to look into it.
You mean this : if ($context['show_bbc'])
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function bbc_highlight(something, mode)
{
something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
}
?
Where i can put the youtube bbcode?
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => $txt['youtube']),
Works like a charm ...... thanks Kirby
and how we can center submit field?
How do we put back the left-column for the Posting Reminder just like the one below? I'm thinking of using this space for my Google Adsense ads.
Quote from: Farmacija on August 13, 2007, 11:21:20 PM
(http://www.fotorola.com/uploads/2291db115d.jpg)
Quote from: Farmacija on August 13, 2007, 11:21:20 PM
(http://www.fotorola.com/uploads/2291db115d.jpg) (http://www.fotorola.com/)
hi,this mod perfect work for me,but how i insert text in quick reply bar like this in quote
Quote from: Farmacija on August 19, 2007, 10:47:03 PM
You mean this : if ($context['show_bbc'])
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function bbc_highlight(something, mode)
{
something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
}
?
This:
// Assuming BBC code is enabled then print the buttons and some javascript to handle it.
if ($context['show_bbc'])
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function bbc_highlight(something, mode)
{
something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
}
// ]]></script>';
// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();
$context['bbc_tags'][] = array(
'bold' => array('code' => 'b', 'before' => '[b]', 'after' => '[/b]', 'description' => $txt[253]),
'italicize' => array('code' => 'i', 'before' => '[i]', 'after' => '[/i]', 'description' => $txt[254]),
'underline' => array('code' => 'u', 'before' => '[u]', 'after' => '[/u]', 'description' => $txt[255]),
'strike' => array('code' => 's', 'before' => '[s]', 'after' => '[/s]', 'description' => $txt[441]),
array(),
'glow' => array('code' => 'glow', 'before' => '[glow=red,2,300]', 'after' => '[/glow]', 'description' => $txt[442]),
'shadow' => array('code' => 'shadow', 'before' => '[shadow=red,left]', 'after' => '[/shadow]', 'description' => $txt[443]),
'move' => array('code' => 'move', 'before' => '[move]', 'after' => '[/move]', 'description' => $txt[439]),
array(),
'pre' => array('code' => 'pre', 'before' => '[pre]', 'after' => '[/pre]', 'description' => $txt[444]),
'left' => array('code' => 'left', 'before' => '[left]', 'after' => '[/left]', 'description' => $txt[445]),
'center' => array('code' => 'center', 'before' => '[center]', 'after' => '[/center]', 'description' => $txt[256]),
'right' => array('code' => 'right', 'before' => '[right]', 'after' => '[/right]', 'description' => $txt[446]),
array(),
'hr' => array('code' => 'hr', 'before' => '[hr]', 'description' => $txt[531]),
array(),
'size' => array('code' => 'size', 'before' => '[size=10pt]', 'after' => '[/size]', 'description' => $txt[532]),
'face' => array('code' => 'font', 'before' => '[font=Verdana]', 'after' => '[/font]', 'description' => $txt[533]),
);
$context['bbc_tags'][] = array(
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),
'url' => array('code' => 'url', 'before' => '[url]', 'after' => '[/url]', 'description' => $txt[257]),
'email' => array('code' => 'email', 'before' => '[email]', 'after' => '[/email]', 'description' => $txt[258]),
'ftp' => array('code' => 'ftp', 'before' => '[ftp]', 'after' => '[/ftp]', 'description' => $txt[434]),
array(),
'table' => array('code' => 'table', 'before' => '[table]', 'after' => '[/table]', 'description' => $txt[436]),
'tr' => array('code' => 'td', 'before' => '[tr]', 'after' => '[/tr]', 'description' => $txt[449]),
'td' => array('code' => 'td', 'before' => '[td]', 'after' => '[/td]', 'description' => $txt[437]),
array(),
'sup' => array('code' => 'sup', 'before' => '[sup]', 'after' => '[/sup]', 'description' => $txt[447]),
'sub' => array('code' => 'sub', 'before' => '[sub]', 'after' => '[/sub]', 'description' => $txt[448]),
'tele' => array('code' => 'tt', 'before' => '[tt]', 'after' => '[/tt]', 'description' => $txt[440]),
array(),
'code' => array('code' => 'code', 'before' => '[code]', 'after' => '[nobbc][/code][/nobbc]', 'description' => $txt[259]),
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),
array(),
'list' => array('code' => 'list', 'before' => '[list]\n[list][li]', 'after' => '[/li][/list]\n[list][li][/li][/list]\n[/list]', 'description' => $txt[261]),
array(),
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => 'YouTube'),
'spoiler' => array('code' => 'spoiler', 'before' => '[spoiler]', 'after' => '[/spoiler]', 'description' => 'Spoiler'),
);
$found_button = false;
// Here loop through the array, printing the images/rows/separators!
foreach ($context['bbc_tags'][0] as $image => $tag)
{
// Is there a "before" part for this bbc button? If not, it can't be a button!!
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;
$found_button = true;
// If there's no after, we're just replacing the entire selection in the post box.
if (!isset($tag['after']))
echo '<a href="javascript:void(0);" onclick="replaceText(\'', $tag['before'], '\', document.forms.postmodify.message); return false;">';
// On the other hand, if there is one we are surrounding the selection ;).
else
echo '<a href="javascript:void(0);" onclick="surroundText(\'', $tag['before'], '\', \'', $tag['after'], '\', document.forms.postmodify.message); return false;">';
// Okay... we have the link. Now for the image and the closing </a>!
echo '<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
}
// I guess it's a divider...
elseif ($found_button)
{
echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
$found_button = false;
}
}
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '<br />';
$found_button = false;
// Print the buttom row of buttons!
foreach ($context['bbc_tags'][1] as $image => $tag)
{
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;
$found_button = true;
// If there's no after, we're just replacing the entire selection in the post box.
if (!isset($tag['after']))
echo '<a href="javascript:void(0);" onclick="replaceText(\'', $tag['before'], '\', document.forms.postmodify.message); return false;">';
// On the other hand, if there is one we are surrounding the selection ;).
else
echo '<a href="javascript:void(0);" onclick="surroundText(\'', $tag['before'], '\', \'', $tag['after'], '\', document.forms.postmodify.message); return false;">';
// Okay... we have the link. Now for the image and the closing </a>!
echo '<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
}
// I guess it's a divider...
elseif ($found_button)
{
echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
$found_button = false;
}
}
}
Quote from: Tinny on August 20, 2007, 05:29:18 AM
Works like a charm ...... thanks Kirby
Any time :)
Quote from: geezmo on August 21, 2007, 10:06:14 AM
How do we put back the left-column for the Posting Reminder just like the one below? I'm thinking of using this space for my Google Adsense ads.
Quote from: JerryCRO on August 24, 2007, 11:36:37 AM
Quote from: Farmacija on August 13, 2007, 11:21:20 PM
hi,this mod perfect work for me,but how i insert text in quick reply bar like this in quote
You would have to turn this portion into tables:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
<div class="catbg" style="padding: 4px;"><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></div>
<div class="windowbg" id="quickReplyOptions" style="padding: 1ex;', $options['display_quick_reply'] == 2 ? '' : ' display: none', '">
', $context['is_locked'] ? '<b>' . $txt['quick_reply_warning'] . '</b><br /><br />' : '', '
<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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
theme_quickreply_box();
echo '
<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>';
echo '
</div>
</div></div>';
}
Turn that into:
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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
theme_quickreply_box();
echo '
<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>';
}
Quote from: adp on August 20, 2007, 04:57:50 AM
Where i can put the youtube bbcode?
'youtube' => array('code' => 'youtube', 'before' => '[youtube=425,350]', 'after' => '[/youtube]', 'description' => $txt['youtube']),
After this:
'list' => array('code' => 'list', 'before' => '[list]\n[list][li]', 'after' => '[/li][/list]\n[list][li][/li][/list]\n[/list]', 'description' => $txt[261]),
Quote from: Farmacija on August 20, 2007, 11:39:49 AM
and how we can center submit field?
Look for:
echo '
<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>';
Replace with:
echo '
<br />
<div style="text-align: center;">
<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 '
</div>
<input type="hidden" name="sc" value="' . $context['session_id'] . '" />
<input type="hidden" name="seqnum" value="', $context['form_sequence_number'], '" />
</form>';
[/code]
Hello
I'm very satisfied with this mod, congratulations and thanks!!!!
I've noticed that some users have a problem with the manual install, and the auto install of this mod.
I guess that they already have had an old version of the mod, and they have uninstall it, so, the next steps will help those who have problems with the auto and manual install. It also can solve the "Fatal error: Cannot redeclare template_enhanced_quick_reply() (previously declared in /Sources/Load.php(1726) : eval()'d code:1182) in /Sources/Load.php(1726) : eval()'d code on line 856" error that some can have with old versions of the mod.
So, here is how I fixed it:
ATTENTIÓN: It doesn't serve that you start to upgrade of an old version from the enhanced_quick_reply to the 2.0, what you should make is completely uninstall the previous versions, and that you also erase it of the templates where you have added it.
For a previos version of the mod: Uninstall the previous versions of enhanced_quick_reply from de Packages and do it manually too(It's recommend that you make a backup before start)
Edit /Themes/default/Display.template.php
Search:
</table>';
if ($context['show_spellchecking'])
echo '
<form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
}
Replace with:
</table>';
}
{
if ($context['show_spellchecking'])
echo '
<form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
}
}
Put special attention in copying everything very well, including the brackets, because if you don't make it it can leave you parse error
And lastly you must eliminate this (everything is exactly after the code that we have just edited and it extends until the end of the file):
// Show an enhanced quick reply box for those that want everything.
function template_enhanced_quick_reply()
{
global $context, $modSettings, $settings, $txt, $options, $scripturl, $db_prefix;
loadLanguage('Post');
// Initialize smiley array...
$context['smileys'] = array(
'postform' => array(),
'popup' => array(),
);
// Load smileys - don't bother to run a query if we're not using the database's ones anyhow.
if (empty($modSettings['smiley_enable']) && $context['user']['smiley_set'] != 'none')
$context['smileys']['postform'][] = array(
'smileys' => array(
array('code' => ':)', 'filename' => 'smiley.gif', 'description' => $txt[287]),
array('code' => ';)', 'filename' => 'wink.gif', 'description' => $txt[292]),
array('code' => ':D', 'filename' => 'cheesy.gif', 'description' => $txt[289]),
array('code' => ';D', 'filename' => 'grin.gif', 'description' => $txt[293]),
array('code' => '>:(', 'filename' => 'angry.gif', 'description' => $txt[288]),
array('code' => ':(', 'filename' => 'sad.gif', 'description' => $txt[291]),
array('code' => ':o', 'filename' => 'shocked.gif', 'description' => $txt[294]),
array('code' => '8)', 'filename' => 'cool.gif', 'description' => $txt[295]),
array('code' => '???', 'filename' => 'huh.gif', 'description' => $txt[296]),
array('code' => '::)', 'filename' => 'rolleyes.gif', 'description' => $txt[450]),
array('code' => ':P', 'filename' => 'tongue.gif', 'description' => $txt[451]),
array('code' => ':-[', 'filename' => 'embarrassed.gif', 'description' => $txt[526]),
array('code' => ':-X', 'filename' => 'lipsrsealed.gif', 'description' => $txt[527]),
array('code' => ':-\\', 'filename' => 'undecided.gif', 'description' => $txt[528]),
array('code' => ':-*', 'filename' => 'kiss.gif', 'description' => $txt[529]),
array('code' => ':\'(', 'filename' => 'cry.gif', 'description' => $txt[530])
),
'last' => true,
);
elseif ($context['user']['smiley_set'] != 'none')
{
if (($temp = cache_get_data('posting_smileys', 480)) == null)
{
$request = db_query("
SELECT code, filename, description, smileyRow, hidden
FROM {$db_prefix}smileys
WHERE hidden IN (0, 2)
ORDER BY smileyRow, smileyOrder", __FILE__, __LINE__);
while ($row = mysql_fetch_assoc($request))
{
$row['code'] = htmlspecialchars($row['code']);
$row['filename'] = htmlspecialchars($row['filename']);
$row['description'] = htmlspecialchars($row['description']);
$context['smileys'][empty($row['hidden']) ? 'postform' : 'popup'][$row['smileyRow']]['smileys'][] = $row;
}
mysql_free_result($request);
cache_put_data('posting_smileys', $context['smileys'], 480);
}
else
$context['smileys'] = $temp;
}
// Clean house... add slashes to the code for javascript.
foreach (array_keys($context['smileys']) as $location)
{
foreach ($context['smileys'][$location] as $j => $row)
{
$n = count($context['smileys'][$location][$j]['smileys']);
for ($i = 0; $i < $n; $i++)
{
$context['smileys'][$location][$j]['smileys'][$i]['code'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['code']);
$context['smileys'][$location][$j]['smileys'][$i]['js_description'] = addslashes($context['smileys'][$location][$j]['smileys'][$i]['description']);
}
$context['smileys'][$location][$j]['smileys'][$n - 1]['last'] = true;
}
if (!empty($context['smileys'][$location]))
$context['smileys'][$location][count($context['smileys'][$location]) - 1]['last'] = true;
}
$settings['smileys_url'] = $modSettings['smileys_url'] . '/' . $context['user']['smiley_set'];
// Allow for things to be overridden.
if (!isset($context['post_box_columns']))
$context['post_box_columns'] = 75;
if (!isset($context['post_box_rows']))
$context['post_box_rows'] = 7;
if (!isset($context['post_box_name']))
$context['post_box_name'] = 'message';
if (!isset($context['post_form']))
$context['post_form'] = 'postmodify';
// Generate a list of buttons that shouldn't be shown - this should be the fastest way to do this.
if (!empty($modSettings['disabledBBC']))
{
$disabled_tags = explode(',', $modSettings['disabledBBC']);
foreach ($disabled_tags as $tag)
$context['disabled_tags'][trim($tag)] = true;
}
// Assuming BBC code is enabled then print the buttons and some javascript to handle it.
if (!empty($modSettings['enableBBC']) && !empty($settings['show_bbc']))
{
echo '
<tr>
<td align="right"></td>
<td valign="middle">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function bbc_highlight(something, mode)
{
something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
}
// ]]></script>';
// The below array makes it dead easy to add images to this page. Add it to the array and everything else is done for you!
$context['bbc_tags'] = array();
$context['bbc_tags'][] = array(
'bold' => array('code' => 'b', 'before' => '[b]', 'after' => '[/b]', 'description' => $txt[253]),
'italicize' => array('code' => 'i', 'before' => '[i]', 'after' => '[/i]', 'description' => $txt[254]),
'underline' => array('code' => 'u', 'before' => '[u]', 'after' => '[/u]', 'description' => $txt[255]),
'strike' => array('code' => 's', 'before' => '[s]', 'after' => '[/s]', 'description' => $txt[441]),
array(),
'glow' => array('code' => 'glow', 'before' => '[glow=red,2,300]', 'after' => '[/glow]', 'description' => $txt[442]),
'shadow' => array('code' => 'shadow', 'before' => '[shadow=red,left]', 'after' => '[/shadow]', 'description' => $txt[443]),
'move' => array('code' => 'move', 'before' => '[move]', 'after' => '[/move]', 'description' => $txt[439]),
array(),
'pre' => array('code' => 'pre', 'before' => '[pre]', 'after' => '[/pre]', 'description' => $txt[444]),
'left' => array('code' => 'left', 'before' => '[left]', 'after' => '[/left]', 'description' => $txt[445]),
'center' => array('code' => 'center', 'before' => '[center]', 'after' => '[/center]', 'description' => $txt[256]),
'right' => array('code' => 'right', 'before' => '[right]', 'after' => '[/right]', 'description' => $txt[446]),
array(),
'hr' => array('code' => 'hr', 'before' => '[hr]', 'description' => $txt[531]),
array(),
'size' => array('code' => 'size', 'before' => '[size=10pt]', 'after' => '[/size]', 'description' => $txt[532]),
'face' => array('code' => 'font', 'before' => '[font=Verdana]', 'after' => '[/font]', 'description' => $txt[533]),
);
$context['bbc_tags'][] = array(
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]http://', 'after' => '[/flash]', 'description' => $txt[433]),
'img' => array('code' => 'img', 'before' => '[img]http://', 'after' => '[/img]', 'description' => $txt[435]),
'url' => array('code' => 'url', 'before' => '[url=http://', 'after' => ']', 'after' => '[/url]', 'description' => $txt[257]),
'email' => array('code' => 'email', 'before' => '[email]', 'after' => '[/email]', 'description' => $txt[258]),
'ftp' => array('code' => 'ftp', 'before' => '[ftp=ftp://', 'after' => ']', 'after' => '[/ftp]', 'description' => $txt[434]),
array(),
'table' => array('code' => 'table', 'before' => '[table][tr][td]', 'after' => '[/table]', 'description' => $txt[436]),
'tr' => array('code' => 'td', 'before' => '[table][tr][td]', 'after' => '[/td][/tr][/table]', 'description' => $txt[449]),
'td' => array('code' => 'td', 'before' => '[table][tr][td]', 'after' => '[/td][/tr][/table]', 'description' => $txt[437]),
array(),
'sup' => array('code' => 'sup', 'before' => '[sup]', 'after' => '[/sup]', 'description' => $txt[447]),
'sub' => array('code' => 'sub', 'before' => '[sub]', 'after' => '[/sub]', 'description' => $txt[448]),
'tele' => array('code' => 'tt', 'before' => '[tt]', 'after' => '[/tt]', 'description' => $txt[440]),
array(),
'code' => array('code' => 'code', 'before' => '[ code]', 'after' => '[/ code]', 'description' => $txt[259]),
'quote' => array('code' => 'quote', 'before' => '[quote]', 'after' => '[/quote]', 'description' => $txt[260]),
array(),
'list' => array('code' => 'list', 'before' => '[list]\n[list][li]', 'after' => '[/li][/list]\n[list][li][/li][/list]\n[/list]', 'description' => $txt[261]),
);
// Here loop through the array, printing the images/rows/separators!
foreach ($context['bbc_tags'][0] as $image => $tag)
{
// Is there a "before" part for this bbc button? If not, it can't be a button!!
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;
// If there's no after, we're just replacing the entire selection in the post box.
if (!isset($tag['after']))
echo '<a href="javascript:void(0);" onclick="replaceText(\'', $tag['before'], '\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;">';
// On the other hand, if there is one we are surrounding the selection ;).
else
echo '<a href="javascript:void(0);" onclick="surroundText(\'', $tag['before'], '\', \'', $tag['after'], '\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;">';
// Okay... we have the link. Now for the image and the closing </a>!
echo '<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
}
// I guess it's a divider...
else
echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
}
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '<br />';
// Print the buttom row of buttons!
foreach ($context['bbc_tags'][1] as $image => $tag)
{
if (isset($tag['before']))
{
// Is this tag disabled?
if (!empty($context['disabled_tags'][$tag['code']]))
continue;
// If there's no after, we're just replacing the entire selection in the post box.
if (!isset($tag['after']))
echo '<a href="javascript:void(0);" onclick="replaceText(\'', $tag['before'], '\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;">';
// On the other hand, if there is one we are surrounding the selection ;).
else
echo '<a href="javascript:void(0);" onclick="surroundText(\'', $tag['before'], '\', \'', $tag['after'], '\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;">';
// Okay... we have the link. Now for the image and the closing </a>!
echo '<img onmouseover="bbc_highlight(this, true);" onmouseout="if (window.bbc_highlight) bbc_highlight(this, false);" src="', $settings['images_url'], '/bbc/', $image, '.gif" align="bottom" width="23" height="22" alt="', $tag['description'], '" title="', $tag['description'], '" style="background-image: url(', $settings['images_url'], '/bbc/bbc_bg.gif); margin: 1px 2px 1px 1px;" /></a>';
}
// I guess it's a divider...
else
echo '<img src="', $settings['images_url'], '/bbc/divider.gif" alt="|" style="margin: 0 3px 0 3px;" />';
}
echo '
</td>
</tr>';
}
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
echo '
<tr>
<td align="right"></td>
<td valign="middle">';
// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';
// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}
// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
echo '
</td>
</tr>';
}
// If there are additional smileys then ensure we provide the javascript for them.
if (!empty($context['smileys']['popup']))
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smileys = [';
foreach ($context['smileys']['popup'] as $smiley_row)
{
echo '
[';
foreach ($smiley_row['smileys'] as $smiley)
{
echo '
["', $smiley['code'], '","', $smiley['filename'], '","', $smiley['js_description'], '"]';
if (empty($smiley['last']))
echo ',';
}
echo ']';
if (empty($smiley_row['last']))
echo ',';
}
echo '];
var smileyPopupWindow;
function moreSmileys()
{
var row, i;
if (smileyPopupWindow)
smileyPopupWindow.close();
smileyPopupWindow = window.open("", "add_smileys", "toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,width=480,height=220,resizable=yes");
smileyPopupWindow.document.write(\'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n<html>\');
smileyPopupWindow.document.write(\'\n\t<head>\n\t\t<title>', $txt['more_smileys_title'], '</title>\n\t\t<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css" />\n\t</head>\');
smileyPopupWindow.document.write(\'\n\t<body style="margin: 1ex;">\n\t\t<table width="100%" cellpadding="5" cellspacing="0" border="0" class="tborder">\n\t\t\t<tr class="titlebg"><td align="left">', $txt['more_smileys_pick'], '</td></tr>\n\t\t\t<tr class="windowbg"><td align="left">\');
for (row = 0; row < smileys.length; row++)
{
for (i = 0; i < smileys[row].length; i++)
{
smileys[row][i][2] = smileys[row][i][2].replace(/"/g, \'"\');
smileyPopupWindow.document.write(\'<a href="javascript:void(0);" onclick="window.opener.replaceText(" \' + smileys[row][i][0] + \'", window.opener.document.forms.', $context['post_form'], '.', $context['post_box_name'], '); window.focus(); return false;"><img src="', $settings['smileys_url'], '/\' + smileys[row][i][1] + \'" alt="\' + smileys[row][i][2] + \'" title="\' + smileys[row][i][2] + \'" style="padding: 4px;" border="0" /></a> \');
}
smileyPopupWindow.document.write("<br />");
}
smileyPopupWindow.document.write(\'</td></tr>\n\t\t\t<tr><td align="center" class="windowbg"><a href="javascript:window.close();\\">', $txt['more_smileys_close_window'], '</a></td></tr>\n\t\t</table>\n\t</body>\n</html>\');
smileyPopupWindow.document.close();
}
// ]]></script>';
}
// Finally the most important bit - the actual text box to write in!
echo '
<tr>
<td valign="top" align="right"></td>
<td>
<textarea class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="6"></textarea>
</td>
</tr>';
}
You should be careful not to erase this:
}
?>
That's in the whole end of the file or you could damage it or to have parse error
After all that, go to the package manager and the enhanced_quick_reply 2.0 should install without problems.
Then, you can verify that everything is ok and don't get that annoying message (if you didn't had this, ignore it):
Fatal error: Cannot redeclare template_enhanced_quick_reply() (previously declared in /Sources/Load.php(1726) : eval()'d code:1182) in /Sources/Load.php(1726) : eval()'d code on line 856
I apologize for my English, it's not very good
You can find the original Spanish version of this here: http://www.simplemachines.org/community/index.php?topic=189773
I hope it can be useful for somebody
thank u kirby very much. :)
Kirby thank you!
QuoteTurn that into:
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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
theme_quickreply_box();
echo '
<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>';
}
Thanks Kirby. If I am to put my Adsense code in that "Quick Reply" text column, what part do I edit to place my codes?
Any time guys :)
This part right here, geezmo:
<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="25%" valign="top">Put whatever you want here</td>
tnx kirby,but how i can put hidden for guest button in bbc lists?i speak about this mod :
http://custom.simplemachines.org/mods/index.php?mod=756
It worked for me Kirby. Thanks!
Add this to the BBCode array in Display.template.php:
'lockguest' => array('code' => 'logged', 'before' => '[logged]','after' => '[/logged]', 'description' => $txt['description_lock_guests']),
Any time geezmo :)
Quote from: Kirby on August 26, 2007, 04:18:19 PM
Any time guys :)
This part right here, geezmo:
<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="25%" valign="top">Put whatever you want here</td>
Hi Kirby, I placed my Adsense code in that part but that also removed the "This topic is already locked" message. How do I add this message back, probably just place it right above the body text field?
Quote from: Kirby on August 27, 2007, 04:57:15 PM
Add this to the BBCode array in Display.template.php:
'lockguest' => array('code' => 'logged', 'before' => '[logged]','after' => '[/logged]', 'description' => $txt['description_lock_guests']),
Any time geezmo :)
ty
geezmo,
you can add this anywhere you want it:
', $txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '
I'm using quite a few mods and I'm trying to install this one. I'm having trouble with the Display.template.php modifications. Everything is done except this part of the code -
// Show the quick reply box.
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
<div class="catbg" style="padding: 4px;"><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></div>
<div class="windowbg" id="quickReplyOptions" style="padding: 1ex;', $options['display_quick_reply'] == 2 ? '' : ' display: none', '">
', $context['is_locked'] ? '<b>' . $txt['quick_reply_warning'] . '</b><br /><br />' : '', '
<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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
theme_quickreply_box();
echo '
<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>';
echo '
</div>
</div></div>';
}
Now this is my section of the code in the Dispay.template.php file where I have to add the 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'] . '" />
';
if (isset($context['topicSolved']))
echo ' <input type="hidden" name="icon" value="' . $modSettings['topicsolvedIcon' . ($context['user']['started'] ? 'Starter' : 'Other')] . '"/>';
else
echo ' <input type="hidden" name="icon" value="xx" />';
echo'
<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'], '" />
';
// if both color and bgcolor are disabled
if (!isset($context['disabled_tags']['color']) || !isset($context['disabled_tags']['bgcolor'])) {
echo '<script language="javascript" type="text/javascript">
function bbc_highlight(something, mode)
{
something.style.backgroundImage = "url(" + smf_images_url + (mode ? "/bbc/bbc_hoverbg.gif)" : "/bbc/bbc_bg.gif)");
}
';
// define the image dir
echo 'var cbid = "', $settings['default_theme_url'],'/images/bbc/";
';
// define the settings for javascript purposes
echo 'var usecolor = ', (!isset($context['disabled_tags']['color'])) ? 1 : 0 , ';
';
echo 'var usebgcolor = ', (!isset($context['disabled_tags']['bgcolor'])) ? 1 : 0 , ';
';
// use array to quickly write all the language strings since javascript can't read php language strings
$lang = array(
'yourtexthere', 'insert', 'changetoinsertcolor', 'changetoinsertbgcolor',
'switchbetween', 'insertlastclicked', 'insertlasthovered'
);
// WRITE EACH VAR WE MAY USE
foreach($lang as $var) {
echo 'var '.$var.' = "'.$txt[$var].'";
';
}
// call colorbar.js which has the javascript in
echo '</script>
<script language="javascript" src="', $settings['default_theme_url'], '/color.js" type="text/javascript"></script>';
}
echo '
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
';
// Want to tell us what you're listening to?
if($modSettings['nowplayingEnabled'])
{
echo $txt['nowplaying2'] . '<br /><input type="text" style="width:95%" name="nowplaying" tabindex="2" /><br />';
}
echo '
<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>';
}
I'm sure it will work once I got this code figured out. Actually added a few mods manually on my forum and got them all working minus this one and one other. I'll keep trying but I was wondering if someone could help me out.
Actually got it working. Not sure this is normal or not but when I post the message from Quick Reply I get redirected to the Category view. I then have to click on the post to see the reply. But the post works. Any thoughts?
Good mod though.
Quote from: Kirby on August 28, 2007, 05:41:46 PM
geezmo,
you can add this anywhere you want it:
', $txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '
Works great. Tnx Kirby!
Quote from: Doughboy on August 29, 2007, 04:37:49 PM
Actually got it working. Not sure this is normal or not but when I post the message from Quick Reply I get redirected to the Category view. I then have to click on the post to see the reply. But the post works. Any thoughts?
Good mod though.
This is because of a profile setting.
No problem geezmo :)
Quote from: Kirby on August 19, 2007, 06:47:29 PM
Quote from: TDW on August 18, 2007, 01:51:58 AM
PROBLEM! When I highlight text and click on a BBConde symbol (e.g. bold text) - it doesn't apply the function to the highlighted text it simply places the code at the end of the piece. Anyone else noticed this?
(running 1.1.3. std. theme - ad management, visual warning mods also running)
I haven't noticed that (it works for me) but if it is a problem for anyone else I will have to look into it.
I noticed the same problem. Works with FF 2.x, not with IE7 (not yet a chance to try with Opera and Safari) Any help would be appreciated. Using 1.1.3 with lots of mods.
Okay, will test this and get back to you.
Thank you :)
I have identified this as a bug and will shortly release an updated full package (2.0.1) and for everyone else,
Open Display.template.php.
Look for
<textarea class="editor" cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea>';
Replace with:
<textarea class="editor" cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);"></textarea>';
Thank you Kirby :)
How do I make it fit to this space?
Screenshot: http://img300.imageshack.us/img300/8404/hmmmje6.png
What do you mean, husam?
Quote from: Kirby on September 03, 2007, 01:36:52 PM
What do you mean, husam?
I think he doesn't want the large, left-panel spaced so much.
Quote from: SySRoot74 on September 03, 2007, 02:12:12 PM
Quote from: Kirby on September 03, 2007, 01:36:52 PM
What do you mean, husam?
I think he doesn't want the large, left-panel spaced so much.
Yes, what SySRoot74 said.
Quote from: Kirby on August 11, 2007, 02:15:39 AM
You can see them in the modification.xml file in the package.
Yeah, but it is very confusing. Is anyone willing to post the manual edits for me? Or send them to my via PM?
The vanilla code from the package have that section. Can you post the HTML of the quick reply area in Display.template.php?
So Kirby?
Quote from: Kirby on September 03, 2007, 09:15:35 PM
The vanilla code from the package have that section. Can you post the HTML of the quick reply area in Display.template.php?
Quote from: Kirby on September 04, 2007, 04:30:38 PM
Quote from: Kirby on September 03, 2007, 09:15:35 PM
The vanilla code from the package have that section. Can you post the HTML of the quick reply area in Display.template.php?
I didn't understand?
Can you attach your Display.template.php?
Here....
I got problem that I can't finde in my Display.template.php
Quote<!-- Add the template_quickreply_box() function. -->
Could you be so kind and look at my Display ?
:P
Quote from: husam on September 05, 2007, 01:09:04 AM
Here....
Look for:
<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="left"><table border="0" cellspacing="0" cellpadding="0" width="400%">
Replace:
<td class="windowbg" width="100%" align="left"><table border="0" cellspacing="0" cellpadding="0" width="400%">
Quote from: kamili34 on September 05, 2007, 07:38:53 PM
I got problem that I can't finde in my Display.template.php
Quote<!-- Add the template_quickreply_box() function. -->
Could you be so kind and look at my Display ?
:P
That is just a comment, you do not need to worry about that part :) Are you trying to install it in a template?
Quote from: mohoganybrwn on September 03, 2007, 08:21:00 PM
Quote from: Kirby on August 11, 2007, 02:15:39 AM
You can see them in the modification.xml file in the package.
Yeah, but it is very confusing. Is anyone willing to post the manual edits for me? Or send them to my via PM?
I would be happy to manually edit the file for you.
That is just a comment, you do not need to worry about that part :) Are you trying to install it in a template?
Yes but I don't know were past it.
I am keep receiving an error during test:
Execute Modification ./Themes/default/Display.template.php Test failed
please advise
Thanks so much to kirby for the updated mod and also to Chep for aiding me in expanding the size of the Quick Reply. :)
i tried to install it in a smf 1.1.3/tp 0.9.8 forum dut i got an error in Display.template.php ! i have installed Color & BgColor BBCode Bar 3.0 mod , could that be the problem ? (it modifies the Display.template.php)
here's my Display.template.php !
thnx in advance !
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Uff I do it now. Thanks for mod. :P
I've got an error! when I clicked any topics. It was installed succesfully but just seems i got this one error.
Fatal error: Cannot redeclare theme_quickreply_box() (previously declared in /home/shoujosh/public_html/forum/Sources/Display.php:1255) in /home/shoujosh/public_html/forum/Sources/Display.php on line 1372
That means you have two codes of 'theme_quickreply_box()' in sources/display.php - Remove ONE of the TWO codes. You probaly installed it twice.
Quote from: TrueSatan on September 07, 2007, 12:29:54 PM
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)
http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
i got it , many problems , same reason , one solution ! thnx ! ;)
Could you support Enhanced Quick Reply to this mod Blink BBC :P
Quote from: kamili34 on September 08, 2007, 12:48:52 PM
Could you support Enhanced Quick Reply to this mod Blink BBC :P
In Display.template.php...
Add
'blink' => array('code' => 'blink', 'before' => '[blink]', 'after' => '[/blink]', 'description' => 'Blink'),
After this:
'list' => array('code' => 'list', 'before' => '[list]\n[list][li]', 'after' => '[/li][/list]\n[list][li][/li][/list]\n[/list]', 'description' => $txt[261]),
Thank you so much TrueSatan and shadow92x for helping out :)
If your concerns are still not addressed, please reply to this message.
Just a Question
Rather than using A separate BBCode tree as you did in Display.template, Why dont you call Post.template and use the BBC code array from it?
Kirby
Thanks ;)
Quote from: Dragooon on September 09, 2007, 02:54:58 AM
Just a Question
Rather than using A separate BBCode tree as you did in Display.template, Why dont you call Post.template and use the BBC code array from it?
Because Post.template.php and Display.template.php both declare template_main(), thus causing PHP to give a fatal error. To get around it, I would have to make changes to Post.template and Post.php. This would break other mods and themes.
Quote from: kamili34 on September 09, 2007, 08:57:22 AM
Kirby
Thanks ;)
No problem :)
i LOVE this. it works great, and looks good too :D
thanks!!
Quote from: Alundra on September 09, 2007, 02:43:26 PM
i LOVE this. it works great, and looks good too :D
thanks!!
No problem :)
Please help! i un-installed version 2.0 manually, and then installed the 2.0.1 automatically and it installed fine. everything works okay except when i open a topic and read posts the text almost doubled in size. the rest of the forum text look normal but only when i read or write posts. i am on 1.1.3 default theme. please help. here is a link to my forum,
http://www.gtc-music1.com/forum/index.php
log in as,
User name: test
Password: test
Thanks
Never mind Folks!!! i figured it out. when i un-installed manually by replacing code i missunderstood, it says to find this code and replace it with ?> there was one there already so when i replaced the code with ?> i ended up with two ?> ?> the way i found it is on the very top of my page this ?> ?> code was visible, and remembered maybe i should have only one. and thats how i fixed it. Thanks anyway.
Hi, I have a problem. I did not undestrand the instructions in the readme file. Can you please tell whats exactly what i have to do?
Here it is my themes Display.template.php
<?php
// Version: 1.1; Display
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';
// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
<tr>
<td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg"><b>', $txt['smf21'], ':</b></td>
<td class="windowbg">
', $context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';
// Are they not allowed to vote but allowed to view the options?
if ($context['poll']['show_results'] || !$context['allow_vote'])
{
echo '
<table>
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">';
// Show each option with its corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
<td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
</tr>';
echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;">';
// If they are allowed to revote - show them a link!
if ($context['allow_change_vote'])
echo '
<a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';
// If we're viewing the results... maybe we want to go back and vote?
if ($context['poll']['show_results'] && $context['allow_vote'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';
// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';
// If they're allowed to edit the poll... guess what... show a link!
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr>', $context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
</tr>' : '', '
</table><br />';
}
// They are allowed to vote! Go to it!
else
{
echo '
<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
<table>
<tr>
<td colspan="2">';
// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
', $context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>';
// Show each option with its button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
', $option['vote_button'], ' ', $option['option'], '<br />';
echo '
</td>
<td valign="bottom" style="padding-left: 15px;">';
// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';
// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';
// Want to edit it? Click right here......
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
echo '
</td>
</tr>
</table>';
}
// Does this topic have some events linked to it?
if (!empty($context['calendar_events']))
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
<tr>
<td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
', $txt['calendar_linked_events'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg">
<ul>';
foreach ($context['calendar_events'] as $event)
echo '
<li>
', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
</li>';
echo '
</ul>
</td>
</tr>
</table>';
}
// Build the normal button array.
$normal_buttons = array(
'reply' => array('test' => 'can_reply', 'text' => 146, 'image' => 'reply.gif', 'lang' => true, 'url' => $scripturl . '?action=post;topic=' . $context['current_topic'] . '.' . $context['start'] . ';num_replies=' . $context['num_replies']),
'notify' => array('test' => 'can_mark_notify', 'text' => 125, 'image' => 'notify.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');"', 'url' => $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'custom' => array(),
'send' => array('test' => 'can_send_topic', 'text' => 707, 'image' => 'sendtopic.gif', 'lang' => true, 'url' => $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0'),
'print' => array('text' => 465, 'image' => 'print.gif', 'lang' => true, 'custom' => 'target="_blank"', 'url' => $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0'),
);
// Special case for the custom one.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
else
unset($normal_buttons['custom']);
// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext" valign="bottom" style="padding-bottom: 4px;">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#lastPost"><b>' . $txt['topbottom5'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<div class="nav" style="margin-bottom: 2px;"> ', $context['previous_next'], '</div>
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'bottom'), '
</tr>
</table>
</td>
</tr>
</table>';
// Show the topic information - icon, subject, etc.
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
<tr class="catbg3">
<td valign="middle" width="2%" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/spacer.gif" width="1" height="20" align="bottom" alt="" />
</td>
<td width="13%"> ', $txt[29], '</td>
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>
</tr>';
if (!empty($settings['display_who_viewing']))
{
echo '
<tr>
<td colspan="3" class="smalltext">';
// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
</td>
</tr>';
}
echo '
</table>';
echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';
// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$modify_button = create_button('modify.gif', 66, 17, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
// Time to display all the posts
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="displayborder">';
// Get all the messages...
while ($message = $context['get_message']())
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">';
// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">&#171; <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' &#187;</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', $reply_button, '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', $remove_button, '</a>';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
<input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById(\'quickmodSubmit\').style.display = \'\';"' : '', ' />';
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';
// Now for the attachments, signature, ip logged, etc...
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">';
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">';
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
}
echo '
<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" /> ' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
}
echo '
</div>';
}
echo '
</td>
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';
// Show "« Last Edit: Time by Person »" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
&#171; <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> &#187;';
echo '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">';
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> ';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';
// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in? Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt[511];
echo '
</td>
</tr></table>';
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';
echo '
</td>
</tr>
</table>
</td></tr>
<tr>
<td class="postsep"></td>
</tr>
</table>
</td></tr>';
}
echo '
<tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>';
// As before, build the custom button right.
if ($context['can_add_poll'])
$normal_buttons['custom'] = array('text' => 'add_poll', 'image' => 'add_poll.gif', 'lang' => true, 'url' => $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
elseif ($context['user']['is_logged'] && $settings['show_mark_read'])
$normal_buttons['custom'] = array('text' => 'mark_unread', 'image' => 'markunread.gif', 'lang' => true, 'url' => $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']);
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="middletext">', $txt[139], ': ', $context['page_index'], !empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . ' <a href="#top"><b>' . $txt['topbottom4'] . '</b></a>' : '', '</td>
<td align="right" style="padding-right: 1ex;">
<table cellpadding="0" cellspacing="0">
<tr>
', template_button_strip($normal_buttons, 'top', true), '
</tr>
</table>
</td>
</tr>
</table>';
if ($context['show_spellchecking'])
echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/spellcheck.js"></script>';
echo '
<script language="JavaScript" type="text/javascript" src="' . $settings['default_theme_url'] . '/xml_topic.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
quickReplyCollapsed = ', !empty($options['display_quick_reply']) && $options['display_quick_reply'] == 2 ? 'false' : 'true', ';
smf_topic = ', $context['current_topic'], ';
smf_start = ', $context['start'], ';
smf_show_modify = ', $settings['show_modify'] ? '1' : '0', ';
// On quick modify, this is what the body will look like.
var smf_template_body_edit = \'<div id="error_box" style="padding: 4px; color: red;"></div><textarea class="editor" name="message" rows="12" style="width: 94%; margin-bottom: 10px;">%body%</textarea><br /><input type="hidden" name="sc" value="', $context['session_id'], '" /><input type="hidden" name="topic" value="', $context['current_topic'], '" /><input type="hidden" name="msg" value="%msg_id%" /><div style="text-align: center;"><input type="submit" name="post" value="', $txt[10], '" onclick="return modify_save(\\\'' . $context['session_id'] . '\\\');" accesskey="s" /> ', $context['show_spellchecking'] ? '<input type="button" value="' . $txt['spell_check'] . '" onclick="spellCheck(\\\'quickModForm\\\', \\\'message\\\');" /> ' : '', '<input type="submit" name="cancel" value="', $txt['modify_cancel'], '" onclick="return modify_cancel();" /></div>\';
// And this is the replacement for the subject.
var smf_template_subject_edit = \'<input type="text" name="subject" value="%subject%" size="60" style="width: 99%;" maxlength="80" />\';
// Restore the message to this after editing.
var smf_template_body_normal = \'%body%\';
var smf_template_subject_normal = \'<a href="', $scripturl, '?topic=', $context['current_topic'], '.msg%msg_id%#msg%msg_id%">%subject%</a>\';
var smf_template_top_subject = "', $txt[118], ': %subject% (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')"
if (window.XMLHttpRequest)
showModifyButtons();
// ]]></script>
<table border="0" width="100%" cellpadding="0" cellspacing="0" style="margin-bottom: 1ex;">
<tr>';
if ($settings['linktree_inline'])
echo '
<td valign="top">', theme_linktree(), '</td> ';
echo '
<td valign="top" align="', !$context['right_to_left'] ? 'right' : 'left', '" class="nav"> ', $context['previous_next'], '</td>
</tr>
</table>';
$mod_buttons = array(
'move' => array('test' => 'can_move', 'text' => 132, 'image' => 'admin_move.gif', 'lang' => true, 'url' => $scripturl . '?action=movetopic;topic=' . $context['current_topic'] . '.0'),
'delete' => array('test' => 'can_delete', 'text' => 63, 'image' => 'admin_rem.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt[162] . '\');"', 'url' => $scripturl . '?action=removetopic2;topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
'lock' => array('test' => 'can_lock', 'text' => empty($context['is_locked']) ? 'smf279' : 'smf280', 'image' => 'admin_lock.gif', 'lang' => true, 'url' => $scripturl . '?action=lock;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'sticky' => array('test' => 'can_sticky', 'text' => empty($context['is_sticky']) ? 'smf277' : 'smf278', 'image' => 'admin_sticky.gif', 'lang' => true, 'url' => $scripturl . '?action=sticky;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id']),
'merge' => array('test' => 'can_merge', 'text' => 'smf252', 'image' => 'merge.gif', 'lang' => true, 'url' => $scripturl . '?action=mergetopics;board=' . $context['current_board'] . '.0;from=' . $context['current_topic']),
'remove_poll' => array('test' => 'can_remove_poll', 'text' => 'poll_remove', 'image' => 'admin_remove_poll.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['poll_remove_warn'] . '\');"', 'url' => $scripturl . '?action=removepoll;topic=' . $context['current_topic'] . '.' . $context['start']),
'calendar' => array('test' => 'calendar_post', 'text' => 'calendar37', 'image' => 'linktocal.gif', 'lang' => true, 'url' => $scripturl . '?action=post;calendar;msg=' . $context['topic_first_message'] . ';topic=' . $context['current_topic'] . '.0;sesc=' . $context['session_id']),
);
if ($context['can_remove_post'] && !empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1)
$mod_buttons[] = array('text' => 'quickmod_delete_selected', 'image' => 'delete_selected.gif', 'lang' => true, 'custom' => 'onclick="return confirm(\'' . $txt['quickmod_confirm'] . '\');" id="quickmodSubmit"', 'url' => 'javascript:document.quickModForm.submit();');
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 1ex;">
<tr>
', template_button_strip($mod_buttons, 'bottom') , '
</tr>
</table>';
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $context['can_remove_post'])
echo '
<input type="hidden" name="sc" value="', $context['session_id'], '" />';
if (empty($settings['use_tabs']))
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
document.getElementById("quickmodSubmit").style.display = "none";
// ]]></script>';
echo '
</form>';
echo '
<div class="tborder"><div class="titlebg2" style="padding: 4px;" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<form action="', $scripturl, '" method="get" accept-charset="', $context['character_set'], '" style="padding:0; margin: 0;">
<span class="smalltext">' . $txt[160] . ':</span>
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 && this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">
<option value="">' . $txt[251] . ':</option>';
foreach ($context['jump_to'] as $category)
{
echo '
<option value="" disabled="disabled">-----------------------------</option>
<option value="#', $category['id'], '">', $category['name'], '</option>
<option value="" disabled="disabled">-----------------------------</option>';
foreach ($category['boards'] as $board)
echo '
<option value="?board=', $board['id'], '.0"', $board['is_current'] ? ' selected="selected"' : '', '> ' . str_repeat('==', $board['child_level']) . '=> ' . $board['name'] . '</option>';
}
echo '
</select>
<input type="button" value="', $txt[161], '" onclick="if (this.form.jumpto.options[this.form.jumpto.selectedIndex].value) window.location.href = \'', $scripturl, '\' + this.form.jumpto.options[this.form.jumpto.selectedIndex].value;" />
</form>
</div></div>';
echo '<br />';
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a name="quickreply"></a>
<table border="0" cellspacing="1" cellpadding="3" class="displayborder" 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>';
}
if ($context['show_spellchecking'])
echo '
<form action="', $scripturl, '?action=spellcheck" method="post" accept-charset="', $context['character_set'], '" name="spell_form" id="spell_form" target="spellWindow"><input type="hidden" name="spellstring" value="" /></form>';
}
?>
Please tell me exaclty what to replace for and with what. Thanks for reading =)
PabloW
Pablow, this is what someone else responded to me and it worked, i used the third or forth link to help me with codes.
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531
http://www.simplemachines.org/community/index.php?topic=34526.0
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html
Quote from: bassbass on September 12, 2007, 07:01:36 PM
Pablow, this is what someone else responded to me and it worked, i used the third or forth link to help me with codes.
Your error is a variant on the most common error of all those reported on these pages...it tells you that another mod you have installed has already edited the file in question and that you thus need to do a manual installation of this mod. Please read:
http://docs.simplemachines.org/index.php?topic=402.msg531#msg531
http://www.simplemachines.org/community/index.php?topic=34526.0
The following may also prove helpful:
http://modparser.dev.dansoftaustralia.net/
Mirror of the last link:
http://www.smfhacks.com/smf-package-parser.html
Nono, my problem is that i donw understand the instructions, i dont have any error, i just dont understand the intructions. sorry i dont speak english perfectly ^^
I solved it. I just cleaned all my Display.template.php of my Theme and pasted it in all the Display.template.php from the Default ^^
Quote from: ulgaming.net on August 07, 2007, 06:41:32 AM
You people should use this package parser : http://modparser.dev.dansoftaustralia.net/
It's really useful!
Works like charm on my forum!
Superb. Just wish I had seen this earlier, it would have saved hours of work and rework!!
Ok I am curious how do you enable the enhanced quick reply? I just can't seem to find it anywhere. I know you can set it in the user profile but is there a way to set it on by default for everyone?
Admin
Themes and Layout
Reset Options
[your theme]
Reset default (guest) options for this theme
Save
Back to Reset Options
Reset all members' current options for this theme
Save
Tihs will make it default and change everybody else's current setting
I was able to get help to modify code to display youtube BBC button in the EQR 2.0 but now i need to add the "BBC ebay tag 1.0" button to show, please i need the code and where to put it and in what file. Thanks
Sweet thanks for the quick response. Was looking everywhere but there.
Quote from: bassbass on September 22, 2007, 02:16:47 AM
I was able to get help to modify code to display youtube BBC button in the EQR 2.0 but now i need to add the "BBC ebay tag 1.0" button to show, please i need the code and where to put it and in what file. Thanks
You are welcome Shen, but i think you meant to thank Kirby, i too thank you Kirby for that info.
No problem :)
Bassbass,
Just copy and repaste that youtube line but change the youtube text in it to match the eBay one.
Thanks again Kirby
New version out, supports 1.1.4 now.
Question, there's quite a few places that has these if ($context['can_reply'] && !empty($options['display_quick_reply']))
Which one do I know how to copy? For the default, I know what to copy. But for my theme, I duno where to copy to
but there is on ajax?
There is only one area for quick reply. Can you post your Display.template.php, Tidea?
Quote from: zl0byte on October 03, 2007, 01:33:35 PM
but there is on ajax?
Sorry, I did not understand..
Thnx for a great mod but somehow I simply can´t get it to work on a modded theme....
tried to copy the stuff from default display to the modded one but it still shows the original quick reply. Tried the default theme and your quick reply works like a charm there!
I have attached the diplay.template.php and I hope some of you might help me out here :)
I try to install this on default theme in 1.1.4 but...
...I get this message:
QuoteAn Error Has Occurred!
Unable to find package file!
Quote from: microbone on October 11, 2007, 11:02:58 AM
Thnx for a great mod but somehow I simply can´t get it to work on a modded theme....
tried to copy the stuff from default display to the modded one but it still shows the original quick reply. Tried the default theme and your quick reply works like a charm there!
I have attached the diplay.template.php and I hope some of you might help me out here :)
You've attached the wrong file ;)
Quote from: shumar on October 11, 2007, 11:10:20 AM
I try to install this on default theme in 1.1.4 but...
...I get this message:
QuoteAn Error Has Occurred!
Unable to find package file!
I'm afraid your server does not support ZIP files. Try extracting its contents and turning into a tar.gz file. I will do this for the next release as well as convert all files to UNIX LF format.
The smiley [more] link isn't popping open a window anymore for me...
lol somehow getting old or tired..... O:)
here´s the right one sry bout that...
how do we include the spoiler mods button?
http://www.simplemachines.org/community/index.php?topic=50261.0
lol
Quote from: mrselnombre on October 12, 2007, 02:54:07 PM
The smiley [more] link isn't popping open a window anymore for me...
anyone got any ideas why?
Quote from: mrselnombre on October 12, 2007, 02:54:07 PM
The smiley [more] link isn't popping open a window anymore for me...
Using a popup blocker?
Quote from: microbone on October 13, 2007, 11:36:01 AM
lol somehow getting old or tired..... O:)
here´s the right one sry bout that...
See my attached file :)
Quote from: Alundra on October 14, 2007, 12:46:16 AM
how do we include the spoiler mods button?
http://www.simplemachines.org/community/index.php?topic=50261.0
lol
Just like the youtube one posted earlier in this topic, but replace the youtube with spoiler ;)
nope, no pop up blocker, the window really doesn't pop open.
How do I make this show up automatically for my users? I read far back in this thread but it only shows how to using 1.3 I am using 1.4
Kirby I´ll buy you a beer sometime......thnx a lot m8
Quote from: microbone on October 19, 2007, 08:52:25 AM
Kirby I´ll buy you a beer sometime......thnx a lot m8
Anytime :)
Quote from: n00dle on October 18, 2007, 10:51:41 PM
How do I make this show up automatically for my users? I read far back in this thread but it only shows how to using 1.3 I am using 1.4
Same method.
Sorry about the belated reply.. :-[
http://custom.simplemachines.org/mods/index.php?mod=639
how do we include this?
lol i wish i knew php :|
hi i need your help to setup this mod in this skin
http://www.simplemachines.org/community/index.php?topic=169798.0
any ideas pliz???
Does someone tried to use 2.0.2 in Package Parser? I had already downloaded three times and still geting the error: ERROR: The package-info.xml file is invalid!
Any idea?!
Can someone help me? I cannot find a way to this 2.0.2 work in package parser!
And I have this "standard" error :
2. Execute Modification ./Themes/default/Display.template.php Test failed
Quote from: Alundra on November 01, 2007, 01:14:00 AM
http://custom.simplemachines.org/mods/index.php?mod=639
how do we include this?
lol i wish i knew php :|
i refer to my previous statement ;)
Hellou!
I have managed to install the mod and now I would have to copy-paste the modified code into the Display.template.php, but somehow I am not managing to do it.
I have attached the Display.template.php file, hoping someone might do it for me :)
I'm using 1.1.4 and graphite SlickPro Graphite theme.
Thank you!
How to increase the width? I thought it was in display.template but width says 95% and mine is shown as in picture attached.
// Finally the most important bit - the actual text box to write in!
echo '
<textarea class="editor" cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);"></textarea>';
}
bumping ....
covered this on the first page of the mod with a couple of examples...
Edit: display.template.php
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
to this (tweaking style width)
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: auto;" align="left">
Thank you. I just discovered that it was not working because I was changing "text box inside quick reply" width and not the quick reply box!
Sorry everyone for the late reply. I will address the remaining concerns.
Quote from: Alundra on November 03, 2007, 11:24:32 AM
Quote from: Alundra on November 01, 2007, 01:14:00 AM
http://custom.simplemachines.org/mods/index.php?mod=639
how do we include this?
lol i wish i knew php :|
i refer to my previous statement ;)
Earlier in this topic there was information on adding a youtube tag. Use that same information but replace youtube with whatever tag is needed.
Trying to add this to your theme? (static091, Qlim4X)
Quote
HOW DO I MAKE THIS MOD COMPATIBLE WITH MY THEME?
If you want to use the "enhanced" quick reply box on your own theme, you have to first remove the old one. The old one starts off with this clause in Display.template.php:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
It has some code in between this clause and another curly bracket. Remove the old quick reply box code entirely. Replace it with the one in the modded default Display.template.php (it starts with the same clause).
You also have to add the entire template_quickreply_box() function from the modded default Display.template.php into your theme's Dsiplay.template.php.
its not a tag thats needed....their dropdown boxes...
A very neat little mod that I have wished for and now have - Thanks a stack. I did have to modify the Display.template.php file but to increase the width to 200% before it displayed correctly.
I don't get it how to customize for my theme :S
Quote from: chep on August 07, 2007, 11:13:44 AM
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.
What File should I edit and in what theme?
I have installed it succesfully but
For members and not moderators, the message
Warning: this topic is currently locked!
Only admins and moderators can reply.
Does not show up. Here is an example (http://forums.pinoybusiness.org/index.php?topic=12.30)
How can I have it to show up
thanks for taking time to read this
It is the Display.template.php file and found in the folder of the template you are using, e.g. Default.
In the example above the border width is changed to 100% which in incorrect. The first width needs to be changed to what works, I had to make it 200% to get it right. My code that works looks like this:
<a name="quickreply"></a>
<div style="width: 200%;" align="left"><div class="tborder" style="width: 50%;" align="left">
and it works!
Quote from: will888 on November 16, 2007, 04:52:29 AM
I have installed it succesfully but
For members and not moderators, the message
Thanks for that it works. Do you know how to fix this error?
Warning: this topic is currently locked!
Only admins and moderators can reply.
Does not show up. Here is an example (http://forums.pinoybusiness.org/index.php?topic=12.30)
How can I have it to show up
thanks for taking time to read this
Yeah it works but do you know how to fix ths error
Quote from: Alundra on November 08, 2007, 11:32:52 PM
its not a tag thats needed....their dropdown boxes...
You may add the dropdown code after this area in Display.template.php:
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '<br />';
ramuba, I'm glad you like the mod :)
will888, it is not an error. You would have to turn this portion into tables:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
<div class="catbg" style="padding: 4px;"><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></div>
<div class="windowbg" id="quickReplyOptions" style="padding: 1ex;', $options['display_quick_reply'] == 2 ? '' : ' display: none', '">
', $context['is_locked'] ? '<b>' . $txt['quick_reply_warning'] . '</b><br /><br />' : '', '
<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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
theme_quickreply_box();
echo '
<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>';
echo '
</div>
</div></div>';
}
Turn that into:
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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
theme_quickreply_box();
echo '
<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>';
}
would it be possible to remove all the default smileys and replace the "more" link for the pop up window including the rest of the smileys with another one that would include ALL the smileys (default + secondary , or , at least , just the default ones) ?
thanks! it worked :)
Can we change the default GLOW Color in the enhanced quick reply?
THanks, how can I change the height to 200 pixels?
Great. Love this. Thanks Kirby.
I have 2 other questions
How do I change the note With a Quick-Reply you can use bulletin board code and smileys as you would in a normal post, but much more conveniently.
another is that how do I change the height
Why are we only seeing questions here and no replies??
Quote from: will888 on November 18, 2007, 07:16:02 AM
Can we change the default GLOW Color in the enhanced quick reply?
Yes, you can. Look for
'glow' => array('code' => 'glow', 'before' => '[glow=red,2,300]', 'after' => '[/glow]', 'description' => $txt[442]),
Replace the red,2,300 with whatever value you like.
Quote from: MinasC on November 17, 2007, 04:44:36 AM
would it be possible to remove all the default smileys and replace the "more" link for the pop up window including the rest of the smileys with another one that would include ALL the smileys (default + secondary , or , at least , just the default ones) ?
Look for:
WHERE hidden IN (0, 2)
in Display.php. Remove that line.
Then, in Display.template.php, remove:
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
echo '
<br />';
// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.postmodify.message); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';
// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}
// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
}
As well as these lines:
if (!empty($context['smileys']['popup']))
{
And the curly bracket at the end of that clause.
Quote from: will888 on November 18, 2007, 12:07:01 PM
THanks, how can I change the height to 200 pixels?
In Display.template.php,
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
You may edit the style attribute in that line.
Quote from: will888 on November 18, 2007, 12:38:16 PM
Great. Love this. Thanks Kirby.
I have 2 other questions
How do I change the note With a Quick-Reply you can use bulletin board code and smileys as you would in a normal post, but much more conveniently.
another is that how do I change the height
To change the text, look for:
', $txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '
Replace with:
Whatever text you want here!', $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '
Quote from: romuba on November 22, 2007, 12:51:54 AM
Why are we only seeing questions here and no replies??
I've been a little bad at support lately, sorry.
Slow... that was within minutes. Tahnks.
Quote from: romuba on November 22, 2007, 01:02:17 AM
Slow... that was within minutes. Tahnks.
Anytime; my apologies for not paying more attention to this :)
Quote from: Kirby on November 22, 2007, 12:57:16 AM
Quote from: MinasC on November 17, 2007, 04:44:36 AM
would it be possible to remove all the default smileys and replace the "more" link for the pop up window including the rest of the smileys with another one that would include ALL the smileys (default + secondary , or , at least , just the default ones) ?
Look for:
WHERE hidden IN (0, 2)
in Display.php. Remove that line.
Then, in Display.template.php, remove:
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
echo '
<br />';
// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.postmodify.message); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';
// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}
// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
}
As well as these lines:
if (!empty($context['smileys']['popup']))
{
And the curly bracket at the end of that clause.
those changes vanished all my smileys plus the "more smileys" link but they were not replaced with the link for the popup window i described (with bold) ! i don't want the smileys totally gone , i just want them not to appear there by default , but only when someone clicks on the link i described !
thnx a lot Kirby !
I don't understand :-[...So you don't want the smileys to show up in the box; you want the more smileys popup to show all the smileys?
exactly , a link for a popup with all the smilies !
My edits will work then, I did make one mistake though. You have to add this where you removed that chunk of code:
echo '<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
that way i will "get rid" of the default smileys from appearing and at the same time i will keep the "more" link , right ? the problem is that the link will lead in a popup window containing only the secondary smileys (not the default ones too) . i want it to contain ALL the smileys available ! so , instead of
echo '<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
i guess i am looking for somethng like that
echo '<a href="javascript:ALLSmileys();">[', $txt['more_smileys'], ']</a>';
off course i guess there is no such thing (function?) coded in the smf javascript , i only put it there to show you what i mean !
thnx a lot for the support !
i know i said it worked...but by worked i mean it displayed.
i can click to make the text red and it wont do anything...how do i get it to put the code in?
MinasC, the link I posted will work anyway because we modified the query to show all smilies.
Quote from: Alundra on November 23, 2007, 03:06:16 PM
i know i said it worked...but by worked i mean it displayed.
i can click to make the text red and it wont do anything...how do i get it to put the code in?
That's odd...can you give me the code you entered?
you were right , it's ok now , thnx a lot for the support !
Quote from: Kirby on November 22, 2007, 12:57:16 AM
Quote from: will888 on November 18, 2007, 07:16:02 AM
Can we change the default GLOW Color in the enhanced quick reply?
Yes, you can. Look for
'glow' => array('code' => 'glow', 'before' => '[glow=red,2,300]', 'after' => '[/glow]', 'description' => $txt[442]),
Replace the red,2,300 with whatever value you like.
Quote from: MinasC on November 17, 2007, 04:44:36 AM
would it be possible to remove all the default smileys and replace the "more" link for the pop up window including the rest of the smileys with another one that would include ALL the smileys (default + secondary , or , at least , just the default ones) ?
Look for:
WHERE hidden IN (0, 2)
in Display.php. Remove that line.
Then, in Display.template.php, remove:
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{
echo '
<br />';
// Show each row of smileys ;).
foreach ($context['smileys']['postform'] as $smiley_row)
{
foreach ($smiley_row['smileys'] as $smiley)
echo '
<a href="javascript:void(0);" onclick="replaceText(\' ', $smiley['code'], '\', document.forms.postmodify.message); return false;"><img src="', $settings['smileys_url'], '/', $smiley['filename'], '" align="bottom" alt="', $smiley['description'], '" title="', $smiley['description'], '" /></a>';
// If this isn't the last row, show a break.
if (empty($smiley_row['last']))
echo '<br />';
}
// If the smileys popup is to be shown... show it!
if (!empty($context['smileys']['popup']))
echo '
<a href="javascript:moreSmileys();">[', $txt['more_smileys'], ']</a>';
}
As well as these lines:
if (!empty($context['smileys']['popup']))
{
And the curly bracket at the end of that clause.
Quote from: will888 on November 18, 2007, 12:07:01 PM
THanks, how can I change the height to 200 pixels?
In Display.template.php,
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
You may edit the style attribute in that line.
Quote from: will888 on November 18, 2007, 12:38:16 PM
Great. Love this. Thanks Kirby.
I have 2 other questions
How do I change the note With a Quick-Reply you can use bulletin board code and smileys as you would in a normal post, but much more conveniently.
another is that how do I change the height
To change the text, look for:
', $txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '
Replace with:
Whatever text you want here!', $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '
Quote from: romuba on November 22, 2007, 12:51:54 AM
Why are we only seeing questions here and no replies??
I've been a little bad at support lately, sorry.
What file will I look for the glow?
lol...somethings telling me i did something blonde again...
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
// Print a drop down list for all the fonts are aviable!
if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_face'], '</option>
<option value="Arial">', $txt['font_arial'], '</option>
<option value="Times New Roman">', $txt['font_times'], '</option>
<option value="Comic Sans MS">', $txt['font_comic'], '</option>
<option value="Verdana">', $txt['font_verd'], '</option>
<option value="Haettenschweiler">', $txt['font_heatt'], '</option>
<option value="Tahoma">', $txt['font_taho'], '</option>
</select>';
// Print a drop down list for all the fonts sizes are aviable!
if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_size'], '</option>
<option value="9pt">', $txt['size_9'], '</option>
<option value="10pt">', $txt['size_10'], '</option>
<option value="11pt">', $txt['size_11'], '</option>
<option value="12pt">', $txt['size_12'], '</option>
<option value="13pt">', $txt['size_13'], '</option>
<option value="14pt">', $txt['size_14'], '</option>
</select>';
echo '<br />';
$found_button = false;
but i am blonde...so if i did anything blonde...im not gonna see it am i? lol
thanks kirby :D atleast the users havent noted (complained) about it not working ;)
EDIT: i put the code you said to put it after in the code box...lol...i didnt put that code in twice or anything ;)
MinasC: no problem.
Quote from: will888
What file will I look for the glow?
Display.template.php
Quote from: Alundra on November 24, 2007, 01:03:00 PM
lol...somethings telling me i did something blonde again...
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
// Print a drop down list for all the fonts are aviable!
if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_face'], '</option>
<option value="Arial">', $txt['font_arial'], '</option>
<option value="Times New Roman">', $txt['font_times'], '</option>
<option value="Comic Sans MS">', $txt['font_comic'], '</option>
<option value="Verdana">', $txt['font_verd'], '</option>
<option value="Haettenschweiler">', $txt['font_heatt'], '</option>
<option value="Tahoma">', $txt['font_taho'], '</option>
</select>';
// Print a drop down list for all the fonts sizes are aviable!
if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0; document.forms.', $context['post_form'], '.', $context['post_box_name'], '.focus(document.forms.', $context['post_form'], '.', $context['post_box_name'], '.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_size'], '</option>
<option value="9pt">', $txt['size_9'], '</option>
<option value="10pt">', $txt['size_10'], '</option>
<option value="11pt">', $txt['size_11'], '</option>
<option value="12pt">', $txt['size_12'], '</option>
<option value="13pt">', $txt['size_13'], '</option>
<option value="14pt">', $txt['size_14'], '</option>
</select>';
echo '<br />';
$found_button = false;
but i am blonde...so if i did anything blonde...im not gonna see it am i? lol
thanks kirby :D atleast the users havent noted (complained) about it not working ;)
EDIT: i put the code you said to put it after in the code box...lol...i didnt put that code in twice or anything ;)
lol it's okay...use this code instead:
// Print a drop down list for all the colors we allow!
if (!isset($context['disabled_tags']['color']))
echo ' <select onchange="surroundText(\'[color=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/color]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['change_color'], '</option>
<option value="Black">', $txt[262], '</option>
<option value="Red">', $txt[263], '</option>
<option value="Yellow">', $txt[264], '</option>
<option value="Pink">', $txt[265], '</option>
<option value="Green">', $txt[266], '</option>
<option value="Orange">', $txt[267], '</option>
<option value="Purple">', $txt[268], '</option>
<option value="Blue">', $txt[269], '</option>
<option value="Beige">', $txt[270], '</option>
<option value="Brown">', $txt[271], '</option>
<option value="Teal">', $txt[272], '</option>
<option value="Navy">', $txt[273], '</option>
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
// Print a drop down list for all the fonts are aviable!
if (!isset($context['disabled_tags']['font']))
echo ' <select onchange="surroundText(\'[font=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/font]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_face'], '</option>
<option value="Arial">', $txt['font_arial'], '</option>
<option value="Times New Roman">', $txt['font_times'], '</option>
<option value="Comic Sans MS">', $txt['font_comic'], '</option>
<option value="Verdana">', $txt['font_verd'], '</option>
<option value="Haettenschweiler">', $txt['font_heatt'], '</option>
<option value="Tahoma">', $txt['font_taho'], '</option>
</select>';
// Print a drop down list for all the fonts sizes are aviable!
if (!isset($context['disabled_tags']['size']))
echo ' <select onchange="surroundText(\'[size=\' + this.options[this.selectedIndex].value.toLowerCase() + \']\', \'[/size]\', document.forms.postmodify.message); this.selectedIndex = 0; document.forms.forms.postmodify.message.focus(document.forms.postmodify.message.caretPos);" style="margin-bottom: 1ex;">
<option value="" selected="selected">', $txt['font_size'], '</option>
<option value="9pt">', $txt['size_9'], '</option>
<option value="10pt">', $txt['size_10'], '</option>
<option value="11pt">', $txt['size_11'], '</option>
<option value="12pt">', $txt['size_12'], '</option>
<option value="13pt">', $txt['size_13'], '</option>
<option value="14pt">', $txt['size_14'], '</option>
</select>';
echo '<br />';
$found_button = false;
woo!! thanks!!
:D
No problem :)
Hi!
Actually i have old release of enh quick reply, i have test to install this new 2.0 and after i have downgrade to old because i have modified the old release, can you insert in your next release font type and dimension like this?
http://darkwolf.altervista.org/forum/index.php?topic=5.0 (http://darkwolf.altervista.org/forum/index.php?topic=5.msg19#msg19)
Please see also Hyperlink Insert option ;)
Thanks in advance and sorry for my bad English :)
Thanks Kirby :)
Quote from: Dark-Wolf on November 27, 2007, 10:11:33 AM
Hi!
Actually i have old release of enh quick reply, i have test to install this new 2.0 and after i have downgrade to old because i have modified the old release, can you insert in your next release font type and dimension like this?
http://darkwolf.altervista.org/forum/index.php?topic=5.0 (http://darkwolf.altervista.org/forum/index.php?topic=5.msg19#msg19)
Please see also Hyperlink Insert option ;)
Thanks in advance and sorry for my bad English :)
Another member inserted font type and dimension a few posts back :)
The Hyperlink icon should be there.
Quote from: Kirby on November 29, 2007, 06:51:16 PM
Quote from: Dark-Wolf on November 27, 2007, 10:11:33 AM
Hi!
Actually i have old release of enh quick reply, i have test to install this new 2.0 and after i have downgrade to old because i have modified the old release, can you insert in your next release font type and dimension like this?
http://darkwolf.altervista.org/forum/index.php?topic=5.0 (http://darkwolf.altervista.org/forum/index.php?topic=5.msg19#msg19)
Please see also Hyperlink Insert option ;)
Thanks in advance and sorry for my bad English :)
Another member inserted font type and dimension a few posts back :)
The Hyperlink icon should be there.
Ok thanks.
PS my hiperlink is different because generate with javascript an url code like this:
[url=http://test1.it]test[/url]
Please test in my forum (past url) if you can ;)
What do you mean about the javascript? :)
Is there a popup?
Quote from: Kirby on November 29, 2007, 06:57:47 PM
What do you mean about the javascript? :)
Is there a popup?
yes but i don't remember how i have make this :-[
(i have this hyperlinkmod also in advanced fullreply)
I can't get this thing to work
It doesn't work properly on my forum. The box appeared but the font size, font color, font, and smileys are not appearing. Is there something I can do to fix this? Thanks
I'm getting some errors, and a lot of em (one for every user refreshing in any topic)
2: Invalid argument supplied for foreach()
Bestand: /customers/nsrvphocas.nl/nsrvphocas.nl/httpd.www/phorum/Themes/default/languages/Post.dutch.php (main sub template - eval?)
Regel: 758
The number of the first line changes.
I tried checking whether there was something added to Post.english.php but i found nothing. I checks Display.template.php. I found two $txt's which were not in mij Post.xx.php, $txt['quick_reply_1'] and $txt['quick_reply_warning'] but i'm still getting errors.
I want it to show additional options too
otherwise new members will feel there is no attachment option
Quote from: Dark-Wolf on November 29, 2007, 07:05:10 PM
Quote from: Kirby on November 29, 2007, 06:57:47 PM
What do you mean about the javascript? :)
Is there a popup?
yes but i don't remember how i have make this :-[
(i have this hyperlinkmod also in advanced fullreply)
Can you attach your Post.template.php and Display.template.php?
Quote from: ~Kikoish~ on November 30, 2007, 02:18:43 AM
It doesn't work properly on my forum. The box appeared but the font size, font color, font, and smileys are not appearing. Is there something I can do to fix this? Thanks
Can you attach your Display.template.php?
Quote from: PanesarV on November 30, 2007, 01:49:54 AM
I can't get this thing to work
We have addressed this via PM. Please report all errors.
Quote from: nsrvphocas_nl on November 30, 2007, 04:39:32 AM
I'm getting some errors, and a lot of em (one for every user refreshing in any topic)
2: Invalid argument supplied for foreach()
Bestand: /customers/nsrvphocas.nl/nsrvphocas.nl/httpd.www/phorum/Themes/default/languages/Post.dutch.php (main sub template - eval?)
Regel: 758
The number of the first line changes.
I tried checking whether there was something added to Post.english.php but i found nothing. I checks Display.template.php. I found two $txt's which were not in mij Post.xx.php, $txt['quick_reply_1'] and $txt['quick_reply_warning'] but i'm still getting errors.
Can you attach Post.dutch.php and Display.template.php?
Quote from: falguni1 on December 01, 2007, 04:33:55 AM
I want it to show additional options too
otherwise new members will feel there is no attachment option
Can you attach your Display.template.php?
Quote from: Kirby on December 02, 2007, 12:36:00 AM
Quote from: Dark-Wolf on November 29, 2007, 07:05:10 PM
Quote from: Kirby on November 29, 2007, 06:57:47 PM
What do you mean about the javascript? :)
Is there a popup?
yes but i don't remember how i have make this :-[
(i have this hyperlinkmod also in advanced fullreply)
Can you attach your Post.template.php and Display.template.php?
i have send you via mail :)
click the reply button, and you can upload them :)
ah ok thanks :D
wot is quick reply is it a new mod
great stuff - i have it working on dilbert, but Versatility from Rockettheme it doesn't work. I looked at a manual install but i can't even find the fist piece of code your xml file says to find in the display.php file. I tried to use the parser: http://www.smfhacks.com/smf-package-parser.html but that says the mod isn't for 1.1.4??
Sorry to nag, but this has to be the worst readme file I've ever seen. It only reads correctly to you: the guy who wrote it. To us it doesn't sound right. This is how it should read:
is your readme file correct? the template_quickreply_box() function is in the Display.php file, but your readme says it's in the Display.template.php file... this readme takes the prize for worst ever - sorry man, but it's true.
Quote from: falguni1 on December 03, 2007, 12:41:00 AM
wot is quick reply is it a new mod
Just an enhancement of the current quickreply feature.
Quote from: thepiston on December 03, 2007, 03:12:30 PM
great stuff - i have it working on dilbert, but Versatility from Rockettheme it doesn't work. I looked at a manual install but i can't even find the fist piece of code your xml file says to find in the display.php file. I tried to use the parser: http://www.smfhacks.com/smf-package-parser.html but that says the mod isn't for 1.1.4??
Sorry to nag, but this has to be the worst readme file I've ever seen. It only reads correctly to you: the guy who wrote it. To us it doesn't sound right. This is how it should read:
is your readme file correct? the template_quickreply_box() function is in the Display.php file, but your readme says it's in the Display.template.php file... this readme takes the prize for worst ever - sorry man, but it's true.
template_quickreply_box() is in Display.template.php for the default theme.
theme_quickreply_box() is in Display.php ;)
DarkWolf it seems like it is already functional on your forum. Is there a problem I am missing? (sorry)
Quote from: Kirby on December 03, 2007, 10:12:19 PM
DarkWolf it seems like it is already functional on your forum. Is there a problem I am missing? (sorry)
sorry my friends but my english is really bad (i dont have understood) :-[
I could not figure out the problem. I checked your forum and the JavaScript popup was working. Can you say it in another way?
Quote from: Kirby on December 04, 2007, 07:36:07 PM
I could not figure out the problem. I checked your forum and the JavaScript popup was working. Can you say it in another way?
ah ok sorry!
javascript popup works fine but actually i use an old release (modified) of enh quick reply!
in this last new release isn't present this popup javascript!
My questions is: can you insert in your next release font type and dimension and also javascript popur (hyperlink)? (like my actually forum?) :)
-
Edit now i have remember!
Poup javascript is part of this mod ;)
http://custom.simplemachines.org/mods/index.php?mod=258
Quote from: shacon on December 08, 2007, 12:52:05 PM
I hope someone here can help me with this. A few of my members are getting a fatal error msg. when trying to use Enhanced Quick Reply ver 2.0. The problem exists for some, yet, I myself do not experience any.
This seems to occur on some themes as well as SMF core theme ver 1.1.4
Here is the msg:
QuoteError when clicking QuickReply:
(http://img218.imageshack.us/img218/8841/quickreplyfu5.png)
How can I fix this?
Thank You
-shacon
If someone knows what this is about please speak in kindergarden talk. I am new to all this.
Great Mod
Kirby-shacon :)
Quote from: Kirby on December 02, 2007, 12:36:00 AM
Can you attach your Display.template.php?
Oh ok then.
Quotefunction template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show the anchor for the top and for the first message. If the first message is new, say so.
echo '
<a name="top"></a>
<a name="msg', $context['first_message'], '"></a>', $context['first_new_message'] ? '<a name="new"></a>' : '';
// Show the linktree
echo '
<div>', theme_linktree(), '</div>';
// Is this topic also a poll?
if ($context['is_poll'])
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 2ex;">
<tr>
<td class="titlebg" colspan="2" valign="middle" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['poll']['is_locked'] ? 'normal_poll_locked' : 'normal_poll', '.gif" alt="" align="bottom" /> ', $txt['smf43'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg"><b>', $txt['smf21'], ':</b></td>
<td class="windowbg">
', $context['poll']['question'];
if (!empty($context['poll']['expire_time']))
echo '
(', ($context['poll']['is_expired'] ? $txt['poll_expired_on'] : $txt['poll_expires_on']), ': ', $context['poll']['expire_time'], ')';
// Are they not allowed to vote but allowed to view the options?
if ($context['poll']['show_results'] || !$context['allow_vote'])
{
echo '
<table>
<tr>
<td style="padding-top: 2ex;">
<table border="0" cellpadding="0" cellspacing="0">';
// Show each option with its corresponding percentage bar.
foreach ($context['poll']['options'] as $option)
echo '
<tr>
<td style="padding-right: 2ex;', $option['voted_this'] ? 'font-weight: bold;' : '', '">', $option['option'], '</td>', $context['allow_poll_view'] ? '
<td nowrap="nowrap">' . $option['bar'] . ' ' . $option['votes'] . ' (' . $option['percent'] . '%)</td>' : '', '
</tr>';
echo '
</table>
</td>
<td valign="bottom" style="padding-left: 15px;">';
// If they are allowed to revote - show them a link!
if ($context['allow_change_vote'])
echo '
<a href="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], ';sesc=', $context['session_id'], '">', $txt['poll_change_vote'], '</a><br />';
// If we're viewing the results... maybe we want to go back and vote?
if ($context['poll']['show_results'] && $context['allow_vote'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], '">', $txt['poll_return_vote'], '</a><br />';
// If they're allowed to lock the poll, show a link!
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', !$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b'], '</a><br />';
// If they're allowed to edit the poll... guess what... show a link!
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr>', $context['allow_poll_view'] ? '
<tr>
<td colspan="2"><b>' . $txt['smf24'] . ': ' . $context['poll']['total_votes'] . '</b></td>
</tr>' : '', '
</table><br />';
}
// They are allowed to vote! Go to it!
else
{
echo '
<form action="', $scripturl, '?action=vote;topic=', $context['current_topic'], '.', $context['start'], ';poll=', $context['poll']['id'], '" method="post" accept-charset="', $context['character_set'], '" style="margin: 0px;">
<table>
<tr>
<td colspan="2">';
// Show a warning if they are allowed more than one option.
if ($context['poll']['allowed_warning'])
echo '
', $context['poll']['allowed_warning'], '
</td>
</tr><tr>
<td>';
// Show each option with its button - a radio likely.
foreach ($context['poll']['options'] as $option)
echo '
', $option['vote_button'], ' ', $option['option'], '<br />';
echo '
</td>
<td valign="bottom" style="padding-left: 15px;">';
// Allowed to view the results? (without voting!)
if ($context['allow_poll_view'])
echo '
<a href="', $scripturl, '?topic=', $context['current_topic'], '.', $context['start'], ';viewResults">', $txt['smf29'], '</a><br />';
// Show a link for locking the poll as well...
if ($context['poll']['lock'])
echo '
<a href="', $scripturl, '?action=lockVoting;topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', (!$context['poll']['is_locked'] ? $txt['smf30'] : $txt['smf30b']), '</a><br />';
// Want to edit it? Click right here......
if ($context['poll']['edit'])
echo '
<a href="', $scripturl, '?action=editpoll;topic=', $context['current_topic'], '.', $context['start'], '">', $txt['smf39'], '</a>';
echo '
</td>
</tr><tr>
<td colspan="2"><input type="submit" value="', $txt['smf23'], '" /></td>
</tr>
</table>
<input type="hidden" name="sc" value="', $context['session_id'], '" />
</form>';
}
echo '
</td>
</tr>
</table>';
}
// Does this topic have some events linked to it?
if (!empty($context['linked_calendar_events']))
{
echo '
<table cellpadding="3" cellspacing="0" border="0" width="100%" class="tborder" style="padding-top: 0; margin-bottom: 3ex;">
<tr>
<td class="titlebg" valign="middle" align="left" style="padding-left: 6px;">
', $txt['calendar_linked_events'], '
</td>
</tr>
<tr>
<td width="5%" valign="top" class="windowbg">
<ul>';
foreach ($context['linked_calendar_events'] as $event)
echo '
<li>
', ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" style="color: red;">*</a> ' : ''), '<b>', $event['title'], '</b>: ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
</li>';
echo '
</ul>
</td>
</tr>
</table>';
}
// Show the page index... "Pages: [1]".
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 1ex;">
<tr>
<td class="catbg" width="100%" height="35">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>
<b>', $txt[139], ':</b> ', $context['page_index'];
// Show a "go down" link?
if (!empty($modSettings['topbottomEnable']))
echo $context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '</a>';
echo '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" style="font-size: smaller;">';
$buttonArray = array();
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>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/notify.gif" alt="' . $txt[131] . '" border="0" />' : $txt[131]) . '</a>';
// This is a special case; if they can see mark unread, put it at the top... otherwise show add poll.
if ($context['user']['is_logged'] && $settings['show_mark_read'])
$buttonArray[] = '<a href="' . $scripturl . '?action=markasread;sa=topic;t=' . $context['mark_unread_time'] . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/markunread.gif" alt="' . $txt['mark_unread'] . '" border="0" />' : $txt['mark_unread']) . '</a>';
elseif ($context['can_add_poll'])
$buttonArray[] = '<a href="' . $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/addpoll.gif" alt="' . $txt['add_poll'] . '" border="0" />' : $txt['add_poll']) . '</a>';
if ($context['can_send_topic'])
$buttonArray[] = '<a href="' . $scripturl . '?action=sendtopic;topic=' . $context['current_topic'] . '.0">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/sendtopic.gif" alt="' . $txt[707] . '" border="0" />' : $txt[707]) . '</a>';
$buttonArray[] = '<a href="' . $scripturl . '?action=printpage;topic=' . $context['current_topic'] . '.0" target="_blank">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/print.gif" alt="' . $txt[465] . '" border="0" />' : $txt[465]) . '</a>';
echo implode($context['menu_separator'], $buttonArray);
echo '</td>
</tr>
</table>
</td>
</tr>
</table>';
// Show the topic information - icon, subject, etc.
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="border-bottom: 0;">
<tr class="catbg3">
<td valign="middle" width="2%" style="padding-left: 6px;">
<img src="', $settings['images_url'], '/topic/', $context['class'], '.gif" align="bottom" alt="" />
</td>
<td width="13%"> ', $txt[29], '</td>
<td valign="middle" width="85%" style="padding-left: 6px;" id="top_subject">
', $txt[118], ': ', $context['subject'], ' (', $txt[641], ' ', $context['num_views'], ' ', $txt[642], ')
</td>
</tr>';
if (!empty($settings['display_who_viewing']))
{
echo '
<tr>
<td colspan="3" class="smalltext">';
// Show just numbers...?
if ($settings['display_who_viewing'] == 1)
echo count($context['view_members']), ' ', count($context['view_members']) == 1 ? $txt['who_member'] : $txt[19];
// Or show the actual people viewing the topic?
else
echo empty($context['view_members_list']) ? '0 ' . $txt[19] : implode(', ', $context['view_members_list']) . ((empty($context['view_num_hidden']) || $context['can_moderate_forum']) ? '' : ' (+ ' . $context['view_num_hidden'] . ' ' . $txt['hidden'] . ')');
// Now show how many guests are here too.
echo $txt['who_and'], $context['view_num_guests'], ' ', $context['view_num_guests'] == 1 ? $txt['guest'] : $txt['guests'], $txt['who_viewing_topic'], '
</td>
</tr>';
}
echo '
</table>';
echo '
<form action="', $scripturl, '?action=quickmod2;topic=', $context['current_topic'], '.', $context['start'], '" method="post" accept-charset="', $context['character_set'], '" name="quickModForm" id="quickModForm" style="margin: 0;" onsubmit="return in_edit_mode == 1 ? modify_save(\'' . $context['session_id'] . '\') : confirm(\'' . $txt['quickmod_confirm'] . '\');">';
// These are some cache image buttons we may want.
$reply_button = create_button('quote.gif', 145, 'smf240', 'align="middle"');
$modify_button = create_button('modify.gif', 66, 17, 'align="middle"');
$remove_button = create_button('delete.gif', 121, 31, 'align="middle"');
$split_button = create_button('split.gif', 'smf251', 'smf251', 'align="middle"');
// Time to display all the posts
echo '
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="bordercolor">';
// Get all the messages...
while ($message = $context['get_message']())
{
echo '
<tr><td style="padding: 1px 1px 0 1px;">';
// Show the message anchor and a "new" anchor if this message is new.
if ($message['id'] != $context['first_message'])
echo '
<a name="msg', $message['id'], '"></a>', $message['first_new'] ? '<a name="new"></a>' : '';
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg2', '">';
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';
// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';
// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';
// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';
// Is karma display enabled? Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';
// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';
// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';
// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';
// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';
// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';
// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';
// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';
// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';
// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';
// If this is the first post, (#0) just say when it was posted - otherwise give the reply #.
echo '
<div class="smalltext">« <b>', !empty($message['counter']) ? $txt[146] . ' #' . $message['counter'] : '', ' ', $txt[30], ':</b> ', $message['time'], ' »</div></td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" height="20" style="font-size: smaller;">';
// Can they reply? Have they turned on quick reply?
if ($context['can_reply'] && !empty($options['display_quick_reply']))
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '" onclick="doQuote(', $message['id'], ', \'', $context['session_id'], '\'); return false;">', $reply_button, '</a>';
// So... quick reply is off, but they *can* reply?
elseif ($context['can_reply'])
echo '
<a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], ';sesc=', $context['session_id'], '">', $reply_button, '</a>';
// Can the user modify the contents of this post?
if ($message['can_modify'])
echo '
<a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';sesc=', $context['session_id'], '">', $modify_button, '</a>';
// How about... even... remove it entirely?!
if ($message['can_remove'])
echo '
<a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';sesc=', $context['session_id'], '" onclick="return confirm(\'', $txt[154], '?\');">', $remove_button, '</a>';
// What about splitting it off the rest of the topic?
if ($context['can_split'])
echo '
<a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $split_button, '</a>';
// Show a checkbox for quick moderation?
if (!empty($options['display_quick_mod']) && $options['display_quick_mod'] == 1 && $message['can_remove'])
echo '
<input type="checkbox" name="msgs[]" value="', $message['id'], '" class="check" ', empty($settings['use_tabs']) ? 'onclick="document.getElementById(\'quickmodSubmit\').style.display = \'\';"' : '', ' />';
// Show the post itself, finally!
echo '
</td>
</tr></table>
<hr width="100%" size="1" class="hrcolor" />
<div class="post"', $message['can_modify'] ? ' id="msg_' . $message['id'] . '"' : '', '>', $message['body'], '</div>', $message['can_modify'] ? '
<img src="' . $settings['images_url'] . '/icons/modify_inline.gif" alt="" align="right" id="modify_button_' . $message['id'] . '" style="cursor: pointer; display: none;" onclick="modify_msg(\'' . $message['id'] . '\', \'' . $context['session_id'] . '\')" />' : '' , '
</td>
</tr>';
// Now for the attachments, signature, ip logged, etc...
echo '
<tr>
<td valign="bottom" class="smalltext" width="85%">
<table width="100%" border="0" style="table-layout: fixed;"><tr>
<td colspan="2" class="smalltext" width="100%">';
// Assuming there are attachments...
if (!empty($message['attachment']))
{
echo '
<hr width="100%" size="1" class="hrcolor" />
<div style="overflow: auto; width: 100%;">';
foreach ($message['attachment'] as $attachment)
{
if ($attachment['is_image'])
{
if ($attachment['thumbnail']['has_thumb'])
echo '
<a href="', $attachment['href'], ';image" id="link_', $attachment['id'], '" onclick="', $attachment['thumbnail']['javascript'], '"><img src="', $attachment['thumbnail']['href'], '" alt="" id="thumb_', $attachment['id'], '" border="0" /></a><br />';
else
echo '
<img src="' . $attachment['href'] . ';image" alt="" width="' . $attachment['width'] . '" height="' . $attachment['height'] . '" border="0" /><br />';
}
echo '
<a href="' . $attachment['href'] . '"><img src="' . $settings['images_url'] . '/icons/clip.gif" align="middle" alt="*" border="0" /> ' . $attachment['name'] . '</a> (', $attachment['size'], ($attachment['is_image'] ? ', ' . $attachment['real_width'] . 'x' . $attachment['real_height'] . ' - ' . $txt['attach_viewed'] : ' - ' . $txt['attach_downloaded']) . ' ' . $attachment['downloads'] . ' ' . $txt['attach_times'] . '.)<br />';
}
echo '
</div>';
}
echo '
</td>
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';
// Show "� Last Edit: Time by Person �" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
echo '
« <i>', $txt[211], ': ', $message['modified']['time'], ' ', $txt[525], ' ', $message['modified']['name'], '</i> »';
echo '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" valign="bottom" class="smalltext">';
// Maybe they want to report this post to the moderator(s)?
if ($context['can_report_moderator'])
echo '
<a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '">', $txt['rtm1'], '</a> ';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';
// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="', $scripturl, '?action=trackip;searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in? Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt[511], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt[511];
echo '
</td>
</tr></table>';
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']))
echo '
<hr width="100%" size="1" class="hrcolor" />
<div class="signature">', $message['member']['signature'], '</div>';
echo '
</td>
</tr>
</table>
</td></tr>
</table>
</td></tr>';
}
echo '
<tr><td style="padding: 0 0 1px 0;"></td></tr>
</table>
<a name="lastPost"></a>
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
<tr>
<td class="catbg" width="100%" height="30">
<table cellpadding="3" cellspacing="0" width="100%">
<tr>
<td>
<a name="bot"></a><b>', $txt[139], ':</b> ', $context['page_index'], (!empty($modSettings['topbottomEnable']) ? $context['menu_separator'] . '<a href="#top">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_up.gif" alt="' . $txt['topbottom4'] . '" border="0" align="top" />' : $txt['topbottom4']) . '</a>' : ''), '
</td>
<td align="', !$context['right_to_left'] ? 'right' : 'left', '" style="font-size: smaller;">';
$buttonArray = array();
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>';
if ($context['can_mark_notify'])
$buttonArray[] = '<a href="' . $scripturl . '?action=notify;sa=' . ($context['is_marked_notify'] ? 'off' : 'on') . ';topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '" onclick="return confirm(\'' . ($context['is_marked_notify'] ? $txt['notification_disable_topic'] : $txt['notification_enable_topic']) . '\');">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/notify.gif" alt="' . $txt[131] . '" border="0" />' : $txt[131]) . '</a>';
// Another special case, similar to above but reversed. Show "add poll" unless they can't - then show unread here too.
if ($context['can_add_poll'])
$buttonArray[] = '<a href="' . $scripturl . '?action=editpoll;add;topic=' . $context['current_topic'] . '.' . $context['start'] . ';sesc=' . $context['session_id'] . '">' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/addpoll.gif" alt="' . $txt['add_poll'] . '" border="0" />' : $txt['add_poll']) . '</a>';
elseif ($context['user']['is_logged
HI Kirby, I actually lost track of the post. I am sorry for asking this, I would like to change the height of the text aread to 300px
thanks
Hi!!
I have installed this at the default theme and works awesome!!
But i have now the Christmas Season theme..I used the package parser and copied the code wherever was needed...But i cannot see any enchanged quick reply...What can i do??
After I installed it without errors it alwa give me this 2 erros on the log when someone enter a topic:
http://.............../index.php?topic=117.0
8: Undefined offset: 533
File: .................\Themes\default\languages\Post.english.php (main sub template - eval?)
Line: 1162
http://................/index.php?topic=117.0
8: Undefined offset: 532
File: ...............\Themes\default\languages\Post.english.php (main sub template - eval?)
Line: 1161
I'm using a theme made from a copy of the default but even when just install it for the default and use the default theme it also gives the error, so nothing related to the themes I think
Any idea? of course post.english file don't even have 1000 lines
Great mod, any chance in a future release of integrating the "additional options" button (sticky etc)? Would be very useful to have in the quick reply box and won't be in the way if its closed by default.
Quote from: perro88 on December 21, 2007, 11:07:00 PM
After I installed it without errors it alwa give me this 2 erros on the log when someone enter a topic:
http://.............../index.php?topic=117.0
8: Undefined offset: 533
File: .................\Themes\default\languages\Post.english.php (main sub template - eval?)
Line: 1162
http://................/index.php?topic=117.0
8: Undefined offset: 532
File: ...............\Themes\default\languages\Post.english.php (main sub template - eval?)
Line: 1161
I'm using a theme made from a copy of the default but even when just install it for the default and use the default theme it also gives the error, so nothing related to the themes I think
Any idea? of course post.english file don't even have 1000 lines
problem solved.
Before I install a package, I always run it through the "SMF Package Parser" to determine if I should hard code it or see which files are affected.
When I uploaded it to the parser, it gave me the following error:
QuoteparseArchive(): No package-info.xml in this mod! Is it corrupted?
Cheers,
Gene
Will this work on apollo11final? This code if ($context['can_reply'] && !empty($options['display_quick_reply' etc...]))
concerning the quick reply box in the second "search and replace" section is not found in this theme's Display.template.php.
Can this mod still be used with this template? Thanks in advance
Quote from: 1948Pal on December 31, 2007, 02:52:33 PM
Will this work on apollo11final? This code if ($context['can_reply'] && !empty($options['display_quick_reply' etc...]))
concerning the quick reply box in the second "search and replace" section is not found in this theme's Display.template.php.
Can this mod still be used with this template? Thanks in advance
Don't like the idea of "search and replace", could end up fouling up another mod's code. That's why I prefer to hard code mods whenever possible (if the Package Parser can read them).
Cheers,
Gene
i have installed it but mod not showing is the quick reply ???
y plz help me
Hi,
I have this mod installed on 1.1.4 Core theme, and it works fine, except that the URL Popup mod I also have installed, doesn't work with EQR. Is there any way to integrate the URL Popup mod into EQR, so that users get the Hyperlink popup when clicking the URL button?
Many thanks!
Simon.
(a) how to increase the box length & height of size?
(b) im using "Spoiler Tag 0.3.2" mod, how to add the spoiler icon into quick post?
I've installed the 2.0.2 but nothing is coming up on screen?? Its installed fine with no errors!??
Quote from: ziycon on January 06, 2008, 10:52:57 AM
I've installed the 2.0.2 but nothing is coming up on screen?? Its installed fine with no errors!??
Care to give more details? Other installed Mods, allowed BBcode settings, etc...
Cheers,
Gene
I've installed it, no errors come up, the quick reply box isn't showing up either. I have a few other mods installed, you can view it at http://www.ign.ie/forum/
ok
color me stupid
when I look at a board page, at the very top and very bottom I have reply buttons. There are none elsewhere on a giving topic page. Am I missing something, or should there be no 'quick reply' links within each user's posts? If not, is there an easy method of adding that button next to the quote button, for example?
my users are lazy, and prefer not to have to scroll to the top or the bottom of the page...
btw - I have NO smileys showing in, near, or around the quick reply text box, nor do I have a 'more' link....
Hmm, me too, the only thing I can see is a "Quote" button on every post...
Thanks for noticing this...
After reading 12 pages on this Mod, think I'll pass, I'd rather hang on to the URL popup, most of my users don't care much for the quick reply box anyways. A workaround is to type in one or two words in the quick reply then click preview then you get the full editor.
Gene
looks like a nice quick reply
Is there a way I can add additional buttons to the enhanced quick reply box? Example - making it match the main reply bbc button area - so members dont have to use the main reply box just to use a specific button?
Nice mod! Thanks!
this mod have a error.
when i try to reply a post , appear a bar of say "loading" and nothing more happend , what i can do?
Quote from: Kimmie on January 28, 2008, 12:33:17 AM
Is there a way I can add additional buttons to the enhanced quick reply box? Example - making it match the main reply bbc button area - so members dont have to use the main reply box just to use a specific button?
Yes you can.
First off, remember that your additional bbcodes mod were installed in Post.template.php. To make it appear to your EQR, find the code of your bbcode mode and add it to Themes/default/Display.template.php.
Quote from: senyorito on February 21, 2008, 01:27:21 AM
Quote from: Kimmie on January 28, 2008, 12:33:17 AM
Is there a way I can add additional buttons to the enhanced quick reply box? Example - making it match the main reply bbc button area - so members dont have to use the main reply box just to use a specific button?
Yes you can.
First off, remember that your additional bbcodes mod were installed in Post.template.php. To make it appear to your EQR, find the code of your bbcode mode and add it to Themes/default/Display.template.php.
thanks for the response. I am new when it comes to alot of this, so bare with me..lol
I am not using the additional bbcodes mod. Heres what I am trying to do:
I installed the youtube mod and uploaded the bbc image to my images folder. That image appears like its supposed to in the main bbc post box area but it doesnt appear with the EQR bbc buttons. Is there a way to add that button to the EQR so when members are wanting to post a video they dont have to go through the hassle of hitting reply and using the main post box just to use that image - they can use the button on the quick reply box?
@Kimmie:
As I've said, Yes.
YouTube bbcode doesn't belong to the default bbcodes because it is a mod. The reason why you see it into your post form, it is because it was installed to Post.template.php.
EQR's bbcode buttons and smilies are installed in Display.template.php. What you need to do is to manual install your YouTube codes to your Display.template.php.
If you want, I can look for the codes in your templates and paste here what you have to do or let me edit it for you but I need the following template:
- Themes/Default/Display.template.php
And also, I need your Post.template.php to copy your YouTube code.
- Themes/Default/Post.template.php
Quote from: senyorito on February 21, 2008, 03:50:35 AM
@Kimmie:
As I've said, Yes.
YouTube bbcode doesn't belong to the default bbcodes because it is a mod. The reason why you see it into your post form, it is because it was installed to Post.template.php.
EQR's bbcode buttons and smilies are installed in Display.template.php. What you need to do is to manual install your YouTube codes to your Display.template.php.
If you want, I can look for the codes in your templates and paste here what you have to do or let me edit it for you but I need the following template:
- Themes/Default/Display.template.php
And also, I need your Post.template.php to copy your YouTube code.
- Themes/Default/Post.template.php
ok I understand. Is there a specific place in the post template that I need to put the code? (such as before or after certain code thats already in there?)
The reason why I wanted to see your Post.template.php is that simply because I do not know whose version of YouTube bbcode Mod that you are using and I don't want to you to be misled by giving different code. However, if you are using "YOUTUBE BBCODE v2.2 by karlbenson", do this:
Themes/default/Display.template.php
Find:'flash' => array('code' => 'flash',
Add Before:'youtube' => array('code' => 'youtube', 'before' => '[youtube]', 'after' => '[/youtube]', 'description' => $txt['youtube']),
If you are using custom theme, make sure that put the YouTube button-image into your Themes/NameOfYourTheme/images/bbc .
Note: If ever you'll uninstall EQR, you have to remove the YouTube codes from your Display.template.php or else, it will be resulted to uninstallation test failed on the said template.
Good luck!
Hi Kirby!
I just want to ask for some help. I've read here that we can bring back $txt['quick_reply_2'].
(http://img186.imageshack.us/img186/1341/47ow0.th.png) (http://img186.imageshack.us/img186/1341/47ow0.png)
I've followed your instruction but I have 1 question. How can I align the bbc to the left just like the bbc's formation in the original v2.0.2?
Nevermind, I got it.
How i can have this mod working with:
http://custom.simplemachines.org/mods/index.php?mod=639
and:
http://custom.simplemachines.org/mods/index.php?mod=649
it won't upload for me.
great mod
but i think i want to know
using tips and tricks given on this community, i have changed font dropdown and fontface in my post.templete.php
now i want to do the same for qucik reply too
anybody knows how to do it
please let me know
You have to manually install it to Display.template.php .
Is there any way to integrate this mod : http://custom.simplemachines.org/mods/index.php?mod=944
in the Enhanced Quick Reply Box ?
I already try to install it in Display.Template.php with no luck :(
anybody tell me which thing to edit
to make drop down font list
please
I hate to even ask for help on this cause i'm sure its most likely very simple for most of you to figure out but I'm stuck so here goes.
Attached is my Display.template.php from my sites theme "wowdk11_d"
Any help on exactly what needs to be changed to make this mod work with our theme would be greatly appreciated.
Thank you
Quote from: solabyss on March 10, 2008, 04:00:39 PM
I hate to even ask for help on this cause i'm sure its most likely very simple for most of you to figure out but I'm stuck so here goes.
Attached is my Display.template.php from my sites theme "wowdk11_d"
Any help on exactly what needs to be changed to make this mod work with our theme would be greatly appreciated.
Thank you
Check this out...
Good luck. :)
Quote from: senyorito on March 10, 2008, 05:25:42 PM
Quote from: solabyss on March 10, 2008, 04:00:39 PM
I hate to even ask for help on this cause i'm sure its most likely very simple for most of you to figure out but I'm stuck so here goes.
Attached is my Display.template.php from my sites theme "wowdk11_d"
Any help on exactly what needs to be changed to make this mod work with our theme would be greatly appreciated.
Thank you
Check this out...
Good luck. :)
Worked perfectly thank you!!!! <3
Quote from: solabyss on March 10, 2008, 05:34:18 PM
Quote from: senyorito on March 10, 2008, 05:25:42 PM
Quote from: solabyss on March 10, 2008, 04:00:39 PM
I hate to even ask for help on this cause i'm sure its most likely very simple for most of you to figure out but I'm stuck so here goes.
Attached is my Display.template.php from my sites theme "wowdk11_d"
Any help on exactly what needs to be changed to make this mod work with our theme would be greatly appreciated.
Thank you
Check this out...
Good luck. :)
Worked perfectly thank you!!!! <3
You're welcome. :)
However, I believe that the EQR's box width I put was the default -- 50%. If you want to adjust the box width, do this:
Open your:
Themes/YOURTHEME/Display.template.php
FIND:
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 50%;" align="left">
REPLACE WITH:
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 75%;" align="left">
Note that I'd only changed the value of
style="width: 75%;. You can adjust it more to your likings. ;)
Already done =)
Thank you!
Quote from: Yngwiedis on March 07, 2008, 11:31:56 AM
Is there any way to integrate this mod : http://custom.simplemachines.org/mods/index.php?mod=944
in the Enhanced Quick Reply Box ?
I already try to install it in Display.Template.php with no luck :(
Any help for the above ?
Quote from: Yngwiedis on March 10, 2008, 06:27:04 PM
Quote from: Yngwiedis on March 07, 2008, 11:31:56 AM
Is there any way to integrate this mod : http://custom.simplemachines.org/mods/index.php?mod=944
in the Enhanced Quick Reply Box ?
I already try to install it in Display.Template.php with no luck :(
Any help for the above ?
I'll check on it later. I'll let you know.
I really wish http://sleepycode.com/PackageParser/index.php would work with this so it can be easier for me since it has a steps such as find, replace, add after, etc.
Edited the package-info.xml file, changing it to 1.1.4 & it works great with 1.1.4-
Thanks!
Quote from: chep on August 08, 2007, 01:15:31 AM
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">
***update
Never mind found the file that needed to be edited. :D
where did you make this edit, was in the index.template ?
Is this included in 2.0b3? And if not, will there be support for this mod?
hello,
You have made a great mod! It works great.
I have submitted the line voor youtube bbcode. My question is how do i change the background into a button? because it looks like broken tabs..
See the attached picture :D
Thanks!
if you right-click on where it shows as 'youtube' it will give you the URL for the image it is looking for. Find that image in the youtube mod, and upload it to the url where it should be I think :)
Wow... your quick! :D
Thanks!
Quote from: Yngwiedis on March 07, 2008, 11:31:56 AM
Is there any way to integrate this mod : http://custom.simplemachines.org/mods/index.php?mod=944
in the Enhanced Quick Reply Box ?
I already try to install it in Display.Template.php with no luck :(
Any help for the above ?
you would probably have to install that mod manually if it is not installing successfully with no fails. Use the package parser in my signature and follow the instructions to install in manually instead of via the package manager :)
Hi ;
do you thinkin adaptation for modification on smf version 2.0 beta 3 ?
I have Enhanced Quick Reply 2.0.2
I'm using 1.1.4 and Default theme.and its OK but I want to do this text box left....
How can I do it?
(http://i25.tinypic.com/2dj2s9e.jpg)
what does it say in the box in English? Thanks
Quote from: quiteperplexed on April 04, 2008, 08:57:44 AM
what does it say in the box in English? Thanks
It's not a picture from my forum I want just to show what i want to do!
I haven't this box and i want to do ti...
ok you want toadd your own text to the box you have in red?
Other things go in that space - whether the topic is locked, if the topic is older than 120 days etc, but if you look in your display.template.php file you will see the part of the code where it is located
// Show the quick reply box.
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 75%;" align="left">
<div class="catbg" style="padding: 4px;"><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></div>
<div class="windowbg" id="quickReplyOptions" style="padding: 1ex;', $options['display_quick_reply'] == 2 ? '' : ' display: none', '">
', $context['is_locked'] ? '<b>' . $txt['quick_reply_warning'] . '</b><br /><br />' : '', '
<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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
in the section where it says $context['is_locked'] ? '<b>' . $txt['quick_reply_warning'] and so on
I dont see the part of the code....
Can you tell me please what soll I change to do this...
// Show the quick reply box.
if ($context['can_reply'] && !empty($options['display_quick_reply']))
{
echo '
<a name="quickreply"></a>
<div style="width: 100%;" align="center"><div class="tborder" style="width: 100%;" align="left">
<div class="catbg" style="padding: 4px;"><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></div>
<div class="windowbg" id="quickReplyOptions" style="padding: 1ex;', $options['display_quick_reply'] == 2 ? '' : ' display: none', '">
', $context['is_locked'] ? '<b>' . $txt['quick_reply_warning'] . '</b><br /><br />' : '', '
<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'], '" />';
// Here we show the actual post box with the smileys and BBCode..
hey
any chance to update this mod to smf 2 beta 3
please reply
is the quick reply supposed to be in each post? i dont know if i did it right~!
http://www.marineplantedtanks.com/forum/
read through the pages, but I couldnt find the answer.
I tried using the package parser to no avail Wouldnt work and show me the details.
Can anyone help with the editing of the display.temp.php?
Im using 1.14 default
nstalling this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed
You'll have to open the package, and read the installation instructions and manually edit your display.template.php file. If that's the only file that has failed, then all should work after you do that. You will also have to make theme edits if you have a custom theme.
I see that the question that I came here to ask has already been asked several times. I'm working on a beta site and I'd love to see this mod for 2.0b3. Will you be upgrading this to work with the new SMF version, and if so, do you have a timeframe?
can i use this mod for smf 1.1.5?
I'd assume so.
working great at 1.1.5 .. :)
i cant install it on a 1.1.5 forum. says it's not compatible. :(
im sure if you had it on the previously then it would continue to work, but as of now, it wont let me install it.
edit: nvm, i had to edit the package-info.xml file where it says "<install for="1.1.3, 1.1.4">" and change it to "<install for="1.1.3, 1.1.4, 1.1.5">"
hi what can i do because when i install this mod appear an error like this Fatal error: Cannot redeclare template_quickreply_box() (previously declared in /home/webster/public_html/forum/Sources/Load.php(1739) : eval()'d code:692) in /home/webster/public_html/forum/Sources/Load.php(1739) : eval()'d code on line 917[
Can anyone give me a answer pls that what can i do with an screenshot image??
Currently my smf version is 1.1.5
Same here,
I tried installing this mod on 1.1.5 and received this error
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
apparently its zipped twice, i believe what you need to do is unzip the file then select the three files in the folder then zip them again, then try to install. whats happening is when the installer unzips the files it can't see the installation files, it only sees another folder.
Hey, can someone help me?
I tried changing the Display.template.php file, but when I uploaded it with the new info it didn't work.
Here is the original display template.
Thank you! :D
EDIT: Its really just the second part that I have to do, about "You also have to add the entire template_quickreply_box() function from the modded default Display.template.php into your theme's Dsiplay.template.php." I'm not so sure how to do that
I AM GETTING "Fatal error: Call to undefined function theme_quickreply_box() in /home/legendar/public_html/Sources/Load.php(1743) : eval()'d code on line 660"
I guess this is because my site got messed up, so i restored so something must have messed in between. Any way to make it work?
Quote from: starz on May 04, 2008, 04:38:04 PM
i cant install it on a 1.1.5 forum. says it's not compatible. :(
im sure if you had it on the previously then it would continue to work, but as of now, it wont let me install it.
edit: nvm, i had to edit the package-info.xml file where it says "<install for="1.1.3, 1.1.4">" and change it to "<install for="1.1.3, 1.1.4, 1.1.5">"
i try like what u said edit the package n change to 1.1.5 but still i cant installed the mod...
the message was something related with display.template
can someone help me to install the mod to my new forum...i'm using version 1.1.5
i'm still noob (newbie) in programming...
still learn...
thanx n best rgds
it's not just you chubby. i've tried all the suggestions listed. i edited the xml file to include 1.1.5, i unzipped, extracted and rezipped, and the end result was exactly what you got. test failed on the display template file.
i wish i had the magic words to make it work. i love using quick reply, but hate not having the emoticons!
idk about you guys but when I changed the package-info to 1.1.5 and then I rezipped it the right way, it worked on my SMF 1.1.5 with TinyPortal.
I'm using this mod, but i want to set it width to 100%. Where can i do that?
There's alot of folks asking this same question with apparently little reaction so I thought I'd through mine in also.
Running 1.1.5 and changed the package-info-hml to 1.1.5 and get this:
QuoteInstall Actions
Installations actions for "Enhanced Quick Reply Box 2.0.2":
Installing this package will perform the following actions:
Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed
There's got to be a fix? Also, can someone please post a better code adjustment for custom templates? Way to vague.
Thanks!
Please can someone update this for 1.1.5!!!
Thankyou.
Edit: Actually this fix worked for me....
http://www.simplemachines.org/community/index.php?topic=187281.msg1530808#msg1530808
:)
I have many mods on my forum.
I have uploaded this one, and it worked.
Quote from: KameL on June 06, 2008, 03:02:30 PM
I'm using this mod, but i want to set it width to 100%. Where can i do that?
Help me with that please! :(
Quote from: protonxl on June 13, 2008, 11:32:56 AM
I have many mods on my forum.
I have uploaded this one, and it worked.
Just tried yours and it borked!
Can anyone please find a fix for the Display.template.php
Does anyone know how to make this work with AJAX Instant Quick Reply (http://custom.simplemachines.org/mods/index.php?mod=1214)? I tried running the archive through the parser and got stuck at the last edit:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
I really really want this to work with 1.1.5!!!! I tried the suggestions here, I changed the code in the package-info.xml to add 1.1.5 and rezipped everything but it still will not work.
Please help! I REALLY want this feature!
nothing seems to be working no matter what i do its not working with 1.1.5 someone please help me
have you tried the one i uploaded???
mine worked perfectly.
Quote from: protonxl on June 17, 2008, 10:03:56 AM
have you tried the one i uploaded???
mine worked perfectly.
I got this message...
Quote
!!
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Execute Modification ./Themes/default/Display.template.php Test failed
I don't have a previous version. I am also using the Dilber theme. Now what?
Bump. Anybody? Help?
Did you try reading readme.txt in the package as suggested? You'll find this...
QuoteHOW DO I MAKE THIS MOD COMPATIBLE WITH MY THEME?
If you want to use the "enhanced" quick reply box on your own theme, you have to first remove the old one. The old one starts off with this clause in Display.template.php:
if ($context['can_reply'] && !empty($options['display_quick_reply']))
It has some code in between this clause and another curly bracket. Remove the old quick reply box code entirely. Replace it with the one in the modded default Display.template.php (it starts with the same clause).
You also have to add the entire template_quickreply_box() function from the modded default Display.template.php into your theme's Dsiplay.template.php.
HTH
How to change the width of the quick reply to 100%?
Quote from: KameL on June 17, 2008, 05:33:47 PM
How to change the width of the quick reply to 100%?
The trick is to change 50% to Auto. This was covered on page 1 of this topic. I am not sure if the source has changed but here are the examples once again.
From 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: auto;" align="left">
That works! TY! ^^
Quote from: protonxl on June 13, 2008, 11:32:56 AM
I have many mods on my forum.
I have uploaded this one, and it worked.
this installs fine for 1.1.5
HELLLLLLLLP HELP HELP!!!!!!!!!!
Guys, I tried modifying my theme so enhanced quick reply would work...
JUST ONE SMALL PROBLEM
I don't have the post.index or whatever document it is I'm supposed to modify. I look on admin panel, the ftp thing, even the zip file. It's simply NOT THERE.
If anyone knows how to add this thing to the BLUESKIES theme, I'd greatly appreciate it.
display.template - that's what it's called. Blueskies doesn't have one :angryface:
So I took a display.template from a completely different theme and copied it to the one I'm using.
Everything works now, which is amazing I think. I thought doing something like that would cause a serious bug.
I think this thing is causing some glitches on my forum
The money system has dissapeared and some posts have too
http://ifca.tv/forums/index.php
also, there's now a mystery bar on the bottom of the index page.
see the 4 bars? the mystery bar is the 3rd on. and nothing is there. it's just blank with weird ascii characters
what's going on? how do i get rid of it?
Will someone make this mod compatible with SMF 2.0 Beta 3.1 public?
Is it possible that nobody need these?
Need some help getting this error
Fatal error: Cannot redeclare theme_quickreply_box() (previously declared in /home/hocguild/public_html/Sources/Display.php:1245) in /home/hocguild/public_html/Sources/Display.php on line 1477
can some one plz help me .....
Is there an update for 1.1.5?
did not work in 1.1.5 for me I was forced to remove it
I'm using it on SMF v1.1.5
It works fine with 1.1.5. Still waiting someone to make it compatible with 2.0.
thanks, its work very well.
with you package I did enhanced in my smf 2.0
see a example here http://www.gsmfans.com.br
Can you tell us how did you make that please?
well, My english isn't good then... kkk
enter here http://custom.simplemachines.org/mods/index.php?action=parse;mod=883;attach=40806;smf_version=1.1.4
1- change ./Sources/Display.php with the explanation
2- in final of the file add the information. same of the link.
3-
The secret is here: find:
Quoteif ($context['can_reply'] && !empty($options['display_quick_reply']))"
it's is the code of the your QuickReply. Select until
Quote</table>';
}
remove this part and implement the information of link above.
find:
Quote' . $txt[105] . '
Replace with:
Quotepost
find:
Quote' . $txt[507] . '
replace with:
Quotepreview
and finally, in your "Themes/default/language/
modification.yourlanguage.php (I don't know what is your language)
find:
Quote?>
replace with:
Quote
//-- Nome das cores do quickreply
$txt[262] = 'Black';
$txt[263] = 'Red';
$txt[264] = 'yellow';
$txt[265] = 'Pink';
$txt[266] = 'Green';
$txt[267] = 'Orange';
$txt[268] = 'Purple;
$txt[269] = 'Blue';
$txt[270] = 'Beige';
$txt[271] = 'Brown';
$txt[272] = 'Teal';
$txt[273] = 'Navy;
$txt[274] = 'Maroon';
$txt[275] = 'Lime Green';
?>
Rocks thanks but I have a problem with understanding of your post. :S
Can you explain it again?
well... for make this modification you shold to have conection with ftp
you can explain me better, what is you problem?
It really works!!!
But on my test forum, no modification, pure install.
http://www.baklja.com/test/index.php?topic=1.msg2#new
Username: test
Password: test
But I've copied all the files on my live forum www.baklja.com/forum and installed this and it shows just a dividers with no smiles!
I don't understand...
EDIT: It just need little language modification to language specified files.
Babylon theme is also accepted this mod! :)
Thanks Rock :)
This mod is very useful. I think, buttons & smiles is necessary stuff in Quick Reply. But I can't install it (I guess, because I've got 1.1.5 version of SMF). What about making it compatible with SMF 1.1.5?
Every time I try to install SMF tells me, that error is occurred in ./Themes/default/Display.template.php
Maybe, I can edit mod... somehow? But I'm not familiar with PHP.
P.S.: Sorry for my broken English.
Hi, Lex. I'm using EQR 2.0 with no problems on my 1.1.5. forum.
It is just needed to modify same files, same way like 1.1.4.
Can you tell us what other modification you're using on your SMF and maybe you could leave us your /Sources/Display.php and /Themes/default/Display.template.php to check them?
Hm... Modifications can conflict with each other? I didn't think about it. :-[
Here is the list of modifications that I use (Last installed are first in list):
QuoteInternal links use same window
Justify BBCode
Color And BgColor BBCode Bar
Spoiler Tag
I removed all the mods and tryed to install again. And it installs successfully. :) I'll test it with other mods by one to find where is the conflict. However I already think, that it's in
Color And BgColor BBCode Bar, because it adds GUI elements in QR panel, too.
But now, since I've seen EQR in action, I have another problem: QR is too narrow by width. How can I make it more widely?
Yes, the conflict is with Color And BgColor BBCode Bar. I just tried to install it with EQR already installed, and it returns me the same error.
I'll think about how to make them work together, but the problem with width is still existing.
Or, maybe, there is any way to simply use the same panel as full reply mode for QR? If so, it'll be great, because I'm going to install another mods, that changes Reply panel. And it should be the same as QR panel.
I have a problem.
When I install Enhanced quick reply manual on my SMF 2.0 Beta 3.1 Public test forum ( no modification, no changes at all ), it works fine, but when I connect it with my live forum it doesn't work.
Also, I have been copied installation files over my live forum and try to put this mod and get same result.
There is something in my database ( on live forum ) that conflicts with this mod.
Does anyone have idea what could it be?
Bump
Quote from: AlenNS on July 21, 2008, 01:34:00 PM
I have a problem.
When I install Enhanced quick reply manual on my SMF 2.0 Beta 3.1 Public test forum ( no modification, no changes at all ), it works fine, but when I connect it with my live forum it doesn't work.
Also, I have been copied installation files over my live forum and try to put this mod and get same result.
There is something in my database ( on live forum ) that conflicts with this mod.
Does anyone have idea what could it be?
Can you explain me your problem?
You did speak that have a problem, but I don't now what is you problem!
This is the problem. It works on my test forum, core install, but it doesn't work on my live forum.
Quote from: AlenNS on July 21, 2008, 01:34:00 PM
I have a problem.
When I install Enhanced quick reply manual on my SMF 2.0 Beta 3.1 Public test forum ( no modification, no changes at all ), it works fine, but when I connect it with my live forum it doesn't work.
Also, I have been copied installation files over my live forum and try to put this mod and get same result.
There is something in my database ( on live forum ) that conflicts with this mod.
Does anyone have idea what could it be?
in package-info.xml
add the 1.1.5 in the: <install for="1.1.3, 1.1.4, 1.1.5">
Quote from: shraz on July 25, 2008, 04:22:46 PM
in package-info.xml
add the 1.1.5 in the: <install for="1.1.3, 1.1.4, 1.1.5">
If I do this, I will have to modify the files in my custom TP theme also. Right?
Exactly, like every single mod which was written only for default theme.
Hi,
how can i add this text like here
Quote
Quick Reply
With a Quick-Reply you can use bulletin board code and smileys as you would in a normal post, but much more conveniently.
and modify the text with (as example) Boardrules etc ?
Open index.yourlanguage.php and modify this part as you wish:
$txt['quick_reply_desc'] = 'With a Quick-Reply you can use bulletin board code and smileys as you would in a normal post, but much more conveniently.';
You'll find this file in $board/Themes/default/languages/
Hi,
i cant find that code. At my forum it shows only the Quick Reply box, without any table left. Must i activate something?
thx
Which version of SMF you are using?
Which Theme?
Did you try to find the code which I left you in index.english.php or index.yourlanguage.php?
Im using 1.1.5, Blackrain.
I searched in index.english (i use english language file)
Could you attach your index.english.php here?
Try changing index.english.php of default theme then.
ok for some reason I cant get the icon for the spoiler tag mod to show up in my EQR box. I added the code from the Post.template.php to the Display.template.php file but its not working like the other ones such as the youtube icon.
Can anyone help me get this resolved? :(
hello I have this working on the default theme but I would like to get it working on the helios multi theme also I have tried editing the display.template.php but I must not be doing it right becouse I keep messing it up! and is this the only file that needs edited with this theme I have no idea thanks for any help I attached my php file If anyone can help out! Thanks!!!
got it to work
I have SMF 1.1.5, and two conflicting mods. Ajax Quick Reply and Post Box Increase/Decrease Size.
There is also a line for a topic description mod, but you can remove that because no one has replied to my repeated posts there for a week, so I've about given up on installing it.
These conflicts are in the ./Themes/default/Display.template.php file, and I tried to manually install them, but for some reason, when I try to copy and paste over the code to replace a certain area, so I can compare in Notepad++, it doesn't keep its formatting, which has made it practically impossible for me to find out what parts of code from other mods need to be added to the new one and where before replacing.
If someone could correct my file, so that I can make an install, that'd be great, thanks.
Is there an update to be able to install this mod on a 1.1.6
It does not show a install link after I download it
bump
I want to use this mod in SMF 1.1.6 with Ig.Oh Theme... everyone can help me? Many thanks
I tryed to install this mod manually with the guide of 1.1.4 version and WORKS with the 1.1.6!
The guide is here:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=883;attach=40806;smf_version=1.1.4
I try this mod with the default theme and with Ig-Oh theme by Koni and finally works... :D
I've edited package-info.xml adding 1.1.5 version, but in Firefox 3 the smilies don't work. Any solution? This mod is very useful.
I've default theme
Any chance of an update Kirby?
Quote from: Gollem99 on October 01, 2008, 06:26:59 PM
Any chance of an update Kirby?
http://custom.simplemachines.org/mods/index.php?mod=1299
Quote from: AlenNS on October 02, 2008, 07:13:54 AM
Quote from: Gollem99 on October 01, 2008, 06:26:59 PM
Any chance of an update Kirby?
http://custom.simplemachines.org/mods/index.php?mod=1299
it is for 2.0 beta.
for 1.1.6?
i received this error after upgrading from 1.1.5 to 1.1.6
+ Quick Reply
Fatal error: Call to undefined function: theme_quickreply_box() in /home/siburik/public_html/Sources/Load.php(1741) : eval()'d code on line 789
I cant find uninstall button to undo this mod, and when i tried to remove it manually i got error message at forum.
Quote from: McJoe on September 19, 2008, 09:22:08 AM
I tryed to install this mod manually with the guide of 1.1.4 version and WORKS with the 1.1.6!
The guide is here:
http://custom.simplemachines.org/mods/index.php?action=parse;mod=883;attach=40806;smf_version=1.1.4
I try this mod with the default theme and with Ig-Oh theme by Koni and finally works... :D
Sadly it Didnt work for me. Can someone confirm if this mod is available for 1.1.6 so I can stop searching for info if it isnt.
Where is Kirby?! I'm seeing a lot of people on here is waiting a long time for help. I would like to have this on 1.1.6, but I must wait until Kirby magically comes back.
I went ahead and installed this using the package manager but am not seeing any changes to my theme. I was looking for what I may need to edit in my templates but do not see anything provided. Any ideas?
Quote from: THUNDERxRAGE on November 01, 2008, 04:46:55 PM
Where is Kirby?! I'm seeing a lot of people on here is waiting a long time for help. I would like to have this on 1.1.6, but I must wait until Kirby magically comes back.
I would also like to use this or something similar with 1.1.6
This has probably been answered, though I don't want to go through 18 pages. How do I center the post and preview buttons?
is this work with 1.1.7?
Greetings
Yes it does
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF. "
gives this error
what to do ???
hi there. im using smf 1.1.6 version and dilber mc theme. i have done installing this mod and it was successful. dilber mc theme doesn't have a display.template.php file, is there anyway i can make this work in my current theme?
is quick reply enabled?
problem solved. thanks. i forgt to enable it.
thanks for modification!
& i'll ask the last time most popular question - what's about SMF 2.0?
Does it works with this mod & if it's not, will it be so? ;)
there is a WYSIWYG one in 2
it isn't this one though.
Hello, I am having trouble making this work with the bluesmegacolor (http://custom.simplemachines.org/themes/index.php?action=search;basic_search=bluesmegacolor) theme on smf 1.1.7. I keep getting parse errors so I restored the unmodified file.
I have attached my un-edited display template file can someone please show me how to make this work if possible.
Thank you for any help you can provide.
Firstof3
i want to put this changes in quick reply for opening new box for entering URL in url and img tag
any one knows how i can do it?
http://www.simplemachines.org/community/index.php?topic=17867.msg604774#msg604774
I can't seem to find the place to enable this mod.
Where do I look?
Sheryl
Never mind. I finally found it.
Is it possible to increase height in quick reply? I just increased width, my version of SMF is 1.1.7.
im asking the same question as netoya, how to increase the box length & height of size? my version is 1.1.17 too.
if you want to change the text area size:
goto:
Themes\default\Display.template.php
find:
<textarea class="editor" cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);"></textarea>';
and change the height and width to your desired values
HuNTeR@sm, thanks. It works :)
Though this topic is full of questions rather then answers, I would like to know hos to fix the quick reply's popup smilies. I click on the smiley, but the code doesn't show.
damn doesnt work for 1.1.7 :(
How can i move this to above the jump to box?
I'm using 1.1.7 and it works just fine, smilies and all.
Hayley, did you enable it?
Sheryl
Quote from: Mizta Insane on February 04, 2009, 04:05:20 AM
How can i move this to above the jump to box?
Find the code for the Jump to box in Display.template.php and move the code above it. If yoiu need further help, post your Display.template here.
I am using 1.1.8 and doesnt work. It doesn not installs when I try to install it.... What can I do?
Quote from: kesepian on February 08, 2009, 01:28:02 PM
I am using 1.1.8 and doesnt work. It doesn not installs when I try to install it.... What can I do?
You have to update the package-xml file and add 1.1.8 to the install and uninstall sections because the mod author has not yet done so. (anytime the smf version is not listed on the mod page, this will need to be done)
Speaking of which,
Kirby - I am moving to 1.1.8 tomorrow. Are there any specific changes other than updating the package-xml file that need to be done in order for it to be compatible with 1.1.8?
Please can someone give me a step by step on how to install Enhanced Quick Reply??????????
I'd like to know how to update the package-xml file to add 1.1.8 to the install and uninstall sections.
Also, would this work on 2.0 RC1 if you updated the package-xml file?
Sheryl
I made it working! :P
- I unpacked the archive
- I edit the package-info.xml adding the 1.1.8 version in the same line where 1.1.4 was
- It works as a wonder!
Thank you
I just unpacked my zip file and it says it works for versions 1.1-1.1.9.
I'm still using 1.1.7 and I have it working on that version, however I may upgrade to 2.0 RC1 and would like to still be able to use this mod.
Do you know if you can include 2.0 RC1 in the package-info.xml?
Sheryl
I very much doubt this would work with RC1 without some recoding, but if Kirby isn't into doing an RC1 version I might do it myself.
Hey guys. I can't get this to work. Can someone explain to me which code is to be replaced, because in my display.template file, there are two codes begining with if ($context['can_reply'] && !empty($options['display_quick_reply']))
I could paste the entire source of my display.template file if needed.
ok call me stupid but the "uninstall" info is missing on this mod lol:
Quotepackage-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<!-- For the id, always use something unique - put your name, a colon, and then the package name. -->
<id>kirby:enhanced_quick_reply</id>
<!-- Below should be the name of this package. -->
<name>Enhanced Quick Reply Box 2.0.2</name>
<!-- The version of this modification. Keep it numeric so PHP can tell that old < new. -->
<version>2.0.2</version>
<!-- Type, one of: modification, avatar, language. -->
<type>modification</type>
<!-- Installation, the key part of this file. -->
<install for="1.1.3, 1.1.4">
<readme>readme.txt</readme>
<modification>modification.xml</modification>
</install>
<!-- Don't forget something to make it uninstallable! -->
<uninstall>
<modification reverse="true">modification.xml</modification>
</uninstall>
</package-info>
DO the mods not use the "specific" code on uninstall like it is with the install anymore?
Reverse install. :P
ah ok.. I just wanted to make sure before I installed it hehe thanks :)
Quick question: Where can I adjust the size of the box? (heighth and width)?
EDIT _ I found where to change the width, just need to know how to change the heighth
<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 />
The last bit. ;)
A lot of people that use SMF 2.0 RC1-1 are anxious for Enhanced Quick Reply working with it! ::)
i got this isntalled and working but i wanna know how to add the custom bbcodes i added wtih this mod http://custom.simplemachines.org/mods/index.php?mod=621
How-To add some width of enhanced quick reply window?
And add some bottom space from smileys?
(http://img265.imageshack.us/img265/2483/24723835.jpg)
How can I make it so it isn't so small and centered?
Quote from: [A-US]James246 on July 19, 2009, 11:19:47 AM
How can I make it so it isn't so small and centered?
http://www.simplemachines.org/community/index.php?topic=187281.msg2092899#msg2092899
I get the following error.
'Installations actions for "Enhanced Quick Reply Box 2.0.2":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF.'
Any chance of making it compatible with 1.1.10? Thanks!
Quote from: Antechinus on April 07, 2009, 03:32:55 AM
I very much doubt this would work with RC1 without some recoding, but if Kirby isn't into doing an RC1 version I might do it myself.
any updates on this? :)
Please someone can tell how-to add some bottom space from smileys like this?:
(http://img257.imageshack.us/img257/8897/83173804.jpg)
give me a code if can. 8)
Quote from: [A-US]James246 on July 28, 2009, 08:26:29 AM
Any chance of making it compatible with 1.1.10? Thanks!
????? bump
i have the problem with using IE.
After click the bbc button- using the mouse we must put it between the code.. it is not automatically between the code..
lime | <--- the mouse is after the last tag. not in center/between the tags. but in firefox everything is ok.
There are way too much icons on quick reply like that its a whole message reply thing... i want some of bbcodes on my quick reply.. what should i do remove extra bbcodes.. i am using latest v2.0 ver...
please hurry i have installed this mod and its looking not good to me with so much icons on it...tell me how to remove those bbcodes...
Please please please please please can you get this working for SMF 2.0 RC1.2? I loved this mod on SMF 1.1.x and am sorely missing it since upgrading
my problem is solved... and i can resize the box too by changing the %... also removed unimportant icons by doing some editing..
now its looking pretty much very kool.. thanks for the mod...
ok now i didnt checked it before but today when i tried to change the size the size thing was not working...do any one else is facing this problem??
(http://i341.photobucket.com/albums/o377/pakistanihaider/gsfadfdf.jpg)
block are there but they dont work if we select them..
I keep getting an error in my display.template file on installation and the mod won't work.
http://e-p1.net
Quote from: trekkie2444 on September 19, 2009, 08:19:18 PM
I keep getting an error in my display.template file on installation and the mod won't work.
http://e-p1.net
Try Manual installation..
works like a charm! thanks a bunch mate!
download the package and extract..
open the modification.xml with an xml editor...
replace the code line 424 with this
<div style="width: 100%;" align="center"><div class="tborder" style="width: auto;" align="left">
cooler...... ;D
Quote from: Dharshan on September 23, 2009, 03:53:40 AM
works like a charm! thanks a bunch mate!
download the package and extract..
open the modification.xml with an xml editor...
replace the code line 424 with this
<div style="width: 100%;" align="center"><div class="tborder" style="width: auto;" align="left">
cooler...... ;D
what will this code do..can you give a screep can that what exactly this code will change in its look?
Quote from: Reekie_Red on August 30, 2009, 01:31:29 AM
Please please please please please can you get this working for SMF 2.0 RC1.2? I loved this mod on SMF 1.1.x and am sorely missing it since upgrading
http://www.simplemachines.org/community/index.php?topic=251436.0 :)
Quote from: Shark-Time on September 23, 2009, 09:01:33 AM
Quote from: Dharshan on September 23, 2009, 03:53:40 AM
works like a charm! thanks a bunch mate!
download the package and extract..
open the modification.xml with an xml editor...
replace the code line 424 with this
<div style="width: 100%;" align="center"><div class="tborder" style="width: auto;" align="left">
cooler...... ;D
what will this code do..can you give a screep can that what exactly this code will change in its look?
ya for sure.....
the enhanced quick reply does not give a wide area to post your reply, it just centers itself with a small area to reply and it's clutterd with all the icons..
so modifying the package files and then using it will give you the ability to use the full wideness of your forum area to be used as reply area..
this is how it looks like
http://img21.imageshack.us/img21/7258/quickreplys.jpg
and i have uploaded the edited version of the enhanced quick reply mod if you wanna give it a shot!
Hi, I wondered if there is a version of this mod for 1.1.10?
Quote from: Kamali on November 01, 2009, 05:48:16 AM
Hi, I wondered if there is a version of this mod for 1.1.10?
Hi kamali, am using this package on SMF 1.1.10, ;)
so go ahead and download the attachment i have uploaded on my post & use it!
cheers!
Thanks Dharshan, I appreciate your help. :)
Quote from: Kamali on November 05, 2009, 01:43:26 PM
Thanks Dharshan, I appreciate your help. :)
No problemo..... :D cheers!
Does this mod need to be manually installed on 1.1.10? Just downloaded it > unzipped > uploaded to server > package manager. But there is no install option ... just "list files" and "delete".
Quote from: gastan on November 16, 2009, 09:15:49 PM
Does this mod need to be manually installed on 1.1.10? Just downloaded it > unzipped > uploaded to server > package manager. But there is no install option ... just "list files" and "delete".
ok then you might have a prob, delete the current installation, download my modified zip file given a couple of posts before..
try installing that, no need to unzip the package..
the forum software will do it automatically.
cheers!
Hi Dharshan, would it be possible for me to make the box wider by changing a setting? (And maybe taller)?
Quote from: Kamali on November 17, 2009, 01:28:33 AM
Hi Dharshan, would it be possible for me to make the box wider by changing a setting? (And maybe taller)?
Hi kamali,
here we are talking about quick reply, which means you do not need to click the reply button to reply to a post, but type your answer directly within same page..
if u get my idea... it wont be a good thing to increase the height of it!
and if you installed this using my modified zip file, you should get a 100% wider reply area..
if u still wanna go ahed, plz post a screen shot of your quick reply box, in ur forum..
cheers! ;)
Hi Dharshan,
I have a weird reason for asking, it's because for some reason once we get to the bottom of the box (not just quick reply but also full reply and PM, so I think it's a skin problem), the scrolling doesn't work properly. You can type, but you can't see what you're typing, and you can scroll down with the scroll bar, but as soon as you start typing again, it scrolls back up - the cursor is still where it was, so you can't see what you're typing.
So I thought if Quick Reply was wider, it would help. I don't mean for you to change the mod itself, I just wondered if there was a width setting I could change manually, and maybe a height one, just until I figure out what the scroll problem is (if I ever do!)
Here is my Quick Reply looks like at the moment: http://myweb.tiscali.co.uk/thylacinehearth/QuickRepyPic.jpg
ok, by looking at your mod, i can say you have not used my zip file (modified quick reply) I have modified the width to 100% in that.. so if you could locate my attachment before a couple of posts in this thread, use it to install the mod...and you will have the quick reply area expanding your full width of the forum..
i'll look into this height prob
cheers!
ok here you have the final pic and edited mod zip file..use them
<updated with new zip file, previous one was found with bugs>
Thank you very much, Dharshan, I appreciate your help. Should I uninstall the old Quick Reply before installing this one? (I'm a bit new to all this).
Quote from: Kamali on November 17, 2009, 01:59:30 PM
Thank you very much, Dharshan, I appreciate your help. Should I uninstall the old Quick Reply before installing this one? (I'm a bit new to all this).
yup.... uninstall and delete the installation files for that mod. and then go ahead with this mod.
Hi Dharshan, on the packages page in the Admin CP it says this:
13. Enhanced Quick Reply Box 2.0.2
When I try to uninstall it, I get this:
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
And under that it says:
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed
A couple of days ago I tried to install a package called 'TextareaResizer' which (I think) lets you make the reply box bigger, and I got exactly the same error on that (so did not install it):
3. Execute Modification ./Themes/default/Display.template.php Test failed
So there seems to be a problem in my './Themes/default/Display.template.php' file, and I have no idea at all how to fix it. I am guessing that whatever the problem is, it is probably what is causing the scrolling in the first place.
I'll attach a copy of the ./Themes/default/Display.template.php file, just in case anyone understands them and can suggest what is wrong and how to fix it. :(
ok kamali i'm trying it on my local host..will update u asap..
ok found out that there was an error with my previous zip file....
<it has increased in size>
use this zip file <i'm removing all the other files...
cheers!
I can't uninstall the old version though, Dharshan, because I still get this when I try:
Uninstall Actions "Enhanced Quick Reply Box 2.0.2":
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed
Quote from: Kamali on November 18, 2009, 06:14:03 PM
I can't uninstall the old version though, Dharshan, because I still get this when I try:
Uninstall Actions "Enhanced Quick Reply Box 2.0.2":
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed
a single test failing wouldnt cause a big thing...i had same errors when i was uninstalling my mods from my SMF1.1.10..in order to upgrade it to SMF2 RC2..
go ahead with it..click uninstall...
cheers!
Quote from: Antechinus on September 26, 2009, 05:07:05 PM
Quote from: Reekie_Red on August 30, 2009, 01:31:29 AM
Please please please please please can you get this working for SMF 2.0 RC1.2? I loved this mod on SMF 1.1.x and am sorely missing it since upgrading
http://www.simplemachines.org/community/index.php?topic=251436.0 :)
This is "For SMF 2.0 RC2 only" Not SMF 2.0 RC1.2 as asked above. Can this mod be used for 2.0 RC1.2??
On the mod link it does not say it's compatible with RC2.
Can someone verify that this does ibnfact work with RC2?
Quote from: Dharshan on October 06, 2009, 12:34:48 AM
Quote from: Shark-Time on September 23, 2009, 09:01:33 AM
Quote from: Dharshan on September 23, 2009, 03:53:40 AM
works like a charm! thanks a bunch mate!
download the package and extract..
open the modification.xml with an xml editor...
replace the code line 424 with this
<div style="width: 100%;" align="center"><div class="tborder" style="width: auto;" align="left">
cooler...... ;D
what will this code do..can you give a screep can that what exactly this code will change in its look?
ya for sure.....
the enhanced quick reply does not give a wide area to post your reply, it just centers itself with a small area to reply and it's clutterd with all the icons..
so modifying the package files and then using it will give you the ability to use the full wideness of your forum area to be used as reply area..
this is how it looks like
http://img21.imageshack.us/img21/7258/quickreplys.jpg
and i have uploaded the edited version of the enhanced quick reply mod if you wanna give it a shot!
Hi Darshan
where is link to your edited version of enhanced quick reply ??
if you click on the above link for this post - Quote from: Dharshan on October 06, 2009, 05:34:48 AM the file is attached to it. ^^^
Quote from: quiteperplexed on December 17, 2009, 06:23:42 AM
if you click on the above link for this post - Quote from: Dharshan on October 06, 2009, 05:34:48 AM the file is attached to it. ^^^
thnx for ur concern dear
when I click over that link , a small window open wid message that comressed (Zip) folder is invalid or corrupt ???
Odd, it's been downloaded 11 times and I have just downloaded it myself to check, and I get no invalid or corrupt message.
Quote from: quiteperplexed on December 17, 2009, 09:26:20 AM
Odd, it's been downloaded 11 times and I have just downloaded it myself to check, and I get no invalid or corrupt message.
m still getting same message
what to do ??
hi Sukrati,, i downloaded it to check and it works fine for me.... i have just uploaded a copy of this on my forum.... plz download it from there then..... :)
i guess u need to register there.. to get the download
http://www.pcguide.exofire.net/forum/index.php/topic,69.0.html
i am using smf 1.1.11 and i hav installed the Enhanced Quick Reply 2.0 "enhanced_quick_reply-2.0.zip" and also tried "enhanced_quick_reply-2.0 New.zip "
but when i install then and open a post this error appears
"
Fatal error: Cannot redeclare template_quickreply_box() (previously declared in /home/vol1/xtreemhost.com/xth_4944085/pakfunxone.co.cc/htdocs/Sources/Load.php(1733) : eval()'d code:855) in /home/vol1/xtreemhost.com/xth_4944085/pakfunxone.co.cc/htdocs/Sources/Load.php(1733) : eval()'d code on line 1303
"
plz tell me what to do so that i can use this mod..
plz tell me is it possible or not.............
i hav attached the display.php
PLEASE I NEED THE QUICK REPLY FOR RC2 HELP
Quote from: derby on February 10, 2010, 02:32:43 PM
PLEASE I NEED THE QUICK REPLY FOR RC2 HELP
http://custom.simplemachines.org/mods/index.php?mod=1299
Please have this mod for 2.0 RC3
Quote from: PanesarV on April 03, 2010, 03:36:03 AM
Please have this mod for 2.0 RC3
http://custom.simplemachines.org/mods/index.php?mod=1299
Some of the files the package manager needs to modify are not writable. This needs to be changed by logging into FTP and using it to chmod or create the files and folders. Your FTP information may be temporarily cached for proper operation of the package manager.
got this error on installation
550 Can't change directory to /home/content/j/j/g/jjgarza1970/html/elchoneo: No such file or directory
smf 1.11.1
Anyone know or have installed Enhanced Quick Reply 2.0.2 on SMF 1.1.11? Seems like the theme I am using (not made by dzinerstudio) does not have display.template.php (is that even possible) only has index.template.php
Anyone got any ideas? Thanks
Quote from: slackerpunk on September 02, 2010, 08:40:55 AM
Anyone know or have installed Enhanced Quick Reply 2.0.2 on SMF 1.1.11? Seems like the theme I am using (not made by dzinerstudio) does not have display.template.php (is that even possible) only has index.template.php
Anyone got any ideas? Thanks
if it dosn't have a display.template.php in the theme folder then, it's getting those settings from the default theme's files. go ahead and modify the default theme folders files. ;)
Hello, I have tried to install this mod, but I get this reply
Installing this package will perform the following actions: Type Action Description
1. Execute Modification ./Sources/Display.php Test successful
2. Execute Modification ./Themes/default/Display.template.php Test failed
I have been changing things around and have broken my forum a couple of times and someone usually helps me fix it as I am still learning all this. I am assuming something was changed in the /Themes/default/Display.template.php so that this will not attach. I have had the same message with some other mods I have tried to install also. Would somone please look at it and see if you can figure out what is wrong. Like I said, I have tried but I am still new and I keep breaking the forum.
Thanks
Mike
Now this is a Mod i really want, Will it work with the Dark Don theme?
Is anyone getting errors when installing this? It tells me it's corrupt or not compatible but the description says for 2.0.2 which I am running. I have tried 2 different zips from the page and both the same error.
http://custom.simplemachines.org/mods/index.php?mod=883
please help. I instaled the enhanced quck reply but the both default and enhanced one are showin. If i should turn the quck reply off, both enhanced quick reply we still disapear.