15
Just figured I would update this.
The reason that cbb, and other modules that depend on Frameworks, did not recognize the [gallery] codes was that it uses an independent version of module.textsanitizer.php
Located in Frameworks/textsanitizer/module.textsanitizer.php
To get all Frameworks modules to function with the extgallery hook hack.
Locate: (Around Line 126)
le="color: #000000"><?php $this->text = $text; $this->patterns = $patterns; $this->replacements = $replacements;
Before Add
le="color: #000000"><?php // eXtGallery Hack $patterns[] = "/[gallery]([0-9]*)[/gallery]/sU"; $replacements[] = '<a href="'.XOOPS_URL.'/modules/extgallery/hook-photo.php?id=\1" rel="lightbox"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\1" alt="" /></a>'; $patterns[] = "/[gallery title=(['"]?)([ a-zA-Z0-9]*)\1]([0-9]*)[/gallery]/sU"; $replacements[] = '<a href="'.XOOPS_URL.'/modules/extgallery/hook-photo.php?id=\3" rel="lightbox" title="\2" alt="\2"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\3" alt="\2" title="\2" /></a>'; $patterns[] = "/[gallery group=(['"]?)([a-zA-Z0-9]*)\1]([0-9]*)[/gallery]/sU"; $replacements[] = '<a href="'.XOOPS_URL.'/modules/extgallery/hook-photo.php?id=\3" rel="lightbox[\2]"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\3" alt="" /></a>'; $patterns[] = "/[gallery group=(['"]?)([a-zA-Z0-9]*)\1 title=(['"]?)([ a-zA-Z0-9]*)\3]([0-9]*)[/gallery]/sU"; $replacements[] = '<a href="'.XOOPS_URL.'/modules/extgallery/hook-photo.php?id=\5" rel="lightbox[\2]" title="\4" alt="\4"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\5" title="\4" alt="\4" /></a>'; $patterns[] = "/[gallery title=(['"]?)([ a-zA-Z0-9]*)\1 group=(['"]?)([a-zA-Z0-9]*)\3]([0-9]*)[/gallery]/sU"; $replacements[] = '<a href="'.XOOPS_URL.'/modules/extgallery/hook-photo.php?id=\5" rel="lightbox[\4]" title="\2" alt="\2"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\5" title="\2" alt="\2" /></a>'; // End eXtGallery Hack
Boom, now all modules that require Frameworks will be able to use the [gallery] tag.
Please remember that this is a hack. When you update your frameworks, you will have to redo it.