Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

general problems with sig pro: code wrong in plugin_jw_sigpro.php

  • Michael Sch#ll
  • Michael Sch#ll's Avatar Topic Author
  • Offline
  • New Member
More
17 years 2 months ago - 17 years 2 months ago #7415 by Michael Sch#ll
OK. i have some general problems as you will see on the picture.
Everything worked fine with simple image gallery, but after installing simple image gallery pro (yes, i deleted the previous version before installing the pro one), php echo just tell me that there are some problems with the plugin_jw_sigpro.php file.
Anyone who had the same problems? What did i wrong? Are there Mambots, Components, etc. who don't work with SIG Pro at the moment, and if yes, which ones?
The thumbnails are shown correctly, and some of the Popup Engines are working fine, but for example "Slimbox" doesn't pop up, it only show the image on a blank page.
I'm using Joomla OS vers. 1.0.13

In the manuel joomlaworks says it doesn't work with every extension:
The gallery is not displaying the popup images in "lightbox-style", but as plain new windows. In this case, you probably have some other Joomla! extension installed in your website that conflicts with "Simple Image Gallery PRO". Such extensions are usually based on javascript libraries/frameworks like Moo.fx, jQuery, Prototype, Scriptaculous etc. Usually there are workarounds to resolve such issues.

Here is the URL:
www.auro.cc/content/view/60/121/lang,de/

Here is the picture:


Here is the PHP Code:
PHP Line 73-102:
  if (preg_match_all("#{gallery}(.*?){/gallery}#s", $row->text, $matches, PREG_PATTERN_ORDER) > 0) {
	  $sigcount = -1;
	  foreach ($matches[0] as $match) {
		$sigcount++;
		$_temp = preg_replace("/{.+?}/", "", $match);
		unset($_params);
		$_params = explode(":",$_temp);
		$_images_dir_ = $_params[0];
		if($_params[1]) $_width_final_ = $_params[1]; else $_width_final_ = $_width_;
		if($_params[2]) $_height_final_ = $_params[2]; else $_height_final_ = $_height_;
		if($_params[3]) $_howmanythumbs_ = $_params[3]; else $_howmanythumbs_ = $singlethumb;
		unset($images);
		$noimage = 0;
		// read directory
	    if ($dh = opendir($mosConfig_absolute_path.$rootfolder.$_images_dir_)) {
          while (($f = readdir($dh)) !== false) {
	         if((substr(strtolower($f),-3) == 'jpg') || (substr(strtolower($f),-3) == 'gif') || (substr(strtolower($f),-3) == 'png')) {
	              $noimage++;
    	          $images[] = $f;
    	          switch ($order) {
				  	case 0: sort($images); break;
    	          	case 1: natsort($images); break;
    	          	case 2: natcasesort($images); break;
    	          	case 3: rsort($images); break;
    	          	case 4: shuffle($images); break;
    	          }
	         }
          }
          closedir($dh);
        }
Line 278-298:

				if ($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {
					$html .= '<b>'.htmlentities($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])],ENT_QUOTES).'</b>';
				}
				// if JS is disabled, open links in new window
				$html .= '" target="_blank">';
				
				// create thumbnails
				if (file_exists($tempfolder.md5($_images_dir_.$name).$format) && filemtime ($tempfolder.md5($_images_dir_.$name).$format) + $cache_expire_time * 60 > time()) {
				 $html .= $leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$tempfolder.md5($_images_dir_.$name).$format.'" />'.$rightcomment;
				} else {
				 $fromname = $mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a];
				 $toname = $mosConfig_absolute_path.$tempfolder.md5($_images_dir_.$name).".".$format;
				 $toname_live = $mosConfig_live_site.$tempfolder.md5($_images_dir_.$name).".".$format;
				 $result = makeThumb( $fromname, $toname, $image_type, $_quality_, $_width_final_, $_height_final_);
				 if($result)
				    $html .=$leftcomment.'<img alt="'.$clickopen.'" title="'.$clickopen.'" src="'.$toname_live.'" />'.$rightcomment;
				 else
				    $html .='<span>Error creating thumbnail!</span>';
				}
				// if labels do exist
				if ($labels[md5($mosConfig_absolute_path.$rootfolder.$_images_dir_.'/'.$images[$a])]!="") {

Please Log in or Create an account to join the conversation.

  • JoomlaWorks Support Team
  • JoomlaWorks Support Team's Avatar
  • Offline
  • Platinum Member
More
17 years 2 months ago #7416 by JoomlaWorks Support Team
Replied by JoomlaWorks Support Team on topic Re: general problems with sig pro: code wrong in plugin_jw_sigpro.php
Hi my friend!

About the Server's Notice for the "Undefined offset", try to do the solution told here
There are several servers that give all the warnings and notice in output

About the "open_basedir restriction in effect" warning try the solution told here

If you still have problems, please PM me an s.administrator account!

Thank you!

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum