Author Topic: Coming soon - download script  (Read 1954 times)

0 Members and 1 Guest are viewing this topic.

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Coming soon - download script
« on: June 21, 2009, 06:26:35 AM »
This is what i have so far all it does it you supply the link and it generates the code for you..

http://beta.mvideos.co.cc/

Updates coming in the near future...

1. implementation into phpdirecter
2. remove LONG url place into Short link - Done
3. View Video before download - to make sure its the correct one
4. Enter just video id and it will download for you - Done
5. Download Different formats - Done


if you guys have any other suggestions feel free to post them up here...

thank you... and have fun downloading

ps. im also testing my new counter script
« Last Edit: June 30, 2009, 02:39:10 PM by Jeff »

Offline naxtra

  • Full phpd Member
  • ***
  • Posts: 74
  • Karma: 1
    • View Profile
Re: Coming soon - download script
« Reply #1 on: June 22, 2009, 02:20:14 AM »
WoW - nice work Jeff bro...keep it up !!

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: Coming soon - download script
« Reply #2 on: June 24, 2009, 10:43:14 PM »
WoW - nice work Jeff bro...keep it up !!

Thank you..... Just to let you guys know tho.... i have been in kansas city this week thats why i rally havent been on.... i try to get on as much as i can. but im down here for the nationals electronics contest :-D.....

sorry and ill talk to all of you guys soon


Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: Coming soon - download script
« Reply #3 on: June 27, 2009, 10:49:58 PM »
Hey guys... well im back home... and just to hell.... it was one HELL of a week.... lol well i finished 10th in the nation..... it was one hard contest and i had to go up against some of the best :-p...

well im off to a date with my soon to be girl friend :-D...

talk to you all soon

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: Coming soon - download script
« Reply #4 on: June 30, 2009, 02:45:07 PM »
Huge update guys.....

what do you guys think

I created a new template...
only need video id now
you can select video type
the download just pops up now.... no longer need to click link


next version is me getting rid of all the unused code (there is a CRAP load)
then if anyone whats to help me..... i dont know how to code this part..
what iwant to do is when you click the button there would be two links that appear on the page.... Download now and View now....

and if they click view now a youtube video will appear a little below that....(all this does is make sure they are downloading the right one)

thank you and hope to hear from you guys

Offline Chris (krissy)

  • Project Leader
  • Sr phpd Member
  • *****
  • Posts: 219
  • Karma: 1000
    • View Profile
    • PHPDirector
Re: Coming soon - download script
« Reply #5 on: June 30, 2009, 10:20:24 PM »
Maybe we could include this in the next version.

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: Coming soon - download script
« Reply #6 on: June 30, 2009, 11:15:44 PM »
I can try to get the bugs worked out....

currently it doesnt look correct in IE6....

and havent really checked other browsers... but im sure it will work in all the newer ones....

and after i optimise it a bit more.... ill send it your way to prep it for the release....

(im going to try to figure out how to do this) there will be a link under every youtube video that says download.... and it will point to this page and it will fill in the id field with whats needed all you would have to do is click download....

havnt had much time to work that in yet tho

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Coming soon - download script
« Reply #7 on: July 01, 2009, 12:11:50 AM »
Hey,

First off great script! Second I would not really care about IE6.

There has been lot's of talk in the Web Design world whether to stop coding for IE6, but no one knows what to do. You can take a look at Browser Statistics at W3C: http://www.w3schools.com/browsers/browsers_stats.asp

Here is what I think...
Currently of May, 2009 14.5% still use IE6, but think about it. Most of those people are people either:
Little old Grandma who does not browse the web or look at "Youtube Videos"(I am looking at the majority) or company's(Like Restaurant chains, clothing stores, hardware stores, etc...) which have a computer but don't use Browers, they use computers for well work...

Save your self the headache, just add something like "This Script will not work in IE6" and give a link to download the new IE8 or Better FireFox ;)

-FireDart

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: Coming soon - download script
« Reply #8 on: July 01, 2009, 01:04:54 AM »
ya.. i was thinking about that... and you just helped me choose :-D....

hey do you have any idea on doing what i talked about above

Offline FireDart

  • Project Leader
  • Pro Member
  • *****
  • Posts: 406
  • Karma: 4
    • View Profile
    • FireDart
Re: Coming soon - download script
« Reply #9 on: July 01, 2009, 04:05:53 PM »
I think I have an idea...

Instead of redirecting the the link to your site... directly under the video put your download script, then in the field were you put the url put this:
Quote
         {if $vidtype eq "YouTube"}
<a href="http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">http://www.youtube.com/v/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]

         {elseif $vidtype eq "GoogleVideo"}
<a href="http://video.google.com/videoplay?docid={if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">http://video.google.com/videoplay?docid={if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]


         {elseif $vidtype eq "dailymotion"}
<a href="http://www.dailymotion.com/video/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">http://www.dailymotion.com/swf/{if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]
         {/if}

Thought this will only work for:
Youtube
Google Video
& DailyMotion

you can always add more just by doing:
         {elseif $vidtype eq "name from process_site.inc.php "}
<a href=" Site URL with video prefix {if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}">Site URL with video prefix {if $video[video].file eq ""}{$videoid}{else}{$video[video].file}{/if}[/url]
         {/if}

This will create the same effect but you will need to create a process_site.inc.php for each site you support and and find the site url with video prefix, the prefix can be:
http://www.youtube.com/v/
http://video.google.com/videoplay?docid=
http://www.dailymotion.com/video/

or other...

Offline Jeff

  • Global Moderator
  • Sr phpd Member
  • *****
  • Posts: 359
  • Karma: 5
  • Need help? Feel free to ask.
    • View Profile
Re: Coming soon - download script
« Reply #10 on: July 01, 2009, 04:09:34 PM »
ok thank you....

still have some more optimization to do...

its currently in 3-4 files.... making it into 1
and there a lot of unused code right now.... from the 20 versions i had :-P(without deleting the old code) lol go me

ps. right now this can only download youtube videos..... so ya..... ill figure out more in later versions :-D