4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: aminhd on August 13, 2007, 06:04:03 PM

Title: How do I upload a picture and a file?
Post by: aminhd on August 13, 2007, 06:04:03 PM
How can I upload like this: http://testgallery.art4heart.info/img31.htm
The download button is for the template files instead of the image.
I would like to do the same since I have a few templates I would like to share.

And also, is there anyway I can allow regular user to do the same when uploading?

Thanks!
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 14, 2007, 06:07:12 PM
anyone?  :(
Title: Re: How do I upload a picture and a file?
Post by: Nicky on August 14, 2007, 06:14:27 PM
hi,

maybe hi used:
Image file: as Template Screenshot (JPG file)
Thumbnail file: Thumbnail from Screenshot (JPG file)
Download URL: the ziped Template (ZIP file)
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 14, 2007, 09:27:53 PM
Thank you Nicky :D
But is there any way I can add the download URL to the user upload page. Do that users have the option to post it like admin too.

Thank you,
Pete.
Title: Re: How do I upload a picture and a file?
Post by: thunderstrike on August 14, 2007, 10:34:18 PM
Hope not ... all user upload for other site ... copyright risk (+ trafic) !
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 17, 2007, 10:00:51 PM
@thunderstrike-
I didn't mean it like that. Take a look at this snap...
(http://i92.photobucket.com/albums/l16/hieuhd1/Snap1.jpg)

I want user to be able to put the url to their files and it will be downloaded when click on the download button instead of downloading the picture itself. You get me?
Title: Re: How do I upload a picture and a file?
Post by: thunderstrike on August 17, 2007, 10:22:03 PM
Mean add download URL to upload's site ? http://www.mysite.com/myimage.jpg ? If so, trafic ...

But if mean download URL for site upload (where picture upload live) ... no use - 'download' button is download link (with button) ...
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 18, 2007, 03:23:03 AM
Let's say I uploaded a picture...after that, other users have the option to click on the download or download zip button to download the picture. But I don't want the download to be the picture, I want it to be a file already stored on a server. So what I'm asking is there anyway for me to add the download URL input so that when users click the download or download zip button, it doesn't download the picture but the file that I linked to.

You know sites like mediafire, megaupload? they allow free files upload. I have a files upload on that site and would like for the users to be able to download them by clicking the download or download zip button. Kinda like what you can do in the Admin Panel.
Title: Re: How do I upload a picture and a file?
Post by: thunderstrike on August 18, 2007, 04:03:52 PM
Install this 1st:

http://www.4homepages.de/forum/index.php?topic=6997.0

;)
Title: Re: How do I upload a picture and a file?
Post by: thunderstrike on August 18, 2007, 04:38:10 PM
Find way.

In details.html file, use:

{if allow_download}<a href="{url_download}">{image_name}</a>{endif allow_download}

;)
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 18, 2007, 10:09:22 PM
Thank you. But will the hack work with 4images 1.7.4?
And also, wouldn't I need to edit the users upload form too?

umm...in the details.html, where would I add that. I'm not a coder. :(
Title: Re: How do I upload a picture and a file?
Post by: thunderstrike on August 18, 2007, 11:42:43 PM
Is no version prob. Can use with 4images v1.73+ (so include v1.74). ;)

Quote
And also, wouldn't I need to edit the users upload form too?

You say download 1st ... notting for upload ...
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 19, 2007, 02:03:10 AM
Now I'm just stupidly confused. :( *bangs head on keyboard*

Let me try again...
(http://i92.photobucket.com/albums/l16/hieuhd1/Snap1-1.jpg)
(ADMIN PANEL) See how there is the Download URL button?


(http://i92.photobucket.com/albums/l16/hieuhd1/Snap2.jpg)
(MEMBERS PANEL) See how there is not a Download URL button?

Summary: I want the Download URL in the user upload form.

Hopefully this ends all the confusion I've cause to you... and myself.
Thank you for being so helpful and patient with me. :D
Title: Re: How do I upload a picture and a file?
Post by: thunderstrike on August 19, 2007, 02:55:02 AM
So, I right:

http://www.4homepages.de/forum/index.php?topic=18391.msg98497#msg98497
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 22, 2007, 01:06:17 AM
{if allow_download}<a href="{url_download}">{image_name}</a>{endif allow_download}
Where should I add this in details.html?

So I need to modify members upload form too right?
Title: Re: How do I upload a picture and a file?
Post by: thunderstrike on August 22, 2007, 02:17:50 AM
Quote
Where should I add this in details.html?

HTML template files ... your choice ...  :|

Quote
So I need to modify members upload form too right?

Correct. Sorry for forgot this. ;)
Title: Re: How do I upload a picture and a file?
Post by: aminhd on August 22, 2007, 09:39:47 PM
OMG!!! it works!!! Thank you thank you thank you!!!
My site is 90% done. All I need to do is wait on this file hosting company to complete their website integration upload module. ;)

It's has been a 'fun' experience for me here. Thank you for not giving up on me thunderstrike!