News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

[Depreciated]

Started by Depreciated, July 24, 2008, 03:18:45 PM

Previous topic - Next topic

spiros

There is an issue with empty drop-down box items. I guess it is because there is some stuff missing? I.e. I can see

array(
'id' => 'wysiwyg_quick_reply',
'label' => $txt['wysiwyg_quick_reply'],
'options' => array(
0 => $txt['wysiwyg_quick_reply0'],
1 => $txt['wysiwyg_quick_reply1'],
2 => $txt['wysiwyg_quick_reply2'],
3 => $txt['wysiwyg_quick_reply3'],
4 => $txt['wysiwyg_quick_reply4'],
5 => $txt['wysiwyg_quick_reply5'],
6 => $txt['wysiwyg_quick_reply6'],
7 => $txt['wysiwyg_quick_reply7'],
),
'default' => true,
),


But in the language strings wysiwyg_quick_reply1 is missing resulting in a lot of confusion and empty lines in the selection box (i.e. "Choose Quick Reply Type" does not appear at all):

// Wysiwyg Quick Reply
$txt['wysiwyg_quick_reply'] = 'Choose Quick Reply Type';
$txt['wysiwyg_quick_reply0'] = 'WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply2'] = 'WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply3'] = 'WYSIWYG Only';
$txt['wysiwyg_quick_reply4'] = 'Non-WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply6'] = 'Non-WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply7'] = 'Non-WYSIWYG (standard)';

dembow

i'm getting an error in the logs now that i'm on 2.0.3 in the Profile.template.php file line 1633:


<option value="'.$i.'"', ($i == $j ? ' selected="selected"' : ''), '>', $txt['wysiwyg_quick_reply'.$i],'</option>';


anyone knows what's happening?

skydiamond

Quote from: mrselnombre on June 24, 2011, 07:18:17 AM
Both 1 and 5 are missing?

so i added
$txt['wysiwyg_quick_reply1'] = '.';
and
$txt['wysiwyg_quick_reply5'] = '.';

to stop the error until i can find out what it is supposed to say

Great!  8) I also changed the dot with

$txt['wysiwyg_quick_reply1'] = '-';

MechSpecs

Does this work with 2.0.4?

MechSpecs

Due to the lack of reply I went ahead and tested this out on my sandbox server and it works with 2.0.4 Vivanto theme.

Works great too!

Is there a way to space it out so that it looks like the regular one and not everything is centered on the page?

MechSpecs

Been getting an error in my error log that I think may be related to this...

Quote
Apply Filter: Only show the error messages of this URL
http://www.yoursitehere.com/forum/index.php?action=profile;area=theme;u=1832
Apply Filter: Only show the errors with the same message
8: Undefined index: wysiwyg_quick_reply5
Apply Filter: Only show the errors from this file
File: /home/yourwebsite/www/www/forum/Themes/vivanto_20/languages/Settings.english.php (edit_options sub template - eval?)
Line: 1537

Any ideas?

MechSpecs

Quote from: MechSpecs on June 23, 2013, 09:15:25 PM
Been getting an error in my error log that I think may be related to this...

Quote
Apply Filter: Only show the error messages of this URL
http://www.yoursitehere.com/forum/index.php?action=profile;area=theme;u=1832
Apply Filter: Only show the errors with the same message
8: Undefined index: wysiwyg_quick_reply5
Apply Filter: Only show the errors from this file
File: /home/yourwebsite/www/www/forum/Themes/vivanto_20/languages/Settings.english.php (edit_options sub template - eval?)
Line: 1537

Any ideas?

Wow nobody else has this error in their error log?

FrizzleFried

The answer is in this thread.   Essentially there are 2 of the 5 settings (from my recollection) that "don't work" and don't have text strings assigned to them.  You basically have to assign the text strings in the language file... however since they don't work most are assigning "-" as the text string.

Now,  this is all from recollection from last year for me... so search this massive thread for specifics.

MechSpecs

#608
Thanks for the heads up.

Also want to see if I can isolate the double space issue with the quick reply box that I'm running in to.

My OCD kicks in a LOT these days!

I just did this...

Quote
// Wysiwyg Quick Reply
$txt['wysiwyg_quick_reply'] = 'Choose Quick Reply Type';
$txt['wysiwyg_quick_reply0'] = 'WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply1'] = '-';
$txt['wysiwyg_quick_reply2'] = 'WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply3'] = 'WYSIWYG Only';
$txt['wysiwyg_quick_reply4'] = 'Non-WYSIWYG (with bbc buttons and smilies)';
$txt['wysiwyg_quick_reply5'] = '-';
$txt['wysiwyg_quick_reply6'] = 'Non-WYSIWYG (with smilies only)';
$txt['wysiwyg_quick_reply7'] = 'Non-WYSIWYG (standard)';

That seemed to fix my issue with the error log until I can backtrack and find out what those actually do and label them correctly.

Neo_TE

Quote from: MechSpecs on June 17, 2013, 09:56:53 AM
Does this work with 2.0.4?
Quote from: MechSpecs on June 18, 2013, 06:54:14 PM
Due to the lack of reply I went ahead and tested this out on my sandbox server and it works with 2.0.4 Vivanto theme.

Works great too!

Is there a way to space it out so that it looks like the regular one and not everything is centered on the page?


Thank you very much for this info. :)

kingkingston

i noticed that with this mod, it seems to stop the quick reply from working

lmerega

Hallo, this mod works flawlessly, but now I cannot quote any post.
It stops in "Loading" message.

Any idea?

sheryltoo


CedarMill

sheryltoo, this module works with SMF 2.0.7 8)
but the edges of the message box will vary slightly...
SMF 2.0.7

Rain Forest

#614
On 2.0.8 WYSIWYG (smilies only) won't work when you click on the smileys. When I put the option WYSIWYG (smilies + bbc buttons) the smilies and bbc buttons both work perfect.. Just the WYSIWYG (smilies only) option is not.. And that's the one I need.. :/

No errors during installation
No errors in error log..
Quick reply is on by default.
I changed the option ''Choose Quick Reply Type'' to ''WYSIWYG (with smilies only''  in 'Configure guest and new user options for this theme' to everyone.


bucch

Woking well on SMF 2.0.9 and SilentWave theme by Dziner.

I attached language files with italian translation.

Darkness_Black

Hello,

I installed Mod 2.3, the default theme is ok but other themes will not work and will not appear smiles and formatting box:



I correctly edited the display.template and index.css with the parse information but does not work, only the default theme

I do not know where to look to correct this error in other themes, does anyone know how to help me?

I'm using SMF 2.0.10, havvo theme and theme Lucid_Dreams_V2

Translator - Brazilian

Não respondo MP de ajuda, Poste sua duvida no forum!!! Se alguém te Ajudou Agradeça!!!

Autumn13

Has anyone fixed the double space issue? I only saw one mention of it

Juvept

anyone knows who to fix the loading bug when click on quote? :s

Iviiik

Quote from: Juvept on October 05, 2015, 11:47:41 AM
anyone knows who to fix the loading bug when click on quote? :s

I have the same problem?


Problem is probably here, in 'oEditorHandle' bug again... who now how fit it?

Quote
// This is the callback function used after the XMLhttp request.
QuickReply.prototype.onQuoteReceived = function (oXMLDoc)
{
   var sQuoteText = '';

   for (var i = 0; i < oXMLDoc.getElementsByTagName('quote')[0].childNodes.length; i++)
      sQuoteText += oXMLDoc.getElementsByTagName('quote')[0].childNodes.nodeValue;

   replaceText(sQuoteText, document.forms.postmodify.message);

   ajax_indicator(false);
}
Replace With: [Vybrat]

// This is the callback function used after the XMLhttp request.
QuickReply.prototype.onQuoteReceived = function (oXMLDoc)
{
   var text = "";

   for (var i = 0, n = oXMLDoc.getElementsByTagName("quote")[0].childNodes.length; i < n; i++)
      text += oXMLDoc.getElementsByTagName("quote")[0].childNodes.nodeValue;

   oEditorHandle_message.insertText(text, false, true);

   ajax_indicator(false);
}

Find: [Vybrat]
getXMLDocument(smf_prepareScriptUrl(this.opt.sScriptUrl) + 'action=quotefast;quote=' + iMessageId + ';xml', this.onQuoteReceived);
Replace With: [Vybrat]
getXMLDocument(smf_prepareScriptUrl(this.opt.sScriptUrl) + 'action=quotefast;quote=' + iMessageId + ';xml;pb=message;mode=' + (oEditorHandle_message.bRichTextEnabled ? 1 : 0), this.onQuoteReceived);

Advertisement: