Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Mystic

Pages: [1]
1
One more question. I have looked in download.php. When they click on the download button where do I add coding to get it to open in a new browser window using  target="_blank"

Thanks

2
Thanks that code worked perfectly. I also modified the member_uploadform and added another row for the Download Url. I checked Member.php and it looked like the coding is already there for it. I added {image_download_url} on the member_upload form.

Edited:

I then modified admin/validateimages.php to get the the URL to show up when I go to validate the image. That way if they provide a link to a website I can check it out before I approve the post.

Old code around line 213 in admin/validateimages.php
Quote
  show_input_row($lang['field_download_url'].$lang['download_url_desc'], "image_download_url", "", $textinput_size);

Change to this so the url shows when validating:
Quote
  show_input_row($lang['field_download_url'].$lang['download_url_desc'], "image_download_url", $image_row['image_download_url'], $textinput_size);

By the way, this a great script you have here.

3
 I have looked through all the posts and saw a couple about the download button, but nothing specifically to what I am looking for. I would like the visitor to be able to upload a thumbnail and the larger image, but then I would like the Download button to point to the zip file on their site or to an Html webpage on their site, whichever they choose.

In the Admin Panel under "Add Images" there is a field for Download Url. What would be the coding to add that to the member_uploadform. I tested it in the Admin panel and it worked with the zip file, but doesn't work if add a url like http://somesite.com  or  http://somesite.com/somepage.html. It tries to zip the url. What coding could be used so the download button could go to a plain html page?

I suppose also I could just delete the Download button icons and add a text field below for the Download Url, but the the Download stats would not increment. Thanks for any ideas.

Pages: [1]