Moderator: Integra Moderator
"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.
################################################################ 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
"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
"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.
<td><img></td>
<BEGIN><td>Button Image</td><END>
<BEGIN><td><img></td> <END>
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."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.
<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>
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."SLY LS1";p="9148" wrote:Dont forget to take into account that not everyone has a large screen.
Registered users: Bing [Bot], Google [Bot], Majestic-12 [Bot]