Massege Editor Issue
4 posters
Page 1 of 1
Massege Editor Issue
I was trying to add a word counter to the editor, but it didn't work for my forum. The javascript I used for it was the one provided by @Ange Tuteur
This one - https://help.forumotion.com/t131191-add-a-word-counter-to-the-editor
It also created some sort of an issue with the massage editor itself. Suddenly i had to redesign to black, but that was easy. I had another javascript, which would not allow you to exit, meanwhile writing a post in the editor, which is essential for RP-ing forum, because accidents happen ... but now this doesn't work. All of these happened after i placed the word counter javascript. I deleted it afterwards, but maybe it changed something? how is that possible thou?
I am searching for a way to fix all this and add the word counter. Thanks beforehand.
Ange if you could check it out when u have some free time id appreciate it :3
Edit: daredevil.nightforum.net
This one - https://help.forumotion.com/t131191-add-a-word-counter-to-the-editor
It also created some sort of an issue with the massage editor itself. Suddenly i had to redesign to black, but that was easy. I had another javascript, which would not allow you to exit, meanwhile writing a post in the editor, which is essential for RP-ing forum, because accidents happen ... but now this doesn't work. All of these happened after i placed the word counter javascript. I deleted it afterwards, but maybe it changed something? how is that possible thou?
I am searching for a way to fix all this and add the word counter. Thanks beforehand.
Ange if you could check it out when u have some free time id appreciate it :3
Edit: daredevil.nightforum.net
Re: Massege Editor Issue
when removing the code did you remove it or just turn it off by click all the tick boxes to show Blank and then saved.
Why do i ask this ?
Some times when you just turn off that one code it still works in the background even thou the tick boxes are empty.
make sure you remove the code from your forum completely.
Adding a code to your Java codes will not change any other code used on your forum before this code was added each code is made and will always be non changed until you edit it your self
Why do i ask this ?
Some times when you just turn off that one code it still works in the background even thou the tick boxes are empty.
make sure you remove the code from your forum completely.
Adding a code to your Java codes will not change any other code used on your forum before this code was added each code is made and will always be non changed until you edit it your self
Re: Massege Editor Issue
Yes, I removed the code completely by deleting it from the forum. That's what makes this so strange! I am definitely sure that it all happened after i imported the https://help.forumotion.com/t131191-add-a-word-counter-to-the-editor word count thingy for the editor. Im doing my forum so slow that when i screw something is easy to notice what i did last.
but how is this even possible... I really don't know. As i said after that i only noticed that the editor had changed back to default, so i had to redesign the editor to darker colors again. The css tags changed? idk. but they did somehow.
but how is this even possible... I really don't know. As i said after that i only noticed that the editor had changed back to default, so i had to redesign the editor to darker colors again. The css tags changed? idk. but they did somehow.
Re: Massege Editor Issue
Do you mean that after adding the code the editor turned black?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Massege Editor Issue
No, after adding the code the editor went to default... bluish. After that i had to recolor it to black again, to match the forum theme.
Re: Massege Editor Issue
Bump and update. I think the whole sceditor is gone... and that might be the problem.
I searched similar problems and tried to clear chache, re-synchronize, change browser... and nothing worked. I don't remember modifying the overall_header prior the problem happening. Should i provide my templates?
I searched similar problems and tried to clear chache, re-synchronize, change browser... and nothing worked. I don't remember modifying the overall_header prior the problem happening. Should i provide my templates?
Re: Massege Editor Issue
Update and bump. OK somehow... magically... it fixed itself. The other night only the quick reply editor was fixed and i decided to wait until today, instead of replying here... and today check it out... both the quick reply editor and the other in the normal reply are totally fine. The sceditor is back, the javascripts are working... JUST srsly what the hell...
Anyway i placed the word counter jscript again... and it's working. Good. Now since in my forum we use cyrillic alphabet, how can i modify the script so it can work for the cyrillic words? Atm its only working for english.
Anyway i placed the word counter jscript again... and it's working. Good. Now since in my forum we use cyrillic alphabet, how can i modify the script so it can work for the cyrillic words? Atm its only working for english.
Re: Massege Editor Issue
Hello i have seen that some other forums have had the same problem with codes not working in there JavaScript's our tech team have been working on the problem so it looks like one of them forums was yours also We do not have any news on if the bugs was fixed fully but as your problem is now fixed i take it your would like to mark this as solved ?
Re: Massege Editor Issue
I see. Alright then :3
But... can we not mark it as solved? When i made this topic i was looking for a fix to both the editor and the jscript for word counting... and i am still looking for a way to do that...
EDIT: No seems like it's not entirely fixed... when i click on new topic, the old editor is there and the sceditor is gone.
EDIT2: OMG the sceditor is actually gone... i just wrongly found one topic in which its fine... on the others its gone. Can u please confirm this, so to see if the problem is not in me?
With Sceditor
Without Sceditor
Link to the only topic in which i see sceditor and all js work - http://daredevil.nightforum.net/t204-c-enemy-without
Link to some other random topic - http://daredevil.nightforum.net/t200-what-do-i-desire#332
But... can we not mark it as solved? When i made this topic i was looking for a fix to both the editor and the jscript for word counting... and i am still looking for a way to do that...
Now since in my forum we use cyrillic alphabet, how can i modify the script so it can work for the cyrillic words? Atm its only working for english.
EDIT: No seems like it's not entirely fixed... when i click on new topic, the old editor is there and the sceditor is gone.
EDIT2: OMG the sceditor is actually gone... i just wrongly found one topic in which its fine... on the others its gone. Can u please confirm this, so to see if the problem is not in me?
With Sceditor
Without Sceditor
Link to the only topic in which i see sceditor and all js work - http://daredevil.nightforum.net/t204-c-enemy-without
Link to some other random topic - http://daredevil.nightforum.net/t200-what-do-i-desire#332
Re: Massege Editor Issue
Do you have a test account we can use?
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Massege Editor Issue
Can you please send what JavaScripts you are using?
I have the same issue on one of my forums.
I have the same issue on one of my forums.
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Massege Editor Issue
i provided u with a test acc. im super busy at work and wont be able to send the scripta to here from my phone.. can u just use the test acc? thanks
Re: Massege Editor Issue
Yes, I can check it out later.
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Massege Editor Issue
Sorry, I completely forgot, checking your forum now.
I disabled your JavaScript and it worked again. When I enabled JavaScript the editor options disappeared again. It is a code in your JavaScript, testing now. Try deleting one JavaScript at a time, if nothing changes in the editor remake the code, I suggest you copy the code before deleting.
I disabled your JavaScript and it worked again. When I enabled JavaScript the editor options disappeared again. It is a code in your JavaScript, testing now. Try deleting one JavaScript at a time, if nothing changes in the editor remake the code, I suggest you copy the code before deleting.
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Massege Editor Issue
Alright i tried them one by one... deleted all and inserted them back. It seems like the one causing the problem and the one to make the sceditor disappear was the following.
which is strange since it was only adding a new variable??? Anyway this solved my editor problem, thanks bro.
Now to my other question with the sceditor... the word counter in the editor jscript... is there any way to make it count cyrilic words instead of english words?
- Code:
$(function() {
var avatars = $(_userdata.avatar).attr('src');
document.getElementById('user_avatar').src = avatars;
});
which is strange since it was only adding a new variable??? Anyway this solved my editor problem, thanks bro.
Now to my other question with the sceditor... the word counter in the editor jscript... is there any way to make it count cyrilic words instead of english words?
Re: Massege Editor Issue
Glad you found the issue that was causing the Editor to not work.
Please send your code here for the word counter when you can.
Please send your code here for the word counter when you can.
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Massege Editor Issue
This is the code. Now how can i make it count cyrilic alphabet?
- Code:
$(function(){$(function(){
var MinNumberOfWords = 5;
var LetterCountPerWord = 3;
var ico_compl = "http://i73.servimg.com/u/f73/18/10/89/49/ok-gre10.png";
var ico_incompl = "http://i73.servimg.com/u/f73/18/10/89/49/exclam10.png";
if($("#text_editor_textarea").length != 0){
$("input[type='submit'][name='post']").attr("disabled", true).css("opacity", "0.5");
$(".sceditor-container").after("<br/><div id='div_minchars' align='center'><div id='div_minchars_header'> Minimum words to send a message: " + MinNumberOfWords + " (at least " + LetterCountPerWord + " letters)</div><div id='div_minchars_info'></div></div>");
var sceditor = $("#text_editor_textarea").sceditor("instance");
var str = sceditor.val();
var regex = new RegExp('\\w{' + LetterCountPerWord + ',}\\b', 'g');
var str_arr = str.match(regex);
var str_len = str_arr == null ? 0 : str_arr.length;
if(str_len >= MinNumberOfWords) $("input[type='submit'][name='post']").attr("disabled", false).css("opacity", "1");
sceditor.keyUp(function(e) {
str = sceditor.val();
str_arr = str.match(regex);
str_len = str_arr == null ? 0 : str_arr.length;
if(str_len >= MinNumberOfWords) {
$("#div_minchars_info").html("You've written <span style='color:green'>" + str_len + "</span> word(s). You can now send the message <img src='" + ico_compl + "' />");
$("input[type='submit'][name='post']").attr("disabled", false).css("opacity", "1");
}else{
$("#div_minchars_info").html("You've written <span style='color:red'>" + str_len + "</span> word(s). You need " + (MinNumberOfWords - str_len) + " word(s) to send this message <img src='" + ico_incompl + "' />");
$("input[type='submit'][name='post']").attr("disabled", true).css("opacity", "0.5");
}
});
}
})});
Re: Massege Editor Issue
So you would like the English words to be in Cyrilic? If so, post the translation so I can change the code.
Take Notes- Helper
- Posts : 2337
Reputation : 324
Language : English
Location : Forumountain
Re: Massege Editor Issue
Ok here is a copy of a random cyrilic post. Thanks!
- click:
- Тъмната ми закачулена фигура бе точно тук до неговата, облегнала се на хладната рамка на тъмен прозорец, до стената, който ни отделяше един от друг. Бях в другата стая и може би това щеше да го стресне малко, ако знаеше че го наблюдавах, макар и от другата страна, аз го усещах. Още когато той прекрачи прага за да дойде тук, аз го усетих. Усещах всички тях. Такова беше значението на моето съществуване.
Re: Massege Editor Issue
Bump.
I hope u understand what im asking for the word counter as it is is only counting english words... if u type in cyrilic ones.. it wont count them. I want it to also count cyrilic.
I hope u understand what im asking for the word counter as it is is only counting english words... if u type in cyrilic ones.. it wont count them. I want it to also count cyrilic.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum