[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

PostAuthor: badboy » Wed Jun 07, 2006 11:53 am

ohh my bad thanks
Last edited by badboy on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://img50.imageshack.us/img50/2371/userbar19iy.gif[/img][/url]
User avatar
badboy
Members
Members
 
Posts: 46
Likes: 0 post
Liked in: 0 post
Joined: Sun May 21, 2006 12:03 am
Cash on hand: 0.00

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

PostAuthor: Skywalker » Wed Jun 07, 2006 11:20 pm

"Jason Sanborn";p="8613" wrote:Advanced BBCode Box was updated to version 6 to fix an issue found during 1.4.1 Beta Testing. On the IM Portal Edit Block (In the Admin Control Panel), some buttons were disappearing when they were being clicked on. As a result, a second BBCode JS file was created to handle image swapping for the BBCode boxes in the ACP.

To update:

DOWNLOAD: adv_bbcode_box_upg.zip

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

OPEN: templates/fisubice/admin/blocks_edit_body.tpl

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

REPLACE WITH]<script></script>[/code]

Note: If you have added buttons to the BBCode Box, please add the appropriate JavaScript into the new JS file, as you had done with the first JS file. In the case of images, make sure you use the correct relative image path, by adding [font=Courier New:ip730cno]./../[/font:ip730cno] in front of the image path. That is the only difference between the two JavaScript files. I recommend using [url=http]WinMerge[/url] to compare the two files for the differences.


could you maybe post the difference between those 2 so i can edit my original js file en so keep the functions of my addons also for edit blocks
Last edited by Skywalker on Wed Dec 31, 1969 4: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 4:25 pm
Cash on hand: 0.00

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

PostAuthor: badboy » Thu Jun 08, 2006 7:55 am

Here is a mod that you can add to it

this MOD uses javascript and adds 2 new buttons at the bottom of the posting & PM textbox. Using them you can change the texbox size.

here is a pic

[flash=,:k3or5p5e]http://img478.imageshack.us/img478/9417/after5kh.jpg[/flash:k3or5p5e]

Code: Select all
################################################################ MOD Title: Textbox Resize## MOD Author: Disturbed One < [url=http://www.hvmdesign.com#]http://www.hvmdesign.com#[/url]# MOD Description: This MOD uses javascript and adds 2 new buttons##           at the bottom of the posting & PM textbox. Using ##           them you can change its size.## MOD Version: 1.0.1#### Installation Level: Easy## Installation Time: 3 Minutes## Files To Edit: (1)##   templates/subSilver/posting_body.tpl## Included Files: N/A## 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]############################################################### Author Notes:##   Have fun and enjoy this MOD.####   This MOD works great when you and your users are trying##   to post large messages because it allows you to have##   more room before scrolling.####   Support can be found at [url=http://www.hvmdesign.com.#]http://www.hvmdesign.com.#[/url]################################################################# MOD History:######   2006-05-27 - Version 1.0.1##      - Updated for phpBB Standards####   2006-04-22 - Version 1.0.0##      - Initial Release################################################################## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD################################################################-----[ OPEN ]------------------------------------------#templates/subSilver/posting_body.tpl  ##-----[ FIND ]------------------------------------------#  </script>  ##-----[ BEFORE, ADD ]------------------------------------------#  //====================================================================== |//==== Start Textbox Resize ============================================ |//==== v1.0.1 ========================================================== |//====function textbox_resize( pix ){     postfieldid = 'message_box';     postfieldobj = document.getElementById( postfieldid );     var box        = postfieldobj;     var cur_height = parseInt( box.style.height ) ? parseInt( box.style.height ) : 300;     var new_height = cur_height + pix;       if ( new_height > 0 )     {         box.style.height = new_height + "px";     }       return false;}//====//==== Author: Disturbed One [http://hvmdesign.com] ==================== |//==== End Textbox Resize ============================================== |//====================================================================== |  ##-----[ FIND ]------------------------------------------#         <textarea name="message"  ##-----[ IN-LINE FIND ]------------------------------------------#name="message"  ##-----[ IN-LINE AFTER, ADD ]------------------------------------------# Add this code after the same textarea box you just edited#  id="message_box"  ##-----[ FIND ]------------------------------------------#  <tr>                     <td><textarea>{MESSAGE}</textarea></td>                 </tr>             </table>  ##-----[ AFTER, ADD ]------------------------------------------#         <Begin>          <div>               <input>               <input>           </div>         <End>  ##-----[ SAVE/CLOSE ALL FILES ]------------------------------------------## EoM



if you need more information about this mod you can get it here

http://www.hvmdesign.com/viewtopic.php?t=1155
Last edited by badboy on Thu Jun 08, 2006 10:24 am, edited 1 time in total.
[url=http][img=left]http://img50.imageshack.us/img50/2371/userbar19iy.gif[/img][/url]
User avatar
badboy
Members
Members
 
Posts: 46
Likes: 0 post
Liked in: 0 post
Joined: Sun May 21, 2006 12:03 am
Cash on hand: 0.00

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

PostAuthor: Jason Sanborn » Thu Jun 08, 2006 7:58 am

"Skywalker";p="8919" wrote:
"Jason Sanborn";p="8613" wrote:Advanced BBCode Box was updated to version 6 to fix an issue found during 1.4.1 Beta Testing. On the IM Portal Edit Block (In the Admin Control Panel), some buttons were disappearing when they were being clicked on. As a result, a second BBCode JS file was created to handle image swapping for the BBCode boxes in the ACP.

To update:

DOWNLOAD: adv_bbcode_box_upg.zip

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

OPEN: templates/fisubice/admin/blocks_edit_body.tpl

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

REPLACE WITH]<script></script>[/code]

Note: If you have added buttons to the BBCode Box, please add the appropriate JavaScript into the new JS file, as you had done with the first JS file. In the case of images, make sure you use the correct relative image path, by adding [font=Courier New:nk93mtet]./../[/font:nk93mtet] in front of the image path. That is the only difference between the two JavaScript files. I recommend using [url=http]WinMerge[/url] to compare the two files for the differences.


could you maybe post the difference between those 2 so i can edit my original js file en so keep the functions of my addons also for edit blocks

The only difference is that references to images are now referenced as "./../mods/bbcode_box/images/" instead of just "mods/bbcode_box/images/"
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

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

PostAuthor: Jason Sanborn » Thu Jun 08, 2006 7:59 am

"badboy";p="8974" wrote:Here is a mod that you can add to it

this MOD uses javascript and adds 2 new buttons at the bottom of the posting & PM textbox. Using them you can change the texbox size.

Looks like an interesting Mod. I won't be adding it to the core Mod at this time, but it is good to have a reference to it here for those who might be interested in it. <img>
Last edited by Jason Sanborn on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://images.cbreview.net/banners/cloney2.gif[/img]
Comic Book Review: Comics, Role Playing and More[/url]
User avatar
Jason Sanborn
Sr Integra Member
Sr Integra Member
 
Posts: 436
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 9:40 am
Cash on hand: 0.00
Location: Marina, CA

PostAuthor: badboy » Fri Jun 09, 2006 7:31 am

how do u remove/ make some of the bbcode only for mods/admin
Last edited by badboy on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://img50.imageshack.us/img50/2371/userbar19iy.gif[/img][/url]
User avatar
badboy
Members
Members
 
Posts: 46
Likes: 0 post
Liked in: 0 post
Joined: Sun May 21, 2006 12:03 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Fri Jun 09, 2006 8:15 am

Check here:
http://integramod.com/forum/viewtopic.php?p=7226#7226

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

PostAuthor: badboy » Fri Jun 09, 2006 10:06 am

this is the button i dont want user seeing

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


how/where would i place it in the following code and


Code: Select all
<BEGIN><td>Button Image</td><END>
Last edited by badboy on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://img50.imageshack.us/img50/2371/userbar19iy.gif[/img][/url]
User avatar
badboy
Members
Members
 
Posts: 46
Likes: 0 post
Liked in: 0 post
Joined: Sun May 21, 2006 12:03 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Fri Jun 09, 2006 10:20 am

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

PostAuthor: badboy » Fri Jun 09, 2006 11:10 am

its not working
Last edited by badboy on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://img50.imageshack.us/img50/2371/userbar19iy.gif[/img][/url]
User avatar
badboy
Members
Members
 
Posts: 46
Likes: 0 post
Liked in: 0 post
Joined: Sun May 21, 2006 12:03 am
Cash on hand: 0.00

PostAuthor: Jason Sanborn » Fri Jun 09, 2006 12:21 pm

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

PostAuthor: badboy » Fri Jun 09, 2006 2:47 pm

its working now thanks
Last edited by badboy on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
[url=http][img=left]http://img50.imageshack.us/img50/2371/userbar19iy.gif[/img][/url]
User avatar
badboy
Members
Members
 
Posts: 46
Likes: 0 post
Liked in: 0 post
Joined: Sun May 21, 2006 12:03 am
Cash on hand: 0.00

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

PostAuthor: Dr. Bantham » Sat Jun 10, 2006 5:05 am

"badboy";p="8974" wrote:this MOD uses javascript and adds 2 new buttons at the bottom of the posting & PM textbox. Using them you can change the texbox size.
I like this MOD. How could you control the width of the textbox? It seems that the width should stretch to 100% of the table cell. There is a substantial amount of dead space to the right of the textbox which could be utilized as edit space.

If I edit posting_body.tpl and reference 100% width in lieu of 450px, it stretches the box slightly to match the width of the ABBCB, but no more.[code]                     <td><textarea name="message" id="message_box" rows="15" cols="35" style="width]
Last edited by Dr. Bantham on Wed Dec 31, 1969 4: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 5:25 pm
Cash on hand: 0.00

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

PostAuthor: SLY LS1 » Sat Jun 10, 2006 5:40 am

[quote=""Dr. Bantham";p="9144""]I like this MOD. How could you control the width of the textbox? It seems that the width should stretch to 100% of the table cell. There is a substantial amount of dead space to the right of the textbox which could be utilized as edit space.

If I edit posting_body.tpl and reference 100% width in lieu of 450px, it stretches the box slightly to match the width of the ABBCB, but no more.
Code: Select all
                    <td><textarea name="message" id="message_box" rows="15" cols="35" style="width][/quote]

Dont forget to take into account that not everyone has a large screen.

-----------------------------------------------------------------------------------

Something else you might want to change Jason - the version number

In posting_body.tpl

[b]Find:[/b]

[code]<td><a>Advanced BBCode Box v5.0.0</a> </td>[/code]

[b]Change To:[/b]

[code]<td><a>Advanced BBCode Box v6.0.0</a> </td>
Last edited by SLY LS1 on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

SLY LS1
Members
Members
 
Posts: 70
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 11:49 pm
Cash on hand: 0.00

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

PostAuthor: Dr. Bantham » Sat Jun 10, 2006 6:37 am

"SLY LS1";p="9148" wrote:Dont forget to take into account that not everyone has a large screen.
Of course. What I am looking for is a way to maximize the width expansion the textbox to automatically to fit the cell - without increasing the page width.
Last edited by Dr. Bantham on Wed Dec 31, 1969 4: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 5:25 pm
Cash on hand: 0.00

PreviousNext

Return to Mods/Hacks

Who is online

Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]