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
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)
Offline
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
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
Offline
Thanks. I hadn't seen that ftp and synchronisation section. Hopefully I can make it work now.
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
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)
Offline
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
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 :
{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 :
{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)
Offline
Thanks a lot. I will have a go with all that.
And it worked perfectly! Thanks
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
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
I'm sorry if this is covered somewhere in the docs but I cant see where.
Offline
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
Offline