PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.


Login to move these ads to the bottom of the page

#1 2005-02-06 15:16:22

Rickard
New member
Registered: 2005-02-05
Posts: 2

Easy BBCode 1.0.1

Code:

##
##
##        Mod title:  Easy BBCode
##
##      Mod version:  1.0.1
##   Works on PunBB:  1.2, 1.2.1
##     Release date:  2005-02-06
##           Author:  Rickard Andersson
##
##      Description:  This mod adds buttons for easy insertion of BBCode and
##                    smilies when posting and editing messages.
##
##   Affected files:  post.php
##                    edit.php
##
##       Affects DB:  No
##
##            Notes:  By popular demand :)
##
##       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.
##
##

Download here

Offline

 

#2 2005-04-10 12:53:50

Zoltor
Member
From: Minsk, Belarus
Registered: 2005-04-10
Posts: 19
Website

Re: Easy BBCode 1.0.1

How I can install it for quick post form???


Sorry for my english! roll

Offline

 

#3 2005-04-10 12:59:05

gizzmo
Member
From: Earth, Milkyway Galaxy
Registered: 2004-08-04
Posts: 266

Offline

 

#4 2005-06-18 15:19:40

scottywz
Member
Registered: 2005-04-02
Posts: 101
Website

Re: Easy BBCode 1.0.1

My Extra BBCodes 1.0 mod changes this mod some (add extra BBCodes). smile

Offline

 

#5 2005-06-30 15:22:36

Yazerty
New member
Registered: 2005-06-30
Posts: 2

Re: Easy BBCode 1.0.1

Big Thanks for this mod Rickard smile !

ps : it's 'd be a good idea to add this as an option in the original Punbb... (Administrator 'd decide if theses shortcuts show or not)


Amis français salut : ).
Hello too to others : )
Yazerty.Net : le site de l'insolite : )

Offline

 

#6 2005-09-08 02:42:29

Philippe Worontzoff
Member
Registered: 2005-09-08
Posts: 26

Re: Easy BBCode 1.0.1

There's a patch file in the .zip file and nothing is explain about it in the readme.txt.

How do I use this patch ?

Offline

 

#7 2005-09-08 08:11:15

Josh-E
New member
Registered: 2005-09-04
Posts: 4

Re: Easy BBCode 1.0.1

Wow that was definetley the easiest mod I have done so far!  lol  Thanks a lot Rickard!

Offline

 

#8 2005-09-10 04:17:20

Philippe Worontzoff
Member
Registered: 2005-09-08
Posts: 26

Re: Easy BBCode 1.0.1

Ok, I understand, the patch file is made to make all necessary changes in the modified files automaticaly. I prefer to do it manually.

Offline

 

#9 2005-11-16 11:14:22

truantology
New member
Registered: 2005-11-16
Posts: 5

Re: Easy BBCode 1.0.1

How can i make this work with the "Quick Post" field as well as the regular field?


Thanks again Rickard...You are amazing!

Offline

 

#10 2005-11-29 00:23:10

StevenBullen
Moderator
Registered: 2005-09-13
Posts: 328
Website

Re: Easy BBCode 1.0.1

truantology wrote:

How can i make this work with the "Quick Post" field as well as the regular field?


Thanks again Rickard...You are amazing!

Answered here...

Last edited by StevenBullen (2005-11-29 06:24:45)


Blog - Follow Me and FluxBB on Twitter

Offline

 

#11 2005-12-12 14:12:27

Sorin
New member
Registered: 2005-12-04
Posts: 5

Re: Easy BBCode 1.0.1

One easy questions for you (for me...hm...not) :

i make little modification in this mod. I put a few lines, because i want to get color selection for text. So, for example :

...
<input type="button" value=" Red " name="Red" onclick="insert_text('','')" />
...

Question is : i want that button name "Red" be colored = Red. But how?

--------------------------------------
Thanks!

Last edited by Sorin (2005-12-12 14:13:41)

Offline

 

#12 2005-12-14 05:24:37

obi
New member
Registered: 2005-12-14
Posts: 3

Re: Easy BBCode 1.0.1

Sorin wrote:

Question is : i want that button name "Red" be colored = Red. But how?


Thanks!

You can always add inline css to html tags. Try:

<input style="background-color:#f00;"type="button" value=" Red " name="Red" onclick="insert_text('','')" />

My turn to ask something:
It looks like the mod displays the buttons for smilieys, even if they are disabled. Should be easy to fix IMHO, I just need to know where the information 'smileys are disabled' is stored. Can someone point me at the right place ?

Last edited by obi (2005-12-14 05:25:42)

Offline

 

#13 2005-12-14 05:43:50

obi
New member
Registered: 2005-12-14
Posts: 3

Re: Easy BBCode 1.0.1

here are some slight style modifications to have less boring buttons. I don't knwo why text-decoration:underline does not show though.

Code:

<div style="padding-top: 4px">
                            <input style="font-weight:bold;" type="button" value=" b " name="B" onclick="insert_text('[b]','[/ b ]')" /> 
                            <input style="font-style:italic;" type="button" value=" i " name="I" onclick="insert_text('[i]','[/ i ]')" />
                            <input style="text-decoration:underline;" type="button" value=" u " name="U" onclick="insert_text('[u]','[/ u ]')" />
                            <input style="color:#00f; text-decoration:underline;" type="button" value="http://" name="Url" onclick="insert_text('[url]','[/ url ]')" />
                            <input type="button" value="Img" name="Img" onclick="insert_text('[img]','[/img]')" />
                            <input style="font-family:monospace;" type="button" value="Code" name="Code" onclick="insert_text('[ code ]','[/ code ]
')" />
                            <input type="button" value="Quote" name="Quote" onclick="insert_text('[ quote ]','[/ quote ]
')" />
                        </div>

NB:remove spaces on all BBcodes in insert_text function calls.

Last edited by obi (2005-12-14 05:46:36)

Offline

 

#14 2005-12-14 17:37:52

Sorin
New member
Registered: 2005-12-04
Posts: 5

Re: Easy BBCode 1.0.1

obi
-----------

Thanks for your answer. It's not exactly for my questions, but anyway help me very much.

Offline

 

#15 2006-07-10 22:23:36

pseric
Member
Registered: 2006-05-04
Posts: 10

Re: Easy BBCode 1.0.1

Hi, I got a little problem that select the font color or font size,

  Color List
  Red
  Blue
  Green
  Pink
  ....

How do I select the "Red" color, after insert the text, auto select to "Color List"?

sorry for my poor English :Q

Offline

 

#16 2006-07-11 04:39:41

guardian34
Member
Registered: 2006-06-03
Posts: 124

Re: Easy BBCode 1.0.1

obi wrote:

I just need to know where the information 'smileys are disabled' is stored. Can someone point me at the right place ?

It's in the config table; o_smilies. You can check the value $pun_config['o_smilies'].

Last edited by guardian34 (2006-07-11 04:49:22)

Offline

 

#17 2006-07-14 00:44:18

djamesw
New member
Registered: 2006-07-13
Posts: 7

Re: Easy BBCode 1.0.1

I have custom smilies that measure 20x20. This mod resizes those custom smilies to 15x15 (in post edit, not forum view). I skimmed over the code but couldn't find anything.

Any Ideas?

Offline

 

#18 2006-07-16 11:04:56

guardian34
Member
Registered: 2006-06-03
Posts: 124

Re: Easy BBCode 1.0.1

djamesw wrote:

Any Ideas?

What about the mod_easy_bbcode.php file that is part of the mod?

Edit: Specifically, line 93.

Last edited by guardian34 (2006-07-16 11:06:18)

Offline

 

#19 2006-07-16 11:31:27

djamesw
New member
Registered: 2006-07-13
Posts: 7

Re: Easy BBCode 1.0.1

Well I feel like a dumbass. I did some editing of mod_easy_bbcode.php before I even posted this and managed to never see line 93. Thanks for pointing me in the right direction Gaurdian. All is well now.

Offline

 

#20 2006-09-08 13:09:04

elbekko
Moderator
From: Leuven, Belgium
Registered: 2006-01-31
Posts: 1422

Re: Easy BBCode 1.0.1

Just remove the width/height limitations?


FluxBB
dictionary.com on programming: The most fun you can have with your clothes on (although clothes are not mandatory).

Offline

 

#21 2006-09-30 07:58:57

oliversl
Member
Registered: 2006-06-05
Posts: 21
Website

Re: Easy BBCode 1.0.1

Hi, I have an ending quote bug.
A user can write at the end of his topic this:

Code:

[/quote]

that is, a closing quote that does not have a starting quote. And this breaks the html code and the page is not parsed correctly in html after that line.
I tested in punbb.org forum and the bug is not there.

Can anyone confirm this is a bug in easy bbcode?


Get my e-mail after a captcha test in: http://tinymailto.com/oliversl

Offline

 

#22 2006-12-05 11:33:48

niksy
New member
Registered: 2006-12-05
Posts: 3

Re: Easy BBCode 1.0.1

I have a little question about Easy BBCode.
I want to show some image instead of button, so I changed this:

Code:

<input type="button" value=" B " name="B" onclick="insert_text('[b]','[/b]')" />

to this:

Code:

<input type="image" src="../img/bold.gif" value=" B " name="B" alt="Podebljani tekst" onclick="insert_text('[b]','[/b]')" />

But when I press button to make text bold, it shows in the text area , but instantly makes post without any content - refreshes page when clicking on the link.

Any ideas on this?

Offline

 

#23 2007-02-18 09:03:26

postcd
New member
Registered: 2007-02-18
Posts: 3
Website

Re: Easy BBCode 1.0.1

Dont works at current 1.3 version.

Offline

 

#24 2007-02-18 09:14:05

guardian34
Member
Registered: 2006-06-03
Posts: 124

Re: Easy BBCode 1.0.1

postcd wrote:

Dont works at current 1.3 version.

PunBB 1.3? That's not supported yet. When it is, this will most likely be replaced by an extension.

Offline

 

#25 2007-02-18 09:19:46

postcd
New member
Registered: 2007-02-18
Posts: 3
Website

Re: Easy BBCode 1.0.1

Im sorry. my mistake. It works. Easy_BBCode_1.0.1.zip. preview
simple - nice :-)

Last edited by postcd (2007-02-18 09:22:25)

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.