[SOLVED] Category View issue with changed medium imagesize

Phoca Gallery - image gallery extension
Locked
adriaan
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Oct 2009, 20:48
Location: Westkapelle, The Netherlands
Contact:

[SOLVED] Category View issue with changed medium imagesize

Post by adriaan »

In Joomla 1.7.3 and PhocaGallery 3.1.1

I have changed the Medium Image Width and Medium Image Height to 180.

Unfortunately the Category View still uses smaller boxes to display the images:

Code: Select all

<div class="phocagallery-box-file" style="height:118px; width:120px;">
<div class="phocagallery-box-file-first" style="height:100px;width:100px;margin:auto;">
<div class="phocagallery-box-file-second">
<div class="phocagallery-box-file-third">
Attached also a screenshot.
Is it possible to change the boxes to the Medium Image Height and Width properties?
Last edited by adriaan on 28 Dec 2011, 11:37, edited 2 times in total.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9975
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Category View issue with changed medium imagesize

Post by Benno »

adriaan
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Oct 2009, 20:48
Location: Westkapelle, The Netherlands
Contact:

Re: Category View issue with changed medium imagesize

Post by adriaan »

Hi Benno,

Thanks for your reply, i have read the instructions for the styling background image. But i think that is not the problem.

The problem is that the div size heigh and width are not changed to my new default medium size of 180px. As you see in my first post the height and width of the divs are still based on the default of 100 px. I have looked into all the settings but it did not help.

In the file default.php in the directory views/category/tmpl of the front-end i have changed lines 126 and 127 from:

Code: Select all

echo '<div class="phocagallery-box-file" style="height:'. $imageHeight['boxsize'].'px; width:'.$imageWidth['boxsize'].'px;">'. "\n";
echo '<div class="phocagallery-box-file-first" style="height:'.$imageHeight['size'].'px;width:'.$imageWidth['size'].'px;margin:auto;">'. "\n";
into:

Code: Select all

echo '<div class="phocagallery-box-file" style="height:198px; width:200px;">'. "\n";
echo '<div class="phocagallery-box-file-first" style="height:180px; width:180px;margin:auto;">'. "\n";
Then the divs have the correct sizes. My conclusion is that the values in $imageHeight[' size'] and $imageWidth['size'] are not set to the changed default sizes of the medium thumbnails.

Kind regards,
Adriaan

Kind regards,
Adriaan
adriaan
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Oct 2009, 20:48
Location: Westkapelle, The Netherlands
Contact:

Re: Category View issue with changed medium imagesize

Post by adriaan »

No one else with same problem?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category View issue with changed medium imagesize

Post by Jan »

Hi, did you try to change padding and margin parameters of box over the image
If you find Phoca extensions useful, please support the project
adriaan
Phoca Member
Phoca Member
Posts: 18
Joined: 22 Oct 2009, 20:48
Location: Westkapelle, The Netherlands
Contact:

Re: [SOLVED] Category View issue with changed medium imagesi

Post by adriaan »

The error occured after running the com_pi_pg.zip to hide the Phoca Gallery links.
Sovled by Jan
Locked