[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.
User avatar
^[GS]^
Registered User
Posts: 274
Joined: Sun Aug 06, 2006 10:59 pm
Location: Argentina

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

Post by ^[GS]^ »

Download cant work!
Mirror for download???
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 »

back on..
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

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

Post by Neuropass »

how did you integrate the codes box?

Image
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 »

Did you mean the QR-Mod or how to integrate it into "Better Prompt 4 BBCodes"?
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

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

Post by Neuropass »

I guess both.. lol i thought it was part of the 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 »

[DEV] QR Post Links v.0.0.1
http://www.phpbb.com/community/viewtopi ... &t=2092942

but forget this part of instruction in the link above beginning here
open

styles/xxxxxx/template/editor.js
-------------------------

instead of this do this (after installing "Better Prompt 4 BBCodes")

open

styles/xxxxxx/template/editor.js

find

Code: Select all

        // Better Prompt 4 BBCodes / 4seven / 2010

        else{ 
before add

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]');}
                                                       });
        } 
change path_to_your_forum_root to yours
User avatar
Neuropass
Registered User
Posts: 1163
Joined: Fri Apr 17, 2009 2:02 pm
Location: SciTE4AutoIt3

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

Post by Neuropass »

Awesome! thank you very much for it...
Buuuh
Registered User
Posts: 22
Joined: Tue Nov 02, 2010 7:34 pm

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

Post by Buuuh »

I added this mod to my board today and it seems to break the mChat mod.

This mod brings jQuery lib 1.4.2 and includes it in overall_header.html.
mChat brings some jQuery mini lib 1.3.2 and also includes it in overall_header.html. I tried to remove the jQuery include of mChat, in thought jQuery from this mod also can handle this, but that doesn't work.

Are these libs compatible?
Any ideas how i can solve this?

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. :)
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 »

Buuuh wrote:jQuery Cookie is a plugin for jQuery not shipped with this mod.
'jquery-cookie' is normally not necessary for 'Better Prompt'.
seems this combinated constellation is only necessary for mChat.

big thx for figure this out for all who use mChat and can not use this mod till today :geek:
Current Mods | Mod Base | php(BB) programming | No help via PM
Buuuh
Registered User
Posts: 22
Joined: Tue Nov 02, 2010 7:34 pm

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

Post by Buuuh »

4_seven wrote: 'jquery-cookie' is normally not necessary for 'Better Prompt'.
seems this combinated constellation is only necessary for mChat.
Right, mChat ships both jQuery core and cookie.
But you can use jQuery core from this mod and jQuery cookie from mChat.
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 »

perfect, when things come together :D
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
sam_8085
Registered User
Posts: 93
Joined: Wed Mar 25, 2009 4:28 am

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

Post by sam_8085 »

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. :)
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 !
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 »

Edit: Got it! Removing the mChat include for jquery_core_mini.js
just remove the javascript include of jquery_core_mini.js in overall_header.html ;)
<!-- 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 -->
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
sam_8085
Registered User
Posts: 93
Joined: Wed Mar 25, 2009 4:28 am

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

Post by sam_8085 »

Its working ! thanks
User avatar
Dangerell
Registered User
Posts: 89
Joined: Mon Oct 13, 2008 7:05 am
Location: Romania
Name: Cristi

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

Post by Dangerell »

Hi,

I tried your mod but i have a problem. How do i make it work with numeric bbcodes ex: [123]?

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]');}
        });
        }
I tried this.. but as i expected it doesn't work... and i don't know yet, how to fix it.
Thanks !

Return to “[3.0.x] Abandoned MODs”