WordPress.org

Ready to get started?Download WordPress

Forums

Photo Calendar module (40 posts)

  1. KAShirow
    Member
    Posted 10 years ago #

    Photo Calendar v0.1 addon module for WordPress 1.01 or greater.
    Displays a tabular index of pictures posted in your blog as thumbnails in a calendar format, in purely automatic manner.
    Putting it simply, you get a calendar, in each cell of which you get a tiny thumbnail to a picture you have posted in your blog on that day (the first one, if there's several, just a number of the day if there's no pictures) which hyperlinks to the archive page for the appropriate day. If you have lots of pictures, the result looks very cute.
    Enjoy. :)

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    Do you have a test site where we can see it in action?

  3. KAShirow
    Member
    Posted 10 years ago #

    Did you try the one you downloaded it from? :)

  4. _mf_
    Member
    Posted 10 years ago #

    Why not simply post the URL in the first place and save us all some time / bandwidth:
    http://drosselmeyer.bpa.nu/photo/ :D

  5. KAShirow
    Member
    Posted 10 years ago #

    Cause then google will go there, duh. :(

  6. KAShirow
    Member
    Posted 10 years ago #

    By the way, could someone post this up on the wiki? It doesn't seem to let me in whatever I try.

  7. _mf_
    Member
    Posted 10 years ago #

    It's in the Hacks section of the Wiki. Now you can fear allmighty Google ;)

  8. KAShirow
    Member
    Posted 10 years ago #

    I've coded things to replace the key things I don't want googled for when googlebot comes for them, by now. :)

  9. chuckg
    Member
    Posted 10 years ago #

    Awesome mod. Does it actually look at the post code itself or does it have it's own upload utility that you must use to get the images posted into your blog? Also, are the resizes ACTUAL resizes on the images or just changing the dimensions in the img tag?

  10. KAShirow
    Member
    Posted 10 years ago #

    It looks at the post text (and the excerpt) for a day and parses it looking for image tags both used in anchors and on their own, until it finds one. If it finds an image tag in an anchor, it looks for the file the anchor points at and tries to make a thumbnail of it (ignoring it if it's an external link) otherwise it makes a thumbnail from the inline image.
    The resizes actually generate small thumbnail images of the size you specify, and store them for caching, regenerating them if the image changes. (Doing otherwise with some 11 megs of pictures would be very, very stupid, don't you think? :) )

  11. KAShirow
    Member
    Posted 10 years ago #

    By the way, new version's out (0.2) which can actually be used to replace the default WordPress calendar, has some small fixes and more features.

  12. xtool
    Member
    Posted 10 years ago #

    KAShirow.
    I love your hack and thank you.
    There is something I wish to ask of you. Is there a way that the thumbnail can be implemented like phpGiggles where as it looks for certain tag. For this example would be 'image'. Depends the settings of thumbnail size it will creates. I'm not sure if I'd explained correctly. I just want something cheap and fast thumbnail creation via the use of GDs.
    Thank you.
    xtool: http://www.forceforge.com

  13. KAShirow
    Member
    Posted 10 years ago #

    It could be done, it's not hard - I'd suggest using the thumbnail creator function from my photo hack, (it's smart and perfectly standalone, which is why I swiped it :) ) using the lj-names hack to see how to do replacements of the tags like you describe (it's simple and well commented) and copying the code which checks whether a given thumbnail already exists from my photo hack. Try doing it yourself first, there's not much you can break this way and a lot of useful things you could learn.
    There's a gotcha to it though, the photo calendar hack won't support such tags outright, since it looks for already formed standard xhtml image tags in the database. In your case, the database wouldn't contain them since they would be generated on the fly, and some alterations of the calendar hack will be necessary.

  14. TigerDE2
    Member
    Posted 10 years ago #

    >> Cause then google will go there, duh. :(
    Google actually supports robots.txt and meta tags... ;o)

  15. KAShirow
    Member
    Posted 10 years ago #

    Do you think I don't use those? :P The blog's not ready for indexing just yet.

  16. submo
    Member
    Posted 10 years ago #

    Is it possible to have it work with the Archives Calandar (eg <?php get_calendar(); ?>) ? ... just to put a small smilie, or a tiny image (or a heart or something) instead of having it be on a large page type thing?? ..

  17. KAShirow
    Member
    Posted 10 years ago #

    It's all about how you style it, last versions can replace the standard WordPress calendar.

  18. ayteale
    Member
    Posted 10 years ago #

    I can not get the thumbs to be generated or something...can someone take a look?
    http://ryanflynnphoto.com/blog/photo.php
    Thanks!

  19. KAShirow
    Member
    Posted 10 years ago #

    Does your copy of PHP have GD library compiled in?
    Did you create the appropriate directories?
    Do they have the proper permissions?

  20. ayteale
    Member
    Posted 10 years ago #

    yes to the directories and permissions, but I am not sure about GD....is there a way to tell?
    Thanks for your help KAShirow!

  21. KAShirow
    Member
    Posted 10 years ago #

    Yes, there is. Create a php file with this code in it:
    <?php
    print_r(gd_info());
    ?>

    And then read the results according to the manual that you can see in here.
    If it prints out an error, that means you don't have GD and need to pester the hosting provider to get them to compile it.

  22. ayteale
    Member
    Posted 10 years ago #

    Thanks man, it looks like I have it...this is what I got:
    Array ( [GD Version] => bundled (2.0.23 compatible) [FreeType Support] => 1 [FreeType Linkage] => with freetype [T1Lib Support] => 1 [GIF Read Support] => 1 [GIF Create Support] => [JPG Support] => 1 [PNG Support] => 1 [WBMP Support] => 1 [XBM Support] => 1 [JIS-mapped Japanese Font Support] => )
    But my results are a bit different than that manual inthat they dont say true or false, but some do have a 1 before them.
    Anything else I can try? Thanks a lot!

  23. KAShirow
    Member
    Posted 10 years ago #

    A bundled GD 2.02 should work perfectly fine, unless all your pictures are gifs for some reason. 1 in PHP is true and 0 is false, so your output is correct, too.
    The only other thing I can think of is improper directory permissions. Notice, though, that both the directory to keep the thumbnails AND all the directories above it should be accessible to the web server, since otherwise it can't get at this directory. Try playing with permissions more.

  24. Anonymous
    Unregistered
    Posted 9 years ago #

    yes, I have the same problem as ayele, it just doesn't want to generate thumbs. I checked every permission (666/766/776/777) and every possible path error (folder in same directory, full relative path, short relative path, absolute path). no go: <http://www.marlyse.com/wordpress/photocalendar.php>.

  25. Anonymous
    Unregistered
    Posted 9 years ago #

  26. ayteale
    Member
    Posted 9 years ago #

    Yup, I'm still there too, even after checking permissions....Also, it does not seem to think I posted the first 9 days of each month???

  27. kristin
    Member
    Posted 9 years ago #

    Doesn't work for me either. http://www.kilikina.net/photographs.php
    I'm on my laptop so its hard to code stuff but I will fiddle with it later and try to get it to work.
    My gd info is @ http://www.kilikina.net/ugh.php
    if that helps any :)

  28. Anonymous
    Unregistered
    Posted 9 years ago #

    first 9 days, aye.
    I've emailed with the coder yesterday and he said he is working on it.
    I've gotten email inclusive photos to work via phone and via laptop working and images upload fine, so I am pretty sure my directory permission settings are all fine.

  29. Anonymous
    Unregistered
    Posted 9 years ago #

    just closing out the open a tag... - this should be again better to read.
    anyone see any glaring outness in my site which could cause the image thumbs not to show up?

  30. Anonymous
    Unregistered
    Posted 9 years ago #

    obviously no go, seems to stay blue from here on out. anyway, anyone with some bright idea? I really liked the idea of the photocalendar.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags