[MOD] Advanced BBCode Box 5.0.0a-6

This forum contains member submitted mods and hacks for IntegraMOD/IM Portal versions

*please read the "Read Me" post*

Moderator: Integra Moderator

[MOD] Advanced BBCode Box 5.0.0a-6

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 3:16 pm

This MOD replaces and updates the existing bbcode_box included with IntegraMOD 1.4.0. It updates the existing features, adds new features, and creates a cleaner layout based on Office 2003. It is based on the Advanced BBCode Box by Disturbed One (which was updated from the BBCode Box by Al Tnen).

Updating the code requires deleting the old BBCode Box folder and replacing the old BBCode Box information. It is important that you backup your files before you make any changes or deletions.

Premodded files have been added to the Advanced BBCode Box ZIP file as of Thursday, May 11. If you have downloaded the Mod previously, and would like the premodded files, of if you wish to have the premodded files only, download this file. Please note that these premodded files only work on a base install of IntegraMod 1.4.0, with no additional modifications added. If you have added your own modifications, you should use the manual install method.

Update Date: 2006 June 5

Code: Select all
################################################################ MOD Title]http://www.hvmdesign.com#[/url]# MOD Author: AL Tnen <al_tnen> (N/A) [url=http://www.tnen.zzn.com#]http://www.tnen.zzn.com#[/url]### MOD Description: This MOD adds lots of useful BBCode features and makes the bbcode buttons##          look just like Microsoft Office 2003. It also improves the functions of##          phpBB's BBCode function. It adds the bbcode exactly where the cursor is,##          inserts smilies where the cursor is, and adds more ways to customize posts.##          The MOD is very fast loading, and is a sleek addition to your phpBB bulletin board.#### MOD Version: 5.0.0a-6#### IntegraMOD 1.4.x Integration: Jason Sanborn <jsanborn> (N/A) [url=http://www.simplicitypoint.com/#]http://www.simplicitypoint.com/#[/url]### Installation Level:   Easy## Installation Time:   15-30 Minutes#### Files To Edit: (11)##   includes/bbcode.php##   language/lang_english/lang_bbcode.php##   language/lang_english/lang_main.php##  templates/post_message.js##  templates/fisubice/admin/blocks_edit_body.tpl##  templates/fisubice/profilcp/profil_signature_body.tpl##   templates/fisubice/bbcode.tpl##  templates/fisubice/kb_add_body.tpl##   templates/fisubice/pa_comment_posting.tpl##   templates/fisubice/posting_body.tpl##  templates/fisubice/shoutbox_max_body.tpl#### Included Files: (72)##   mods/bbcode_box/bbcode_box.js##   mods/bbcode_box/bbcode_box_a.js##   mods/bbcode_box/grad.htm##   mods/bbcode_box/images/*##  spelling/spelladmin.js#### License: [url=http://opensource.org/licenses/gpl-license.php]http://opensource.org/licenses/gpl-license.php[/url] GNU General Public License v2################################################################ For security purposes, please check: [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]# for the latest version of this MOD. Although MODs are checked## before being allowed in the MODs Database there is no guarantee## that there are no security problems within the MOD. No support## will be given for MODs not found within the MODs Database which## can be found at [url=http://www.phpbb.com/mods/#]http://www.phpbb.com/mods/#[/url]############################################################### IntegraMOD Integration Notes:####   This is an upgrade for the existing bbcode-box MOD included##   with IntegraMOD. In order to add this new code, a lot of old##   code will be deleted. It is important to make sure that you##   backup any files before deleting/editing, in case you need##   to rollback to the previous version.####   In addition to the features listed below in the Author's##   Notes, the following features have been added to this##   version of the MOD, either to keep existing compatibility,##   or to add new compatibility.####   - Anchor -- New##   - Google Search##   - Gotopost -- New##   - Non-breaking space -- New##   - PHP Code##   - Site Image -- New##   - Site Search##   - Spellcheck##   - Tab -- New##   - Table -- New##   - You####   New BBCode Addition MOD Information:####   Tab and Non-breaking space by Jason Sanborn####   Anchor and Gotopost based on the Anchor BBCode MOD##      MOD Author: Xore <mods> (Robert Hetzler) [url=http://www.xore.ca#]http://www.xore.ca#[/url]#      http://www.phpbb.com/phpBB/viewtopic.php?t=139543####   Site Image by gffb####   Table based on the Table BBCode MOD##      SlapShot434 <slapshot434> (Matt Halpin) [url=http://slapshot.termee.com#]http://slapshot.termee.com#[/url]#      http://www.phpbb.com/phpBB/viewtopic.php?t=219269####   Center Image and Site Image functionality by Michaelo################################################################## Author Notes:####   This MOD has been handed over to me (Disturbed One) by##   permission from the old MOD author (AL Tnen).####   Please do not remove the copyright notice located on the box##   without permission from me.####   The new version makes this MOD compatible with the newest##   version of phpBB. This is the first new update since this MOD##   was built for phpBB v2.0.3.####   This version adds new features compared to its last version##   like BBCode insert at the cursor, and on selected text. Also some##   BBCode security issues were fixed. For a complete list of BBCode##   this MOD has, please read below.####   - Font Type (Dropdown Shows Actual Preview of Font)##   - Font Size (Dropdown Shows Actual Preview of Size)##   - Font Color (Dropdown Features New Colors, and Preview)##   - Justify Align##   - Left Align##   - Center Align##   - Right Align##   - Superscript##   - Subscript##   - Bold##   - Italic##   - Underline##   - Strikethrough##   - Text Fade (IE Only)##   - Text Gradient (IE Only)##   - Message Box Align Left (Traditional)##   - Message Box Align Right (Arabic, etc)##   - Marquee Down##   - Marquee Up##   - Marquee Left##   - Marquee Right##   - Code##   - Quote##   - Spoiler (User must click on link to review text within tags)##   - Hyperlink Wizard##   - Email Wizard##   - Include Webpage Wizard (Adds Iframe that displays page specified by user)##   - Image Wizard##   - Flash Wizard##   - Streaming Video Wizard##   - Streaming Audio Wizard##   - RAM Wizard (Real Media Audio)##   - Ordered List Wizard##   - Unordered List Wizard##   - Line Break##   - Remove BBCode (Removes all BBCode tags from selected text)##   - Close Tags (Closes remaining open tags)################################################################## MOD History:####   2006-06-05 - Version 5.0.0a-6##      - Fixed issue with IM Edit Blocks, where buttons were disappearing after being clicked.####   2006-05-25 - Version 5.0.0a-5##      - Added Advanced BBCode Box to Shoutbox Max Page##      - Added Advanced BBCode Box to PA Comment Posting Page##      - Added Site Image Functionality##      - Fixed minor bug in the Gotopost Wizard##      - Added fix for IE not displaying all text in some wizards####   2006-05-07 - Version 5.0.0a-4 (Release)##      - Added functionality to [gotopost] to allow linking to an##        anchor created within same post.##      - Added Table BBCode to allow creation of tables##      - Release from Beta####   2006-05-01 - Version 5.0.0a-3 (Beta 3)##      - Added Spellcheck to templates/fisubice/admin/blocks_edit_body.tpl##      - Fixed Block Editing##      - Fixed Knowledge Base Editing##      - Fixed Firefox textbox to keep cursor at location of inserted BBCode##      - Updated BBCode erase feature to allow erasing all BBCode in post when##        no selection is made (with confirmation dialog).##      - Improved wizard functionality, error handling, and error messages in##        bbcode_box.js####   2006-04-29 - Version 5.0.0a-2 (Beta 2)##      - Fixed error bbcode_tpl.js file allowing font pulldowns to return to##        default state after being selected.##      - Fixed Spellcheck on posting_body.tpl that caused the post to disappear##      - Added Spellcheck to templates/fisubice/kb_add_body.tpl##      - Added Spellcheck to templates/fisubice/profilcp/profil_signature_body.tpl####   2006-04-29 - Version 5.0.0a-1 (Beta 1)##      - IntegraMOD 1.4.x Integration by Jason Sanborn##      - Added BBCode features that exist in IntegraMOD 1.4.x####   2005-10-08 - Version 5.0.0a##      - Fixed bbcode.tpl problem####   2005-10-08 - Version 5.0.0##      - MOD Taken over by Disturbed One##       - Added features such as superscript, subscript, etc.##       - Made compatible with the latest version of phpBB##       - Fixed some functions##       - Made BBCode so it is inserted at curser or on selected text##       - Added Mozilla compatibility fixes####   ????-??-?? - Version 4.5.0 & Under##      - MOD Development by Al Tnen################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD##############################################################


I want to thank Dr. Bantham for his assistance with helping to find bugs in the beta versions of this Mod.

You can see this in action and find additional support and help for this on my forums [url=http][MOD] Advanced BBCode Box[/url]. <img>
Attachments
advanced_bbcode_box.zip
Advanced BBCode Box 5.0.0a-6
(862.61 KiB) Downloaded 693 times
adv_bbcode_box_upg.zip
Update from Version 5 to Version 6
(6.72 KiB) Downloaded 488 times
Last edited by Jason Sanborn on Mon Jun 12, 2006 7:22 am, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 3:22 pm

By the way, I also included a fix for the IMG tag not working with the album. It doesn't include the IMG=special that evolver had done. This was a little simpler.

OPEN: includes/bbcode.php

FIND:
Code: Select all
    // [flash=,]image_url_here[/flash:14d71jcd] code..     $text = preg_replace("#[img]((http|ftp|https|ftps)://)([^ ?&=#"nrt<]*?(.(jpg|jpeg|gif|png)))[/img]#sie", "'[img]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text);

REPLACE WITH:
Code: Select all
    // [flash=,]image_url_here[/flash:14d71jcd] code..     $text = preg_replace("#[img]((http|ftp|https|ftps)://)([^rnt<"]*?)[/img]#sie", "'[img]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text);
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 3:45 pm

Here's a screenshot. You can test the functionality on [url=http]my site[/url].

[img=left:2c4olop6]http://integramod.com/forum/album_pic.php?pic_id=4[/img]
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Bush » Sat Apr 29, 2006 4:10 pm

This looks pretty sweet Jason, I'm putting it up on my test site as we speak
Last edited by Bush on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
no signature.

Bush
Integra Member
Integra Member
 
Posts: 191
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 7:55 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 7:51 pm

Thanks to Dr. Bantham and evolver, I have found and fixed several bugs, and was able to add spellcheck to a few more areas.

Spellcheck was deleting the post, this has been resolved.

Spellcheck was added to Add/Edit KB Article and Edit Signature pages.

Font Lists reset back to their default setting allowing the user to reselect the same font type/color/size.

The first post and ZIP file has been updated to version 5.0.0a-2 (Beta). The first post also contains the information if you wish to update from version 1 to version 2.
Last edited by Jason Sanborn on Sat Apr 29, 2006 9:09 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 7:54 pm

If you've downloaded the first release, and want only the fixes, they are here:

Download the bbcode_box.zip File in the first post and replace the following file:
mods/bbcode_box/bbcode_box.js

OPEN: templates/fisubice/posting_body.tpl

FIND:
Code: Select all
                                <td><input></td>

REPLACE WITH]                                 <td><input></td>[/code]
OPEN: templates/fisubice/kb_add_body.tpl

FIND:
Code: Select all
<script></script>

AFTER, ADD]<script></script>[/code]
FIND:
Code: Select all
                                <td><a>Advanced BBCode Box v5.0.0</a> </td>

BEFORE, ADD:
Code: Select all
                                <td><input></td>                                 <td><img></td>

OPEN]<script></script>[/code]
AFTER, ADD:
Code: Select all
<script></script>

FIND]                                 <td><a>Advanced BBCode Box v5.0.0</a> </td>[/code]
BEFORE, ADD:
Code: Select all
                                <td><input></td>                                 <td><img></td>
