Mod, kterej dokáže u BBkódu "Code" sbalit a rozbalit vše co je mezi značkami "Code" a označit obsah, jak se můžete přesvědčit v tomto příspěvku.
Mod můžete stáhnout tady.
A čeština (velmi krátká) je zde.
Pokud si chcete upravit velikost sbalého okna, tak otevřete templates/select_expand_bbcodes.js a najděte si:
Code: Select all
this.size = this.min = 60; // --- Adjust MINIMUM_BLOCK_HEIGHT here :-)
this.extra = 5; // --- This is added to height when expanded
this.margin = 20; // --- Hide [expand] command if just a few pixels height when expanded.
1. nastavit minimální výšku bloku
2. určit, kolik px bude přidáno , když je blok rozbalen a
3.Nastavit velikost, kdy se skryje příkaz rozbalit, pokud bude obsah bloku jen o trošku menší než jeho výška.
Code: Select all
#################################################################
## 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
##############################################################