- Сообщений: 26
- Спасибо получено: 0
Joomla 4. Компонент K2 и форк K2ForJ4 (18 янв 2024)
Если вас, как и меня, достало выслушивать (вычитывать) бесконечные обещания разработчика K2 опубликовать версию компонента K2 под Joomla 4 (без чего невозможно реализовать апгрейд from Joomla 3 to Joomla 4) - воспользуйтесь форком K2ForJ4. Который в данный момент установлен и без каких-либо проблем работает на этом веб-сайте.
wysibb
- Nup
- Автор темы
- Не в сети
- Осваиваюсь на форуме
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
- serge
- Не в сети
- Модератор
- Сообщений: 972
- Спасибо получено: 144
How to use image upload?? do not work upload. not add to bbc code editor.
It's easy, i using wysibb in my cms and can explain you how to add it:
1. found section:
Code:img : { title: CURLANG.img, ..... }
Change this section img { } to:
Code:img : { title: CURLANG.img, buttonHTML: '<span class="fonticon ve-tlb-img1">\uE006</span>', hotkey: 'ctrl+shift+1', addWrap: true, modal: { title: CURLANG.modal_img_title, width: "600px", tabs: [ { title: CURLANG.modal_img_tab1, input: [ {param: "SRC",title:CURLANG.modal_imgsrc_text,validation: '^http(s)?://.*?\.(jpg|png|gif|jpeg)$'} ] }, { //The second tab title: CURLANG.modal_img_tab2, html: '<div id="imguploader"> <form id="fupform" class="upload" action="{img_uploadurl}" method="post" enctype="multipart/form-data" target="fupload"><input type="hidden" name="iframe" value="1"/><input type="hidden" name="idarea" value="' + id + '" /><div class="fileupload"><input id="fileupl" class="file" type="file" name="img" /><button id="nicebtn" class="wbb-button">' + CURLANG.modal_img_btn + '</button> </div> </form> </div><iframe id="fupload" name="fupload" src="about:blank" frameborder="0" style="width:0px;height:0px;display:none"></iframe></div>' } ], onLoad: this.imgLoadModal, onSubmit: function() {} }, transform : { '<img src="{SRC}" />':"[img]{SRC}[/img]", '<img src="{SRC}" width="{WIDTH}" height="{HEIGHT}"/>':"[img width={WIDTH},height={HEIGHT}]{SRC}[/img]" } },
Then enable the upload cfg:
Code:imgupload: true
And use jquery init like:
Code:$(".wysibb-editor").wysibb({img_uploadurl: "{{ system.script_url }}/api.php?iface=front&object=wysibbimage&dir=comment");
Good luck, it work.
А я смогу! - А поглядим! - А я упрямый!
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
- Nup
- Автор темы
- Не в сети
- Осваиваюсь на форуме
- Сообщений: 26
- Спасибо получено: 0
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
- serge
- Не в сети
- Модератор
- Сообщений: 972
- Спасибо получено: 144
А я смогу! - А поглядим! - А я упрямый!
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.