Ok mean:4_seven wrote:Thanks, but it works anyway with this mod.
Code: Select all
'IMG_WIZ_2' => 'Img URL eingeben',
Code: Select all
'IMG_L_WIZ_1' => 'Bild links BBCode Wizard', // use your language
'IMG_L_WIZ_2' => 'Bild links URL eingeben', // use your language
'IMG_R_WIZ_1' => 'Bild rechts BBCode Wizard', // use your language
'IMG_R_WIZ_2' => 'Bild rechts URL eingeben', // use your language
Code: Select all
// Open tag
insert_text(bbopen + bbclose);
Code: Select all
// Open tag
// insert_text(bbopen + bbclose);
// Better Prompt 4 BBCodes / 4seven / 2010
// img
if (bbopen == '[img]')
{
jPrompt(img_wiz_2, '', img_wiz_1, function(img){
if(img){
insert_text('[img]' + img + '[/img]');}
});
}
if (bbopen == '[img_l]')
{
jPrompt(img_l_wiz_2, '', img_l_wiz_1, function(img_l){
if(img_l){
insert_text('[img_l]' + img_l + '[/img_l]');}
});
}
if (bbopen == '[img_r]')
{
jPrompt(img_r_wiz_2, '', img_r_wiz_1, function(img_r){
if(img_r){
insert_text('[img_r]' + img_r + '[/img_r]');}
});
}
if (bbopen == '[screen]')
{
jPrompt(screen_wiz_2, '', screen_wiz_1, function(screen){
if(screen){
insert_text('[screen]' + screen + '[/screen]');}
});
}
// url
else if (bbopen == '[url]')
{
jPrompt(url_wiz_2, '', url_wiz_1, function(url_title){
if(url_title){
jPrompt(url_wiz_3, '', url_wiz_1, function(url){
if(url_title&&url){
insert_text('[url=' + url + ']' + url_title + '[/url]');}
});
}
});
}
// flash
else if (bbopen == '[flash=]')
{
jPrompt(fla_wiz_2, '', fla_wiz_1, function(flash_width){
if(flash_width){
jPrompt(fla_wiz_3, '', fla_wiz_1, function(flash_height){
if(flash_width&&flash_height){
jPrompt(fla_wiz_4, '', fla_wiz_1, function(flash_url){
if(flash_width&&flash_height&&flash_url){
insert_text('[flash=' + flash_width + ',' + flash_height + ']' + flash_url + '[/flash]');}
});
}
});
}
});
}
// Better Prompt 4 BBCodes / 4seven / 2010
else{
insert_text(bbopen + bbclose);}
Code: Select all
<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
Code: Select all
<script type="text/javascript">
// <![CDATA[
// Better Prompt 4 BBCodes / 4seven / 2010
// img
var img_wiz_1 = "{LA_IMG_WIZ_1}";
var img_wiz_2 = "{LA_IMG_WIZ_2}";
var img_l_wiz_1 = "{LA_IMG_L_WIZ_1}";
var img_l_wiz_2 = "{LA_IMG_L_WIZ_2}";
var img_r_wiz_1 = "{LA_IMG_R_WIZ_1}";
var img_r_wiz_2 = "{LA_IMG_R_WIZ_2}";
var screen_wiz_1 = "{LA_SCREEN_WIZ_1}";
var screen_wiz_2 = "{LA_SCREEN_WIZ_2}";
// url
var url_wiz_1 = "{LA_URL_WIZ_1}";
var url_wiz_2 = "{LA_URL_WIZ_2}";
var url_wiz_3 = "{LA_URL_WIZ_3}";
// flash
var fla_wiz_1 = "{LA_FLA_WIZ_1}";
var fla_wiz_2 = "{LA_FLA_WIZ_2}";
var fla_wiz_3 = "{LA_FLA_WIZ_3}";
var fla_wiz_4 = "{LA_FLA_WIZ_4}";
// ok + cancel
var bb_wiz_ok = "{LA_BB_WIZ_OK}";
var bb_wiz_ca = "{LA_BB_WIZ_CA}";
// Better Prompt 4 BBCodes / 4seven / 2010
// ]]>
</script>
<script type="text/javascript" src="jquery/jquery.alerts.js"></script>
Code: Select all
// Open tag
// insert_text(bbopen + bbclose);
// Better Prompt 4 BBCodes / 4seven / 2010
// img
if (bbopen == '[img]')
{
jPrompt(img_wiz_2, '', img_wiz_1, function(img){
if(img){
insert_text('[img]' + img + '[/img]');}
});
}
if (bbopen == '[img_l]')
{
jPrompt(img_l_wiz_2, '', img_l_wiz_1, function(img_l){
if(img_l){
insert_text('[img_l]' + img_l + '[/img_l]');}
});
}
if (bbopen == '[img_r]')
{
jPrompt(img_r_wiz_2, '', img_r_wiz_1, function(img_r){
if(img_r){
insert_text('[img_r]' + img_r + '[/img_r]');}
});
}
// url
else if (bbopen == '[url]')
{
jPrompt(url_wiz_2, '', url_wiz_1, function(url_title){
if(url_title){
jPrompt(url_wiz_3, '', url_wiz_1, function(url){
if(url_title&&url){
insert_text('[url=' + url + ']' + url_title + '[/url]');}
});
}
});
}
// flash
else if (bbopen == '[flash=]')
{
jPrompt(fla_wiz_2, '', fla_wiz_1, function(flash_width){
if(flash_width){
jPrompt(fla_wiz_3, '', fla_wiz_1, function(flash_height){
if(flash_width&&flash_height){
jPrompt(fla_wiz_4, '', fla_wiz_1, function(flash_url){
if(flash_width&&flash_height&&flash_url){
insert_text('[flash=' + flash_width + ',' + flash_height + ']' + flash_url + '[/flash]');}
});
}
});
}
});
}
// Better Prompt 4 BBCodes / 4seven / 2010
else{
insert_text(bbopen + bbclose);}
Code: Select all
// Open tag
// insert_text(bbopen + bbclose);
// Better Prompt 4 BBCodes / 4seven / 2010
// img
if (bbopen == '[img]')
{
jPrompt(img_wiz_2, '', img_wiz_1, function(img){
if(img){
insert_text('[img]' + img + '[/img]');}
});
}
else if (bbopen == '[img_l]')
{
jPrompt(img_l_wiz_2, '', img_l_wiz_1, function(img_l){
if(img_l){
insert_text('[img_l]' + img_l + '[/img_l]');}
});
}
else if (bbopen == '[img_r]')
{
jPrompt(img_r_wiz_2, '', img_r_wiz_1, function(img_r){
if(img_r){
insert_text('[img_r]' + img_r + '[/img_r]');}
});
}
// url
else if (bbopen == '[url]')
{
jPrompt(url_wiz_2, '', url_wiz_1, function(url_title){
if(url_title){
jPrompt(url_wiz_3, '', url_wiz_1, function(url){
if(url_title&&url){
insert_text('[url=' + url + ']' + url_title + '[/url]');}
});
}
});
}
// flash
else if (bbopen == '[flash=]')
{
jPrompt(fla_wiz_2, '', fla_wiz_1, function(flash_width){
if(flash_width){
jPrompt(fla_wiz_3, '', fla_wiz_1, function(flash_height){
if(flash_width&&flash_height){
jPrompt(fla_wiz_4, '', fla_wiz_1, function(flash_url){
if(flash_width&&flash_height&&flash_url){
insert_text('[flash=' + flash_width + ',' + flash_height + ']' + flash_url + '[/flash]');}
});
}
});
}
});
}
// Better Prompt 4 BBCodes / 4seven / 2010
else{
insert_text(bbopen + bbclose);}
what you describe is the standard feature in a phpbb3 anyway and important, that it works the genuine way. read the two posts from here: http://www.phpbb.com/community/viewtopi ... #p12805091 - thats totally normal and no fault.I mean the other way, when write something, then select the word and press the tag.
It adds only the tag like this something and the window doesn' t appear.