-------------------------open
styles/xxxxxx/template/editor.js
Code: Select all
// Better Prompt 4 BBCodes / 4seven / 2010
else{
Code: Select all
// qr_link
else if (bbopen == '[qr_link]')
{
jPrompt('Insert a Link or Text to generate QR', '', 'QR Wizard', function(qr){
if(qr){
qr = encodeURIComponent(qr);
qr = encodeURI(qr);
setCaretPosition(caret_pos);
insert_text('[img]http://path_to_your_forum_root/qr/php/qr.php?e=L&s=4&t=J&d=' + qr + '[/img]');}
});
}
'jquery-cookie' is normally not necessary for 'Better Prompt'.Buuuh wrote:jQuery Cookie is a plugin for jQuery not shipped with this mod.
Right, mChat ships both jQuery core and cookie.4_seven wrote: 'jquery-cookie' is normally not necessary for 'Better Prompt'.
seems this combinated constellation is only necessary for mChat.
Thanks for this ! But I'm not able to do what u told. Can you please explain it how to make it working on Mchat installed board !Buuuh wrote: Edit: Got it! Removing the mChat include for jquery_core_mini.js, but keeping the include jquery_cookie_mini.js makes all work again.
jQuery Cookie is a plugin for jQuery not shipped with this mod.
just remove the javascript include of jquery_core_mini.js in overall_header.htmlEdit: Got it! Removing the mChat include for jquery_core_mini.js
<!-- IF S_MCHAT_ENABLE -->
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_core_mini.js"></script>
<script type="text/javascript" src="{ROOT_PATH}mchat/jquery_cookie_mini.js"></script>
<link rel="stylesheet" href="{ROOT_PATH}mchat/mchat_prosilver.css" type="text/css" />
<!-- ENDIF -->
Code: Select all
// Exemple for bbcode [123]
if (bbopen == '[123]')
{
jPrompt(img_wiz_2, '', img_wiz_1, function(123){
if(123){
setCaretPosition(caret_pos);
insert_text('[123]' + 123+ '[/123]');}
});
}