1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Post Images 1.8

Add thumb images to your posts

  1. ties

    ties Theme & Plugin Development

    ties submitted a new resource:

    Post Images - Post Images

    Read more about this resource...
     
    Last edited by a moderator: Oct 3, 2014
  2. Gunaxin

    Gunaxin Well-Known Member

    Awesome work Ties, and very easy to implement. The cropping thing rules, and was totally above and beyond what I was expecting.
     
  3. ties

    ties Theme & Plugin Development

    @the cropping tool: you make life easy :p
    lets see what we can do to implement the picture on other locations, with priority to the RSS feeds of course
     
  4. baadier

    baadier Well-Known Member

    Awesome ties, going to implement it tonight and check it out cheers mate
     
  5. ties

    ties Theme & Plugin Development

    Bugfix (0.1 only)
    Bug with special characters in filename (post title)
    Fix: replace a line in the cropImage function
    Code:
    Current: $target = 'content/images/post_images/' . urlencode(preg_replace('/\s+/','_',$h->vars['submitted_data']['submit_title'])) . '_' . str_replace('.','_',microtime(true)) . '.jpg';
    Replacement: $target = 'content/images/post_images/' . preg_replace('/\W+/','_',$h->vars['submitted_data']['submit_title']) . '_' . str_replace('.','_',microtime(true)) . '.jpg';
    
    Name is only for human readability, so you can match an image with a post, if you think its useless:
    Code:
    Replacement: $target = 'content/images/post_images/' . str_replace('.','_',microtime(true)) . '.jpg';
     
    Last edited: Mar 21, 2010
  6. hangbowl

    hangbowl New Member

    great :D thanks
     
  7. carlo75

    carlo75 Design & Development

    Awesome Matthis!!!
    Now when you have some spare time... pls try to implement the function to retrieve image directly from link, like Digg... thank you so much for all your work!!!!
     
  8. ties

    ties Theme & Plugin Development

    oke this should be do able with some javascript
    how about all of them in scaled down to 20x20px in a grid? on click you fill the cropbox, does that sound good to you?

    i was also thinking of maybe sort of replacing the video inc function, so if its youtube add the option for the youtube thumb and optional lightbox pop up in browser)
     
    Last edited: Mar 17, 2010
    jsinkeywest likes this.
  9. carlo75

    carlo75 Design & Development

    Sure! Sounds good like a dream!
     
  10. Gunaxin

    Gunaxin Well-Known Member

    Anyone who wants to play with this new plugin from ties, or the up/down voting modification that I did can check it out on our still under development site.

    http://links2.gunaxin.com/ (NSFW, blah blah blah)
     
  11. runnertalk

    runnertalk New Member

    Nice job with the design and the implementation of the image plugin!
     
  12. ties

    ties Theme & Plugin Development

    it looks neat! bla bla bla hahaha
     
  13. carlo75

    carlo75 Design & Development

    I like it... I like also only the title of news
     
  14. Tony

    Tony New Member

    I try this pluging, but it does not work .. after install do i have to do anything to the templates?,, the image show on the post but when i submit image is broken and it does not show.
     
  15. ties

    ties Theme & Plugin Development

    did you follow the instructions?
    Read the known bugs http://hotarucms.org/showthread.php?559-Post-Images&p=2620&viewfull=1#post2620

    If so please sent me a link to view the problem
     
  16. nothingman

    nothingman Active Member

    Looks like there's an issue with Opera :confused: (following screenshots taken in Opera)

    [​IMG]

    [​IMG]

    EDIT: Tested on IE8 and here's how it looks :(

    [​IMG]

    Other than that, I've Installed it and I love it (tested on FF and chrome)! Would be great to implement what carlo suggested :)

     
    Last edited: Mar 18, 2010
  17. ties

    ties Theme & Plugin Development

    okay i use chrome, for ...everything, i didn't test it because all it does is add
    HTML:
    <div><img /></div>
    and the css has only a float:left; to the div
    but i will add width and height to the image and add a link to the img and see what i can do with the float because it looks horrible indeed
     
  18. nothingman

    nothingman Active Member

    Ok following problem is solved. It looks like one needs to place a default.jpg file under /content/images/post_images and select Default url in Post Images Settings
    EDIT: As a query, can the thumbnail be removed when one is reading/on the actual story (similar to the one in the video plugin where the thumbnail is available only on the front page and not available on the main stroy)?

    [​IMG]
     
    Last edited: Mar 19, 2010
  19. ties

    ties Theme & Plugin Development

    ok it ill work on it
     
  20. Nick

    Nick Well-Known Member

    Should be easy, ties. Just wrap it in:

    PHP:
    if ($h->pageType != 'post') { // show image }
     

Share This Page