Enhanced Quick Reply 2.0

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

Previous topic - Next topic

Kirby

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.

romuba

Slow... that was within minutes. Tahnks.
Ross Bartholomew
email: [email protected]
www.bartwebsites.com

Kirby

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 :)

MinasC

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 !

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?

MinasC

exactly , a link for a popup with all the smilies !

Kirby

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

MinasC

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 !

Jade Elizabeth

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?
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Kirby

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?

MinasC

you were right , it's ok now , thnx a lot for the support !

Aileen

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?

Jade Elizabeth

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 ;)
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Kirby

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;

Jade Elizabeth

Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Kirby


L'AltroWeb

#196
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
Please see also Hyperlink Insert option  ;)
Thanks in advance and sorry for my bad English  :)

Aileen


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
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.

L'AltroWeb

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
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  ;)

Advertisement: