[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 4: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>
You do not have the required permissions to view the files attached to this post.
Last edited by Jason Sanborn on Mon Jun 12, 2006 8: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 4: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 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 4: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 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Bush » Sat Apr 29, 2006 5: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 5: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 8:55 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 8: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 10: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 8: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 10: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 10: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 9: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 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

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

PostAuthor: Helter » Sat Apr 29, 2006 10: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 10:36 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: Jason Sanborn » Sat Apr 29, 2006 10: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 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Michaelo » Sun Apr 30, 2006 1: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 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

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

PostAuthor: Driver 7 » Sun Apr 30, 2006 9: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 5: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 6:25 pm
Cash on hand: 0.00
Location: Vancouver, BC

PostAuthor: Jason Sanborn » Sun Apr 30, 2006 2: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 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sun Apr 30, 2006 2: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 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Sun Apr 30, 2006 4: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 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Michaelo » Sun Apr 30, 2006 5: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 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

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

PostAuthor: Dr. Bantham » Mon May 01, 2006 5:16 pm

I have installed this on my forum and I love it! It is both sleek and fast. I have always pined for a TAB function, and the SPOILER function is great since I run a literary site. Jason has been super attentive to work out the minor bugs I have encountered thus far. I suggest proceeding to his forum (see link his first post) if you install this, in order to keep up to date. Thanks, Jason!
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon May 01, 2006 6:39 pm

I'm rolling all the bug fixes plus some additional enhancements into Beta 3 which should be out later today or tomorrow. I'll post Beta 3 (5.0.0a-3) info here when it is ready, but if you're interested in the bug fixes to Beta 2 before it is released, check my site out. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Mon May 01, 2006 9:46 pm

Version 5.0.0a-3 is now uploaded to the first post. It looks like it is very close to a fully stable release. Thanks to everyone who has been letting me know of bugs.

Beta 3 has a number of bug fixes that were found as well as an improved wizard for the buttons that have wizards (list, anchor, url, img, etc). It has improved error handling and better error messages to alert users of potential incompatibilities.

If you've downloaded or updated to Beta 2, below are the fixes to bring Beta 2 up to Beta 3.

Download bbcode_box.zip and spelladmin.zip from the first post.

Upload bbcode_box.js to mods/bbcode_box/bbcode_box.js

Upload spelladmin.js to spelling/spelladmin.js

OPEN: includes/bbcode.php

FIND:
Code: Select all
    $bbcode_tpl['anchor'] = str_replace('{URL}', '#%s_\1', $bbcode_tpl['anchor']);

REPLACE WITH]     $bbcode_tpl['anchor'] = str_replace('{URL}', '%s_\1', $bbcode_tpl['anchor']);[/code]
OPEN: templates/fisubice/admin/blocks_edit_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>

FIND]                     <td><textarea>{MESSAGE}</textarea></td>[/code]
REPLACE WITH:[code]                     <td><textarea name="message" rows="15" cols="35" style="width]
OPEN: templates/fisubice/kb_add_body.tpl

FIND:[code]                     <td><textarea name="message" rows="15" cols="35" style="width]
REPLACE WITH:[code]                     <td><textarea name="message" rows="15" cols="35" style="width]
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: KoolBear » Sun May 07, 2006 1:10 am

man great MOD thanks for carring the torch! Easy to install except for my board has 7 themes <img>

Thanks again!
Last edited by KoolBear on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

KoolBear
Newbie
Newbie
 
Posts: 10
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:43 pm
Cash on hand: 0.00

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

PostAuthor: Dr. Bantham » Sun May 07, 2006 6:12 am

My vote is that this mod is included into a future stock version of IntegraMOD. It is superior in style and function over the current BBCode interface.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

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

PostAuthor: KoolBear » Sun May 07, 2006 8:04 am

I concurr this is a really nice improvement over the original code.
Last edited by KoolBear on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

KoolBear
Newbie
Newbie
 
Posts: 10
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:43 pm
Cash on hand: 0.00

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

PostAuthor: Threat009 » Sun May 07, 2006 9:59 am

Great mod! I was just going to ask if anyone had added spoiler tags to the BBCode box. n00b question though. I saw 3 download attachments. Do I need to dl all 3, or is one of them current and including everything? I read the whole thread, but still don't which dl attachment I need <img>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

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

PostAuthor: Dr. Bantham » Sun May 07, 2006 10:18 am

"Threat009";p="4925" wrote:I saw 3 download attachments. Do I need to dl all 3, or is one of them current and including everything?
It is my understanding that if this is your first installation then you only need the first download, "Advanced BBCode Box 5.0.0a-3 (Beta)". The other two downloads are file replacements to prior versions. I am certain you will like this MOD.
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Sun May 07, 2006 3:18 pm

That's correct, you only need the other two files if you have installed a previous beta version and need to update to the latest version. If you are just installing this, just download the main file. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Threat009 » Sun May 07, 2006 7:36 pm

[quote=""Jason Sanborn";p="4946""]That's correct, you only need the other two files if you have installed a previous beta version and need to update to the latest version. If you are just installing this, just download the main file. :grin:
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

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

PostAuthor: Skywalker » Mon May 08, 2006 8:40 am

after installing this mod i have noticed a problem with sending pm's i don't know off this is related with this mod or a mod i have earlier installed.

my board is not live so only im active on it

everything goes fine when i send a pm no errors occur but when recieving a pm there is no message shown the title and signature are shown but the text is missing.... <img>

does someone else have the same problem?

and where should i search to solve this problem?
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon May 08, 2006 8:48 am

Can you post messages, or is it only PM's that are affected?
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Skywalker » Mon May 08, 2006 8:55 am

i have noticed when i reply on a pm i can see the message in the message preview.
but nomessga is shown in the pm itself when i recieve one
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Skywalker » Mon May 08, 2006 8:57 am

"Jason Sanborn";p="5018" wrote:Can you post messages, or is it only PM's that are affected?

i can post, recieve, reply, save and delete. everything works
pm priview works also the one problem is when i recieve a pm te message in the pm is not shown all the rest is shown the sender, subject, sig, etc
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon May 08, 2006 8:59 am

I tested this on my site, and it is working fine. Also, this doesn't quite sound like something that the Advanced BBCode Mod would affect. Are there any other Mods you have added that could affect PMs?
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Skywalker » Mon May 08, 2006 9:09 am

none that i know off.
witch template is used to show the pm's?
my latest installed mods are
this one,
moderation bbcode,
quicktime bbcode,
both bbcode mods ported to advanced bbcode 5.0.0a-3
copy posts,
message can,
word censor disabled for admin and mods

updated: and add url to post but that one dussen't work the url dus not get shown but gives no errors or someting i'm searching for a fix for that one the code is posted on IM2
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon May 08, 2006 9:12 am

The message display is the template file: privmsgs_read_body.tpl

Were PMs working before you added this Mod?
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Mon May 08, 2006 9:20 am

"Jason Sanborn";p="5026" wrote:The message display is the template file: privmsgs_read_body.tpl

Were PMs working before you added this Mod?


thats the problem that i don't know like i said they have been working i've tested them sometime ago but add multiple mods after that this board is not live so i'm the only one active on it and expanding it so i don't know when it started but i will post a new tread about this problem...
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon May 08, 2006 9:31 am

My suggestion would be to check the install instructions for the various mods, and see if you've forgotten a line of code. Because of the number of mods installed it might be difficult to pinpoint exactly where the error is.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Mon May 08, 2006 2:11 pm

It seems fairly straight forward. Check out my tutorial, which can be downloaded from here:

http://forums.simplicitypoint.com/viewtopic.php?p=87#87

The tutorial should help you integrate this modification. If you have any other questions, please feel free to post here, or on my site. <img>
Last edited by Jason Sanborn on Tue May 09, 2006 2:08 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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Mon May 08, 2006 2:20 pm

"Jason Sanborn";p="5061" wrote:It seems fairly straight forward. Check out my tutorial, which can be downloaded from here:

http://forums.simplicitypoint.com/viewtopic.php?p=79#79

The tutorial should help you integrate this modification. If you have any other questions, please feel free to post here, or on my site. <img>


i had forgotten to rename bbcode to blur one time therefor it didden't worked i have seen it when i added a new bbcode but still thanks for the reply
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Skywalker » Mon May 08, 2006 3:19 pm

"Jason Sanborn";p="5061" wrote:It seems fairly straight forward. Check out my tutorial, which can be downloaded from here:

http://forums.simplicitypoint.com/viewtopic.php?p=79#79

The tutorial should help you integrate this modification. If you have any other questions, please feel free to post here, or on my site. <img>

don't got i working yet...

do i need to place this code also to make this mod work?
Code: Select all
/**  * Does second-pass bbencoding of the [quote] tags. This includes  * seperating out any [footnote] tags there may be in any pair of  * [quote] tags.  */function bbencode_second_pass_quote($text, $uid, $bbcode_tpl){     // determine if any quotes are in the text a make nda recursive call on it if there is     preg_match("#[quote](.*?)[/quote]#si", substr($text, 1), $match);       if( $match[0] )     {         $start_pos = strpos($text, $match[0], 1);         $text = substr($text, 0, $start_pos) . bbencode_second_pass_quote(substr($text, $start_pos), $uid, $bbcode_tpl);     }         $end_text = "";     $end_pos = strpos($text, "[/quote]");             // select just the quote itself and strip the closing quote tag (if there is a quote in the text)     if( $end_pos )     {         $end_text = substr($text, ($end_pos + strlen("[/quote]")));         $text = substr($text, 0, ($end_pos + strlen("[/quote]")));                 $text = str_replace("[/quote]", "", $text);       }       // [footnote] and [/footnote] for hiding spoiler text     preg_match_all("#[footnote](.*?)[/footnote:$uid]#si", $text, $footnotes, PREG_PATTERN_ORDER);         if(count($footnotes[1]) != 0)     {         $count = 1;         $text .= $bbcode_tpl['footnote_open'];             foreach($footnotes[1] as $key => $note)         {             $text = str_replace($footnotes[0][$key], $bbcode_tpl['super_open'].$count.$bbcode_tpl['super_close'], $text);             $text .= "".$bbcode_tpl['super_open'].$count.$bbcode_tpl['super_close']." ".$note;             $count++;         }           $text .= $bbcode_tpl['footnote_close'];     }       // add the closing quote tag again (if this was a quote)     if( $end_pos )     {         $text .= $bbcode_tpl['quote_close'];     }         // substiture the opening quote tag with the correct template code     $text = str_replace("[quote]", $bbcode_tpl['quote_open'], $text);     $text = preg_replace("/[quote]/si", $bbcode_tpl['quote_username_open'], $text);       // place the quote back into the main text     $text .= $end_text;       return $text;}


and do i just need to rename footnote to blur for this bbcode?

and so on for other bbcodes?
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Mon May 08, 2006 3:28 pm

The tutorial uses footnote as an example. The code in the tutorial is specifically for footnote. The purpose is to show you how to read a MOD file and pick out the code from the instructions that are necessary for the Advanced BBCode MOD.

What is the problem you are having getting blur to work?
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Threat009 » Mon May 08, 2006 7:08 pm

Seems to be some special character differences in the Install.txt Example: Let's say you open the files to edit w/note pad, than you'll prolly see some odd characters, but if you open the files to edit w/word pad, the odd characters are not present. The Install.txt includes some special characters that may be screwing up peoples installations. Just guessing <img> not confirmed.....

BTW
My kb_add_body.tpl does not contain the following line
Code: Select all
<form>

I did however find this one
Code: Select all
<form>

and added the code before it. Everything seems to be fine atm, but is this something I should be concerned with?

[color=red]Edit] Minor bug. When editing my own news post, if I try to change the font color, the cursor jumps to the end of the post. Not sure if it does it in regular forums, this was my news forum and my own post. Extremely minor, but if you want to fix it feel free. O.S: windows XP Browser: Mozilla current
Other than that X-cellent Mod so far! I think it should be default in future IM releases!
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Skywalker » Mon May 08, 2006 11:56 pm

"Jason Sanborn";p="5072" wrote:The tutorial uses footnote as an example. The code in the tutorial is specifically for footnote. The purpose is to show you how to read a MOD file and pick out the code from the instructions that are necessary for the Advanced BBCode MOD.

What is the problem you are having getting blur to work?

when i use blur i get:
[blur:02cd5c610c]test[/blur:02cd5c610c] instead of a blur tekst

i had placed one line wrong i works now
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

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

PostAuthor: Jason Sanborn » Tue May 09, 2006 9:04 am

"Threat009";p="5081" wrote:Seems to be some special character differences in the Install.txt Example: Let's say you open the files to edit w/note pad, than you'll prolly see some odd characters, but if you open the files to edit w/word pad, the odd characters are not present. The Install.txt includes some special characters that may be screwing up peoples installations. Just guessing ;)

"Threat009";p="5081" wrote:[color=red]Edit] Minor bug. When editing my own news post, if I try to change the font color, the cursor jumps to the end of the post. Not sure if it does it in regular forums, this was my news forum and my own post. Extremely minor, but if you want to fix it feel free. O.S: windows XP Browser: Mozilla current
Other than that X-cellent Mod so far! I think it should be default in future IM releases!

I'll look into that.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Jason Sanborn » Tue May 09, 2006 9:16 am

"Skywalker";p="5139" wrote:another bbcode:
can you maybe port this one to this bbcode box:

At the moment, I don't have time to include new BBCodes. Also, I have pretty much reached the limit of the number of BBCodes included on the main lines of the control. New BBCodes would have to be on a new line, and I want to avoid that in a default installation. If there are enough new BBCodes requested, I might consider adding them into a future release though.

The tutorial should give you guidance on how to handle adding new BBCodes, and if you have questions, you're welcome to ask here or on my site. Just as a note, though, I will be leaving on vacation on Saturday, so I won't be available for a couple weeks starting Saturday.

"Skywalker";p="5139" wrote:here is the problem:
Code: Select all
##-----[ FIND ]------------------------------------------------#     $text = preg_replace("#[img]((ht|f)tp]*?(.(jpg|jpeg|gif|png)))[/img]#sie", "'[img]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text);  ##-----[ REPLACE ]---------------------------------------------#     $text = preg_replace("#[img]((ht|f)tp://)([^ ?&="nrt<]*?(.(jpg|jpeg|gif|png|php)))[/img]#sie", "'[img]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text);    


this code is edited

This line looks OK to skip, as the changes done by IntegraMod and the Advanced BBCode MOD overwrites this change.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Skywalker » Tue May 09, 2006 9:51 am

i have read the tutorial and i have added much bbcodes the problem with the glow/shadow addon is this
Code: Select all
<select>


i have tried a few things to make it work but failed.
when i said port i meant make a mod install instruction that dus work
i didden't mean add it to the bbcode box as it is now.
if i have an instruction to let the code above work or a code to add to bbcode.php or bbcode_box.js i can add it to my board.

i have glow and shadow working only the addon (witch i posted here) to have a dropdown menu like font color but then for glow and shadow is beyond my skills
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue May 09, 2006 10:16 am

I'll see if I can recreate a set of install instructions for these BBCodes later today or tomorrow. One thing to bear in mind is that the changes to the template files inside the install instructions do not apply to the Advanced BBCode Box. You simply need to add the appropriate buttons. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Jason Sanborn » Tue May 09, 2006 10:28 am

"Threat009";p="5081" wrote:[color=red]Edit] Minor bug. When editing my own news post, if I try to change the font color, the cursor jumps to the end of the post. Not sure if it does it in regular forums, this was my news forum and my own post. Extremely minor, but if you want to fix it feel free. O.S: windows XP Browser: Mozilla current
Other than that X-cellent Mod so far! I think it should be default in future IM releases!

I checked editing and creating posts, news articles, blocks, and signatures, and was not able to reproduce this issue. This could be an issue with some of the other modifications you've added, or something with the theme you are using.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Tue May 09, 2006 10:40 am

"Jason Sanborn";p="5181" wrote:I'll see if I can recreate a set of install instructions for these BBCodes later today or tomorrow. One thing to bear in mind is that the changes to the template files inside the install instructions do not apply to the Advanced BBCode Box. You simply need to add the appropriate buttons. <img>


that i know i have created buttons for al the bbcodes i added
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue May 09, 2006 1:54 pm

Updated the Advanced BBCode Box to version 4, which is the stable release version. Thanks to Dr. Bantham who helped me find the bugs and fix them before release.

The table function has been added and the Gotopost has been fixed to allow for linking to anchors created within the same post.

If you installed the previous beta version, in order to update to the latest version, download the Update to 4 ZIP file in the first post. Once downloaded and extracted, make the following changes:

COPY: bbcode_box.js to mods/bbcode_box/bbcode_box.js

COPY: table.gif to mods/bbcode_box/images/table.gif

OPEN: includes/bbcode.php

FIND:
Code: Select all
    // Gotopost     global $phpEx;     $bbcode_tpl['gotopost_open_1'] = str_replace('{URL}', append_sid("viewtopic.$phpEx?p=" . '\1') . '#\1', $bbcode_tpl['gotopost_open']);     $bbcode_tpl['gotopost_open_2'] = str_replace('{URL}', append_sid("viewtopic.$phpEx?p=" . '\1') . '#\1_\2', $bbcode_tpl['gotopost_open']);

AFTER, ADD]     $bbcode_tpl['gotopost_open_3'] = str_replace('{URL}', '#%s_\1', $bbcode_tpl['gotopost_open']);       $bbcode_tpl['table_mainrow_color'] = str_replace('{TABMRCOLOR}', '\1', $bbcode_tpl['table_mainrow_color']);     $bbcode_tpl['table_mainrow_size'] = str_replace('{TABMRSIZE}', '\1', $bbcode_tpl['table_mainrow_size']);     $bbcode_tpl['table_mainrow_cs1'] = str_replace('{TABMRCSCOLOR}', '\1', $bbcode_tpl['table_mainrow_cs']);     $bbcode_tpl['table_mainrow_cs1'] = str_replace('{TABMRCSSIZE}', '\2', $bbcode_tpl['table_mainrow_cs1']);     $bbcode_tpl['table_maincol_color'] = str_replace('{TABMCCOLOR}', '\1', $bbcode_tpl['table_maincol_color']);     $bbcode_tpl['table_maincol_size'] = str_replace('{TABMCSIZE}', '\1', $bbcode_tpl['table_maincol_size']);     $bbcode_tpl['table_maincol_cs1'] = str_replace('{TABMCCSCOLOR}', '\1', $bbcode_tpl['table_maincol_cs']);     $bbcode_tpl['table_maincol_cs1'] = str_replace('{TABMCCSSIZE}', '\2', $bbcode_tpl['table_maincol_cs1']);     $bbcode_tpl['table_row_color'] = str_replace('{TABRCOLOR}', '\1', $bbcode_tpl['table_row_color']);     $bbcode_tpl['table_row_size'] = str_replace('{TABRSIZE}', '\1', $bbcode_tpl['table_row_size']);     $bbcode_tpl['table_row_cs1'] = str_replace('{TABRCSCOLOR}', '\1', $bbcode_tpl['table_row_cs']);     $bbcode_tpl['table_row_cs1'] = str_replace('{TABRCSSIZE}', '\2', $bbcode_tpl['table_row_cs1']);     $bbcode_tpl['table_col_color'] = str_replace('{TABCCOLOR}', '\1', $bbcode_tpl['table_col_color']);     $bbcode_tpl['table_col_size'] = str_replace('{TABCSIZE}', '\1', $bbcode_tpl['table_col_size']);     $bbcode_tpl['table_col_cs1'] = str_replace('{TABCCSCOLOR}', '\1', $bbcode_tpl['table_col_cs']);     $bbcode_tpl['table_col_cs1'] = str_replace('{TABCCSSIZE}', '\2', $bbcode_tpl['table_col_cs1']);     $bbcode_tpl['table_size'] = str_replace('{TABSIZE}', '\1', $bbcode_tpl['table_size']);     $bbcode_tpl['table_color'] = str_replace('{TABCOLOR}', '\1', $bbcode_tpl['table_color']);     $bbcode_tpl['table_cs1'] = str_replace('{TABCSCOLOR}', '\1', $bbcode_tpl['table_cs']);     $bbcode_tpl['table_cs1'] = str_replace('{TABCSSIZE}', '\2', $bbcode_tpl['table_cs1']);[/code]
FIND:
Code: Select all
    // gotopost     $text = preg_replace("/[gotopost=([d]+?)]/si", $bbcode_tpl['gotopost_open_1'], $text);     $text = preg_replace("/[gotopost=([d]+?),([a-zA-Z]w*?):$uid]/si", $bbcode_tpl['gotopost_open_2'], $text);     $text = preg_replace("/[gotopost=([a-zA-Z]w*?):$uid]/si", sprintf($bbcode_tpl['gotopost_open_3'],$post_id), $text);

