| Re: Lightbox, gallery tags, news 1.56 & Pdf problems with TCPDF error |
| by qcorek on 2008/2/5 21:12:29 what is hook hack and how to install light box for extGallery? |
| Re: Lightbox, gallery tags, news 1.56 & Pdf problems with TCPDF error |
| by Will_H on 2008/2/2 5:01:00 of course I did. btw, who was right and who was wrong? Looks like the problem was with ... gasp extgal... |
| Re: Lightbox, gallery tags, news 1.56 & Pdf problems with TCPDF error |
| by script_fu on 2008/2/2 0:15:26 Well that certainly fixed the problem. Thank you Will! I can only assume you patched both the frameworks and the class module.textsanitizer.php ?? For others who might need this. This hack shuts down any other picture format that you might want to use with lightbox. Only .jpg files will work with this hack. It suits what I need to do and thus is the solution to my problem. Another big thank you goes out to Will for the fix. ----- Now that the pdf on the fly is working I have another issue about the formatting of them. I will start a new topic about this. |
| Re: Lightbox, gallery tags, news 1.56 & Pdf problems with TCPDF error |
| by Will_H on 2008/2/1 23:28:53 Ok got it working Fixed to make pdf le="color: #000000"><?php // eXtGallery Hack $patterns[] = "/[gallery]([0-9]*)[/gallery]/sU"; $replacements[] = '<a href="'.XOOPS_URL.'/modules/extgallery/hook-photo.php?id=\1.jpg" rel="lightbox"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\1.jpg" 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.jpg" rel="lightbox" title="\2" alt="\2"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\3.jpg" 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.jpg" rel="lightbox[\2]"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\3.jpg" 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.jpg" rel="lightbox[\2]" title="\4" alt="\4"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\5.jpg" 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.jpg" rel="lightbox[\4]" title="\2" alt="\2"><img src="'.XOOPS_URL.'/modules/extgallery/hook-thumb.php?id=\5.jpg" title="\2" alt="\2" /></a>'; // End eXtGallery Hack
|
| Re: Lightbox, gallery tags, news 1.56 & Pdf problems with TCPDF error |
| by Will_H on 2008/2/1 23:25:28 Listen. The makepdf is set to recognize images. So lets try and trick it into thinking these are images. original 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 As .jpgs le="color: #000000"><?php // eXtGallery Hack $patterns[] = "/[gallery]([0-9]*)[/gallery]/sU"; $replacements[] = '<a href="'.XOOPS_URL.'/modules/extgallery/hook-photo.php?id=\1.jpg" 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.jpg" 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.jpg" 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.jpg" 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.jpg" 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 I went ahead and implemented this on your site. They have a .jpg extension at the very end... but thats only after its been terminated by the .php?id=64 Right now it reads like .php?id=64.jpg Yeah, extgal hooks still work. Properties shows em with a .jpg extension at the end... but... .php?id=64 kills it. |