1 (edited by Maciek 2004-06-15 22:56)

Topic: punBB bbcode button MOD 1.0 released

Mod title: BB Code Button
· 
Mod version: 1.0.2
Works on PunBB: 1.1.4 :: 1.1.3
Tested on PunBB version: 1.1.4 :: 1.1.3
Release date: 2004-06-14
Author : Maciej Ziolkowski
Modified by : Jacobswell 
Guide author : Tom .B
· 
Description: This mod add bbcode button like in phpBB or IPB to your punBB forum 
· 
Affected files: post.php , edit.php , parser.php
· 
Affects DB: No
· 
DISCLAIMER: Please note that "mods" are not officially supported by
PunBB. Installation of this modification is done at your
own risk. Backup your forum database and any and all
applicable files before proceeding.

http://members.lycos.co.uk/maciekziolkowski/Snap16.jpg

you can download 1.0.2 version from here click me

1.0.3 BETA version released


Important:
bbcode mod 1.0 don't working in firefox and mozilla browser if you have this version there is upgrade to v 1.0.2 click me

Have fun :)

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

2

Re: punBB bbcode button MOD 1.0 released

It doesn't work for me sad

Does anyone had a idea?

http://www.heart4horses.nl/forum/post.php?tid=5

3 (edited by Maciek 2004-05-28 15:42)

Re: punBB bbcode button MOD 1.0 released

Lex wrote:

It doesn't work for me sad

Does anyone had a idea?

http://www.heart4horses.nl/forum/post.php?tid=5

Yes i have a idea smile you don't add some part of code or add in wrong place that why i dont see bbcode button ,and smilies dont work


If you can send me your post.php i check what is wrong
Btw. What version punbb do you have ?

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: punBB bbcode button MOD 1.0 released

I tried downloading your mod from the link you provided in your post.  It downloads as a 5kb file that I am unable to open, as there is no file type specified.  Is it supposed to be a zip file or what?

5 (edited by Maciek 2004-05-28 16:13)

Re: punBB bbcode button MOD 1.0 released

dhdesign wrote:

I tried downloading your mod from the link you provided in your post.  It downloads as a 5kb file that I am unable to open, as there is no file type specified.  Is it supposed to be a zip file or what?

I dont now what you do .when u click a link you  go to topic in my forum where you find 'bbcode MOD 1.0.1.rar' attachment thats all .
If you want Zip let me now.

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: punBB bbcode button MOD 1.0 released

When I downloaded the .rar file, it came up with no file type, and I was unable to open it.  If you could make it a zip file, that would be great - thanks! smile

Re: punBB bbcode button MOD 1.0 released

dhdesign wrote:

When I downloaded the .rar file, it came up with no file type, and I was unable to open it.  If you could make it a zip file, that would be great - thanks! smile

No problem smile click me

Have fun

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: punBB bbcode button MOD 1.0 released

Got it - thanks!! smile

9

Re: punBB bbcode button MOD 1.0 released

you are so awsome smile

love this mod

10 (edited by pen 2004-05-30 21:23)

Re: punBB bbcode button MOD 1.0 released

i really cant get the parser.php to work tho sad

EDIT:

fixed it.. dont know what went wrong tho

Re: punBB bbcode button MOD 1.0 released

Another bug found.

select tag is not closed when you press "close all tags" button.
it is because of the function closeTags name.
function closeTags should be named as closeallTags.

12 (edited by Maciek 2004-05-31 06:56)

Re: punBB bbcode button MOD 1.0 released

jacobswell wrote:

Another bug found.

select tag is not closed when you press "close all tags" button.
it is because of the function closeTags name.
function closeTags should be named as closeallTags.

find line 435

<input type="button" class="punbutton" value="close all tags" name='zamknij tagi' onClick="closeallTags()"> 

and replace with

<input type="button" class="punbutton" value="close all tags" name='zamknij tagi' onClick="closeTags()"> 

Ok today i cheack one more time bbcode MOD sources ,and remove all bugs .

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

13

Re: punBB bbcode button MOD 1.0 released

Sorry for my late reply wink.

Think i've fixed but Internet Explorer is giving a little error. (Something like 'Document.input.mode' is no object or empty) Do have you any idea?

http://www.heart4horses.nl/forum/post.php?tid=7 Here you can see, isn't working perfect yet.


By the way, thanks for the mod!

14 (edited by Maciek 2004-05-31 08:57)

Re: punBB bbcode button MOD 1.0 released

Lex wrote:

Sorry for my late reply wink.

Think i've fixed but Internet Explorer is giving a little error. (Something like 'Document.input.mode' is no object or empty) Do have you any idea?

http://www.heart4horses.nl/forum/post.php?tid=7 Here you can see, isn't working perfect yet.


By the way, thanks for the mod!

Strange i don't see any error in IE smile

Btw. You have 'closeallTag' bug ,you must install this update click me

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

15

Re: punBB bbcode button MOD 1.0 released

Maby my IE is fucked up, don't get the error on the other computer overhere. On this one i get the error on your demo-forum for the mod wink.

16

Re: punBB bbcode button MOD 1.0 released

Lex wrote:

Maby my IE is fucked up, don't get the error on the other computer overhere. On this one i get the error on your demo-forum for the mod wink.

I have the same problem on 2003 server i get the error on my demo-forum ,but when i run XP everythig works fine hmm .

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

17 (edited by Rob 2004-05-31 13:34)

Re: punBB bbcode button MOD 1.0 released

I have already released a mod like this months ago.
http://punbb.org/forums/viewtopic.php?id=3204

Blah..  sad

Rob

http://www.deejaysonline.com/images/bb.jpg

Every time you think you've made it idiot proof, along comes a better idiot.

Re: punBB bbcode button MOD 1.0 released

Maciek wrote:

Btw. You have 'closeallTag' bug ,you must install this update click me

Can you put the latest version with the 'closeallTag' bug fix into a zip file, like you did before, so I can open the file once it's downloaded?  (sorry to be such a pain...lol)

19

Re: punBB bbcode button MOD 1.0 released

dhdesign wrote:
Maciek wrote:

Btw. You have 'closeallTag' bug ,you must install this update click me

Can you put the latest version with the 'closeallTag' bug fix into a zip file, like you did before, so I can open the file once it's downloaded?  (sorry to be such a pain...lol)

Done smile This is my fault i forget about this .Next mod will be pack in zip format

The best things in life are free*

* plus shipping and handling

[img]http://members.lycos.co.uk/maciekziolkowski/gmailsign.jpg[/img]

Re: punBB bbcode button MOD 1.0 released

Got it - thanks again! smile

21

Re: punBB bbcode button MOD 1.0 released

the list thing doesnt work for me.. it doesnt convert the [*] to <li>

probably easy to fix in the parser right?

Re: punBB bbcode button MOD 1.0 released

Is it giving you an error message?  If so, post it please.  I installed this mod earlier this week (Maciek's mod) and I had some parser errors.  Maybe your problem is similar to mine. smile

23 (edited by jacobswell 2004-06-05 22:16)

Re: punBB bbcode button MOD 1.0 released

in parser.php we have do_bbcode function. change some code like this:

    $pattern = array('#\[b\](.*?)\[/b\]#s',
                     '#\[i\](.*?)\[/i\]#s',
                     '#\[u\](.*?)\[/u\]#s',
                     '#\[url\](.*?)\[/url\]#e',
                     '#\[url=(.*?)\](.*?)\[/url\]#e',
               '#\[list\](.*?)\[/list\]#si',
               '#\[\*\]#si',
               '#\[size=(.*?)\](.*?)\[/size\]#si',
               '#\[font=(.*?)\](.*?)\[/font\]#si',
               '#\[align=(.*?)\](.*?)\[/align\]#si',
                     '#\[email\](.*?)\[/email\]#',
                     '#\[email=(.*?)\](.*?)\[/email\]#',
                     '#\[color=([a-zA-Z]*|\#?[0-9a-fA-F]{6})](.*?)\[/color\]#s',
                     '#\[----\]#s'
    );

    $replace = array('<strong>$1</strong>',
                     '<em>$1</em>',
                     '<u>$1</u>',
                     'truncate_url(\'$1\')',
                     'truncate_url(\'$1\', \'$2\')',
               '<ul>$1</ul>',
               '<li>',
               '<font size=\'$1\'>$2</font>',
               '<font face=\'$1\'>$2</font>',
               '<p align=\'$1\'>$2</p>',
                     '<a href="mailto:$1">$1</a>',
                     '<a href="mailto:$1">$2</a>',
                     '<font color="$1">$2</font>',
               '<hr>'
    );

You can see it works in my site : http://jacobswell.nared.net

24

Re: punBB bbcode button MOD 1.0 released

awsome mate smile

Re: punBB bbcode button MOD 1.0 released

Hi Maciek,

I installed your mod - great idea and I really like it. It's very useful for everyday use.

Just some feedback:

1)  In firefox browsers, the buttons show up as normal buttons, instead of the flat style sheet ones.  any ideas?

2)  I didn't like the way your mod introduces new, non-standard bbcode (e.g. size, font, list).  My suggestion would be to put this functionality into a separate mod?

3)  Should also make the mod appear in the quickpost section.  It's pretty easy to do - I've modified your code to do so on my site:

http://www.shuttertalk.com/

Anyway, thanks again for the great mod!

Digital photography news, reviews, discussions and more!
http://www.shuttertalk.com

The online bible for all
http://www.publicbible.com