Changes on size of overlib with 4.3.1
-
marcel77
- Phoca Enthusiast

- Posts: 79
- Joined: 22 Apr 2016, 12:03
Changes on size of overlib with 4.3.1
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
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
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Changes on size of overlib with 4.3.1
Hi, no, there were no changes regarding overlib, what you mean with "fade out the plugin code"?
Jan
Jan
If you find Phoca extensions useful, please support the project
-
marcel77
- Phoca Enthusiast

- Posts: 79
- Joined: 22 Apr 2016, 12:03
Re: Changes on size of overlib with 4.3.1
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
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
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Changes on size of overlib with 4.3.1
Hi, can you paste a screenshot of what you exactly mean, the overlib should not have any description with plugin code 
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
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

- Posts: 79
- Joined: 22 Apr 2016, 12:03
Re: Changes on size of overlib with 4.3.1
Hi Jan,
here is the screenshot:

If you turn on description, overlib shows it:

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
here is the screenshot:

If you turn on description, overlib shows it:

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
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Changes on size of overlib with 4.3.1
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
FROM:
TO:
But this can cause htmla and javascript conflicts 
Jan
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]->descriptionCode: Select all
JHTML::_('content.prepare', $this->items[$iS]->description)Jan
If you find Phoca extensions useful, please support the project
-
marcel77
- Phoca Enthusiast

- Posts: 79
- Joined: 22 Apr 2016, 12:03
Re: Changes on size of overlib with 4.3.1
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
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 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
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Changes on size of overlib with 4.3.1
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
Of you will use Phoca Cart but then you need to build "new products" including their images.
Jan
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
Of you will use Phoca Cart but then you need to build "new products" including their images.
Jan
If you find Phoca extensions useful, please support the project
-
marcel77
- Phoca Enthusiast

- Posts: 79
- Joined: 22 Apr 2016, 12:03
Re: Changes on size of overlib with 4.3.1
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
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
- Jan
- Phoca Hero

- Posts: 49144
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Changes on size of overlib with 4.3.1
Hi, hmmm, then in overlib the description needs to be somehow filtered
If the plugin code is not always the same, then some pre_replace needs to be done 
Something like this
Code: Select all
$this->items[$iS]->description = str_replace('{plugin code}', '', $this->items[$iS]->description);Something like this
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