Last edited by Jason Sanborn on Sat Apr 29, 2006 9:33 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: [MOD] Advanced BBCode Box 5.0.0a-2 [BETA]

PostAuthor: Helter » Sat Apr 29, 2006 8:54 pm

please edit your first post with this info and confine the uploads to the first post
Last edited by Helter on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

Re: [MOD] Advanced BBCode Box 5.0.0a-2 [BETA]

PostAuthor: Helter » Sat Apr 29, 2006 9:32 pm

are they two separate mods? I thought i read the second was a fix for the first. It they are separate mods, it will make searches easier if they are in separate posts

nice mod btw. It fixed all my bbcode bugs <img>
Last edited by Helter on Sat Apr 29, 2006 9:36 pm, edited 1 time in total.
Always use Protection
Image


Please do not PM for support
User avatar
Helter
Administrator
Administrator
 
Posts: 4168
Likes: 0 post
Liked in: 0 post
Images: 0
Joined: Sat Mar 11, 2006 3:46 pm
Cash on hand: 187.60
Location: Seattle Wa
IntegraMOD version: IM 3

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 9:34 pm

It was a fix for the first, only applicable if someone downloaded version 1 and just wanted the fix.

I have edited the posts and moved the download to the first post.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Michaelo » Sun Apr 30, 2006 12:51 am

Just a couple of quirky things...

If code, quote or php is added when you click Contract the contents of the post is hidden.
Code, Quote and php are replaced with &blahà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ they disappear ;(
Every time you select an icon the cursor goes to top of postà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ You have to scroll back to the bottom to enter infoà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

I know its beta so just helping out
Mike
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

Re: [MOD] Advanced BBCode Box 5.0.0a-2 [BETA]

PostAuthor: Driver 7 » Sun Apr 30, 2006 8:39 am

Thanks bro. I just added this to my site n I love it. Awesome mod.

Thanks again.
Last edited by Driver 7 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[img=left]http://www.btusquad.net/stuff/new_sig.gif[/img]
User avatar
Driver 7
Integra Member
Integra Member
 
Posts: 129
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 26, 2006 5:25 pm
Cash on hand: 0.00
Location: Vancouver, BC

PostAuthor: Jason Sanborn » Sun Apr 30, 2006 1:34 pm

"Michaelo";p="3736" wrote:Just a couple of quirky things...

If code, quote or php is added when you click Contract the contents of the post is hidden.
Code, Quote and php are replaced with &blahà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ they disappear ;(
Every time you select an icon the cursor goes to top of postà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ You have to scroll back to the bottom to enter infoà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦

I know its beta so just helping out
Mike

Thanks, that is a help. I'll check it out. I don't know why that would happen, considering I didn't touch that code in the bbcode.tpl file, unless it is something in the JS for the control.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sun Apr 30, 2006 1:51 pm

"Michaelo";p="3736" wrote:If code, quote or php is added when you click Contract the contents of the post is hidden.
Code, Quote and php are replaced with &blahà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ they disappear ;(

Are these two separate issues? I'm not quite sure what is happening. It seems to be working properly on my local system. Do you have a screen shot of the error? Have you tried it on my site, to see if it happens there?
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sun Apr 30, 2006 3:53 pm

I have uploaded a new bbcode_box.zip file with an updated bbcode_box.js file (copy to modsbbcode_boxbbcode_box.js). This file fixes the Firefox issue of post focus and caret position, the problem with the php button changing the image on the code button, and updates the Remove BBCode button so that a user could remove all BBCode from their post (with confirmation before removal).

Still uncertain of Mike's issue with Quote/Code/PHP, as I haven't been able to reproduce it on my computer.
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Michaelo » Sun Apr 30, 2006 4:41 pm

Will reinstall and check it again you know what my typing is like <img>
Last edited by Michaelo on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1646
Likes: 0 post
Liked in: 0 post
Joined: Sat Mar 11, 2006 5:14 pm
Cash on hand: 0.00
Location: Dublin, Ireland

Next

Return to Mods/Hacks

Who is online

Registered users: Majestic-12 [Bot]