Member
Member
djilou   2010-01-02, 21:34
#1

Hi,

I want to display swf files on my zenphoto gallery, any way to do this?

Thanks.

Member
Member
sbillard   2010-01-02, 23:09
#2

There is nothing currently. However, certain themes use the adobe flash player to run specific SWF applications. You could adapt the text_object plugin to handle generic SWF using these specific cases as a starting point.

Member
Member
djilou   2010-01-03, 00:04
#3

work great!

Thanks.

Member
Member
sbillard   2010-01-03, 00:23
#4

Maybe you could make your plugin available to the general community.

Member
Member
djilou   2010-01-03, 18:26
#5

Yes but I have a problem with this, when text_object plugin is enabled all albums thumbs are broken.

I have one album with 2 files: file-name.txt and file-name.jpg
the thumb created on cache folder is : {zp-core}{images}_imageDefault.png_100_thumb.png

How can I fix this?

Administrator
Administrator
acrylian   2010-01-03, 19:07
#6

If you don't have a image for a text object the default image is used. Please post a link otherwise we are guessing.

Member
Member
djilou   2010-01-03, 19:19
#7

Okay I found why,
I made a change to class-textobject.php file :
addPluginType('txt', 'TextObject') replaced by addPluginType('html', 'TextObject')

with this change every thing work fine except the album thumbs

I don't want to use txt files beacause I prefer to have url like :
http://www.site.com/album/file-name.html

instead of

http://www.site.com/album/file-name.txt.html

Any way to get this working??

Thank you for your help.

Member
Member
sbillard   2010-01-03, 19:32
#8

Do video thumbs work? Do textobject thumbs work for the unmodified textobject plugin?

Member
Member
djilou   2010-01-03, 19:48
#9

yes thumbs work fine with the unmodified textobject plugin

Member
Member
sbillard   2010-01-03, 19:59
#10

Off hand, then I do not have any ideas. The code that is used to get the alternative thumb is not sensitive to the suffix (Same code used for video as for standard text object)

Member
Member
sbillard   2010-01-03, 22:04
#11

I modified the textobject plugin to add htm and tried this out. Everything worked as expected. So maybe you don't have the thumb image setup in the folder?

Member
Member
djilou   2010-01-03, 23:15
#12

yes I have the thumb image within the album folder,

what I don"t understan is why the thumb created on cache folder had this format : {zp-core}{images}_imageDefault.png_100_thumb.png

I'm testing this out on localhost so I can"t give a live example.

Member
Member
sbillard   2010-01-03, 23:34
#13

That is the default thumbnail you get if there is not a standin.

Member
Member
djilou   2010-01-03, 23:51
#14

okay but there is also on the cache folder others thumbs from the album

let's say I have an album with : file1.htm + image1.jpg and file2.html + image2.jpg

on the cache folder I see :
{zp-core}{images}_imageDefault.png_100_thumb.png
image1.jpg_100_thumb.jpg
image2.jpg_100_thumb.jpg

but {zp-core}{images}_imageDefault.png_100_thumb.png is the only thumb displayed on albums index

Administrator
Administrator
acrylian   2010-01-04, 10:45
#15

Quote: file1.htm + image1.jpg and file2.html + image2.jpg
You actually should have file1.htm + file1.jpg and file2.html + file2.jpg but I guess you know that? If the image meant as a thumb does not have the same name it will be considered as an image itself, not as a thumb to the htm file. Therefore the htm file will not have a thumb and will get the default one assigned.

Member
Member
djilou   2010-01-04, 11:32
#16

Yes I know that as I said before : I have one album with 2 files: file-name.txt and file-name.jpg

Administrator
Administrator
acrylian   2010-01-04, 12:47
#17

Ok, just wanted to be sure since you typed something else..;-) Then I like sbillard have no idea.

Member
Member
sbillard   2010-01-04, 18:47
#18

Your are talking about the album thumb, right? Well, which image is selected for that will depend on what you have chosen in your album thumbnail settings. My guess is that you have left it alone and the one chosen is the "first" which is presumably file1.htm and has no thumbnail standin, so the default is used.

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