Solved : Mchat Smilies ..... Thank you all
Forum rules
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
In order the get any support, you will have to do following:
1. Use a describing title!
2. Describe your problem and what happened when the problem occured
3. Tell us what version of phpBB3 you are currently using.
Else your topic may be ignored or locked!
Solved : Mchat Smilies ..... Thank you all
Hi guys :
i'm using Phpbb 3.0.7 PL1
and i have installed Mchat 1.2.17 translated to Arabic ......
the problem is when i click on a smiley to inser it in write-box , it nothing happen , and the IE-8 show rapport that there is a problem in editor.js .......
all permissions are OK , just this problem of smilies drive me crazy .....
i repeat when i click on smiley to put it nothing happen ...........
sorry for my English , .....
thnx ......
i'm using Phpbb 3.0.7 PL1
and i have installed Mchat 1.2.17 translated to Arabic ......
the problem is when i click on a smiley to inser it in write-box , it nothing happen , and the IE-8 show rapport that there is a problem in editor.js .......
all permissions are OK , just this problem of smilies drive me crazy .....
i repeat when i click on smiley to put it nothing happen ...........
sorry for my English , .....
thnx ......
Last edited by HH-E10 on 12 May 2010, 12:22, edited 1 time in total.
Re: Problem : Mchat Smilies .....
is it just the smilies? or the bbcode buttons also?
if so, check to make sure you have the right edits in your styles overall_header.html, also if you have another jquery file being called in the file, that could also cause that error!
if so, check to make sure you have the right edits in your styles overall_header.html, also if you have another jquery file being called in the file, that could also cause that error!
Re: Problem : Mchat Smilies .....
this problem is just with smilies , and i followed the steps 100% , what should i do ??
Re: Problem : Mchat Smilies .....
can i have a link to your site so i can check something!?
Re: Problem : Mchat Smilies .....
+ have check the file overall_header.html and it is perfect i think ......
here : http://www.mob.eb2a.com/vb/index.php
sorry it's Arabic ...
and the visitors has full permission to use Mchat .....
i hope i'm not disturbing you ......
Smilies = ابتسامات
Send = ارسل
in arabic ....
here : http://www.mob.eb2a.com/vb/index.php
sorry it's Arabic ...
and the visitors has full permission to use Mchat .....
i hope i'm not disturbing you ......
Smilies = ابتسامات
Send = ارسل
in arabic ....
Re: Problem : Mchat Smilies .....
PLS Help me Guys .......
- Stoker
- Site Admin
- Posts: 3558
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: Problem : Mchat Smilies .....
You need to check editor.js
Do you have any other mods installed that modify editor.js?
Try a fresh copy and do the edits again.
Do you have any other mods installed that modify editor.js?
Try a fresh copy and do the edits again.
Board rules! No PM support
Re: Problem : Mchat Smilies .....
yes i think i have HOT Editor ....
Re: Problem : Mchat Smilies .....
i'll try boss ...... thank you
This is the changes by Mchat on editor.js
------------------------------------------------------------
Find
Tip: This may be a partial find and not the whole line.
Replace with
Tip: Replace the preceding line(s) to find with the following lines.
Find
Tip: This may be a partial find and not the whole line.
Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.
try
Find
Tip: This may be a partial find and not the whole line.
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
-----------------------------------------------------------------------------------
and this is the changes by Hot Editor on editor.js
#
#-----[ FIND ]------------------------------------------
#
#
#-----[ REPLACE WITH ]------------------------------------------
#
###########################################################################
#
#-----[ FIX ]------------------------------------------
#
WHERE IS THE PROBLEM ????
This is the changes by Mchat on editor.js
------------------------------------------------------------
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
textarea.focus();
baseHeight = doc.selection.createRange().duplicate().boundingHeight;
Replace with
Tip: Replace the preceding line(s) to find with the following lines.
Code: Select all
/* === mChat focus fix Start === */
var mChatFocus = window.mChatFocusFix || false;
if(!mChatFocus)
{
textarea.focus();
}
baseHeight = doc.selection.createRange().duplicate().boundingHeight;
/* ==== mChat focus fix End ==== */
Find
Tip: This may be a partial find and not the whole line.
Code: Select all
for (sel_start = 0; range_all.compareEndPoints('StartToStart', range) < 0; sel_start++)
Tip: Add these lines on a new blank line before the preceding line(s) to find.
try
Code: Select all
{
Tip: This may be a partial find and not the whole line.
Code: Select all
caretPos.end = txtarea.sel_start;
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code: Select all
}
catch(e)
{
}
and this is the changes by Hot Editor on editor.js
#
#-----[ FIND ]------------------------------------------
#
Code: Select all
function insert_text(text, spaces, popup)
{
var textarea;
if (!popup)
{
textarea = document.forms[form_name].elements[text_name];
}
else
{
textarea = opener.document.forms[form_name].elements[text_name];
}
if (spaces)
{
text = ' ' + text + ' ';
}
if (!isNaN(textarea.selectionStart))
{
var sel_start = textarea.selectionStart;
var sel_end = textarea.selectionEnd;
mozWrap(textarea, text, '')
textarea.selectionStart = sel_start + text.length;
textarea.selectionEnd = sel_end + text.length;
}
else if (textarea.createTextRange && textarea.caretPos)
{
if (baseHeight != textarea.caretPos.boundingHeight)
{
textarea.focus();
storeCaret(textarea);
}
var caret_pos = textarea.caretPos;
caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text;
}
else
{
textarea.value = textarea.value + text;
}
if (!popup)
{
textarea.focus();
}
#-----[ REPLACE WITH ]------------------------------------------
#
Code: Select all
//HotEditor MOD
function insert_text(text, spaces, popup)
{
text = convertSize(text,"1");
if(editor_type=="0"){//BBCode Editor
WriteTEXT(text,"editor");
}
else{//WYSIWYG Editor
text=BBCodeToHTML(text);
WriteHTML(text,"editor");
}
#
#-----[ FIX ]------------------------------------------
#
WHERE IS THE PROBLEM ????
i have fix the problem ..
the problem was in the files editor.js , because before i have installed HotEditor , so this is war i do ...
1- i opened fresh files of editor.js ( not modified )
2- i have edit this files like Mchat said .....
3- than i return to HotEditor in the step that said to replace :
with this :
i didn't replace and i have add it after ...... and it work perfect .........
( this is on Subsilver2 )
1- i opened fresh files of editor.js ( not modified )
2- i have edit this files like Mchat said .....
3- than i return to HotEditor in the step that said to replace :
Code: Select all
function insert_text(text, spaces, popup)
{
var textarea;
if (!popup)
{
textarea = document.forms[form_name].elements[text_name];
}
else
{
textarea = opener.document.forms[form_name].elements[text_name];
}
if (spaces)
{
text = ' ' + text + ' ';
}
if (!isNaN(textarea.selectionStart))
{
var sel_start = textarea.selectionStart;
var sel_end = textarea.selectionEnd;
mozWrap(textarea, text, '')
textarea.selectionStart = sel_start + text.length;
textarea.selectionEnd = sel_end + text.length;
}
else if (textarea.createTextRange && textarea.caretPos)
{
if (baseHeight != textarea.caretPos.boundingHeight)
{
textarea.focus();
storeCaret(textarea);
}
var caret_pos = textarea.caretPos;
caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ' ' ? caret_pos.text + text + ' ' : caret_pos.text + text;
}
else
{
textarea.value = textarea.value + text;
}
if (!popup)
{
textarea.focus();
}
Code: Select all
//HotEditor MOD
function insert_text(text, spaces, popup)
{
text = convertSize(text,"1");
if(editor_type=="0"){//BBCode Editor
WriteTEXT(text,"editor");
}
else{//WYSIWYG Editor
text=BBCodeToHTML(text);
WriteHTML(text,"editor");
}
( this is on Subsilver2 )