IPrice minimart
powerfull & flexible online Store, price-lists and catalogs for Joomla
Welcome, Guest
Username: Password: Remember me

TOPIC: remove the link

remove the link 9 years 7 months ago #2609

  • codeware
  • codeware's Avatar
is it possible to remove the link that opens the image in a popup?
Login or register to post message.

remove the link 9 years 6 months ago #2679

  • deemo
  • deemo's Avatar
  • Offline
  • Новый участник
  • Posts: 1
  • Karma: 0
I would be interested in knowing this too as the only problem I have with this plugin is if I am using the image itself as a link to a download or another page the link gets broken because of the pop up being created.
Login or register to post message.

remove the link 8 years 11 months ago #3021

  • MTSranger
  • MTSranger's Avatar
  • Offline
  • Новый участник
  • Posts: 2
  • Karma: 0
You can comment out or delete lines 595 to 615 in /plugins/content/smartresizer/smartresizer.php
Last Edit: 8 years 11 months ago by MTSranger.
Login or register to post message.

remove the link 5 years 7 months ago #4315

  • arti_34
  • arti_34's Avatar
is it possible to remove the link that opens the image in a popup? version 1.28


I CANCEL LINES 595 TO 615 BUT IT HAD NOT HELPED
Login or register to post message.

remove the link 5 years 7 months ago #4320

  • support
  • support's Avatar
  • Offline
  • Администратор
  • Posts: 1905
  • Thank you received: 311
  • Karma: 59
if you dont want to link image to the popup fullsize image, you can remove lines 645-682 in file /plugins/content/smartresizer/smartresizer.php
So you need to remove this code:
			if (!($is_blog && $readmorelink)) {
				
				if (isset($lthethumb) && $lthethumb)
					$src = $lthethumb;
				elseif ((int)$botParams->get( 'watermark', '0')>0 && $botParams->get( 'watermark_file', ''))				
					$src = $wm_thethumb;
				elseif (!$uri->toString(array('host')))
					$src = rtrim(JURI::base(),'/') . '/' . ltrim($src,'/');

				if ($openstyle == 0) {
					$doc = JFactory::getDocument();
					if (!($image_width && $image_height))
						list($image_width,$image_height)=getimagesize($src);
					if(version_compare(JVERSION,'1.6.0','<')) $paddpath = ''; else $paddpath = 'smartresizer/';
					$doc->addScript( "plugins/content/smartresizer/".$paddpath."js/multithumb.js" );
					$text = '<a href="javascript:void(0)" onclick = "smartthumbwindow(\''.$src.'\',\''.$alt.'\','.$image_width.','.$image_height.',0,0);" >'.$text.'</a>';
				}
				elseif ($openstyle == 1) {
					JHTML::_('behavior.modal');
					if (!($image_width && $image_height))
						list($image_width,$image_height)=getimagesize($src);
					$text = '<a style="background:none;" rel="{handler: \'iframe\', size: {x: '.$image_width.', y: '.$image_height.'}}" target="_blank"  href="'.$src.'" onclick="SqueezeBox.fromElement(this,{parse: \'rel\'});return false;" >'.$text.'</a>';
				}
				elseif ($openstyle == 2) {
					$lang = JFactory::getLanguage();
					$lang->load('plg_content_smartresizer',JPATH_ADMINISTRATOR);		
					$text = '<a href="'.$src.'" style="background:none;" onclick="return hs.expand(this)" >'.$text.'</a>'."\n";
					if ($thetitle)
						$text .= '<div class="highslide-caption">'.$thetitle.'</div>';
				}
			}
			else if ($readmorelink) {
				if(version_compare(JVERSION,'1.6.0','<'))
					$link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug, $row->sectionid));
				else
					$link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catid));
				$text = '<a href="' . $link . '" >'.$text.'</a>';
			}
Login or register to post message.
Moderators: support

Subscribe



Subscribe to our newsletter and social networks to be updated with the latest updates.

Login