AFTER, ADD:
Code: Select all
    $text = str_replace("[/gotopost]", $bbcode_tpl['gotopost_close'], $text);       // [table] and [/table] for making tables.     // beginning code [table], along with attributes     $text = str_replace("[table:$uid]", $bbcode_tpl['table_open'], $text);     $text = preg_replace("/[table color=(#[0-9A-F]{6}|[a-z]+):$uid]/si", $bbcode_tpl['table_color'], $text);     $text = preg_replace("/[table fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_size'], $text);     $text = preg_replace("/[table color=(#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_cs1'], $text);     // mainrow tag [mrow], along with attributes     $text = str_replace("[mrow:$uid]", $bbcode_tpl['table_mainrow'], $text);     $text = preg_replace("/[mrow color=(#[0-9A-F]{6}|[a-z]+):$uid]/si", $bbcode_tpl['table_mainrow_color'], $text);     $text = preg_replace("/[mrow fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_mainrow_size'], $text);     $text = preg_replace("/[mrow color=(#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_mainrow_cs1'], $text);     // maincol tag [mcol], along with attributes     $text = str_replace("[mcol:$uid]", $bbcode_tpl['table_maincol'], $text);     $text = preg_replace("/[mcol color=(#[0-9A-F]{6}|[a-z]+):$uid]/si", $bbcode_tpl['table_maincol_color'], $text);     $text = preg_replace("/[mcol fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_maincol_size'], $text);     $text = preg_replace("/[mcol color=(#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_maincol_cs1'], $text);     // row tag [row], along with attributes     $text = str_replace("[row:$uid]", $bbcode_tpl['table_row'], $text);     $text = preg_replace("/[row color=(#[0-9A-F]{6}|[a-z]+):$uid]/si", $bbcode_tpl['table_row_color'], $text);     $text = preg_replace("/[row fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_row_size'], $text);     $text = preg_replace("/[row color=(#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_row_cs1'], $text);     // column tag [col], along with attributes     $text = str_replace("[col:$uid]", $bbcode_tpl['table_col'], $text);     $text = preg_replace("/[col color=(#[0-9A-F]{6}|[a-z]+):$uid]/si", $bbcode_tpl['table_col_color'], $text);     $text = preg_replace("/[col fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_col_size'], $text);     $text = preg_replace("/[col color=(#[0-9A-F]{6}|[a-z]+) fontsize=([1-2]?[0-9]):$uid]/si", $bbcode_tpl['table_col_cs1'], $text);     // ending tag [/table]     $text = str_replace("[/table:$uid]", $bbcode_tpl['table_close'], $text);

FIND:
Code: Select all
    // [gotopost]     $text = preg_replace("#[gotopost=([d]+?)](.*?)[/gotopost]#si", "[gotopost=\1]\2[/gotopost:$uid]", $text);     $text = preg_replace("#[gotopost=([d]+?),([a-zA-Z]w*?)](.*?)[/gotopost]#si", "[gotopost=\1,\2:$uid]\3[/gotopost:$uid]", $text);

AFTER, ADD:
Code: Select all
    $text = preg_replace("#[gotopost=([a-zA-Z]w*?)](.*?)[/gotopost]#si", "[gotopost=\1]\2[/gotopost:$uid]", $text);       // [table] and [/table] for making tables.     // beginning code [table], along with attributes     $text = preg_replace("#[table](.*?)[/table]#si", "[table:$uid]\1[/table:$uid]", $text);     $text = preg_replace("#[table color=(#[0-9A-F]{6}|[a-z-]+)](.*?)[/table]#si", "[table color=\1:$uid]\2[/table:$uid]", $text);     $text = preg_replace("#[table fontsize=([1-2]?[0-9])](.*?)[/table]#si", "[table fontsize=\1:$uid]\2[/table:$uid]", $text);     $text = preg_replace("#[table color=(#[0-9A-F]{6}|[a-z-]+) fontsize=([1-2]?[0-9])](.*?)[/table]#si", "[table color=\1 fontsize=\2:$uid]\3[/table:$uid]", $text);     $text = preg_replace("#[table fontsize=([1-2]?[0-9]) color=(#[0-9A-F]{6}|[a-z-]+)](.*?)[/table]#si", "[table color=\2 fontsize=\1:$uid]\3[/table:$uid]", $text);     // mainrow tag [mrow], along with attributes     $text = preg_replace("#[mrow](.*?)#si", "[mrow:$uid]\1", $text);     $text = preg_replace("#[mrow color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[mrow color=\1:$uid]\2", $text);     $text = preg_replace("#[mrow fontsize=([1-2]?[0-9])](.*?)#si", "[mrow fontsize=\1:$uid]\2", $text);     $text = preg_replace("#[mrow color=(#[0-9A-F]{6}|[a-z-]+) fontsize=([1-2]?[0-9])](.*?)#si", "[mrow color=\1 fontsize=\2:$uid]\3", $text);     $text = preg_replace("#[mrow fontsize=([1-2]?[0-9]) color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[mrow color=\2 fontsize=\1:$uid]\3", $text);     // maincol tag [mcol], along with attributes     $text = preg_replace("#[mcol](.*?)#si", "[mcol:$uid]\1", $text);     $text = preg_replace("#[mcol color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[mcol color=\1:$uid]\2", $text);     $text = preg_replace("#[mcol fontsize=([1-2]?[0-9])](.*?)#si", "[mcol fontsize=\1:$uid]\2", $text);     $text = preg_replace("#[mcol color=(#[0-9A-F]{6}|[a-z-]+) fontsize=([1-2]?[0-9])](.*?)#si", "[mcol color=\1 fontsize=\2:$uid]\3", $text);     $text = preg_replace("#[mcol fontsize=([1-2]?[0-9]) color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[mcol color=\2 fontsize=\1:$uid]\3", $text);     // row tag [row], along with attributes     $text = preg_replace("#[row](.*?)#si", "[row:$uid]\1", $text);     $text = preg_replace("#[row color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[row color=\1:$uid]\2", $text);     $text = preg_replace("#[row fontsize=([1-2]?[0-9])](.*?)#si", "[row fontsize=\1:$uid]\2", $text);     $text = preg_replace("#[row color=(#[0-9A-F]{6}|[a-z-]+) fontsize=([1-2]?[0-9])](.*?)#si", "[row color=\1 fontsize=\2:$uid]\3", $text);     $text = preg_replace("#[row fontsize=([1-2]?[0-9]) color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[row color=\2 fontsize=\1:$uid]\3", $text);     // column tag [col], along with attributes     $text = preg_replace("#[col](.*?)#si", "[col:$uid]\1", $text);     $text = preg_replace("#[col color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[col color=\1:$uid]\2", $text);     $text = preg_replace("#[col fontsize=([1-2]?[0-9])](.*?)#si", "[col fontsize=\1:$uid]\2", $text);     $text = preg_replace("#[col color=(#[0-9A-F]{6}|[a-z-]+) fontsize=([1-2]?[0-9])](.*?)#si", "[col color=\1 fontsize=\2:$uid]\3", $text);     $text = preg_replace("#[col fontsize=([1-2]?[0-9]) color=(#[0-9A-F]{6}|[a-z-]+)](.*?)#si", "[col color=\2 fontsize=\1:$uid]\3", $text);

OPEN: languages/lang_english/lang_bbcode.php

FIND:
Code: Select all
$faq[] = array("--", "Showing images in posts");$faq[] = array("Adding an image to a post", "phpBB BBCode incorporates a tag for including images in your posts. Two very important things to remember when using this tag are]</b>http://www.phpbb.com/images/phplogo.gif<b>[/flash:3akei1vb]</b><br><br>As noted in the URL section above you can wrap an image in a <b></b> tag if you wish, eg.<br><br><b>[url=http][flash=,:3akei1vb]</b>http://www.phpbb.com/images/phplogo.gif<b>[/flash:3akei1vb][/url]</b><br><br>would generate:<br><br><a><img></a><br>");// LEFT-RIGHT-start$faq[] = array("Aligning images and wrapping text", "This forum has the Left-Right IMG tag MOD installed.  Through the use of these tags, you can better format your posts by aligning text to the left or right side of the post body.  Additionally, through the use of these tags, text will now neatly wrap around the images as opposed to being in-line as with a normal [flash=,:3akei1vb]tag.  For example:<br><br><b>With img tags:</b><br>A really really <b>[img]</b>phplogo.gif<b>[/flash:3akei1vb]</b>%20<b>[flash=,:3akei1vb]</b>phplogo.gif<b>[/flash:3akei1vb]</b>%20really%20really%20really%20really%20really%20really%20long%20sentence.%20<table><tr><td><br>A%20really%20really%20<img>%20<img>%20really%20really%20really%20really%20really%20really%20long%20sentence.<br><br></td></tr></table><br>%20<b>With%20left%20and%20right%20tags:</b><br>A%20really%20really%20<b>[img=left:3akei1vb]</b>phplogo.gif<b>[/img]</b> <b>[img=right:3akei1vb]</b>phplogo.gif<b>[/img]</b> really really really really really really long sentence. <table><tr><td><br><img> <img> A really really really really really really really really long sentence.<br><br><br></td></tr></table>") ;// LEFT-RIGHT-end

AFTER, ADD:
Code: Select all
$faq[] = array("--", "<a></a>Making Tables");$faq[] = array("What do the [table] and [/table] tags do?", "You use [table] and [/table] to start and end the table<br>Use <b>[table]</b> at the very beginning of the table, <br>and <b>[/table]</b> at the very end.");$faq[] = array("What does the [mrow] tag do?", "You use [mrow] for a new row that starts with a header column (Centered, Bold text).<br>Note] is NOT required<br><br><b><u>For example:</u></b><br><br>[table]<b>[mrow]</b>Main Row[/table]<br><br>Will show up as<br><br><table><tr><td>Main Row</td></tr></table>");$faq[] = array("What does the [mcol] tag do?", "You use [mcol] for each new header column (Centered, Bold text).<br>Note: [/mcol] is NOT required<br><br><b><u>For example:</u></b><br><br>[table][mrow]Main Row Column 1<b>[mcol]</b>Main Row Column 2[col]Main Row Regular Column[/table]<br><br>Will show up as<br><br><table><tr><td>Main Row Column 1</td><td>Main Row Column 2</td><td>Main Row Regular Column</td></tr></table>");$faq[] = array("What does the [row] tag do?", "You use [row] for each new row (plain, uncentered)<br>Note: [/row] is NOT required<br><br><b><u>For example:</u></b><br><br>[table][mrow]Main Row<b>[row]</b>Regular Row[/table]<br><br>Will show up as...<br><br><table><tr><td>Main Row</td></tr><tr><td>Regular Row</td></tr></table>");$faq[] = array("What does the [col] tag do?", "Use [col] to create a new column (plain, uncentered)<br>Note: [/col] is NOT required<br><br><b><u>For example:</u></b><br><br>[table][mrow]Main Row Column 1[mcol]Main Row Column 2[row]Regular Row Column 1<b>[col]</b>Regular Row Column 2[/table]<br><br>Will show up as<br><br><table><tr><td>Main Row Column 1</td><td>Main Row Column 2</td></tr><tr><td>Regular Row Column 1</td><td>Regular Row Column 2</td></tr></table>");$faq[] = array("Do I need to add closing tags for the [mrow], [mcol], [row], or [col] tags?", "No, the Table BBCode is set up to eliminate the need for any closing tags other than the [/table] tag, which is required.");$faq[] = array("What are the different attributes?", "You can use <a>"color="</a> and <a>"fontsize="</a> with any tag. You use them the same way you would an html attribute by seperating each tag with a single space. The order in which you use them does not matter.<br><br><a><br></a><span><b><u>Color</u></b></span><br><br>The "color=" attribute allows you to change the background color.<br>You can specify either a recognised colour name (eg. red, blue, yellow, etc.) or the hexadecimal triplet alternative, eg. #FFFFFF, #000000.<br><br><b><u>Example:</u></b><br>[table color=blue][mrow color=green]Main Row Column 1[mcol color=red]Main Row Column 2[row color=#00FF00]Regular Row 1 Column 1[col color=#FF0000]Regular Row 1 Column 2[row]Regular Row 2 Column 1[col]Regular Row 2 Column 2[/table]<br>   Will show up as<br><table><tr><td>Main Row Column 1</td><td>Main Row Column 2</td></tr><tr><td>Regular Row 1 Column 1</td><td>Regular Row 1 Column 2</td></tr><tr><td>Regular Row 2 Column 1</td><td>Regular Row 2 Column 2</table><br><hr><br><a></a><br><span><b><u>Fontsize</u></b></span><br><br>The "fontsize=" attribute allows you to change the text size.<br>The default font size is set to the FONTSIZE3 setting in the current template, however this can be changed by using the attribute in the [table] tag.<br><br><b><u>Example:</u></b><br>[table fontsize=18][mrow fontsize=10]Main Row Column 1[mcol fontsize=14]Main Row Column 2[row fontsize=5]Regular Row 1 Column 1[col fontsize=28]Regular Row 1 Column 2[row]Regular Row 2 Column 1[col]Regular Row 2 Column 2[/table]<br>   Will show up as<br><table><tr><td>Main Row Column 1</td><td>Main Row Column 2</td></tr><tr><td>Regular Row 1 Column 1</td><td>Regular Row 1 Column 2</td></tr><tr><td>Regular Row 2 Column 1</td><td>Regular Row 2 Column 2</table>");

OPEN: templates/fisubice/admin/blocks_edit_body.tpl

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

AFTER, ADD]                                 <td><img></td>                                 <td><img></td>[/code]
OPEN: templates/fisubice/profilcp/profil_signature_body.tpl

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

AFTER, ADD]                                 <td><img></td>                                 <td><img></td>[/code]
OPEN: templates/fisubice/bbcode.tpl

FIND:
Code: Select all
<BEGIN><a><END> <BEGIN></a><END>

AFTER, ADD]<BEGIN><table><END><BEGIN></td></tr></table><END><BEGIN><table><END><BEGIN><table><END><BEGIN><table><END><BEGIN></td></tr><tr><td><END><BEGIN></td></tr><tr><td><END><BEGIN></td></tr><tr><td><END><BEGIN></td></tr><tr><td><END><BEGIN></td><td><END><BEGIN></td><td><END><BEGIN></td><td><END><BEGIN></td><td><END><BEGIN></td></tr><tr><td><END><BEGIN></td></tr><tr><td><END><BEGIN></td></tr><tr><td><END><BEGIN></td></tr><tr><td><END><BEGIN></td><td><END><BEGIN></td><td><END><BEGIN></td><td><END><BEGIN></td><td><END>[/code]
OPEN: templates/fisubice/kb_add_body.tpl

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

AFTER, ADD]                                 <td><img></td>                                 <td><img></td>[/code]
OPEN: templates/fisubice/posting_body.tpl

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

AFTER, ADD]                                 <td><img></td>                                 <td><img></td>[/code]
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Jason Sanborn » Tue May 09, 2006 2:52 pm

"Skywalker";p="5139" wrote:
Code: Select all
################################################################### Hack Title]http://www.dvmachines.com[/url] ## Description: Adds drop down menus so you can easily select the glow and shadow ## bbcode tag and color for your posts####  This Hack REQUIRES David Smith's Glow and Shadow effects BBcode Mod## [url=http://www.phpbbhacks.com/viewhack.php?ID=353#]http://www.phpbbhacks.com/viewhack.php?ID=353#[/url]### Installation Level: easy## Installation Time: 2-5 minute## Files To Edit: (3)## language/laguage_XXX/lang_main.php## posting.php## templates/subSilver/posting_body.tpl## Included Files: n/a##################################################################### Author Note:## ## Be sure to edit all templates and languages you have loaded ##################################################################### Before Adding This Hack To Your Forum, You Should Back Up All Files Related To This Hack#################################################################  ##-----[ Open language/language_XXX/lang_main.php ]------------------------------------------## Make sure you edit the language file for all your laguages if you use more than one##-----[ Find ]------------------------------------------#$lang['Font_color'] = "Font colour";##-----[ Add ABOVE ]------------------------------------------#$lang['Shadow_color'] = "Shadow Color";$lang['Glow_color'] = "Glow Color";##-----[ Find ]------------------------------------------#$lang['bbcode_f_help'] = "Font Size: [size=99px]text[/shadow:21zz79pj]  Tip: this makes your text shadowed";$lang['bbcode_g_help'] = "Glow Color: [glow=red:21zz79pj]text[/glow:21zz79pj]  Tip: this makes your text glow";##-----[ SAVE/CLOSE lang_main.php ]------------------------------------------###-----[ Open posting.php ]------------------------------------------###-----[ Find ]------------------------------------------#     'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], ##-----[ Add after ]------------------------------------------#     'L_BBCODE_S2_HELP' => $lang['bbcode_s2_help'],     'L_BBCODE_G_HELP' => $lang['bbcode_g_help'],     'L_SHADOW_COLOR' => $lang['Shadow_color'],     'L_GLOW_COLOR' => $lang['Glow_color'],##-----[ SAVE/CLOSE posting.php ]------------------------------------------###-----[ Open templates/subSilver/posting_body.tpl ]------------------------------------------## Make sure you edit all your templates if you use more than one##-----[ Find ]------------------------------------------#f_help = "{L_BBCODE_F_HELP}";##-----[ Add after ]------------------------------------------#s2_help = "{L_BBCODE_S2_HELP}";g_help = "{L_BBCODE_G_HELP}";##-----[ Find ]------------------------------------------#       <td><span><a>{L_BBCODE_CLOSE_TAGS}</a></span></td>     </tr>    </table>  </td></tr>##-----[ REPLACE WITH ]------------------------------------------#                 </tr>               </table>             </td>           </tr>           <tr>             <td>               <table>                 <tr>                   <td><span>  {L_SHADOW_COLOR}:                     <select>                       <option>{L_COLOR_DEFAULT}</option>                       <option>{L_COLOR_DARK_RED}</option>                       <option>{L_COLOR_RED}</option>                       <option>{L_COLOR_ORANGE}</option>                       <option>{L_COLOR_BROWN}</option>                       <option>{L_COLOR_YELLOW}</option>                       <option>{L_COLOR_GREEN}</option>                       <option>{L_COLOR_OLIVE}</option>                       <option>{L_COLOR_CYAN}</option>                       <option>{L_COLOR_BLUE}</option>                       <option>{L_COLOR_DARK_BLUE}</option>                       <option>{L_COLOR_INDIGO}</option>                       <option>{L_COLOR_VIOLET}</option>                       <option>{L_COLOR_WHITE}</option>                       <option>{L_COLOR_BLACK}</option>                     </select>  {L_GLOW_COLOR}:<select>                       <option>{L_COLOR_DEFAULT}</option>                       <option>{L_COLOR_DARK_RED}</option>                       <option>{L_COLOR_RED}</option>                       <option>{L_COLOR_ORANGE}</option>                       <option>{L_COLOR_BROWN}</option>                       <option>{L_COLOR_YELLOW}</option>                       <option>{L_COLOR_GREEN}</option>                       <option>{L_COLOR_OLIVE}</option>                       <option>{L_COLOR_CYAN}</option>                       <option>{L_COLOR_BLUE}</option>                       <option>{L_COLOR_DARK_BLUE}</option>                       <option>{L_COLOR_INDIGO}</option>                       <option>{L_COLOR_VIOLET}</option>                       <option>{L_COLOR_WHITE}</option>                       <option>{L_COLOR_BLACK}</option>                     </select>                     </span></td>                   <td><span><a>{L_BBCODE_CLOSE_TAGS}</a></span></td>                 </tr>               </table>             </td>           </tr>##-----[ SAVE/CLOSE posting_body.tpl ]------------------------------------------#  DONE!    

For the blur/shadow mod, you'll want to add the following code to your new row of buttons:
Code: Select all
                                <td>                                     <select style="height]
And to the mods/bbcode_box/bbcode_box.js, make the following changes:

FIND:[code]table_help = "Creates a Table using BBCode";[/code]
AFTER, ADD]fsh_help = 'Shadow Color: [shadow=red:21zz79pj]text[/shadow:21zz79pj]  Tip: this makes your text shadowed';fg_help = 'Glow Color: [glow=red:21zz79pj]text[/glow:21zz79pj]  Tip: this makes your text glow';

ADD to END of FILE:
Code: Select all
function BBCfsh() {     var txtarea = document.post.message;         if ((clientVer >= 4) && is_ie && is_win) {         theSelection = document.selection.createRange().text;         if (theSelection != '') {         document.selection.createRange().text = "[shadow="+document.post.fsh.value+"]" + theSelection + "[/shadow]";         document.post.message.focus();         document.post.fsh[0].selected = true;         return;         }     }     else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))     {         mozWrap(txtarea, "[shadow="+document.post.fsh.value+"]", "[/shadow]");         document.post.fsh[0].selected = true;         return;     }     ToAdd = "[shadow="+document.post.fsh.value+"]"+" "+"[/shadow]";     document.post.fsh[0].selected = true;     PostWrite(ToAdd);}  function BBCfg() {     var txtarea = document.post.message;         if ((clientVer >= 4) && is_ie && is_win) {         theSelection = document.selection.createRange().text;         if (theSelection != '') {         document.selection.createRange().text = "[glow="+document.post.fg.value+"]" + theSelection + "[/glow]";         document.post.message.focus();         document.post.fg[0].selected = true;         return;         }     }     else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0))     {         mozWrap(txtarea, "[glow="+document.post.fg.value+"]", "[/glow]");         document.post.fg[0].selected = true;         return;     }     ToAdd = "[glow="+document.post.fg.value+"]"+" "+"[/glow]";     document.post.fg[0].selected = true;     PostWrite(ToAdd);}
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: tmotley » Wed May 10, 2006 3:51 pm

Nothing to add except I REALLY like this mod and Jason Sandborn is extremely smart and helpful. I got it running like a top...
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Threat009 » Wed May 10, 2006 5:18 pm

I hate it when this happens. I don't have some of the codes to find in includes/bbcode.php I checked my backup, prior to this install and they are not there either. :?:
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: tmotley » Wed May 10, 2006 5:49 pm

Got any mods that affect the bbcode.php file? If not, I'm more than willing to offer up mine.

Aren't the edits in that file just replacing large chunks of code for the most part? I did not check for exact matches. I just made sure I started and stopped at the right spot in the code when copying and pasting.
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Threat009 » Wed May 10, 2006 6:44 pm

"tmotley";p="5432" wrote:Got any mods that affect the bbcode.php file? If not, I'm more than willing to offer up mine.

Aren't the edits in that file just replacing large chunks of code for the most part? I did not check for exact matches. I just made sure I started and stopped at the right spot in the code when copying and pasting.

None of my current mods are related to that file. However, I think that file was overwritten for the 2.0.20 update. I look for first and last lines as well, than compare and make sure before I edit, but in this case they just aren't there. <img>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Wed May 10, 2006 7:18 pm

I see what happened, you added a beta version, and are trying to update from there. :)
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Threat009 » Wed May 10, 2006 9:05 pm

"Jason Sanborn";p="5434" wrote:I see what happened, you added a beta version, and are trying to update from there. :)

Do you mean this one "adv_bbcode_box_upg"? B/c that's the one I dl'ed and than I tried to follow the steps you directed me to, but well yeah I couldn't find the codes. I dunno, past my bedtime maybe. btw: thanks for your help <img>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Thu May 11, 2006 9:20 am

I have uploaded Premodded files you can use if you have no other mods added to the affected pages. If you are still having questions or problems, please let me know.

Just as an FYI, I'm leaving on vacation Saturday, so I only have today and tomorrow to answer any questions until I return. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Threat009 » Thu May 11, 2006 9:38 am

"Jason Sanborn";p="5535" wrote:I have uploaded Premodded files you can use if you have no other mods added to the affected pages. If you are still having questions or problems, please let me know.

Just as an FYI, I'm leaving on vacation Saturday, so I only have today and tomorrow to answer any questions until I return. <img>

Okay, here's the thing. I installed this on the 8th for the very first time. I noticed on the 9th, you made this post [url=http]http://integramod.com/forum/viewtopic.php?p=5233#5233[/url] So I went to the first and dl'ed the adv_bbcode_box_upg.zip Than I tried to apply the upgrade from [url=http]http] but I couldn't find some of the codes, to perform the upgrade. So, basically I was asking how I would be able to perform the upgrade if I couldn't find some of the codes. Any suggestions?
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Thu May 11, 2006 10:04 am

What codes were you not able to find? Is it only your bbcode.php file? I'll look at your bbcode.php file again, and see if I can add the codes into it.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Thu May 11, 2006 10:15 am

I used WinMerge to compare your bbcode.php file to my bbcode.php file to see why you couldn't find some of the codes. Apparently some of the line endings were different.

Here's a suggestion to help you when you search for code, to avoid different line endings, tab issues, or extra spaces:
Take one line from the code in the FIND region, and copy only the text (skip the indentation, and don't copy the end-of-line). Use that to find your section, and compare the two sections visually, to make sure you found the right section, then continue with the additions.

That will help you with updates for any Mods that might come out. <img>

Here's your updated bbcode.php file:
http://www.simplicitypoint.com/temp/Thr ... bbcode.zip
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Threat009 » Thu May 11, 2006 2:27 pm

[quote=""Jason Sanborn";p="5552""]I used WinMerge to compare your bbcode.php file to my bbcode.php file to see why you couldn't find some of the codes. Apparently some of the line endings were different.

Here's a suggestion to help you when you search for code, to avoid different line endings, tab issues, or extra spaces:
Take one line from the code in the FIND region, and copy only the text (skip the indentation, and don't copy the end-of-line). Use that to find your section, and compare the two sections visually, to make sure you found the right section, then continue with the additions.

That will help you with updates for any Mods that might come out. :)
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Michaelo » Mon May 15, 2006 6:26 am

Jason, which link includes updates or do I need two links?
Mike
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

PostAuthor: Threat009 » Mon May 15, 2006 8:37 am

"Michaelo";p="5953" wrote:Jason, which link includes updates or do I need two links?
Mike

[url=http]adv_bbcode_box_upg.zip[/url] + [url=http]http://integramod.com/forum/viewtopic.php?p=5233#5233[/url]
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Eon » Mon May 15, 2006 12:47 pm

Is there any way that the center tag will be added to the img button? Also, don't know if it was on purpose or not, but there is no language key for spell check.

Otherwise looks pretty good.

I would have to say though that for 141 it would have to have a few more tweaks, like the centering tag on images, and possibly the album pic code button so that you only have to enter the album pic #.

Just me rambling.. But it is a sharp looking add-on.
Last edited by Eon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:15 am
Cash on hand: 0.00

PostAuthor: Michaelo » Tue May 16, 2006 8:46 am

Centre image added... next the album pics codeà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ Mike
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Threat009 » Tue May 16, 2006 2:57 pm

BUG: Well I think it's a bug. Images don't show for pafiledb post comment. I tried to post anyway, and got an error "debug mode" sql something or other <img>

[color=red]edit] the error seems to only happen when I fill in the topic title in pafiledb post comment
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Michaelo » Tue May 16, 2006 5:12 pm

Fixed...
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

PostAuthor: Threat009 » Tue May 16, 2006 7:08 pm

"Michaelo";p="6153" wrote:Fixed...

:-? I wish I had an emoticon that scratched his head. Care to share that fix? <img>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Michaelo » Wed May 17, 2006 4:58 am

Sorry Threat009, I meant, fixed in 1.4.1 beta <img>

Jason

I have installed your advanced bbcode in 1.4.1 beta, have also added centre for images and in process of adding album images updatesà¢Ãƒ ¢Ã¢â‚¬Å¡Ã‚ ¬Ãƒâ€šÃ‚ ¦ If you find any updates please let me know so I can make the alterations.
Mike

