[ABD] Better Prompt 4 BBCodes v.0.0.2

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
packerstud
Registered User
Posts: 113
Joined: Fri Jul 08, 2011 5:29 am

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by packerstud »

Thank you so very much!! It works wonderfully and is exactly what my community was asking for!!
iamthestreets
Registered User
Posts: 244
Joined: Fri Feb 24, 2012 4:35 pm

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by iamthestreets »

will this work with another theme? I am not using prosilver or subsilver2
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by 4_seven »

find out on which standard style (pro/sub2) your style is based of and than go to work..
Current Mods | Mod Base | php(BB) programming | No help via PM
blossom10
Registered User
Posts: 25
Joined: Tue Dec 08, 2009 8:38 pm

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by blossom10 »

hi,

I mod this for the BBCodeBox3 - Img left and img right, it works fine. Its a Tip to update your Mod for this Box-Mod.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by 4_seven »

Thanks, but it works anyway with this mod.
Current Mods | Mod Base | php(BB) programming | No help via PM
blossom10
Registered User
Posts: 25
Joined: Tue Dec 08, 2009 8:38 pm

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by blossom10 »

4_seven wrote:Thanks, but it works anyway with this mod.
Ok mean:

fix for BBCodeBox3 User - Image left and Image right
Subsilver2 Style

Language/de (en) / mods
Open lang_better_prompt.php

find:

Code: Select all

'IMG_WIZ_2'           => 'Img URL eingeben',
after:

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 

Open styles/subsilver2/template/editor.js

find:

Code: Select all

// Open tag
           insert_text(bbopen + bbclose);   
Replace with:

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);}   
Open: styles/subsilver2/template/posting_buttons.html

find:

Code: Select all

<script type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
Add before:

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>
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by 4_seven »

Thanks for sharing. I thought you mean abbcb3, so shure, its my old mod.
Current Mods | Mod Base | php(BB) programming | No help via PM
blossom10
Registered User
Posts: 25
Joined: Tue Dec 08, 2009 8:38 pm

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by blossom10 »

Fixed a Bug

Open styles/subsilver2/template/editor.js

Find:

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);}   
Replace with:

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);}   
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by 4_seven »

what for a bug?

edit: now i see. in you bbcb3 addition: if becomes elseif.
Current Mods | Mod Base | php(BB) programming | No help via PM
blossom10
Registered User
Posts: 25
Joined: Tue Dec 08, 2009 8:38 pm

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by blossom10 »

Yes :mrgreen:
ayra
Registered User
Posts: 22
Joined: Mon Apr 12, 2010 11:34 pm

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by ayra »

Hello,

First of all, thanks for the great mod! Very useful :D
Does this mod works properly with 3.0.10 version? When I write something and I try to add the url tag, it appears only the tag around the word I wrote, the windows is not appearing. But when I press only the url tag, the window is appearing normally. Any ideas?
The image tag works just fine.

Thank you very much :)

Edit: I don't mean the way that press the url tag and add title and then the link. I mean the other way, when write something, then select the word and press the tag. In your demo, it works fine, but in my board doesn' t work. It adds only the tag like this something and the window doesn' t appear.
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by 4_seven »

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.
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.

if you want it like in demo, which uses an additional script, read here
http://www.phpbb.com/community/viewtopi ... #p13119617
Current Mods | Mod Base | php(BB) programming | No help via PM
ayra
Registered User
Posts: 22
Joined: Mon Apr 12, 2010 11:34 pm

Re: [DEV] Better Prompt 4 BBCodes v.0.0.2

Post by ayra »

Great! Thank you very much :D
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva

Re: [ABD] Better Prompt 4 BBCodes v.0.0.2

Post by tumba25 »

Since the MOD author has been banned I'll lock this topic as [ABD] - Abandoned. If someone else wants to take over the development, please PM anyone on the MOD Team to request a link to your development topic. You can't reuse this topic, you need to start a new.

Notice!
We do not recommend that a user of the phpBB software install this mod, or any other mod that is marked as “abandoned” or “in development”, on a live forum. Doing so may cause your forum to not perform in the manner it should.


Thank you,
The phpBB Modifications Team
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net

Return to “[3.0.x] Abandoned MODs”