Hi,
I LOVE this plugin…. as soon as i get my job back i will donate!!!
So, right now the images uploaded go into new folders, the folders are created on upload….
i need to be able to have those images in one folder, with just one 200×200 thumbnail created.
what i am trying to do is have images in the post content, but also my theme allows for excerpt thumbnails through custom field – \’Image\’ with value being the url. I need people to be able to take that upload file url and put it in a custom field widget to create a excerpt thumbnail on my front page.
if new folders are created everytime there is no way for them to be able to take that uplaoded image file name and append it to wp-content/uploads/filename.jog to create the excerpt thumbnail……
any help would be great… thanks in advance!!!
Mark Cunningham
Administrator
February 24th, 2009 at 10:55 am
Look in include/tdomf-upload-functions.php around line 551. It’s this function “tdomf_widget_upload_post” that puts the file in it’s place and adds the URL to the post – so you can modify “$newpath” to the path you want the file to go. Further on in the function, line 680 and onwards, is where it does the thumbnail stuff.
Now the think with the thumbnails is that they are generated by WordPress, not by TDOMF, and so I’ve no control over their format. They are done via WordPress options and controls.
One easier solution, that doesn’t involve hacking TDOMF, is to use the template tags in an Append to Content widget. See this excellent thread on using template tags to get the URL path of a thumbnail. If you take this and then stick in a Custom Field via Append to Post Content, you’ll be away in a hack.
(I haven’t tested this code)
Permalink | Quote