76

Re: New Plugin - Fancy Image Gallery

Ah crap! You c/p it from docs, but there is a little typo which I always forget to fix.

Try this instead of current call:

<script type="text/javascript">
$(function(){
    $(".photo").fancybox({ 
    'speedIn': 500, 
    'speedOut': 500,        
    'overlayShow': true,
    'titleShow': true,
    'titlePosition': 'inside'
    });
});
</script>
Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

Re: New Plugin - Fancy Image Gallery

jackie wrote:

Ah crap! You c/p it from docs, but there is a little typo which I always forget to fix.

Try this instead of current call:

<script type="text/javascript">
$(function(){
    $(".photo").fancybox({ 
    'speedIn': 500, 
    'speedOut': 500,        
    'overlayShow': true,
    'titleShow': true,
    'titlePosition': 'inside'
    });
});
</script>

Solved!! Thanks for the fast and helpfull support!

Thumbs up

78

Re: New Plugin - Fancy Image Gallery

Feature request - is it possible to implement something like Image Plugin into the gallery, so that the thumbnail generator would resize & crop the pictures, not only resize them? It would be much prettier not to have distorted thumbnails wink

79

Re: New Plugin - Fancy Image Gallery

@ivy046 - smile I'm aware of that. It's in to-do list now.

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

80

Re: New Plugin - Fancy Image Gallery

*happy face*

Thank you big_smile

81

Re: New Plugin - Fancy Image Gallery

Maybe I have little improvement proposal. I wanted to get rid of the file endings and "_" in the titles that are shown under each image. So I changed lines 126-127 in index.php from:

$counter++;
echo '<a class="photo" rel="my-gallery" href="',$fullpath,str_replace('-thumb','',$file),'" title="',str_replace('-thumb','',$file),'"><img src="',$fullpath,$file,'"/></a>';

to

$waste = array("-thumb", ".jpg", ".JPG", ".png", ".PNG", ".gif", ".GIF", "_");
$counter++;
echo '<a class="photo" rel="my-gallery" href="',$fullpath,str_replace('-thumb','',$file),'" title="',str_replace($waste,' ',$file),'"><img src="',$fullpath,$file,'"/></a>';

And it works quite nice for me wink

82

Re: New Plugin - Fancy Image Gallery

Nice! I'l check that tomorrow and if it works without any problems, I'll add it to 0.8.6.
Thanks cool

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

83

Re: New Plugin - Fancy Image Gallery

You're welcome smile

Even better may be

$waste = array("-thumb", ".jpg", ".JPG", ".png", ".PNG", ".gif", ".GIF", "_");
$replace = array("", "", "", "", "", "", "", " ");
$counter++;
echo '<a class="photo" rel="my-gallery" href="',$fullpath,str_replace('-thumb','',$file),'" title="',str_replace($waste,$replace,$file),'"><img src="',$fullpath,$file,'"/></a>';

...so that it replace the underscores with gaps and everything else with nothing to prevent the extra space in the end of the title wink

84

Re: New Plugin - Fancy Image Gallery

New version available: 0.8.6

You can download it from repository or directly from project79 site.

Changes:

* auto crop and resize without distortion of thumbs
* titles are displayed correctly without "-thumb", underscore or suffix
(e.g. This_is_image-thumb.jpg is now This is image) cool, isn't it!? (thanks ivy046 for suggestion)
* documentation is corrected and some minor code changes

Enjoy!

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

Re: New Plugin - Fancy Image Gallery

The message says it successfully creates thumbnails. There aren't any thumbnails into my public/images/pics dir. Only 3 images that I have added manually.

Yet on the page (photo-gallery.html) I don't get anything. I have added the <?php fancy('pics/'); ?> snippet.


What's wrong?

Last edited by arbotron (2011-07-21 22:28)

Thumbs up

86

Re: New Plugin - Fancy Image Gallery

I see from "Registered Users" post that you are on Debain based distro. Then you have to chown either the whole /var/www folder or just your /public folder, and of course, do set /public to chmod 777 as well.

This should fix the issue tongue

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

Re: New Plugin - Fancy Image Gallery

Thanks jackie, I had to chmod the subfolder (pics) to 777 as well. I guess you mean chown to the apache user aka "www-data" for Debian.

Now the thumbnails are showing but I'm facing another problem.
I have 3 pictures of computers and they're being cut off for some reason. First picture misses a slice at the right, second one misses a slice from left and right and third one misses a slice at the left. hmm

http://img809.imageshack.us/img809/4416/fancy1.jpg

http://img819.imageshack.us/img819/964/fancy2.jpg

http://img402.imageshack.us/img402/3116/fancy3p.jpg

Thumbs up

88

Re: New Plugin - Fancy Image Gallery

See thread 70 on Page 3 of this topic. That will fix your problem. If not, I'll be online later this evening.

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

Re: New Plugin - Fancy Image Gallery

Hi there!

Thanks for a great plugin!
Unfortunately I´m still having problems creating thumbs that are being cropped and resized properly without being stretched (200x200px).

I´m running on xamp, clean urls. Everything works great except that issue? Is there something I forgot to do in settings (or a php file).

I use the latest version of wolfcms and fancy image gallery.

Cheers,
Andreas

Thumbs up

90

Re: New Plugin - Fancy Image Gallery

Hm, well... I see what you mean and for now there is no fix for it (at least not in public) and the whole plugin is pending for revision which should, among other things, correct that particular issue.
For now, rectangle cropping and resizing is more suitable.

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

Re: New Plugin - Fancy Image Gallery

Ah ok, so I´ll stick to PS! Thanks, looking forward for updates wink

Have a good one!

Thumbs up

92

Re: New Plugin - Fancy Image Gallery

Hello!

I've just been working on this plugin so it can create square thumbnails - for a site I'm building at the moment, if not for anything else. But I'm open to sharing the changes with the community and original developer(s) at project79.

Source on GitHub.

I'd appreciate any feedback anyone has if they want to have a look at it, test it, use it or whatever... smile

Last edited by craig (2012-01-29 14:21)

93

Re: New Plugin - Fancy Image Gallery

I saw your fork and did a bit testing. So far so good. I'll need to do few more tests and if everything goes well we can make a merge.

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs

94

Re: New Plugin - Fancy Image Gallery

I was wondering, is development for this plug-in still active??
maybe the plug-in could use this nice class to do the operation.
http://www.objectorientedphp.com/downloads/chap06.zip

Thumbs up

95

Re: New Plugin - Fancy Image Gallery

smile Yes it is. New version should be out by the end of this month (I hope).
There is a new controller (thanks to craig) and some other stuff and I need to fix few minor issues and extend docs.

Wolf CMS Paper Guy
Wolf CMS related blog / journal at Project 79 | Wolf CMS Docs