Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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.

Who's Online

185 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits