Changes on size of overlib with 4.3.1

Phoca Gallery - image gallery extension
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Changes on size of overlib with 4.3.1

Post by marcel77 »

Hi Jan,

did you some change with overlib in category view? It doesn´t matter, what I choose in settings "Overlib Bildgrößen Rate". The overlib Picture has the same size with every setting. I mean with 4.3.0 was everything ok.

By the way, the plugin code doesn´t work in overlib too (I know it makes no sense there) But is it possible to fade out plugin code, to show only the real description?

If you need more input, please let me know.

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Changes on size of overlib with 4.3.1

Post by Jan »

Hi, no, there were no changes regarding overlib, what you mean with "fade out the plugin code"?

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Changes on size of overlib with 4.3.1

Post by marcel77 »

Hi Jan

Hmm... any Idea, why the overlib picture is so small and it didn´t regarding, what size I choose?

At the overlib picture you can read the code of the simplecaddy plugin in description (like in detail view, before you send me the code to change). I think, this makes no sense?

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Changes on size of overlib with 4.3.1

Post by Jan »

Hi, can you paste a screenshot of what you exactly mean, the overlib should not have any description with plugin code :idea:

Anyway, if you still use simplecaddy plugin, you should take a look at Phoca Cart which is a component for the latest Joomla! version.

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Changes on size of overlib with 4.3.1

Post by marcel77 »

Hi Jan,

here is the screenshot:

Image

If you turn on description, overlib shows it:

Image

I don´t know, if PhocaCart is, what I search for. I have many pictures and will offer them. I´m affrai of doing allentries by hand.

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Changes on size of overlib with 4.3.1

Post by Jan »

Hi, description in Overlib does not support content plugins because of possible javascript conflicts.

You can customize it in code:
components\com_phocagallery\views\category\view.html.php line 1389

Code: Select all

$this->items[$iS]->overlib_value 		= " onmouseover=\"return overlib('".PhocaGalleryText::strTrimAll(htmlspecialchars( addslashes( '<div class="pg-overlib"><div style="text-align:center"><center>' . $oImg . '</center></div><div class="'.$divPadding.'">' . $this->items[$iS]->description . '</div></div>' . $uBy)))."', CAPTION, '". htmlspecialchars( addslashes($this->items[$iS]->title))."', ".htmlspecialchars($this->tmpl['overlib_attributes']).");\""
					. " onmouseout=\"return nd();\" ";

FROM:

Code: Select all

$this->items[$iS]->description
TO:

Code: Select all

JHTML::_('content.prepare', $this->items[$iS]->description)
But this can cause htmla and javascript conflicts :idea:

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Changes on size of overlib with 4.3.1

Post by marcel77 »

Hi Jan,

I have looked on PhocaCart within the last days. Is there any way, to integrate it in PG like SimpleCaddy? I didn´t found it?
I offer a lot of pictures (even if I do not sell many :-( ) . I can´t add thousand picture a day one by one by hand.

I only need one article (maybe 2 or 3 next year) "Photo" and add this to every picture. In the offer I have to find the Name of the ordered photo.

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Changes on size of overlib with 4.3.1

Post by Jan »

Hi, Phoca Cart is self-alone extension, all is managed in the component, including the images.

So using Phoca Gallery means, you will use obsolete Simple Caddy and you need to solve the displaying of plugin on your site (it cannot be displayed inside other javascript as then it can break javascript code - so you need to find another place to display the plugin :idea:

Of you will use Phoca Cart but then you need to build "new products" including their images. :idea:

Jan
If you find Phoca extensions useful, please support the project
marcel77
Phoca Enthusiast
Phoca Enthusiast
Posts: 79
Joined: 22 Apr 2016, 12:03

Re: Changes on size of overlib with 4.3.1

Post by marcel77 »

Hi,

yes, that is like I understand it.

With PhocaCart I have to add one product per photo. So if I have to add 1000 Fotos, I have to add 1000 products :-(

I try to look again later... Maybe I can script something as batch?

Within overlib I don´t want to use the plugin (You can´t click because of moving) I was searching a way to hide the code in overlib. For category and detail view the code works fine now.

Thank you for assistance!

Marcel
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Changes on size of overlib with 4.3.1

Post by Jan »

Hi, hmmm, then in overlib the description needs to be somehow filtered :idea:

Code: Select all

$this->items[$iS]->description = str_replace('{plugin code}', '', $this->items[$iS]->description);
If the plugin code is not always the same, then some pre_replace needs to be done :idea:

Something like this :idea:

Code: Select all

$specDesc		= $this->items[$iS]->description
$regex_one		= '/({someplugincode\s*)(.*?)(})/si';
$regex_all		= '/{someplugincode\s*.*?}/si';
$matches 		= array();
$count_matches	= preg_match_all($regex_all,$specDesc,$matches,PREG_OFFSET_CAPTURE | PREG_PATTERN_ORDER);

if ($count_matches != 0) {
	for($i = 0; $i < $count_matches; $i++) {
		$specDesc = preg_replace($regex_all, '', specDesc, 1);
	}
}
If you find Phoca extensions useful, please support the project
Post Reply