Your ultimate PunBB resource!
You are not logged in.
## ## ## 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. ## ##
Offline
Big Thanks for this mod Rickard
!
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)
Offline
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
Wow that was definetley the easiest mod I have done so far!
Thanks a lot Rickard!
Offline
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
How can i make this work with the "Quick Post" field as well as the regular field?
Thanks again Rickard...You are amazing!
Offline
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!
Last edited by StevenBullen (2005-11-29 06:24:45)
Offline
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
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
here are some slight style modifications to have less boring buttons. I don't knwo why text-decoration:underline does not show though.
<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
obi
-----------
Thanks for your answer. It's not exactly for my questions, but anyway help me very much.
Offline
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
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
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
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
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
Hi, I have an ending quote bug.
A user can write at the end of his topic this:
[/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?
Offline
I have a little question about Easy BBCode.
I want to show some image instead of button, so I changed this:
<input type="button" value=" B " name="B" onclick="insert_text('[b]','[/b]')" />to this:
<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
Offline
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
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