Page 1 of 2

modifying position of photos in the detail view

Posted: 03 Aug 2008, 19:18
by luisson
Hello,

I want to modify the position of the photos in the detail view.
They are displayed in the middle. I want to have them dsplayed on top of the popup window in order to get several lines of text below it.

As I got it now, my descrition is cut at the bottom an not completely visible, allthough there is enough space for it all.

Who can help?


Thanks a lot in advance,

luisson

Re: modifying position of photos in the detail view

Posted: 03 Aug 2008, 19:39
by Jan
:(

you must test it, the css file and the detail view html :(
components/com_phocagallery/views/detail/tmpl/default.php
components/com_phocagallery/assets/phocagallery.css ...

Jan

Re: modifying position of photos in the detail view

Posted: 03 Aug 2008, 21:39
by luisson
Thanks for your reply Jan,

what I got now is the photo on the top of the page. That is okay so far.
But I don't find out how to get the description right below the photo.

So the photo is on top of the page, but the position of the description did not change.

If I look at the source code of the popup window, there is a height of 486 px in the cell in which the photo appears:
<td colspan="6" align="center" valign="top" height="486" >

In addition to that, the button of the navigation are hiding the description text.
Am I the first one with this problem?

I would like to use the phoca gallery in my cms - but if I don't get this problem solved, I have to look for another solution.
Is there anybody who can help?

Thanks in advance,

luisson

Re: modifying position of photos in the detail view

Posted: 03 Aug 2008, 21:51
by Jan
I think, there is nobody who can help you, because if you did some changes in detail view, nobody know which changed did you made, so it is very diffictult to say where can be the problem ... :(

Re: modifying position of photos in the detail view

Posted: 03 Aug 2008, 22:20
by luisson
Here are the changes I made in /components/com_phocagallery/views/detail/tmpl/default.php:

line 128:

slideHTML+='<table border="0"><tr><td style="text-align:center" align="center" valign="middle" height="<?php echo $this->largeheight; ?>"><img style="vertical-align:middle" SRC="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px"></td></tr></table>'

---> This puts the picture on the top of the page if dia slide show is used.



line 244:

<td colspan="6" align="center" valign="top" height="<?php echo $largeHeight; ?>" > <!-- default valign="middle" -->

--> This puts the picture on the top of the page.

These are the changes that I made. I already tried out other things, but they didn't work.


* * * * * * * * * * *

As I see now, there is no description text if the dia show is used.
Is this a bug? Or is it a feature?

How can I turn off the dia slide show but still using/displaying the "next" an "previous" button?

Thanks,

luisson

Re: modifying position of photos in the detail view

Posted: 03 Aug 2008, 23:06
by Jan
there is no description text if the dia show is used
... this is a standard.. if the slideshow runs, no description is displayed... (the javascript doesn't allow it :( )...

the buttons are created there, so you can disable the creating here:
components/com_phocagallery/helpers/phocagallery.php

or in detail view in default.php

just delete the play and stop button line 267:
$this->file->slideshowbutton

Re: modifying position of photos in the detail view

Posted: 04 Aug 2008, 22:30
by luisson
What a pity!

No description in the slide show an no way of getting the description right below the pics.

:cry:

Modifying the source code in order to avoid displaying the slide show buttons is no problem for me. But how about getting the text right below the images?

Has anyone a good idea?

Thanks,

luisson

Re: modifying position of photos in the detail view

Posted: 05 Aug 2008, 14:57
by Jan
then you must try it with some padding or margin css attributes in the css or you can add the description over the foto... see parameters

Re: modifying position of photos in the detail view

Posted: 13 Oct 2008, 09:30
by peter4u
Hello,

First of all, Phoca Gallery is amazing software. Thanks!
I was checking out this forum because I noticed that descriptions disappear during the slideshow. I do understand the cause now, so that's okay.

But you said: "or you can add the description over the foto... see parameters". That sounds interesting but I have no idea where I can find that. Can you point it out?

Regards, Peter.

Re: modifying position of photos in the detail view

Posted: 14 Oct 2008, 12:59
by Jan
Descirption is not disappearing in slideshow, there is no description in slideshow, it is external javascript which doesn't have option to display description...

overlib - see Parameters Component for adding a description over the photo:

demo:
https://www.phoca.cz/phocagallery/demo/i ... ransparent

documentation:
https://www.phoca.cz/documentation/index ... -component

Jan