[color=red]Note]As 1.4.1 is essentially a new/updated version I do not keep individual procedures for each fix. For those who need to fix the same bug in 1.4.0 they will need to use something like WinMerge to examine the affected file and make the necessary changes.
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Michaelo » Wed May 17, 2006 5:36 am

Threat009, here is the edited file so you can check for changes...
[code]  <INCLUDE><script></script><script></script><script> <var> </script>  <form>  <IF><table>     <tr>         <th>{L_PREVIEW}</th>     </tr>     <tr>         <td><span>{PRE_COMMENT}</span></td>     </tr></table><br><ENDIF><table>   <tr>     <td>         <span><a>{L_INDEX}</a> -> <a>{DOWNLOAD}</a><BEGIN> -> <a>{navlinks.CAT_NAME}</a><END> -> <a>{FILE_NAME}</a> -> {L_COMMENT_ADD}</span>     </td>   </tr></table>  <table>     <tr>         <th><b>{L_COMMENT_ADD}</b></th>     </tr>     <tr>         <td><span><b>{L_COMMENT_TITLE}</b></span></td>         <td><input type="text" name="subject" size="45" maxlength="60" style="width]
Mike
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: evolver » Wed May 17, 2006 10:19 am

"Jason Sanborn";p="5535" wrote:Just as an FYI, I'm leaving on vacation Saturday, so I only have today and tomorrow to answer any questions until I return. <img>

He's on vacation since Saturday 13th, you know...
So, you'll need a little patience for an answer from him...
Last edited by evolver on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
ImageAlways remember you're unique, just like everyone else.
We are born naked, wet and hungry. Then things get worse.
Don't take life too seriously, you won't get out alive.
User avatar
evolver
Sr Integra Member
Sr Integra Member
 
Posts: 420
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 1:46 pm
Cash on hand: 0.00
Location: Oostende

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: tmotley » Wed May 17, 2006 3:29 pm

"Michaelo";p="6199" wrote:Threat009, here is the edited file so you can check for changes...
[code]  <INCLUDE><script></script><script></script><script> <var> </script>  <form>  <IF><table>     <tr>         <th>{L_PREVIEW}</th>     </tr>     <tr>         <td><span>{PRE_COMMENT}</span></td>     </tr></table><br><ENDIF><table>   <tr>     <td>         <span><a>{L_INDEX}</a> -> <a>{DOWNLOAD}</a><BEGIN> -> <a>{navlinks.CAT_NAME}</a><END> -> <a>{FILE_NAME}</a> -> {L_COMMENT_ADD}</span>     </td>   </tr></table>  <table>     <tr>         <th><b>{L_COMMENT_ADD}</b></th>     </tr>     <tr>         <td><span><b>{L_COMMENT_TITLE}</b></span></td>         <td><input type="text" name="subject" size="45" maxlength="60" style="width]
Mike


Am I blind? What file is this to edit to make the post comments work on the download screen?
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Michaelo » Wed May 17, 2006 5:03 pm

pa_header.tpl <img>
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

PostAuthor: tmotley » Thu May 18, 2006 12:29 pm

You mean pa_comment_posting.tpl? Doing a total swap of code, it appears to be functional yet not exactly the same posting look. The layout is the same as the original posting screen. It DOES however show the buttons correctly.
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Michaelo » Thu May 18, 2006 12:53 pm

I would have just done the edits but if it's working? <img>
Last edited by Michaelo on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
Kiss Portal Engine phpbbireland (status: Released)
User avatar
Michaelo
Administrator
Administrator
 
Posts: 1647
Likes: 0 post
Liked in: 2 posts
Joined: Sat Mar 11, 2006 6:14 pm
Cash on hand: 5.10
Location: Dublin, Ireland

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: tmotley » Thu May 18, 2006 5:54 pm

Okay, I applied logical edits (following the install.txt) to the pa_comment_posting.tpl file and it looks great and functions great except for one thing (that I have noticed so far)...

When you preview the comment, it shows the preview fine but doesn't copy your comment to the preview screen. Any thoughts?

Here is my pa_comment_posting.tpl:
Code: Select all
<INCLUDE><script></script><script></script><script></script><style>.postimage {     cursor]http://www.HVMDesign.com[/url]" target="blank">Advanced BBCode Box v5.0.0</a> </td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td>                                     <select>                                         <option>Font type</option>                                         <option>Arial</option>                                         <option>Arial Black</option>                                         <option>Century Gothic</option>                                         <option>Comic Sans MS</option>                                         <option>Courier New</option>                                         <option>Georgia</option>                                         <option>Lucida Console</option>                                         <option>Microsoft Sans Serif</option>                                         <option>Symbol</option>                                         <option>Tahoma</option>                                         <option>Trebuchet</option>                                         <option>Times New Roman</option>                                         <option>Verdana</option>                                     </select>                                     <select>                                         <option>Font Size</option>                                         <option>{L_FONT_TINY}</option>                                         <option>{L_FONT_SMALL}</option>                                         <option>{L_FONT_NORMAL}</option>                                         <option>{L_FONT_LARGE}</option>                                         <option>{L_FONT_HUGE}</option>                                     </select>                                     <select>                                         <option>Font Color</option>                                         <option>{L_COLOR_RED}</option>                                         <option>{L_COLOR_ORANGE}</option>                                         <option>{L_COLOR_BROWN}</option>                                         <option>{L_COLOR_YELLOW}</option>                                         <option>{L_COLOR_GREEN}</option>                                         <option>{L_COLOR_OLIVE}</option>                                         <option>{L_COLOR_CYAN}</option>                                         <option>{L_COLOR_BLUE}</option>                                         <option>{L_COLOR_DARK_BLUE}</option>                                         <option>{L_COLOR_INDIGO}</option>                                         <option>{L_COLOR_VIOLET}</option>                                         <option>{L_COLOR_WHITE}</option>                                         <option>{L_COLOR_BLACK}</option>                                     </select>                                 </td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><input></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><textarea>{MESSAGE}</textarea></td>                 </tr>             </table>         </td>     </tr></table>         </td>     </tr>     <tr>         <td><span><B>{L_OPTIONS}</b></span><br><span>{HTML_STATUS}<br>{BBCODE_STATUS}<br>{SMILIES_STATUS}<br>{LINKS_STATUS}<br>{IMAGES_STATUS}</span></td>         <td><span>{L_COMMENT_EXPLAIN}<br><a>{L_CHECK_MSG_LENGTH}</a></span></td>     </tr>     <tr>       <td> {S_HIDDEN_FORM_FIELDS}<input> <input></td>   </form>     </tr>   </table>  <INCLUDE>
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Threat009 » Thu May 18, 2006 6:05 pm

[quote=""Michaelo";p="6194""]Sorry Threat009, I meant, fixed in 1.4.1 beta :mrgreen: I tried your fix, but didn't work out for me. Actually, I couldn't figure out how to work winmerge, so I just overwrote the file. The alignment looked screwed up and appeared to be missing images, so I just applied my backup for now. I'll hold off on this fix for now. Hopefully Jason or someone will create another update w/the find, replace, etc. etc. Thanks for trying to help me though, I appreciate it. <img>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: tmotley » Sat May 20, 2006 7:44 pm

Anyone know why the preview wouldn't copy the comment over? I'm pretty sure the add comment page of the download area works except for that small issue.

The shoutbox_max is messed up as well. The edits look too complicated for me...
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Jason Sanborn » Mon May 22, 2006 3:30 pm

I'm back from vacation and will look into the issues mentioned.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Mon May 22, 2006 4:19 pm

Here are the fixes for the following two pages:

pa_comment_posting.tpl
shoutbox_max_body.tpl

I think I have all the pages covered. Let me know if I've missed any.

