Member
Member
Pierrot   19-05-2008, 02:07
#1

Hi,

I thought I would try here before diving too far into the code. I made a lot of changes to the default theme. I didn't have any videos at the time and didn't think to test with them. My bad! Now I have a bunch and on the image page get 4 'Get Flash to see this player.' error messages on the page. Once where the video should be and 3 where I have the thumbnails. The video comes up but to the right.

You can see the page here.

Needless to say, I have flash installed.

Any ideas on what I need to do or undo?

I can post my code if that will help.

Thanks, as always!

Member
Member
Pierrot   19-05-2008, 06:42
#2

Okay, this is a little confusing for me - I figured out how to artificially get rid of the 'Get Flash' message by removing it from the flvplayer.php code.

I use a thumbnail script to create the small thumbnails beside the mail image. It seems as though the video is coming up as one of those thumbnails rather than the main image. This explains why nothing I do will work to center the video.

So, any idea on how to get the video to display as the main image rather than a thumbnail? I'd love to get this working as I want to start adding videos to the gallery!

Thanks!

Pierrot

Administrator
Administrator
acrylian   19-05-2008, 08:17
#3

The video does normally appear as the normal sized image on image.php. Not knowing your theme I would recommend to take a look at the included themes like default theme.

Member
Member
Pierrot   19-05-2008, 16:12
#4

Thanks acrylian,

I can't seem to figure this out. I might try a different approach. Is there a way to have a page load for the video that is different from image.php?

I use the small thumbnail code for the image page - image on the left, thumbnails on right. Is it possible to have a different layout for the video - perhaps just the video, centered?

Administrator
Administrator
acrylian   19-05-2008, 17:26
#5

What do you use for the thumbs? Maybe you could post your code? There seems something mangled.

Member
Member
Pierrot   19-05-2008, 17:31
#6

For sure. Here is the image.php code. The thumbs are wrapped in the smallthumb div.

    " title="">

" >

" >

    " title="">[b][/b]


















                 says:






                ,
Administrator
Administrator
acrylian   19-05-2008, 17:54
#7

I didn't dig deep into the code or your site. The main problem is that zenphoto is not able to resize the video for display. If you use CustomSizedImage function they assume the big image and for videos that is the video itself.
Why don't you use the printImageThumb()function for the thumbs?

I must say I don't understand parts of the code. Why don't you use the normal image.php setup? (Again, I didn't dig really into the code.)

Member
Member
Pierrot   19-05-2008, 18:11
#8

I feel like we're getting closer! I replaced

with

Member
Member
Pierrot   19-05-2008, 18:16
#9

The normal image.php setup is great. I used it for a while, but saw the thumbnails on a few sites and thought I'd give it a try. The code for the thumbnails was given to me so I can't really say I know too much about how it works. Other than the thumbnails, I added the banner support and an ad but that's basically all I changed.

Member
Member
Pierrot   19-05-2008, 18:27
#10

Sorry,

I just changed that to

Member
Member
Pierrot   19-05-2008, 18:52
#11

Hmm, is there a way to make the thumb size smaller for just the image page?

Also, is there a way to make the jpg (or video image) come up for the video. At the image level it just shows a blank screen until you hit play.

I know I'm asking for a lot here!

Thanks,

P

Administrator
Administrator
acrylian   19-05-2008, 19:36
#12

Thumb size:
Well, there is no convienient way, but you could do this to call the image sizing function directly:
WEBPATH.'/'.ZENFOLDER.'/i.php?a=&i=.'&s= Take a look at the doc at the top of zp-core/i.php, there are more options.

Video:
Well, I see the black screen with the start button, nice and clean..:-). Seriously, the flv player has an option for showing a preview image, but we have not implemented that right now. You could open a feature request ticket, then I'll see to add that to the plugin.

Member
Member
Pierrot   20-05-2008, 20:32
#13

Thanks, I got the video working with only a small compromise. In the end I decided to use 'printImageThumb' as you recommended and save myself some hassle by just adjusting the thumb size through zenphoto admin. I chose one consistent size that looks not bad. I may try to change the image.php thumbs in the future as I think they look better smaller, but for now, I'm happy.

You can see the page here for anyone who has been following this thread and wants to see the end result.

Regarding the video image - I tried to play around with the flvplayer to get the jpg to show but think I'll give up now and open a feature request. Some things are best let to the pros!

Thanks again for all of your help!

Pierrot

Administrator
Administrator
acrylian   21-05-2008, 08:21
#14

If you want smaller thumbs you could also cheat a little and resize them via the tag. Of course this is a little dirty, but it's mainly forbidden to resize really big images that way. Since the filesize would be already small, this could be tolerable..:-)

Regarding the jpeg in the flv player, this has been just done (for an older zp version though): http://www.zenphoto.org/support/topic.php?id=3049&replies=6
Anyway I will implement that in the next version anyway.

Member
Member
Pierrot   06-07-2008, 18:37
#15

acrylian,

I just updated and noticed the changes you made to the flv player - thanks!!!

P

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.