I18N Gallery - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13) +--- Thread: I18N Gallery (/showthread.php?tid=1662) |
I18N Gallery - dey - 2011-12-16 mvlcek Wrote:Do you call get_header() in the HTML head?Yes html return is: Code: <meta name="description" content="Die meisten Bilder sind f&uuml;r gute Quote:Try to remove the (% gallery %) on top.is removed but I don't expect anything as the direct links from side menu results in same problem. I still wonder why it works locally. Is permission 755 for diretories and 644 for files enough? bydey I18N Gallery - dey - 2011-12-16 Hi Martin, I checked more: I started a new host at another freehoster: http://deynews.hostingsociety.com/ and this is working properly. I'm not sure if I'm happy now :? The obvious difference is Code: PHP Version 5.3.8 - OK 5.3.6 - OK I18N Gallery - trafford - 2011-12-16 Quote:See here for usage within template (get_i18n_gallery_header needs to be called). Thanks mvlcek. Sorry, it didn't quite sink in that you need both these calls - makes sense of course. This is a very nice plugin, BTW. Thanks for making it available and supporting it so actively. Trafford I18N Gallery - Oleg06 - 2011-12-18 what to do with Google map I18N Gallery - mvlcek - 2011-12-18 Oleg06 Wrote:what to do with Google map Nothing. It's work in progress that I forgot to delete. I18N Gallery - Golpar Tah - 2011-12-20 Hi, I'm trying to figure out how to move the title text outside of the border containing the thumbnail so that it's positioned directly underneath the border. I tried to make this work by modifying plugin_fancybox.php but didn't get the result I was looking for. Example: How can this be done? Thanks! I18N Gallery - didou038 - 2011-12-20 My little contribution for a great plugin : my french translation I18N Gallery - mvlcek - 2011-12-21 Golpar Tah Wrote:Hi, I'm trying to figure out how to move the title text outside of the border containing the thumbnail so that it's positioned directly underneath the border. I tried to make this work by modifying plugin_fancybox.php but didn't get the result I was looking for. You can probably do it with some styles in your CSS, e.g. (not tested): Code: body .gallery-fancybox .gallery-thumb { I18N Gallery - dey - 2011-12-21 dey Wrote:Hi Martin, Hi Martin, it seems that my problem on bplaced is solved: exec_php causes my trouble in combination with PHP 5.3.8. Anyway I moved to hostingsociety and generally I like it more than bplaced. But I found a new problem: Some of the thumbs are allways not displayed. With F5 the thumb which is not displayed changes. Sometimes you can see all. It doesn't matter if it is the overview with random thumb or specific gallery with fixed thumbs. If I control the thumbs folder with ftp all thumbs exists. http://deynews.de/index.php?id=gallery Any idea? bydey I18N Gallery - mvlcek - 2011-12-22 dey Wrote:But I found a new problem: I've had this problem, when I loaded multiple files in pic.php. But I have no idea what causes it - too many open files or something like that. So the code is not executed anymore, but gsconfig.php is loaded in pic.php. Try to comment out the following lines: Code: /* I18N Gallery - Golpar Tah - 2011-12-22 mvlcek Wrote:Thanks! That got me half way there. The text is now below the thumbnail but I'm unable to center it and there's nothing to keep the longer titles from spilling over the boundaries of the thumbnail. I imagine creating some sort of an invisible wrapper below each thumbnail in the CSS would solve the problem but I'm unsure how to properly code that. What would you suggest?Golpar Tah Wrote:Hi, I'm trying to figure out how to move the title text outside of the border containing the thumbnail so that it's positioned directly underneath the border. I tried to make this work by modifying plugin_fancybox.php but didn't get the result I was looking for. I18N Gallery - dey - 2011-12-28 Hi Martin, I hope you had or still have a relaxing xmas. I already returned to my headdache Last week I reported my issue at the forum of hostingsociety. The reply was something like "bad coding" and too much resource consuming. What is meant is the huge number os calls of pic.php like Code: <img src="http://deynews.hostingsociety.com/plugins/i18n_gallery/browser/pic.php?g=top-10&p=images%2F%2Fnatur%2Fstart.jpg&w=120&h=80" alt="Meine Top 10" title="Meine Top 10"/> What is the reason that you call the pic.php that often: safety or comfort? My first idea was to change the call to pic.php into a real link to the thumbs. So far so good. But then I figured out that I would need to change it at too many location. It's too dangerous that you miss something and any change in the options corrupts everything. So I thought it might be smarter to reduce the code for/ in pic.php. I created a second pic.php called new-pic.php. Actually new-pic.php is the original and pic.php the reduced one. In edit.php and imagebrowser.php I change all links from pic.php into new-pic.php. Reason: it seemed easier to find all calls... while I write I see I was wrong! Anyway the reduced code for pic.php looks like Code: <?php While I write this I returned to my origin idea to link thumbs with clear direct links and this works. Code for helper.php Code: function i18n_gallery_thumb_link($gallery, $item=null, $echo=true) { I manipulated the edit.php (for the other idea as well) Code: <td><img src="../plugins/i18n_gallery/browser/new-pic.php?p=<?php echo urlencode($item['filename']); ?>&w=<?php echo $w; ?>&h=<?php echo $h; ?>"/> Why do I write all this? With this solution I can't update anymore. So I like to ask if you consider for future a solution as option which treat ressources with more care. Even with bplaced there's is visible delay of about a second until all thumb in a gallery are visible. And I've just small galleries. I'm looking forward to here from you. bydey I18N Gallery - mvlcek - 2011-12-28 dey Wrote:Last week I reported my issue at the forum of hostingsociety. The reply was something like "bad coding" and too much resource consuming. The main reason for routing all image requests through pic.php is the resizing of thumbs and images on-the-fly to the thumb and image sizes requested. As you can specify a different thumb or image size in the call, this is the only way to do it, e.g. if you specify a fancybox gallery mygallery with thumb sizes 120x90, you can also call the gallery with (% gallery type=prettyphoto thumbwidth=160 thumbheight=120 %). So resizing the images when defining the gallery won't work, and resizing all images on page load would take too much time. A second reason is that I want to limit access to the images and show some images only to registered users. I'll try to implement a better method:
I18N Gallery - dey - 2011-12-28 mvlcek Wrote:The main reason for routing all image requests through pic.php is the resizing of thumbs and images on-the-fly to the thumb and image sizes requested.I know your flexibility is great. This is the reason why I stopped my first idea as the flexibility is gone immediately. Quote:So resizing the images when defining the gallery won't work,clear! Quote:and resizing all images on page load would take too much time.not clear ?! Quote:A second reason is that I want to limit access to the images and show some images only to registered users.I wasn't aware that this is possible and in the meantime I made my own solution. Is it possible to limit access to different images/ galleries for different user(groups)? Quote:I'll try to implement a better method:I created now a similar solution. A little bit manually. Code: if (isset($_GET['php'])){ Code: function i18n_gallery_thumb_link($gallery, $item=null, $echo=true) { Quote:Alternatively outputting caching headers for the images returned by pic.php might work - or not, because there are URL parameters?Häh!?????? bydey I18N Gallery - mvlcek - 2011-12-28 dey Wrote:Quote:So resizing the images when defining the gallery won't work,clear!Quote:and resizing all images on page load would take too much time.not clear ?! On request of the page with the gallery the plugin knows the sizes and could resize all images not yet resized and then output links to these resized images/thumbnails. However, for a gallery of more than a few images this would take to much time and would probably give you a timeout. dey Wrote:Quote:A second reason is that I want to limit access to the images and show some images only to registered users.I wasn't aware that this is possible and in the meantime I made my own solution. I have a not-yet-finished plugin similar to frontend-users, where you can define user groups based on the tags/keywords of pages and images, e.g. anonymous users see all pages/images tagged with "public", registered users get all pages/images unless tagged "private" and users in the group "friends" get all pages/images. dey Wrote:Quote:Alternatively outputting caching headers for the images returned by pic.php might work - or not, because there are URL parameters?Häh!?????? Telling the browser to cache images and just returning "Not Changed" instead of the image on a new request would lessen the load on the server and maybe partly solve the problem - if the image is already in the browser cache. I18N Gallery - dey - 2011-12-28 Hi Martin, I've chosen to combine your idea mvlcek Wrote:the thumbnail/image exists, link to the image file.with my previous Code: function i18n_gallery_thumb_link($gallery, $item=null, $echo=true) { And the point at hostingsociety seems to be that it doesn't accept the huge number of calls of a php file. This solution just works for the audience. The admin still have the problem that in edit or imagebrowser mode you're blind (just a few admin thumb are displayed). Not a big issue as I administrate my CMS locally. Finally I think the only solution is to modify pic.php to make it a function and include pic.php only once woth a call to the function for each image/thumb. mvlcek Wrote:On request of the page with the gallery the plugin knows the sizes and could resize all images not yet resized and then output links to these resized images/thumbnails. However, for a gallery of more than a few images this would take to much time and would probably give you a timeout.As mentioned I've the feeling that the number of calls for the pic.php is the problem. Quote:I have a not-yet-finished plugin similar to frontend-users, where you can define user groups based on the tags/keywords of pages and images, e.g. anonymous users see all pages/images tagged with "public", registered users get all pages/images unless tagged "private" and users in the group "friends" get all pages/images. This was not what was looking for. I need more different groups (like family, friends, team, colleagues, etc) with different permission. But no issue as I found my own solution. Quote:Telling the browser to cache images and just returning "Not Changed" instead of the image on a new request would lessen the load on the server and maybe partly solve the problem - if the image is already in the browser cache.Again. It seems to be the call of pic.php. So if you need to call pic.php to compare the cache it won't work. If the cache is that smart that it reduces really the number of calls fine. I'll report my studies to the coder of hostingsociety. I'll keep you updated. bydey I18N Gallery - mvlcek - 2011-12-28 dey Wrote:Quote:I have a not-yet-finished plugin similar to frontend-users, where you can define user groups based on the tags/keywords of pages and images, e.g. anonymous users see all pages/images tagged with "public", registered users get all pages/images unless tagged "private" and users in the group "friends" get all pages/images. This was just an example: you can define what an anonymous and a registered user will see and define any number of groups based on the tags, then assign those groups to registered users. I18N Gallery - trafford - 2011-12-29 Number of images in a row is too great for the div size Hi. I have a problem where the number of images in a row is too great for the div size, and as a result the last image is wrapping, leaving a single image in it's own row (next row is the start of the next row of images). Teh gallery is set to fancybox. The problem can be seen here http://216.172.180.17/~hewit/?id=gallery (temporary url). I can work around this by changing the thumbnail size but the thumbnail is then too small. Any ideas anyone? Seems the calculation for number of images per row is getting the container size from somewhere different to the final container. Gallery call syntax is simply (% gallery name=gallery %) Thanks Trafford I18N Gallery - mvlcek - 2011-12-29 trafford Wrote:Number of images in a row is too great for the div size There is no computation of the number of images, all thumbnails use float:left. As your thumbnails have different heights, this results in moving one thumbnail only under the last (height 73 instead of 75). I18N Gallery - trafford - 2011-12-29 mvlcek Wrote:trafford Wrote:Number of images in a row is too great for the div size Thanks mvlcek. As you say, when I remove the bigger image, or set the image max, the issue is resolved. Cheers, Trafford I18N Gallery - vixrealitum - 2011-12-29 Hello, I would like to know if I can create a gallery of video files (MOV, Vimeo, etc.?) using the Gallery plugin I18N Gallery? I know that the plugin is in a pretty photo library. The official website PrettyPhoto appears that there is such possibility. I18N Gallery - egger - 2012-01-04 Hello, How to display a list of galleries with their names and 1 photo thumbnails? I18N Gallery - Connie - 2012-01-04 egger Wrote:Hello, where do you want to display that, in a page or in the admin area of the plugin? I18N Gallery - egger - 2012-01-04 Connie Wrote:in a page called "List of Galleries"egger Wrote:Hello, I18N Gallery - Connie - 2012-01-04 egger Wrote:in a page called "List of Galleries" there is no automatic list of galleries, but you can create your own list with links to galleries and thumbs see here: http://mvlcek.bplaced.net/get-simple/i18ngallery "Add a link to a gallery by adding the following to your page: (% gallerylink name=my-gallery-name url=my-gallery-slug thumb=0 %) (omit thumb to output the title instead of a thumbnail or use thumb=random for a random thumbnail)" |