Advertisement:

Author Topic: WYSIWYG Quick Reply v2  (Read 216285 times)

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,734
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: WYSIWYG Quick Reply
« Reply #600 on: December 16, 2012, 05:51:36 PM »
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

Code: [Select]
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):

Code: [Select]
// 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)';

Offline dembow

  • Jr. Member
  • **
  • Posts: 112
  • Gender: Male
Re: WYSIWYG Quick Reply
« Reply #601 on: January 16, 2013, 02:13:10 PM »
i'm getting an error in the logs now that i'm on 2.0.3 in the Profile.template.php file line 1633:

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

anyone knows what's happening?

Offline skydiamond

  • Semi-Newbie
  • *
  • Posts: 19
Re: WYSIWYG Quick Reply
« Reply #602 on: May 05, 2013, 04:49:16 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

Code: [Select]
$txt['wysiwyg_quick_reply1'] = '-';

Offline MechSpecs

  • Jr. Member
  • **
  • Posts: 131
Re: WYSIWYG Quick Reply
« Reply #603 on: June 17, 2013, 09:56:53 AM »
Does this work with 2.0.4?

Offline MechSpecs

  • Jr. Member
  • **
  • Posts: 131
Re: WYSIWYG Quick Reply
« Reply #604 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?

Offline MechSpecs

  • Jr. Member
  • **
  • Posts: 131
Re: WYSIWYG Quick Reply
« Reply #605 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?

Offline MechSpecs

  • Jr. Member
  • **
  • Posts: 131
Re: WYSIWYG Quick Reply
« Reply #606 on: June 26, 2013, 12:57:56 AM »
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?

Offline FrizzleFried

  • Drama-Monger
  • Sr. Member
  • ****
  • Posts: 757
Re: WYSIWYG Quick Reply
« Reply #607 on: June 26, 2013, 11:40:27 AM »
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.

Offline MechSpecs

  • Jr. Member
  • **
  • Posts: 131
Re: WYSIWYG Quick Reply
« Reply #608 on: June 26, 2013, 01:02:06 PM »
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.
« Last Edit: June 26, 2013, 01:12:41 PM by MechSpecs »

Neo_TE

  • Guest
Re: WYSIWYG Quick Reply
« Reply #609 on: June 26, 2013, 02:33:31 PM »
Does this work with 2.0.4?
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. :)

Offline kingkingston

  • Full Member
  • ***
  • Posts: 650
  • Gender: Male
    • @ozzysportsforum on Twitter
    • aussiesportsforum.com
Re: WYSIWYG Quick Reply
« Reply #610 on: August 06, 2013, 12:12:53 AM »
i noticed that with this mod, it seems to stop the quick reply from working

Offline lmerega

  • Newbie
  • *
  • Posts: 5
Re: WYSIWYG Quick Reply
« Reply #611 on: October 28, 2013, 10:55:07 AM »
Hallo, this mod works flawlessly, but now I cannot quote any post.
It stops in "Loading" message.

Any idea?

Offline sheryltoo

  • Jr. Member
  • **
  • Posts: 295
    • Sheryl's Page
Re: WYSIWYG Quick Reply
« Reply #612 on: February 23, 2014, 10:22:35 AM »
Will this work with 2.07?

Offline CedarMill

  • Semi-Newbie
  • *
  • Posts: 22
  • Gender: Male
Re: WYSIWYG Quick Reply
« Reply #613 on: April 21, 2014, 12:26:52 PM »
sheryltoo, this module works with SMF 2.0.7 8)
but the edges of the message box will vary slightly...
SMF 2.0.7

Offline Rain Forest

  • Full Member
  • ***
  • Posts: 657
  • 𝒢𝒾𝓇𝒶𝒻𝒻𝑒
    • Love Troops
Re: WYSIWYG Quick Reply
« Reply #614 on: October 13, 2014, 05:59:15 PM »
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.

« Last Edit: October 13, 2014, 06:12:35 PM by .Elephant »

Offline bucch

  • Newbie
  • *
  • Posts: 2
Re: WYSIWYG Quick Reply
« Reply #615 on: December 08, 2014, 02:25:45 PM »
Woking well on SMF 2.0.9 and SilentWave theme by Dziner.

I attached language files with italian translation.

Offline Darkness_Black

  • Sophist Member
  • *****
  • Posts: 1,141
  • Gender: Male
  • Translator SMF - BR
    • www.facebook.com/gilvanroberto on Facebook
    • @gilvanroberto on Twitter
    • Translator SMF - BR
Re: WYSIWYG Quick Reply
« Reply #616 on: May 03, 2015, 09:14:49 PM »
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!!!

Offline Autumn13

  • Semi-Newbie
  • *
  • Posts: 98
Re: WYSIWYG Quick Reply
« Reply #617 on: June 02, 2015, 12:48:12 PM »
Has anyone fixed the double space issue? I only saw one mention of it

Offline Juvept

  • Newbie
  • *
  • Posts: 3
Re: WYSIWYG Quick Reply
« Reply #618 on: October 05, 2015, 11:47:41 AM »
anyone knows who to fix the loading bug when click on quote? :s

Offline Iviiik

  • Jr. Member
  • **
  • Posts: 117
  • Gender: Female
  • SMF 2.0.11 :)
    • GoPro Travel
Re: WYSIWYG Quick Reply
« Reply #619 on: January 30, 2016, 10:13:07 PM »
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);