[MOD-DB] Select Expand BBCodes MOD v1.0.2
 
 
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Select Expand BBCodes
View previous topic :: View next topic  
Author Message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Fri Sep 24, 2004 11:39 am    Post subject: [MOD-DB] Select Expand BBCodes MOD v1.0.2 Reply with quote

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note:
This MOD has been kindly approved by the phpBB MOD Team Smile

Check out its Release Announcement topic:
http://www.phpbb.com/phpBB/viewtopic.php?t=229348
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

MOD Title: Select Expand BBCodes MOD

MOD Version: 1.0.2

MOD Description: This MOD is a DHTML add-on for the Code and Quote BBCodes. It adds a couple of commands next to the BBCode block title. First one, allows you to Select its contents for easier copy/paste actions. Second one, allows you to Expand or Contract the BBCode block. It has been coded to degrade correctly even if the browser does not support the required features (please, read author notes for further information).

MOD Add-ons: It also comes with MOD scripts to install this MOD for the following MODs:
* PHP Syntax Highlighter BBCode.
* Syntax Highlighting BBCode (Beta).

Credits: Inspired by Daz's fi_divexpand control, but somehow improved (please, read author notes for further information).

DEMO:
http://forums.phpmix.org/viewtopic.php?p=1164#1164
http://forums.phpmix.org/viewtopic.php?p=1165#1165

Download:
Link removed. Please use the phpBB MODs Database (BBCodes category).


MOD Headers:
Code:
#################################################################
## MOD Title: Select Expand BBcodes MOD
## MOD Author: markus_petrux < phpbb.mods@phpmix.com > (Markus) http://www.phpmix.com
## MOD Description: This MOD is a DHTML add-on for the Code and Quote BBCodes. It adds a couple of commands next to
##   the BBCode block title. First one, allows you to Select its contents for easier copy/paste actions. Second one,
##   allows you to Expand or Contract the BBCode block. It has been coded to degrade correctly even if the browser
##   does not support the required features (please, read author notes for further information).
##
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: ~10 Minutes
## Files To Edit: 3
##   language/lang_english/lang_main.php
##   includes/bbcode.php
##   templates/subSilver/bbcode.tpl
## Included Files: 1
##   templates/select_expand_bbcodes.js
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## *** WARNING ***
##
## General:
##   Make backups BEFORE installing MODs.
##   This MOD can be installed with EasyMOD. It works. It rocks. :-)
##
## Manual installation:
##   Please, carefully follow installation instructions detailed in this MOD script.
##   If something was wrong, please take the time to check the changes made again.
##   Before asking for support, try to restore your backups and re-try. It should work.
##   Thanks for you understanding and collaboration. :-)
##
##
## *** ADDITIONAL NOTES ***
##
## Background:
##   Inspired by Daz's fi_divexpand control (www.forumimages.com).
##   However, SXBB has been investigated and coded from scratch, almost ;-).
##   FYI: SXBB aka 'Select Expand BBCodes' :-)
##
## Inherited features from Daz's Control:
##   1) Ability to Select (highlight) content for easier Copy/Paste actions.
##   2) Ability to Expand/Contract block (based on 'overflow:auto;height:#px;' CSS attribs).
##
## Problems with Daz's implementation:
##   1) No check for browser support.
##   2) Weird result when 'overflow:auto' is not supported, but 'height:#px;' is (ie. Opera 6).
##   3) Select/Expand actions still available even if browser has javascript disabled (not user friendly).
##   4) Select/Expand actions may generate javascript error for non-DOM based browsers.
##   5) Can't expand the block if javascript is being disabled or an error has been generated.
##
## Therefore, code has been improved in several ways:
##   1) Degrades correctly for non-supported browsers (actions not displayed and block expanded).
##   2) Automatically adjusts height of possible outer blocks (ie. expanding an inner block expands its parent).
##   3) Easily choose a minimum height (see MINIMUM_BLOCK_HEIGHT on js file).
##   4) Added workaround to preserve HTML comment delimiters for JS code when bbcode.tpl saved with LF only.
##   5) The [expand] command will be visible only when necessary (avoid confusion when the box is really short).
##
##############################################################
## MOD History:
##
## 2004-09-27 - Version 1.0.2
## - Fixed javascript code to avoid something that seems to be a firefox bug
##   related to the 'overflow:auto' CSS attrib for huge boxes.
## - Fixed CRLF management for closing bbcode tags (I forgot this in previous versions).
## - Moved code related to the PHP Syntax highlighter BBCode to its own MOD script.
##
## 2004-09-25 - Version 1.0.1
## - Several optimizations related to the visibility of the [expand] command.
## - Only the javascript has been changed.
##
## 2004-09-24 - Version 1.0.0
## - First time released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

Code:
#################################################################
## MOD Title: Select Expand BBcodes MOD (PHP add-on)
## MOD Author: markus_petrux < phpbb.mods@phpmix.com > (Markus) http://www.phpmix.com
## MOD Description: This MOD enables SXBB features for the 'PHP Syntax Highlighter BBCode'.
##
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: ~3 Minutes
## Files To Edit: 2
##   includes/bbcode.php
##   templates/subSilver/bbcode.tpl
## Included Files: 0
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## * This MOD is an add-on for the Select Expand BBcodes MOD, therefore it uses the same
##   version number as the Select Expand BBcodes MOD.
##
## * You can get the PHP Syntax Highlighter BBCode here:
##   http://www.phpbb.com/phpBB/viewtopic.php?t=119512
##
##############################################################
## MOD History:
##
## 2004-09-27 - Version 1.0.2
## - Changed version number here to match the version number of the main MOD.
## - Fixed this MOD script for compatibility of its main MOD.
##
## 2004-09-25 - Version 1.0.1
## - Changed version number here to match the version number of the main MOD.
## - No other changes related to this extension.
##
## 2004-09-24 - Version 1.0.0
## - First time released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

Code:
#################################################################
## MOD Title: Select Expand BBcodes MOD (Syntax add-on)
## MOD Author: markus_petrux < phpbb.mods@phpmix.com > (Markus) http://www.phpmix.com
## MOD Description: This MOD enables SXBB features for the 'Syntax Highlighting BBCode'.
##
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: ~3 Minutes
## Files To Edit: 2
##   includes/bbcode.php
##   templates/subSilver/bbcode.tpl
## Included Files: 0
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## * This MOD is an add-on for the Select Expand BBcodes MOD, therefore it uses the same
##   version number as the Select Expand BBcodes MOD.
##
## * You can get the Syntax Highlighting BBCode here:
##   http://www.phpbb.com/phpBB/viewtopic.php?t=217723
##
##   Note: The Syntax Highlighting BBCode MOD is in Beta stage at this moment (2004-09-27).
##
##############################################################
## MOD History:
##
## 2004-09-27 - Version 1.0.2
## - First time released
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Sat Sep 25, 2004 12:53 pm    Post subject: Re: [BETA] Select Expand BBCodes MOD v1.0.1 Reply with quote

ZIP has been updated to version 1.0.1 Exclamation Exclamation Exclamation

Changes:
* Several optimizations related to the visibility of the [expand] command.
* Only the javascript has been changed.

Upgrade from 1.0.0:
* Upload the new version of javascript file (select_expand_bbcodes.js) to the templates folder.

Browser Compatibility:
* Should work on: IE5+, Firefox, Mozilla, Opera7, Konqueror and Safari.
* Will degrade correctly on: Amaya, Hotjava, Opera5, Opera6, Netscape4.

I have tested: IE6, Firefox 0.93, Mozilla 1.7, Opera5, Opera6, Amaya, Hotjava3 and Netscape4.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Mon Sep 27, 2004 5:57 pm    Post subject: Re: [BETA] Select Expand BBCodes MOD v1.0.1 Reply with quote

ZIP has been updated to version 1.0.2 Exclamation Exclamation Exclamation

Changes:
* Fixed javascript code to avoid something that seems to be a firefox bug related to the 'overflow:auto' CSS attrib for huge boxes.
* Fixed CRLF management for closing bbcode tags (I forgot this in previous versions).
* Moved code related to the PHP Syntax highlighter BBCode to its own MOD script.
* New add-on in contrib folder for the Syntax Highlighting BBCode MOD (which is still beta, though).

Upgrade from 1.0.1:
* Upload the new version of javascript file (select_expand_bbcodes.js) to the templates folder.
* Open bbcode.php and replace the code related to this MOD with the new one (see MOD script).

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
markus
[Administrator]
[Administrator]


Joined: 28 Jul 2003
Posts: 1124

PostPosted: Mon Oct 04, 2004 2:55 am    Post subject: Re: [MOD-DB] Select Expand BBCodes MOD v1.0.2 Reply with quote

This MOD has been kindly approved by the phpBB MOD Team. Smile

Check out its Release Announcement topic:
http://www.phpbb.com/phpBB/viewtopic.php?t=229348

Download:
Please use the phpBB MODs Database (BBCodes category).

Support, feeback, suggestions:
Feel free to use this forum, here at phpMiX.

 
 
_________________
http://www.phpmix.org
 
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    phpMiX.org Forum Index -> phpBB MODs -> Select Expand BBCodes All times are GMT + 1 Hour
 
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum