Image Thumbnail in teaser
Posted February 11th, 2008 by erebus1
so, ive been working on this pretty much all day, ive got imagecache, cck, and imagefields working so users can upload an image to go along with the scoop if they want... its not required.
the one remaining problem is when a user hits the upload button it refreshes the submit page... and if the user hits the submit button after browsing and uploading a picture it deletes the image because its almost like the upload button and submit button are doing the same thing..
if that doesnt make sense check it out at www.modrepublic.com/submit
how do i fix this, i have to either remove the upload button or what
I wrote up a quick tutorial
I wrote up a quick tutorial on how I added thumbnails to my Drigg site. You can find it here:
http://www.davidrhunt.com/index.php/web-20/58/adding-thumbnails-to-a-dri...
Leave questions in the comment section of the blog post since I check there more often. Sorry if its not too detailed, but hopefully it can help people out.
------------------------
BananaCut - Ultimate Frisbee Blogs, News, Photos & Videos
awesome
thanks for this
Did you ever get a chance to
Did you ever get a chance to post the tutorial?
----------------------------------
Email - labs.beanz[at]gmail.com
AIM - dolphinlabz
Yahoo - zubu1980
Petition Example
Update on my solution
My solution to this problem was to add thumbnails from http://www.mythumbshot.com/ to my site. I can post a tutorial if others are interested. You can see the result at the site posted in my signature.
-Dave
------------------------
BananaCut - Ultimate Frisbee Blogs, News, Photos & Videos
Thumbnails
Hello Dave,
Thanks for the information. I would be very interested to see your tutorial if you have a chance to post it.
Any update on this feature?
Any update on this feature? I would really like to add this to my site. Even having the drigg nodes just link to an image URL on the net somewhere would be great.
Thanks,
Dave
Hey, nice to see added
Hey, nice to see added functionality! Checked out your site and I really like it.
thanks man, heres the guide
thanks man, heres the guide I followed to get it working, had to edit the node_ drigg_ tpl.php, and the node.css files a bit to get the images centered correctly.. but besides this weird upload problem it works pretty well.
http://drupal.org/node/101748
Ouch...
Hi,
I did a lot of debugging... there seem to be a pretty big interaction problem between Drigg's javascript and "Upload"'s javascript.
Please open a bug in Drupal.org: I will need to get Anthony to have a look at it!
http://drupal.org/node/add/project_issue/drigg/bug
(Unless some other Javascript guru here is able to help... :-/ )
Merc.
its weird
I did find this on drupal.org
http://drupal.org/node/215873
seems others have had the same issue?
it does seem to work on when I go back and edit an already existing scoop... only thing is when it fails the first time itll save the
exampleimage.jpg twice so it ends up using exampleimage0.jpg
I was thinking of just creating another field where the user can enter a link to an image they have on their site...
I have it all working so it stores the image url in the database but Im still learning how to pull the data out and display it in the scoop teaser and full page view.
:-(
Hi,
(WELL spotted!)
This saddens me.
I know absolutely nothing about Javascript. And it looks like even the module author doesn't really know what to do.
Triple ouch :-/
If you read the forums here, you will see that I _always_ try and find a solution.
In this case, I really have _no_ idea :-(
Merc.
well thats ok, maybe itll be
well thats ok, maybe itll be fixed in a future version... Id much rather have the ability to link to images instead, that way I dont have to host them.
If I had the http://linktoimage.jpg in imgurl in the drigg table, how would I got about displaying that too the user?
is it under hook_load()? do
is it under hook_load()?
do I just add the imgurl sql call into the query ?
then call it in the template like $node->imgurl ?
Not sure what you mean
Hi,
You can't really add a field to drigg_node without hacking drigg.module (HIGHLY not recommended).
You can add fields to a node using CCK. I am sure you can add fields to a drigg node using CCK, but I've never done it!
Please test it and let us know how it went...
Merc.