Gallery name under image + image size

Phoca Gallery - image gallery extension
vivi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Mar 2010, 08:34

Gallery name under image + image size

Post by vivi »

Hello, In the frontpage of my web I have 5 galleries in Horizontal way (5 columns). However the name of the gallery is shown to the right, is it possible to put the name of each gallery below each image?

And the other question is about the gallery size, the only option I find to change the size is "medium with shadow" as the maximum and this is too small for what I need. Any place to define a custom size, or choose one bigger than "medium"?

I find many options for customization and not these 2 which are the basic :?

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

Re: Gallery name under image + image size

Post by Jan »

Hi, can I see the site? I think you need to customize the title (but don't know as didn't see what exactly you mean)

Resizing thumbnails, see:
https://www.phoca.cz/documents/2-phoca-g ... w-resizing

Jan
If you find Phoca extensions useful, please support the project
vivi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Mar 2010, 08:34

Re: Gallery name under image + image size

Post by vivi »

http://elisacalabuig.comule.com/

Thanks for answer, I mean the title of the galleries that appears on the right side of each gallery, I would like to have it under each thumbnail but I don't find the option :?:

As you can see the image is blocking the text, how to put that text down?

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

Re: Gallery name under image + image size

Post by Jan »

Hi, I cannot connect to your site :-(
If you find Phoca extensions useful, please support the project
mmicko
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 09 Jul 2010, 09:54

Re: Gallery name under image + image size

Post by mmicko »

Hi, i have the same problem. Maybe will be for Jan better explanation in czech language (my english is not very good)

Podle mě by chtěl mít vivi v hlavním seznamu galerií jméno galerie pod obrázkem a ne napravo od obrázku jako je to teď.
Např. tady http://www.micko.cz/joomla/index.php/ga ... ategory/12
je to kvůli tomu dost nepřehledný a musím mít nastavený jenom dva sloupce. Kdyby byl název galerie (nebo subgalerie) pod obrázkem, mohl bych mít v pohodě tři subgalerie vedle sebe.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery name under image + image size

Post by Jan »

Hi, then just customize the template of "Categories View"

components/com_phocagallery/views/categories/tmpl/default.php - just add <br /> tag for not table design or change the table desing - add next row in html code.

Jan
If you find Phoca extensions useful, please support the project
kreeden
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 06 Jun 2009, 18:51

Re: Gallery name under image + image size

Post by kreeden »

Did you guys manage to sort this out? I tried to change the default.php file but couldn't see where I had to do it (No :idea: ). If you managed to do it I'd appreciate your coding.

Thanks
vivi
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 26 Mar 2010, 08:34

Re: Gallery name under image + image size

Post by vivi »

Solved:

Code: Select all

// -------------------
// TABLE LAYOUT
// -------------------
if ($this->tmpl['displayimagecategories'] == 1) {	
	for ($i = 0; $i < $countCategories; $i++) {
		if ( $columns == 1 ) {
			echo '<table>';
		} else {
			$float = 0;
			foreach ($begin as $k => $v) {
				if ($i == $v) {
					$float = 1;
				}
			}
			if ($float == 1) {		
				echo '<div style="position:relative;float:left;'.$fixedWidhtStyle1.'"><table>';
			}
		}

		echo '<tr>';	
            echo '<td align="center" valign="middle"><a href="'.$this->categories[$i]->link.'" class="category'.$this->params->get( 'pageclass_sfx' ).'">'.$this->categories[$i]->title.'</a>&nbsp;';
		
		if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}
		
		echo '</td>'; 
            echo '</tr>';
            echo '<tr>';	
		echo '<td align="center" valign="middle" style="'.$this->tmpl['imagebg'].';text-align:center;"><a href="'.$this->categories[$i]->link.'">';

		if (isset($this->categories[$i]->extpic) && $this->categories[$i]->extpic) {
		
			$correctImageRes = PhocaGalleryPicasa::correctSizeWithRate($this->categories[$i]->extw, $this->categories[$i]->exth, $this->tmpl['picasa_correct_width'], $this->tmpl['picasa_correct_height']);
			echo JHTML::_( 'image', $this->categories[$i]->linkthumbnailpath, str_replace('&raquo;', '-',$this->categories[$i]->title), array('width' => $correctImageRes['width'], 'height' => $correctImageRes['height']), '', '', 'style="border:0"');
			
		} else {
		
			echo JHTML::_( 'image.site', $this->categories[$i]->linkthumbnailpath, '', '', '', str_replace('&raquo;', '-',$this->categories[$i]->title), 'style="border:0"' );
		}
		echo '</a></td>';
		
		echo '</tr>';
		
		if ( $columns == 1 ) {
			echo '</table>';
		} else {
			if ($i == $endFloat) {
				echo '</table></div><div style="clear:both"></div>';
			} else {
				$float = 0;
				foreach ($end as $k => $v)
				{
					if ($i == $v) {
						$float = 1;
					}
				}
				if ($float == 1) {		
					echo '</table></div>';
				}
			}
		}
	}
}
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery name under image + image size

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
mmicko
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 09 Jul 2010, 09:54

Re: Gallery name under image + image size

Post by mmicko »

Hello Jan,
thank you for your help, but with solution from vivi i have now name of gallery above picture but i would like to have name under picture - where (and how) exactly i should change the code posted by vivi?
And second question, this names above pictures i have in main gallery view only
http://www.micko.cz/joomla/index.php/galerie
but if i go to subgallery with next subgalleries, then is back the name on the right side of picture
http://www.micko.cz/joomla/index.php/ga ... ategory/12

many thanks for your help

Michal
Post Reply