Author Topic: How do I upload a picture and a file?  (Read 12975 times)

0 Members and 1 Guest are viewing this topic.

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
How do I upload a picture and a file?
« 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!

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
Re: How do I upload a picture and a file?
« Reply #1 on: August 14, 2007, 06:07:12 PM »
anyone?  :(

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: How do I upload a picture and a file?
« Reply #2 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)
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
Re: How do I upload a picture and a file?
« Reply #3 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.

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I upload a picture and a file?
« Reply #4 on: August 14, 2007, 10:34:18 PM »
Hope not ... all user upload for other site ... copyright risk (+ trafic) !
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
Re: How do I upload a picture and a file?
« Reply #5 on: August 17, 2007, 10:00:51 PM »
@thunderstrike-
I didn't mean it like that. Take a look at this snap...


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?

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I upload a picture and a file?
« Reply #6 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) ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
Re: How do I upload a picture and a file?
« Reply #7 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.

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I upload a picture and a file?
« Reply #8 on: August 18, 2007, 04:03:52 PM »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I upload a picture and a file?
« Reply #9 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}

;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
Re: How do I upload a picture and a file?
« Reply #10 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. :(
« Last Edit: August 18, 2007, 10:42:55 PM by aminhd »

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: How do I upload a picture and a file?
« Reply #11 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 ...
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
Re: How do I upload a picture and a file?
« Reply #12 on: August 19, 2007, 02:03:10 AM »
Now I'm just stupidly confused. :( *bangs head on keyboard*

Let me try again...

(ADMIN PANEL) See how there is the Download URL button?



(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

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline aminhd

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • HostWQ Free Hosting
Re: How do I upload a picture and a file?
« Reply #14 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?

~ Free Hosting - 300MB Disk - 10GB Bandwidth - 4images Friendly ~