ModernBB: WYSIWYG buttons won't work.
3 posters
Page 1 of 1
ModernBB: WYSIWYG buttons won't work.
It happenned in all of the forums, even on my testing one, but I'll provide my forum URL: http://lolirock.forumpolish.com. Some of WYSIWYG buttons don't work and return an error in console:
+ they all work everywhere but not there: http://lolirock.forumpolish.com/post?p= *number* &mode=editpost
+ they all work everywhere but not there: http://lolirock.forumpolish.com/post?p= *number* &mode=editpost
Last edited by Ritsu on April 29th 2018, 12:26 pm; edited 1 time in total
Re: ModernBB: WYSIWYG buttons won't work.
Hello, what's the problem? it works for me without problems in modernbb
Re: ModernBB: WYSIWYG buttons won't work.
Try to edit some post and switch WYSIWYG to text, or try to insert an image. It does nothing but returns an error.
Okay... it's a problem with my javascript. I'm doing some Polish translation for Forumotion and some code have a conflict with Sceditor, I think.
But... I still don't know which one does that!
I'll post my scripts (it's a certain file, I disabled it and it worked OK). Yeah, I know, they're stupid. I could do it by a function(). But it's an old long part of the code... Which I don't want to change much :'D
I think I found that! By an accident, but still, my problem is solved. That was a problem with this code:
Thanks for response!
Okay... it's a problem with my javascript. I'm doing some Polish translation for Forumotion and some code have a conflict with Sceditor, I think.
But... I still don't know which one does that!
I'll post my scripts (it's a certain file, I disabled it and it worked OK). Yeah, I know, they're stupid. I could do it by a function(). But it's an old long part of the code... Which I don't want to change much :'D
- Code:
$(document).ready(function(){
$('dl[id*="field_id"] > dt:contains(" :")').each(function(){
$(this).html($(this).html().split(" :").join(":"));
});
});
$(document).ready(function(){
$('dl[id*="field_id"] > dt').each(function(){
$(this).html($(this).html().split(" *:").join("*:"));
});
});
$(document).ready(function(){
$('span.label:contains(" :")').each(function(){
$(this).html($(this).html().split(" :").join(":"));
});
});
$(function() {
$('#search_menu a:contains("Advanced Search")').html('Wyszukiwanie zaawansowane');
$('.content p:contains("You are not logged in")').html('Obecnie nie jesteś zalogowany. <br> Czy chcesz się zarejestrować?');
$('p:contains("Are you sure you want to log out ?")').html('Jesteś pewien, że chcesz się wylogować?');
$('#cp-main p:contains("allows a rapid access")').html('Ta lista umożliwia błyskawiczny kontakt z osobami, z którymi często dyskutujesz.');
$('#cp-main p:contains("These requests are pending")').html('Te zaproszenia są oznaczone jako oczekujące; nie zostały ani zaakceptowane, ani odrzucone przez adresata.');
$('#cp-main p:contains("Foes are members")').html('Ignorowani to użytkownicy, których wiadomości nie będą dla ciebie widoczne i nie będą mogli wysłać do ciebie PW. <br> Zauważ, że nie można ignorować adminów i modów.');
$('#cp-main .panel + h1, #cp-main label, #cp-main em, #cp-main .page-title, a[href="/forum?mode=delete_cookies"]').each(function() {
var txt = $(this).html();
txt = txt.replace('Friends', 'Znajomi');
txt = txt.replace('Requests sent', 'Wysłane zaproszenia');
txt = txt.replace('Received requests', 'Otrzymane zaproszenia');
txt = txt.replace('Foes', 'Ignorowani');
txt = txt.replace('Ignorowani list', 'Lista ignorowanych');
txt = txt.replace('Add a foe', 'Dodaj do listy ignorowanych');
txt = txt.replace('No pending requests', 'Brak zaproszeń oczekujących');
txt = txt.replace('No sent request pending', 'Brak wysłanych zaproszeń oczekujących');
txt = txt.replace('has no foes yet', 'nie ma jeszcze ignorowanych');
txt = txt.replace('Znajomi list', 'Lista znajomych');
txt = txt.replace('Add a friend', 'Dodaj znajomego');
txt = txt.replace('has no friends yet', 'nie ma jeszcze znajomych');
txt = txt.replace('Delete the forum cookies', 'Usuń ciastka forum');
$(this).html(txt);
});
$('dd.lastpost, label:contains("following"), label:contains("Which group")').each(function() {
var text = $(this).html();
text = text.replace('at', 'o');
text = text.replace('Today', 'Dziś');
text = text.replace('Yesterday', 'Wczoraj');
text = text.replace('You are in the following group(s)', 'Jesteś w następujących grupach:');
text = text.replace('Which group would you like to join ?', 'Do której grupy chciałbyś dołączyć?');
$(this).html(text);
});
$('input.button2').removeClass('button2').addClass('button1');
$('p.right:contains("Skocz")').addClass('jump');
$('.message-footer a, a:contains("Śledź odpowiedzi w tym temacie"), #search_menu a').addClass('button1');
$('[value="Send"]').attr('value', 'Wyślij');
$('[value="Preview"]').attr('value', 'Podgląd');
$('[value="Move selection to profile"').attr('value', 'Przenieś zaznaczone na profil');
// portal
$(".module .h3:contains('Latest topics')").each(function() {
var text = $(this).html();
text = text.replace("Latest topics", "Ostatnie tematy");
$(this).html(text);
});
$(".module .h3:contains('Most Viewed Topics')").each(function() {
var text = $(this).html();
text = text.replace("Most Viewed Topics", "Najczęściej odwiedzane");
$(this).html(text);
});
$(".module .button1:contains('View the whole list')").each(function() {
var text = $(this).html();
text = text.replace("View the whole list", "Zobacz pełną listę");
$(this).html(text);
});
$(".module .h3:contains('Statistics')").each(function() {
var text = $(this).html();
text = text.replace("Statistics", "Statystyki");
$(this).html(text);
});
$(".module .h3:contains('Poll')").each(function() {
var text = $(this).html();
text = text.replace("Poll", "Ankieta");
$(this).html(text);
});
$(".module .h3:contains('topic starters')").each(function() {
var text = $(this).html();
text = text.replace("Most active topic starters", "Tematy najczęściej zaczynają");
$(this).html(text);
});
$(".module .button1:contains('Calendar')").each(function() {
var text = $(this).html();
text = text.replace("Calendar", "Kalendarz");
$(this).html(text);
});
$(".module .h3:contains('Top posters')").each(function() {
var text = $(this).html();
text = text.replace("Top posters", "Najbardziej aktywni");
$(this).html(text);
});
$(".module .h3:contains('Social bookmarking')").each(function() {
var text = $(this).html();
text = text.replace("Social bookmarking", "Zakładki mediów społecznościowych");
$(this).html(text);
});
$(".module .mod-stats-topics:contains('subjects')").each(function() {
var text = $(this).html();
text = text.replace("in", "w");
text = text.replace("subjects", "tematach");
$(this).html(text);
});
// forum
$('option:contains("None (use implicit)")').each(function() {
var text = $(this).text();
text = text.replace('None (use implicit)', 'Domyślny');
$(this).text(text);
});
$(".block:contains('birthday'), .fields1 label, .fields1 label > span, .edited-message").each(function() {
var text = $(this).html();
text = text.replace("No users have a birthday today", "Nikt dziś nie obchodzi urodzin");
text = text.replace("Title of the topic", "Tytuł tematu");
text = text.replace("Reason for editing", "Przyczyna edycji");
text = text.replace(" :", ":");
text = text.replace("Modify topic title", "Zmień tytuł tematu");
text = text.replace("Global announcement", "Ogłoszenie globalne");
text = text.replace("No users are having a birthday in the upcoming 7 days", "Nikt nie obchodzi urodzin w ciągu najbliższych 7 dni");
text = text.replace('Users having a birthday today :', 'Użytkownicy, którzy obchodzą dziś urodziny:');
text = text.replace('Users with a birthday within the next 7 days', 'Użytkownicy, którzy obchodzą urodziny w ciągu najbliższych 7 dni');
$(this).html(text);
});
$(".block:contains('There are currently')").each(function() {
var text = $(this).html();
text = text.replace("There are currently", "Jest obecnie");
text = text.replace("user(s) on the ChatBox:", "użytkownik(ów) na chatboxie:");
$(this).html(text);
});
$(".block-footer:contains('Legend')").each(function() {
var text = $(this).html();
text = text.replace("Legend", "Objaśnienia");
$(this).html(text);
});
$(".topic-date").each(function() {
var text = $(this).html();
text = text.replace('Yesterday at', 'Wczoraj o');
$(this).html(text);
});
$(".topic-actions-buttons a:first-child").each(function() {
var text = $(this).html();
text = text.replace("Start watching forum", "Obserwuj to forum");
$(this).html(text);
});
$('.topic-actions-buttons a').addClass('button1');
$(".h3 strong:contains('Permissions in this forum')").each(function() {
var text = $(this).html();
text = text.replace("Permissions in this forum:", "Twoje zezwolenia na tym forum");
$(this).html(text);
});
$("a[name='quickreply'] + .h3").each(function() {
var text = $(this).html();
text = text.replace("Quick reply:", "Szybka odpowiedź");
$(this).html(text);
});
// advanced profile
$("#profile-advanced-add a").each(function() {
var text = $(this).html();
text = text.replace("Add to my friends list", "Dodaj do listy znajomych");
text = text.replace("Add to my foes list", "Dodaj do listy ignorowanych");
text = text.replace('Remove from my friends list', 'Usuń z mojej listy znajomych');
text = text.replace('Remove from my foes list', 'Usuń z mojej listy ignorowanych');
$(this).html(text);
});
$(".mod-login-rank").each(function() {
var text = $(this).html();
text = text.replace("Rank", "Ranga");
$(this).html(text);
});
$(".module a:contains('See all friends')").each(function() {
var text = $(this).html();
text = text.replace("See all friends", "Zobacz wszystkich znajomych");
$(this).html(text);
});
$('.module .inner .h3:contains("friends")').each(function() {
var friends = $(this).html();
friends = friends.replace('friends', '');
friends = 'Przyjaciele użytkownika ' + friends;
var text = friends;
$(this).html(text);
});
$('#profile-advanced-left span:contains("Visitor messages")').each(function() {
var text = $(this).html();
text = text.replace("Visitor messages", "Komentarze");
$(this).html(text);
});
$('#profile-advanced-left span:contains("Statistics")').each(function() {
var text = $(this).html();
text = text.replace("Statistics", "Statystyki");
$(this).html(text);
});
$('#profile-advanced-left span:contains("Friends")').each(function() {
var text = $(this).html();
text = text.replace("Friends", "Znajomi");
$(this).html(text);
});
$('#profile-advanced-left span:contains("Contact")').each(function() {
var text = $(this).html();
text = text.replace("Contact", "Kontakt");
$(this).html(text);
});
$('#profile-advanced-details label').each(function() {
var text = $(this).html();
text = text.replace("Average per post", "Średnio na post przypada punktów");
text = text.replace("Latest topic", "Ostatni temat");
text = text.replace("Latest post", "Ostatni post");
text = text.replace("Visitor messages number", "Liczba komentarzy pod profilem");
text = text.replace("Last visitor message", "Ostatni komentarz pod profilem");
text = text.replace("Number of friends", "Liczba znajomych");
text = text.replace(" :", ":");
text = text.replace("Private messages", "Wiadomości prywatne");
text = text.replace("Last visit", "Ostatnia wizyta");
$(this).html(text);
});
$('#profile-advanced-details label a:contains("Find all topics")').each(function() {
var text = $(this).html();
text = text.replace('Find all topics where', 'Pokaż wszystkie tematy, w których wypowiedział się');
text = text.replace(' has posted in', '');
$(this).html(text);
});
$('#profile-advanced-details label a').each(function() {
var text = $(this).html();
text = text.replace('Find all messages posted by', 'Pokaż wszystkie wiadomości, które opublikował');
$(this).html(text);
});
$('#profile-advanced-details label a:contains("visitor messages")').each(function() {
var text = $(this).html();
text = 'Komentarze pod profilem autorstwa użytkownika ' + text;
text = text.replace('visitor messages', '');
$(this).html(text);
});
$('#profile-advanced-details label a:contains("Send a new message")').each(function() {
var text = $(this).html();
text = text.replace(' profile', '');
text = text.replace('Send a new message on', 'Napisz komentarz do profilu użytkownika');
$(this).html(text);
});
$('#profile-advanced-details li, #profile-advanced-details legend, #profile-advanced-details h1, #profile-advanced-details a:contains("Ban this member")').each(function() {
var text = $(this).html();
text = text.replace(' Yesterday at', 'Wczoraj o');
text = text.replace('Never', 'Nigdy');
text = text.replace('Ban this member', 'Zbanuj');
text = text.replace('Visitor messages', 'Komentarze pod profilem');
text = text.replace('Statistics', 'Statystyki');
$(this).html(text);
});
$('.panel .inner, #cp-main h1').each(function() {
var text = $(this).html();
text = text.replace('No message', 'Brak wiadomości');
text = text.replace('friends', '— znajomi użytkownika');
text = text.replace('has no friends yet', 'nie ma jeszcze znajomych');
$(this).html(text);
});
$('.ucp-main h1:contains("on"):contains("znajomi")').each(function() {
var text = $(this).html();
text = 'Znajomi użytkownika';
$(this).html(text);
});
$('.ucp-main h1:contains("Contact"), dd:contains("cannot"), p:contains("Foes are members")').each(function() {
var text = $(this).html();
text = text.replace('Contact user', 'Skontaktuj się z');
text = text.replace('You cannot add', 'Nie możesz dodać');
text = text.replace('to your ignore-list because he belongs to the forum Administrators or Moderators groups.', 'do twojej listy ignorowanych, ponieważ należy on do grupy adminów lub modów.');
$(this).html(text);
});
$('.inner, #cp-main h1, .message-footer a, .message-text, .left-box:contains("box")').each(function() {
var text = $(this).html();
text = text.replace('has no friends yet', 'nie ma jeszcze znajomych');
text = text.replace('View the profile', 'Zobacz profil');
text = text.replace('Add to my friends list', 'Dodaj do mojej listy znajomych');
text = text.replace('Add to my foes list', 'Dodaj do mojej listy ignorowanych');
text = text.replace('Remove from my friends list', 'Usuń z mojej listy znajomych');
text = text.replace('Remove from my foes list', 'Usuń z mojej listy ignorowanych');
text = text.replace('Rank', 'Ranga');
text = text.replace(' :', ':');
text = text.replace('Administrate user', 'Zarządzaj');
text = text.replace('Click here to return to your profile', 'Powrót do profilu');
text = text.replace('View profile', 'Pokaż profil');
text = text.replace('Your Inbox is empty', 'Twoja skrzynka odbiorcza jest pusta.');
text = text.replace('Your Savebox is empty', 'Twoja skrzynka zapisanych wiadomości jest pusta.');
text = text.replace('Your outbox is empty', 'Twoja skrzynka nadawcza (wiadomości przeczytane przez odbiorcę) jest pusta.');
text = text.replace('Your Sentbox is empty', 'Twoja skrzynka nadawcza (wiadomości nieprzeczytane przez odbiorcę) jest pusta.');
$(this).html(text);
});
});
I think I found that! By an accident, but still, my problem is solved. That was a problem with this code:
- Code:
$('.panel .inner, #cp-main h1').each(function() {
var text = $(this).html();
text = text.replace('No message', 'Brak wiadomości');
text = text.replace('friends', '— znajomi użytkownika');
text = text.replace('has no friends yet', 'nie ma jeszcze znajomych');
$(this).html(text);
});
Thanks for response!
Re: ModernBB: WYSIWYG buttons won't work.
Thanks for posting the solution.
Problem solved & topic archived.
|
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.
Similar topics
» WYSIWYG how does it work????
» [Only Topic] WYSIWYG doesn't work
» {username} wont work
» What exactly is WYSIWYG
» Automatic Form javascript code don't work anymore on ModernBB
» [Only Topic] WYSIWYG doesn't work
» {username} wont work
» What exactly is WYSIWYG
» Automatic Form javascript code don't work anymore on ModernBB
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum