View Single Post
Old 27.10.2007, 17:09   #1 (permalink)
masterkeedu
Baby Mamber
 
masterkeedu's Avatar
 
Join Date: Apr 2007
Posts: 8
masterkeedu is on a distinguished road
Lightbulb zOOmCat mambot troubles for pop-ups

[mods: feel free to move this if better place]

I have zoom gallery 2.3 on my site.

I just installed a mambo called zoomcat.php. The mambot very nicely displays a gallery in content items.

Problem occurs if you have your settings to pop-up, only an error message is shown.

Occurs When:
  • You use zoom gallery.
  • You use pop-up media windows
  • you use mambo - zOOmCat
Problem:
  • the pop-up window only displays a php error about member functions, like;
    Fatal error: Call to a member function on a non-object in /home/user/html/mambo_dir/components/com_zoom/www/view.php on line 98
Solution:
The error message is a bit misleading, since the problem is not in view.php.

open up the mambo file, zOOmcat.php under mambo/mambots/content.

scroll to line 199 or so, you'll see
PHP Code:
$mycrypt ZMCatEncrypt("catid=".$ZMCatID."&key=".$selfile."&isAdmin=false&hit=1"); 
see the & 's. Those are escaped ampersands, but apperently they are not handles in a manner that needs or replaces escaped characters, so we change them to the real character.

PHP Code:
//$mycrypt = ZMCatEncrypt("catid=".$ZMCatID."&key=".$selfile."&isAdmin=false&hit=1");
 
$mycrypt =  ZMCatEncrypt("catid=".$ZMCatID."&key=".$selfile."&isAdmin=false&hit=1"); 
I also used a relative url in the link, don't know if this has an effect, but it made more sense to me. Thats just under around line 201;

PHP Code:
//$ZMpopLink = $mosConfig_live_site.'/components/com_zoom/www/view.php?popup=1&q='.$mycrypt;
$ZMpopLink 'components/com_zoom/www/view.php?popup=1&q='.$mycrypt

Hope thats helps some people out there.



You can see zoom gallery, and this mambot in use here, at trippymedia.

Or find more fixes at Baungenjar.com
masterkeedu is offline   Reply With Quote
Sponsored Links