Announcement

#1 2011-05-14 14:56:37

Frances
Guest

piwigo and non image files

Hi

Is it possible to have galleries of non-images - specifically 3d files. Ideally, I could have image thumbnails and then allow the 3d files to be downloaded.

I'm sorry if this is covered somewhere in the docs but I cant see where.

Thanks

Frances

 

#2 2011-05-14 16:18:01

flop25
Piwigo Team
2006-07-06
7037

Re: piwigo and non image files

with local file editor, add in the local config file :

$conf['file_ext'] =  array('jpg','JPG','png','PNG','gif','GIF','mpg','zip','avi','mp3','ogg','YOUR EXTENSION')

then add thumbnails in the thumbnails folder of your album

Of course you'll need to upload threw FTP and synchronize.

Last edited by flop25 (2011-05-14 16:20:11)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2011-05-14 21:00:11

Frances
Guest

Re: piwigo and non image files

Thanks for that.

So that would mean I create a thumbnail folder within my folder within gallery folder and upload to that.

But I'm not sure what follows.

Do I then just upload the 3d files into the main folder? And how do I get the thumbnails to open the 3d files for downloading when they are clicked on?

Thanks

 

#4 2011-05-15 00:17:11

flop25
Piwigo Team
2006-07-06
7037

Re: piwigo and non image files

do as this :
/folder
/folder/myfile.3d
/folder/mysecond.3d
/folder/thumbnails
/folder/thumbnails/myfile.jpeg
/folder/thumbnails/mysecond.jpeg
see the Docs here and in your administartion under the tab Photos->Add->FTP + Synchronization for further info


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2011-05-15 02:22:48

Frances
Guest

Re: piwigo and non image files

Thanks. I hadn't seen that ftp and synchronisation section. Hopefully I can make it work now.

 

#6 2011-05-16 18:29:03

Frances
Guest

Re: piwigo and non image files

Sorry I can't get it to work.

I have set up my 3D folder under a top level physical folder. In that folder there is a "thumbnail" folder with a TN-file1.jpg in it. In the 3D folder itself is file1.3DS. I FTPd and synchronised folders and files.

Now the folder shows up in the menu - but nothing shows up as in it in the gallery.

I have enabled the 3DS extension in both config_local.inc and themeconf.inc (I am using simple grey)

Do you know what I could be doing wrong?

Thanks

 

#7 2011-05-16 18:40:56

flop25
Piwigo Team
2006-07-06
7037

Re: piwigo and non image files

I've tried myself, in order to see if I forgot something but not, I succeed to add 3DS files
I think you created the wrong file : it's
local/config/config.inc.php
but use LocalFiles editor for that

Last edited by flop25 (2011-05-16 19:07:15)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#8 2011-05-16 19:50:49

Frances
Guest

Re: piwigo and non image files

Thanks. I have got it to work.

I did update the local.config file you specified. That didn't do it initially. But then I did another synchronise and I checked the check box to add files to caddie and that did do it.

I just wondered - at the moment, if you click on the thumbnail, you get taken to the main file page but all that shows is the thumbnail and clicking on it does nothing - you have to click on the "download" link for that. Is there any way to get the thumbnail to initiate download of the 3d file on a click?

If there are docs or help items relating to this, I would be happy to be pointed to them. I just find it quite hard to find where the information I need is located.

But either way, thanks

 

#9 2011-05-16 20:10:15

flop25
Piwigo Team
2006-07-06
7037

Re: piwigo and non image files

that's maybe the main problem of the project : the community is highly more active for french, with a wiki much more filled.... the main contributor of the french wiki has a kind of allergy with the english ^^

Despite this lack of documentation, I encourage you to see how works basic plugins and thèmes

For your extra-feature, I recommend you to see the picture_content.tpl and picture.tpl of index.php of the default theme. I just did this and I have seen the link for downloading which is from :

Code:

{if isset($current.U_DOWNLOAD)}
  <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow">
    <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'download'|@translate}</span>
  </a>
{/if}

so you can use this code in picture_content to embed the img like that :

Code:

{if isset($current.U_DOWNLOAD)}
  <a href="{$current.U_DOWNLOAD}" title="{'download this file'|@translate}"  rel="nofollow">
{/if}
{if isset($high)}
{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'}
<a href="javascript:phpWGOpenWindow('{$high.U_HIGH}','{$high.UUID}','scrollbars=yes,toolbar=no,status=no,resizable=yes')">
{/if}
  <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" 
  {if isset($COMMENT_IMG)}
    title="{$COMMENT_IMG|@strip_tags:false|@replace:'"':' '}" {else} title="{$current.TITLE|@replace:'"':' '} - {$ALT_IMG}"
  {/if}>
{if isset($high) }
</a>
  <p>{'Click on the photo to see it in high definition'|@translate}</p>
{/if}
{if isset($current.U_DOWNLOAD)}

  </a>
<p>{'download'|@translate}</p>
{/if}

Last edited by flop25 (2011-05-16 20:11:06)


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#10 2011-05-16 23:17:48

Frances
Guest

Re: piwigo and non image files

Thanks a lot. I will have a go with all that.

 

#11 2011-05-16 23:33:19

Frances
Guest

Re: piwigo and non image files

And it worked perfectly! Thanks

 

#12 2012-11-25 13:32:45

emanuel
Guest

Re: piwigo and non image files

Hello piwigo,

Ich want to put also mp3 and mp4 files, made change to the local file editor
<?php
$conf['file_ext'] =  array('mp3','mp4');
?>
this means additional file extensions mp3 and mp4, right?

made a new album MyVideoClip, subalbum MyVideoClip/thumbnail.

want to use the Ftp + Syncronizateon tab, but got error message:
Client browser does not accept the MIME type of the requested page.

http://kilisafarichale.ch.falkenstein.s … ection=ftp

 

#13 2012-11-25 13:37:32

emanuel
Guest

Re: piwigo and non image files

emanuel wrote:

Hello piwigo,

Ich want to put also mp3 and mp4 files, made change to the local file editor
<?php
$conf['file_ext'] =  array('mp3','mp4');
?>
this means additional file extensions mp3 and mp4, right?

made a new album MyVideoClip, subalbum MyVideoClip/thumbnail.

want to use the Ftp + Syncronizateon tab, but got error message:
Client browser does not accept the MIME type of the requested page.

http://kilisafarichale.ch.falkenstein.s … ection=ftp

i uploaded MyVideoClip/test.mp4
and the MyVideoClip/thumbnail/test.jpeg

 

#14 2012-11-26 07:39:20

nylaine0416
Member
2012-11-26
1

Re: piwigo and non image files

I'm sorry if this is covered somewhere in the docs but I cant see where.

Offline

 

#15 2012-11-26 13:30:23

flop25
Piwigo Team
2006-07-06
7037

Re: piwigo and non image files

it's the pwg_represenattive folder (read Photo->Add->FTP)
And we can't access to your admin ^^

Just correct the folder name, add jpeg jpg to $conf['file_ext']and tell me back if you still get issues


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact