Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Allow user to download orginal video

  1. #1
    Join Date
    Apr 2007
    Posts
    2,202

    Default Allow user to download orginal video

    To allow user to download orginal video, add following code to templates/view_video.tpl

    Put the code any where after the line

    Code:
    {insert name=video_info assign=vinfo vid=$VID}
    You need to upload an image download.jpg to "templates/images" folder.

    This will work only on latest vshare release with "video import feature", if you don't have this, you need to upgrade.

    http://forums.buyscripts.in/viewtopic.php?t=707

  2. #2
    Join Date
    May 2007
    Posts
    588

    Default

    is it possible for the orginal video to keep its filename? so if i uploaded test.mpg it would stay as test.mpg when the user downloads it rather than being changed to 1.mpg

    i guess the filename would have to be saved into the database for this to work with a work around for duplicate filenames.

    admin any chance of this being done?

    also is anyone currently using this feature? post your link so i can see.

  3. #3

    Default

    Quote Originally Posted by leki
    is it possible for the orginal video to keep its filename? so if i uploaded test.mpg it would stay as test.mpg when the user downloads it rather than being changed to 1.mpg

    i guess the filename would have to be saved into the database for this to work with a work around for duplicate filenames.

    admin any chance of this being done?

    also is anyone currently using this feature? post your link so i can see.
    The problem I see is if someone in he future tries to upload another file with the same name. How would the script handle it? One would need a name change.

  4. #4
    Join Date
    May 2007
    Posts
    588

    Default

    guess a simple way would be for the script to just to add a 2 to the end of the filename, then if someone uploads a 3rd duplicate named file a 3...etc

  5. #5

    Default Hello

    How would you allow downloads of the original file in the latest version? There is no video_video file and even the line mentionned is not there..

    Regards

  6. #6
    Join Date
    Apr 2007
    Posts
    2,202

    Default Re: Hello

    This mod will work with latest version.

    Quote Originally Posted by sydawn
    How would you allow downloads of the original file in the latest version? There is no video_video file and even the line mentionned is not there..
    There is no such file "video_video" in vshare. Where you found that file name ?

  7. #7

    Default hmm

    The admin post at the begining of this post. So I add these 2 lines in the view_video.tpl I assume?

    Ok, I managed... good stuff..Is there are way to cloak the actual location of the file? I`m just curious

  8. #8
    Join Date
    Apr 2007
    Posts
    2,202

    Default

    You need to edit the file - templates/video_video.tpl

  9. #9

    Default hello

    Once again..

    There is no video_video.tpl, but the view_video.tpl

    I have done it and it is working now..thank you. :D

  10. #10
    Join Date
    Apr 2007
    Posts
    2,202

    Default Re: hmm

    Quote Originally Posted by sydawn
    The admin post at the begining of this post. So I add these 2 lines in the view_video.tpl I assume?
    Thanks for the correction, i have updated the pos.

    Quote Originally Posted by sydawn
    Ok, I managed... good stuff..Is there are way to cloak the actual location of the file? I`m just curious
    You need to hide direct link ? This can be done with PHP script handling downloads, it will add extra server load if we hanlde download with PHP script. Let me know if this is what you are asking ?

Page 1 of 2 12 LastLast

Similar Threads

  1. Download Video Mod for 2.7
    By MauiRedMan in forum Template Modifications
    Replies: 8
    Last Post: 09-27-2009, 05:07 PM
  2. Better Download Video Mod
    By leki in forum Template Modifications
    Replies: 25
    Last Post: 01-17-2009, 03:59 AM
  3. Allow user to download FLV video
    By gary in forum Installation Support
    Replies: 2
    Last Post: 04-28-2008, 11:52 PM
  4. cannot download .wmv video
    By robaldo in forum Installation Support
    Replies: 1
    Last Post: 03-24-2008, 08:37 AM
  5. Video Download Option
    By scwebmaster in forum Feature Requests
    Replies: 0
    Last Post: 02-09-2008, 05:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •