We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: Auto Thumb

Development and Programming

Digital Delivery's avatar
Digital Delivery
3 posts
16 years ago
Digital Delivery's avatar Digital Delivery

This is a really simple plugin, but one that has cleaned up my templates hugely. Hopefully someone might find it useful.

Basically, instead of having to know your image path, you just throw in some HTML that may or may not contain images and dd_autothumb finds the images, creates thumbnails, and returns the HTML or CSS to place them. All in one step. Great for existing content you don’t want to have to restructure.

This snippet would create and place an IMG 180px wide showing the first pic from the {body}.

{exp:dd_autothumb pic="first" width="180" thumbtype="inline"}
        {body} 
    {/exp:dd_autothumb}

download here

       
code72's avatar
code72
104 posts
15 years ago
code72's avatar code72

Thanks Steven, this is just what I need. However I’m getting an error:

Notice: Undefined variable: fetch in /myserverpath/plugins/pi.dd_autothumb.php on line 47

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/Z6WpLZhCAsc.) is not within the allowed path(s): (/myserverroot) in /myserverpath/plugins/pi.dd_autothumb.php on line 170

Notice: Undefined variable: fetch in /myserverpath/plugins/pi.dd_autothumb.php on line 47

Am I missing something?

       
R.'s avatar
R.
17 posts
15 years ago
R.'s avatar R.

this plugin is great and exactly what i am looking for. unfortunately some things are missing for me:

relative scaling (just want to enter the width and get the right proportions back in the thumbnail)

and the option to put thumbnails in a specific directory

anyway - thank you so far! keep on R.

also waiting for the multi image result to use lightbox

       
esset's avatar
esset
191 posts
15 years ago
esset's avatar esset

Is it cool if I convert this for EE2.0?

I’ll share it here afterwards of course 😊

       
Dave Rau's avatar
Dave Rau
85 posts
15 years ago
Dave Rau's avatar Dave Rau

Can this plugin work with comment entries? Works fine for {body} posts but this doesn’t work for me:

{exp:comment:entries sort="desc" orderby="date" limit="100" dynamic="off"}
    {exp:dd_autothumb width="228" height="200"}
        {comment}
    {/exp:dd_autothumb}
       
Dennis's avatar
Dennis
10 posts
15 years ago
Dennis's avatar Dennis

Please help. I need this plugin to work. Thanks

Notice: Undefined variable: fetch in /serverpath/plugins/pi.dd_autothumb.php on line 47

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.