Edytor w dodatkowym polu profilu

Założony przez  Sarovak.

Wersja skryptu MyBB: 1.8.7
Adres forum: TerraSpace.pl
Na czym polega problem (screen, opis, komunikaty):

Cześć.
Posiadam na forum dodatkowe pole profilu "O sobie".
Wszystko co jest w nim wpisane wyświetla się na profilu Użytkownika (taka edycja profilu). Jednak działanie to jest utrudnione, ponieważ w panelu użytkownika w miejscu gdzie jest to pole nie ma żadnego edytora BBCode. Czy jest możliwość dodania takowego do omawianego pola?
Pozdrawiam i proszę o pomoc.

[Obrazek: cdeebc4317324eec9c0b9c997b3e799e.png]
usercp_profile_customfield w grupie panelu użytkownika dodaj do komórki która zawiera {$code} klasę class="bbeditor"
do usercp_profile dodaj w sekcji <head> pod headerinclude
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/sceditor/editor_themes/{$theme['editortheme']}" type="text/css" media="all" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/jquery.sceditor.bbcode.min.js?ver=1805"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/bbcodes_sceditor.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/sceditor/editor_plugins/undo.js?ver=1805"></script>
<script type="text/javascript">
var partialmode = false,
opt_editor = {
    plugins: "bbcode,undo",
    style: "{$mybb->asset_url}/jscripts/sceditor/textarea_styles/jquery.sceditor.{$theme['editortheme']}",
    rtl: {$lang->settings['rtl']},
    locale: "mybblang",
    enablePasteFiltering: true,
    emoticonsEnabled: false,
    emoticonsCompat: true,
    toolbar: "bold,italic,underline,strike|left,center,right,justify|font,size,color,removeformat|horizontalrule,image,email,link,unlink|video|bulletlist,orderedlist|code,php,quote|maximize,source",
};
(function ($) {
$.sceditor.locale["mybblang"] = {
    "Bold": "Pogrubienie",
    "Italic": "Kursywa",
    "Underline": "Podkreślenie",
    "Strikethrough": "Przekreślenie",
    "Subscript": "Indeks dolny",
    "Superscript": "Indeks górny",
    "Align left": "Wyrównaj do lewej",
    "Center": "Wyśrodkuj",
    "Align right": "Wyrównaj do prawej",
    "Justify": "Wyjustuj",
    "Font Name": "Nazwa czcionki",
    "Font Size": "Rozmiar czcionki",
    "Font Color": "Kolor czcionki",
    "Remove Formatting": "Usuń formatowanie",
    "Cut": "Wytnij",
    "Your browser does not allow the cut command. Please use the keyboard shortcut Ctrl/Cmd-X": "Twoja przeglądarka nie obsługuje wycinania. Skorzystaj ze skrótu klawiszowego Ctrl/Cmd+X.",
    "Copy": "Kopiuj",
    "Your browser does not allow the copy command. Please use the keyboard shortcut Ctrl/Cmd-C": "Twoja przeglądarka nie obsługuje kopiowania. Skorzystaj ze skrótu klawiszowego Ctrl/Cmd+C.",
    "Paste": "Wklej",
    "Your browser does not allow the paste command. Please use the keyboard shortcut Ctrl/Cmd-V": "Twoja przeglądarka nie obsługuje wklejania. Skorzystaj ze skrótu klawiszowego Ctrl/Cmd+V.",
    "Paste your text inside the following box:": "Wklej swój tekst do poniższego pola:",
    "PasteText": "Wklej tekst",
    "Numbered list": "Lista numerowana",
    "Bullet list": "Lista punktowana",
    "Undo": "Cofnij",
    "Redo": "Ponów",
    "Rows:": "Wierszy:",
    "Cols:": "Kolumn:",
    "Insert a table": "Wstaw tabelę",
    "Insert a horizontal rule": "Wstaw poziomą linię",
    "Code": "Kod",
    "Width (optional):": "Szerokość (opcjonalnie):",
    "Height (optional):": "Wysokość (opcjonalnie):",
    "Insert an image": "Wstaw obrazek",
    "E-mail:": "Adres e-mail:",
    "Insert an email": "Wstaw adres e-mail",
    "URL:": "Adres URL:",
    "Insert a link": "Wstaw link",
    "Unlink": "Usuń link",
    "More": "Więcej",
    "Insert an emoticon": "Wstaw emotikon",
    "Video URL:": "Adres URL wideo:",
    "Video Type:": "Typ wideo:",
    "Insert": "Wstaw",
    "Insert a YouTube video": "Wstaw wideo z serwisu YouTube",
    "Insert current date": "Wstaw aktualną datę",
    "Insert current time": "Wstaw aktualny godzinę",
    "Print": "Drukuj",
    "View source": "Pokaż źródło",
    "Description (optional):": "Opis (opcjonalnie):",
    "Enter the image URL:": "Wprowadź adres URL obrazka:",
    "Enter the e-mail address:": "Wprowadź adres e-mail:",
    "Enter the displayed text:": "Wpisz tekst z obrazka:",
    "Enter URL:": "Wprowadź adres URL:",
    "Enter the YouTube video URL or ID:": "Wprowadź adres URL wideo lub jego ID:",
    "Insert a Quote": "Wstaw cytat",
    "Invalid YouTube video": "Nieprawidłowe wideo",
    "Dailymotion": "Dailymotion",
    "MetaCafe": "MetaCafe",
    "Veoh": "Veoh",
    "Vimeo": "Vimeo",
    "Youtube": "Youtube",
    "Facebook": "Facebook",
    "LiveLeak": "LiveLeak",
    "Insert a video": "Wstaw wideo",
    "PHP": "Kod PHP",
    "Maximize": "Maksymalizuj"
}})(jQuery);
$(function() {
    $(".bbeditor > textarea").sceditor(opt_editor);

    MyBBEditor = $(".bbeditor > textarea").sceditor("instance");
    {$sourcemode}
});
</script>
@Matslom Edytor dobrze działa, tylko zamiast BBCode na profilu wyświetlają mi się znaczniki.
Jak to naprawić?
Trzeba podpiąć parser postów pod to pole. Jakiś prosty plugin można do tego napisać. Spróbuję coś wieczorem zrobić.



Użytkownicy przeglądający ten wątek:

1 gości