OPEN: templates/fisubice/pa_comment_posting.tpl
Code: Select all
##-----[ FIND ]---------------------------------------------#<script></script>  ##-----[ AFTER, ADD ]---------------------------------------#<script></script><script></script>  ##-----[ FIND ]---------------------------------------------#<form>  ##-----[ BEFORE, ADD ]--------------------------------------#<style>.postimage {     cursor]---------------------------------------------#<table><tr> <td><p><span> <span>  <select name="fc" onChange="BBCfc()" onMouseOver="helpline('fc')"     <option><option>Font Color</option><option style="color:black; value="{T_FONTCOLOR1}" value="{T_FONTCOLOR1}">{L_COLOR_DEFAULT}</option><option>{L_COLOR_DARK_RED}</option><option>{L_COLOR_RED}</option><option>{L_COLOR_ORANGE}</option><option>{L_COLOR_BROWN}</option><option>{L_COLOR_YELLOW}</option><option>{L_COLOR_GREEN}</option><option>{L_COLOR_OLIVE}</option><option>{L_COLOR_CYAN}</option><option>{L_COLOR_BLUE}</option><option>{L_COLOR_DARK_BLUE}</option><option>{L_COLOR_INDIGO}</option><option>{L_COLOR_VIOLET}</option><option>{L_COLOR_WHITE}</option><option>{L_COLOR_BLACK}</option></select>   <select name="fs" onChange="BBCfs()" onMouseOver="helpline('fs')" <option><option>Font Size</option>{L_FONT_TINY}</option><option>{L_FONT_SMALL}</option><option>{L_FONT_NORMAL}</option><option>{L_FONT_LARGE}</option><option>{L_FONT_HUGE}</option></select> <span> </span><select name="ft" onChange="BBCft()" onMouseOver="helpline('ft')" <option><option>Font type</option><option>Default font</option><option>Andalus</option> <option>Arial</option> <option>Comic Sans MS</option> <option>Courier New</option> <option>Lucida Console</option><option>Microsoft Sans Serif</option> <option>Symbol</option> <option>Tahoma</option> <option>Times New Roman</option> <option>Traditional Arabic</option> <option>Verdana</option> <option>Webdings</option> <option>Wingdings</option> </select></span></span></span><p><span><span> </span></span></td></tr><span> <tr> <td> <table><tr> <td> <table> <tr> <td><p><span>  <span> <span> </span><img><img><img><img>   <img><img><img><img><img><img>   <img><img>   <img><img>   <img><img><img><img></span></td> </tr> <tr> <td><p><span> </span><p><span> <span>  <img><img><img>  <img>   <img>  <img><img><img>   <img><img><img><img><img>   <img>   <img>  <img></span></td> </tr> </table> </td> </tr>  </table></td></tr><tr><td><input></td></tr>           <tr>             <td><span>                 <textarea>{COMMENT}</textarea>             </td>           </tr>         </table>  ##-----[ REPLACE WITH ]-------------------------------------#<table>     <tr>         <td>             <table>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img>                                 <td><img></td>                                 <td><input></td>                                 <td><img></td>                                 <td><a>Advanced BBCode Box v5.0.0</a> </td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td>                                     <select>                                         <option>Font type</option>                                         <option>Arial</option>                                         <option>Arial Black</option>                                         <option>Century Gothic</option>                                         <option>Comic Sans MS</option>                                         <option>Courier New</option>                                         <option>Georgia</option>                                         <option>Lucida Console</option>                                         <option>Microsoft Sans Serif</option>                                         <option>Symbol</option>                                         <option>Tahoma</option>                                         <option>Trebuchet</option>                                         <option>Times New Roman</option>                                         <option>Verdana</option>                                     </select>                                     <select>                                         <option>Font Size</option>                                         <option>{L_FONT_TINY}</option>                                         <option>{L_FONT_SMALL}</option>                                         <option>{L_FONT_NORMAL}</option>                                         <option>{L_FONT_LARGE}</option>                                         <option>{L_FONT_HUGE}</option>                                     </select>                                     <select>                                         <option>Font Color</option>                                         <option>{L_COLOR_RED}</option>                                         <option>{L_COLOR_ORANGE}</option>                                         <option>{L_COLOR_BROWN}</option>                                         <option>{L_COLOR_YELLOW}</option>                                         <option>{L_COLOR_GREEN}</option>                                         <option>{L_COLOR_OLIVE}</option>                                         <option>{L_COLOR_CYAN}</option>                                         <option>{L_COLOR_BLUE}</option>                                         <option>{L_COLOR_DARK_BLUE}</option>                                         <option>{L_COLOR_INDIGO}</option>                                         <option>{L_COLOR_VIOLET}</option>                                         <option>{L_COLOR_WHITE}</option>                                         <option>{L_COLOR_BLACK}</option>                                     </select>                                 </td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><input></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><textarea>{COMMENT}</textarea></td>                 </tr>             </table>         </td>     </tr></table>
Last edited by Jason Sanborn on Mon May 22, 2006 4:29 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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Mon May 22, 2006 4:19 pm

OPEN: templates/fisubice/shoutbox_max_body.tpl
Code: Select all
##-----[ FIND ]---------------------------------------------#<script></script><script>// Helpline messagesb_help = "{L_BBCODE_B_HELP}";i_help = "{L_BBCODE_I_HELP}";u_help = "{L_BBCODE_U_HELP}";q_help = "{L_BBCODE_Q_HELP}";c_help = "{L_BBCODE_C_HELP}";l_help = "{L_BBCODE_L_HELP}";o_help = "{L_BBCODE_O_HELP}";p_help = "{L_BBCODE_P_HELP}";w_help = "{L_BBCODE_W_HELP}";a_help = "{L_BBCODE_A_HELP}";s_help = "{L_BBCODE_S_HELP}";f_help = "{L_BBCODE_F_HELP}";</script>  ##-----[ REPLACE WITH ]-------------------------------------#<script></script><script></script><script></script><style>.postimage {     cursor]---------------------------------------------#         <table>           <tr>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>             <td><span>               <input>               </span></td>           </tr>           <tr>             <td>               <table>                 <tr>                   <td><span>  {L_FONT_COLOR}:                     <select>                       <option>                       <option>{L_FONT_TINY}</option>                       <option>{L_FONT_SMALL}</option>                       <option>{L_FONT_NORMAL}</option>                       <option>{L_FONT_LARGE}</option>                       <option>{L_FONT_HUGE}</option>                     </select>                       </span></td>                   <td><span><a>{L_BBCODE_CLOSE_TAGS}</a></span></td>                 </tr>               </table>             </td>           </tr>           <tr>             <td> <span>               <input type="text" name="helpbox" size="45" maxlength="100" style="widthpx]-------------------------------------#<table>     <tr>         <td>             <table>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img>                                 <td><img></td>                                 <td><input></td>                                 <td><img></td>                                 <td><a>Advanced BBCode Box v5.0.0</a> </td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td>                                     <select>                                         <option>Font type</option>                                         <option>Arial</option>                                         <option>Arial Black</option>                                         <option>Century Gothic</option>                                         <option>Comic Sans MS</option>                                         <option>Courier New</option>                                         <option>Georgia</option>                                         <option>Lucida Console</option>                                         <option>Microsoft Sans Serif</option>                                         <option>Symbol</option>                                         <option>Tahoma</option>                                         <option>Trebuchet</option>                                         <option>Times New Roman</option>                                         <option>Verdana</option>                                     </select>                                     <select>                                         <option>Font Size</option>                                         <option>{L_FONT_TINY}</option>                                         <option>{L_FONT_SMALL}</option>                                         <option>{L_FONT_NORMAL}</option>                                         <option>{L_FONT_LARGE}</option>                                         <option>{L_FONT_HUGE}</option>                                     </select>                                     <select>                                         <option>Font Color</option>                                         <option>{L_COLOR_RED}</option>                                         <option>{L_COLOR_ORANGE}</option>                                         <option>{L_COLOR_BROWN}</option>                                         <option>{L_COLOR_YELLOW}</option>                                         <option>{L_COLOR_GREEN}</option>                                         <option>{L_COLOR_OLIVE}</option>                                         <option>{L_COLOR_CYAN}</option>                                         <option>{L_COLOR_BLUE}</option>                                         <option>{L_COLOR_DARK_BLUE}</option>                                         <option>{L_COLOR_INDIGO}</option>                                         <option>{L_COLOR_VIOLET}</option>                                         <option>{L_COLOR_WHITE}</option>                                         <option>{L_COLOR_BLACK}</option>                                     </select>                                 </td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                                 <td><img></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><img></td>                     <td>                         <table>                             <tr>                                 <td><img></td>                                 <td><input></td>                             </tr>                         </table>                     </td>                     <td><img></td>                 </tr>                 <tr>                     <td><textarea>{MESSAGE}</textarea></td>                 </tr>             </table>         </td>     </tr></table>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Mon May 22, 2006 4:29 pm

tmotley

FIND: {MESSAGE}
REPLACE WITH: {COMMENT}
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: tmotley » Mon May 22, 2006 5:57 pm

All taken care of now! Thanks Jason.

Hope you had a great vacation. As a teacher, I have two weeks off until summer school starts.
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Jason Sanborn » Mon May 22, 2006 6:18 pm

Vacation was nice and relaxing, thanks. Only bad part of it is that I have to return to work tomorrow. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Mon May 22, 2006 10:35 pm

I have added new functionality to the Advanced BBCode Box, thanks to an idea posted by gffb elsewhere on this site. I have enhanced the image button functionality to allow for a new image tag called [siteimg]

When you click on the image button, you are asked whether you want an external image (which is the existing [img] functionality) or if you want to use a local Picture Album image (the new [siteimg] tag)

Like [img], [siteimg] can include an optional left or right alignment identifier ([siteimg=left] [siteimg=right]). When [siteimg] is included in your post, it creates a thumbnail of the selected image which is linked to the full sized image in your gallery. It would be the same as if you typed out an extended [url][img] combination. Instead, the code would simply be [siteimg]Image #[/siteimg].

Here's how to update:

Download the updated bbcode_box.zip file from the first post and extract the updated bbcode_box.js file.

Code: Select all
##-----[ COPY ]------------------------------------------#copy bbcode_box.js to mods/bbcode_box/bbcode_box.js  ##-----[ OPEN ]------------------------------------------#includes/bbcode.php  ##-----[ FIND ]------------------------------------------#     // Anchor     $bbcode_tpl['anchor'] = str_replace('{URL}', '%s_\1', $bbcode_tpl['anchor']);  ##-----[ BEFORE, ADD ]------------------------------------------#     // site img code for doing local images in the press mod.     $bbcode_tpl['siteimg'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['siteimg']);     $bbcode_tpl['siteimgleft'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['siteimgleft']);     $bbcode_tpl['siteimgright'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['siteimgright']);     // end site image  ##-----[ FIND ]------------------------------------------#     // anchor     $post_id = ( isset($GLOBALS['postrow'][$GLOBALS['i']]['post_id']) ) ? $GLOBALS['postrow'][$GLOBALS['i']]['post_id'] ]) ) ? $GLOBALS['post_id'] : 0 );     $text = preg_replace("/[anchor:$uid]([a-zA-Z]w*?)[/anchor:$uid]/si", sprintf($bbcode_tpl['anchor'],$post_id), $text);  ##-----[ BEFORE, ADD ]------------------------------------------#     //site image for printing press     // [siteimg]image number here[/siteimg]     $local_patterns[5] = "#[siteimg:$uid]([0-9]+)[/siteimg:$uid]#si";     $local_replacements[5] = $bbcode_tpl['siteimg'];     $text = preg_replace($local_patterns, $local_replacements, $text);     // [siteimg=left]image number here[/siteimg]     $local_patterns[5] = "#[siteimg=left:$uid]([0-9]+)[/siteimg:$uid]#si";     $local_replacements[5] = $bbcode_tpl['siteimgleft'];     $text = preg_replace($local_patterns, $local_replacements, $text);     // [siteimg=right]image number here[/siteimg]     $local_patterns[5] = "#[siteimg=right:$uid]([0-9]+)[/siteimg:$uid]#si";     $local_replacements[5] = $bbcode_tpl['siteimgright'];     $text = preg_replace($local_patterns, $local_replacements, $text);     //site image for printing press end  ##-----[ FIND ]------------------------------------------#     // [anchor]     $text = preg_replace("#[anchor]([a-zA-Z]w*?)[/anchor]#si", "[anchor:$uid]\1[/anchor:$uid]", $text);  ##-----[ BEFORE, ADD ]------------------------------------------     #     // [siteimg]image_url_here[/img] code..     $text = preg_replace("#[siteimg]([0-9]+)[/siteimg]#sie", "'[siteimg:$uid]\1[/siteimg:$uid]'", $text);     $text = preg_replace("#[siteimg=left]([0-9]+)[/siteimg]#sie", "'[siteimg=left:$uid]\1[/siteimg:$uid]'", $text);     $text = preg_replace("#[siteimg=right]([0-9]+)[/siteimg]#sie", "'[siteimg=right:$uid]\1[/siteimg:$uid]'", $text);     // siteimg-end  ##-----[ OPEN ]------------------------------------------# Note: You will have to make the following changes for#       every template that you have installed.templates/fisubice/bbcode.tpl  ##-----[ FIND ]------------------------------------------#<BEGIN><a></a><END>  ##-----[ BEFORE, ADD ]------------------------------------------#<BEGIN><a><img></a><END><BEGIN><a><img></a><END><BEGIN><a><img></a><END>
Last edited by Jason Sanborn on Tue May 23, 2006 8:53 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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Tom_S » Tue May 23, 2006 4:02 am

That is obviously too sweet! Great Job!!!!!!! Flawless install. <img>
Last edited by Tom_S on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
<img>

Tom_S
Integra Supporter
Integra Supporter
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 8:23 am
Cash on hand: 0.00

PostAuthor: tmotley » Tue May 23, 2006 6:18 am

Like a charm! I like that it also allows me to post full site images (with full address) as well as the easy # way.

Jason Sanborn, take a bow... <img>
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Jason Sanborn » Tue May 23, 2006 8:33 am

I can't take full credit. The code was originally written by gffb to be included in Integramod 1.4.1. I simply modified it to work in the Advanced BBCode Box. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Eon » Tue May 23, 2006 10:13 am

Now get that centering in there Jason. <img>

Also, this thing looks sweet in 141!
Last edited by Eon on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Eon
Sr Integra Member
Sr Integra Member
 
Posts: 627
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 28, 2006 10:15 am
Cash on hand: 0.00

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Tom_S » Tue May 23, 2006 11:19 am

I am using a Green version of FI Subice if anyone is using green I changed the buttons for a green theme.

You can [url=http]download it here.[/url]
Last edited by Tom_S on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
<img>

Tom_S
Integra Supporter
Integra Supporter
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 8:23 am
Cash on hand: 0.00

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Threat009 » Tue May 23, 2006 12:05 pm

"Tom_S";p="7021" wrote:I am using a Green version of FI Subice if anyone is using green I changed the buttons for a green theme.

You can [url=http]download it here.[/url]

Transparent buttons would be awesome if ever do another set. That way, you could use them w/any theme and they'll look good :grin: I have no idea what the image one does, but I did that one too, just to stay current and everything looks sweet <img>
Last edited by Threat009 on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
[url=http][img=left]http://i63.photobucket.com/albums/h129/Threat009/donate.gif[/img][/url]
User avatar
Threat009
Sr Integra Member
Sr Integra Member
 
Posts: 220
Likes: 0 post
Liked in: 0 post
Joined: Mon Apr 10, 2006 12:48 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue May 23, 2006 12:24 pm

I thought about transparent PNG files, but not all browsers handle transparent PNG files properly yet (bad IE :)
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

Re: [MOD] Advanced BBCode Box 5.0.0a-4

PostAuthor: Tom_S » Tue May 23, 2006 12:27 pm

Now ya tell me! <img>
Last edited by Tom_S on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
<img>

Tom_S
Integra Supporter
Integra Supporter
 
Posts: 62
Likes: 0 post
Liked in: 0 post
Joined: Wed Apr 26, 2006 8:23 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Tue May 23, 2006 12:43 pm

It's in the docs folder of the ZIP file. ;)
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Tue May 23, 2006 2:46 pm

The bbcode_box.js file has been updated again. Michaelo has added functionality to the img button wizard for centering an image on a line. I have updated that to work with the img and siteimg tags. Basically, it wraps the img tag with an align=center tag through the wizard.

You can download the updated JS File from the bbcode_box.zip file in the first post.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Jason Sanborn » Tue May 23, 2006 8:48 pm

A minor bug was found and fixed in the Gotopost Wizard. Download the updated bbcode_box.js file from the first post to correct the bug.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Wed May 24, 2006 12:48 am

"Jason Sanborn";p="7078" wrote:A minor bug was found and fixed in the Gotopost Wizard. Download the updated bbcode_box.js file from the first post to correct the bug.


could you maybe post this and the image fix here?
i've added more than 10 extra bbcodes so i cannot replace the js file, but iff you post the fixes here i can replace the codes.
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Dr. Bantham » Wed May 24, 2006 2:02 am

"Skywalker";p="7094" wrote:i've added more than 10 extra bbcodes so i cannot replace the js file, but iff you post the fixes here i can replace the codes.
Could you share these additions with the rest of us as well? They might be of interest and could same us all time and patience. Thanks!
Last edited by Dr. Bantham on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Dr. Bantham
Integra Member
Integra Member
 
Posts: 152
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: Skywalker » Wed May 24, 2006 2:23 am

"Dr. Bantham";p="7100" wrote:
"Skywalker";p="7094" wrote:i've added more than 10 extra bbcodes so i cannot replace the js file, but iff you post the fixes here i can replace the codes.
Could you share these additions with the rest of us as well? They might be of interest and could same us all time and patience. Thanks!

i don't have install instructions of them for advanced bbcode box i've just downloaded al the bbcodes i could find on phpbb.com and phpbbhacks.com and added them to my board if you look at the bbcode js file its easy to create the code for them so its just as discribed in the original install instructions (the bbcode.php changes and the rest you edit in bbcode.js and the templates.
its so easy that i don't need to write install instructions.
also you can look at the tutorial Jason Sanborn wrote
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Wed May 24, 2006 7:59 am

<img> My apologies. I didn't even think of people who would have modified the JS file. In the future I'll include the JS edits as well.

Here are the latest changes. Unfortunately, I don't have the exact FIND portion in all situations, but it should be fairly straightforward to find.

FIND: img_help = "Insert image:

REPLACE ENTIRE LINE:
Code: Select all
img_help = "Insert image]http://image path[/img] [siteimg(=left|right|center)]AlbumImage#[/siteimg]";


FIND:
Code: Select all
                            ToAdd = "[gotopost="+Prompt1;                             if (Prompt2 != "")                             {                                 ToAdd += ",";                             }  

REPLACE]                             ToAdd = "[gotopost="+Prompt1;                             if (Prompt1 && Prompt2)                             {                                 ToAdd += ",";                             }[/code]
FIND: function BBCimg() {
REPLACE ENTIRE FUNCTION:
Code: Select all
function BBCimg() {     var ToAdd = "";     var imgType = "img";     var Result1 = 0;       var confirmSiteimg = confirm("Do you want to display a site image?nnSite images will display an image thumbnail fromnthe image gallery, linked to the larger image.nnCancel will link to an external image.");       while (Result1 == 0)     {         var Prompt1 = "";         if (confirmSiteimg)         {             Prompt1 = showPrompt("Enter the gallery image number","",1,"You didn't enter the image number.",/^[d]+$/,"Only numbers are allowed.");             imgType = "siteimg"         }         else         {             Prompt1 = showPrompt("Enter the image URL","http]["+imgType+"]"+Prompt1+"[/"+imgType+"][/align:14mnwniz]";                     }                     else                     {                         ToAdd = "["+imgType;                         if (Prompt2 != '')                         {                             ToAdd += "="+Prompt2.toLowerCase();                         }                         ToAdd += "]"+Prompt1+"[/"+imgType+"]";                     }                       Result2 = 1;                 }             }             Result1 = 1;         }     }     PostWrite(ToAdd);}

I apologize for the confusion, but future modifications will be posted as well.
Last edited by Jason Sanborn on Wed Dec 31, 1969 5: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 10:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: Skywalker » Wed May 24, 2006 8:38 am

"Jason Sanborn";p="7144" wrote::oops: My apologies. I didn't even think of people who would have modified the JS file. In the future I'll include the JS edits as well.

I apologize for the confusion, but future modifications will be posted as well.


no problem mate :mrgreen:

i think i have proberly all the bbcodes available on my board exept the youtube video and the other bbcodes of that kind :grin:
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

PostAuthor: Skywalker » Wed May 24, 2006 8:51 am

"Jason Sanborn";p="7144" wrote:FIND:
Code: Select all
                        ToAdd = "[gotopost="+Prompt1;                             if (Prompt2 != "")                             {                                 ToAdd += ",";                             }  


my code is
Code: Select all
                                                ToAdd = "[gotopost="+Prompt1;                         if (Prompt2 != "" )                             {                                 ToAdd += ","+Prompt2;                             }
Last edited by Skywalker on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Skywalker
Sr Integra Member
Sr Integra Member
 
Posts: 236
Likes: 0 post
Liked in: 0 post
Joined: Fri Apr 14, 2006 5:25 pm
Cash on hand: 0.00

Next

Return to Mods/Hacks

Who is online

Registered users: App360MonitorBot, Bing [Bot]