View Single Post
Old 01-02-2013, 07:20 AM   PM User | #591
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Quote:
Format: MP3 or whatever was chosen
To get the file type/extension:

In index.php, you can get the value of $_POST['ftype'] and then access the corresponding key of Config::_convertedFileTypes array, i.e.:

PHP Code:
echo $ftypes[$_POST['ftype']]['fileExt']; 
Quote:
Status: 0 - 100% (without Progressbar)
To eliminate progress bar and just show percentage:

In css/styles.css, you will need to edit #progress-bar and #progress styles.

In index.php, change this line:

PHP Code:
echo '<div id="progress-bar"><div id="progress">0%</div></div>'
...to ...

PHP Code:
echo '<div id="progress-bar">Status: <div id="progress">0%</div></div>'
And change this line in updateVideoDownloadProgress javascript function:
Code:
progress.style.width = progress.innerHTML = parseInt(percentage) + '%';
...to...
Code:
progress.innerHTML = parseInt(percentage) + '%';
And change this line in updateConversionProgress javascript function:

Code:
progress.style.width = progress.innerHTML = parseInt(retVals[1]) + '%';
...to...

Code:
progress.innerHTML = parseInt(retVals[1]) + '%';
Quote:
and when the conversion is completed
To do that, it's a little tricky. There isn't an easy way to explain how to do that, but I assure you, it is possible. You need to play with the javascript in updateConversionProgress function and possibly in window.onload event handler as well. It's a matter of toggling the display of elements that you want to be visible and those that you want hidden, following video conversion, via javascript.

Edit: I hope that helps a little bit. That should get you going in the right direction. As you can see, there is more going on here than just changing the CSS styles.

If you need me to write the code for you, then I will need to charge you for the additional work and time spent. Unfortunately, I've got too much going on here at the moment to do the work for free.
__________________
Regards, R.J.

---------------------------------------------------------

Help spread the word! Like my YouTube-to-Mp3 Web Conversion Software on Facebook !! :)

Last edited by chump2877; 01-02-2013 at 07:30 AM..
chump2877 is offline   Reply With Quote
Users who have thanked chump2877 for this post:
Luckyplaya (01-02-2013)