 | music mod is playing up |  |
Posted: 05/18/2007 8:31 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
I think it’s because I went through the db maintience stuff earlier today. Might have change music settings etc I don’t know
When uploading a mix now it says it’s uploaded but it hasn't. No file on host. Instead of streaming the mix when loading up the mix page it just goes to ready. Also when clicking on the download link I’m just getting The URL of song data in the DBs was corrupted
Using direct mp3 links seems to work but the uploading files is completely fecked  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: music mod is playing up |  |
Posted: 05/18/2007 10:43 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:38 AM
Location: St Pete, FL
|

|
|
|
|
 |
I just successfully uploaded a song to your Music MOD. So are we dealing with a file size issue again or what other information can you provide that might explain what is going wrong???
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: music mod is playing up |  |
Posted: 05/19/2007 9:39 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
My bad. It wasn't uploading the mix because I put test in the Mix URL: field box
Is there a way of changing this box so the field has to start with http:// 8) |
|
|
 |
 |
| Back to Top |
|
|
 | Re: music mod is playing up |  |
Posted: 05/19/2007 5:46 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 3:38 AM
Location: St Pete, FL
|

|
|
|
|
 |
Ok, this is what I did. I added a default value of http:// to the URL field. But in reality, you don't need to include the http:// in the address since in the code, I strip it if it is there and then re-add it to guarantee that the http:// is in every URL. So this is what I did:
OPEN
music_upload.php
FIND
| Code:
|
|
[$song_url = str_replace("\'", "''", htmlspecialchars(trim($HTTP_POST_VARS['song_url'])));
|
AFTER, ADD
| Code:
|
$http_find = array('http://', 'HTTP://', 'Http://', 'https://', 'HTTPS://', 'Https://');
$song_url = str_replace($http_find, "", $song_url );
$song_url = ( trim($song_url) != '') ? 'http://' . $song_url : '';
|
OPEN
templates/subSilver/music_upload_body.tpl
FIND
| Code:
|
|
<input class="post" type="text" name="song_url" size="60" />
|
REPLACE WITH
| Code:
|
|
<input class="post" type="text" name="song_url" value="http://" size="60" />
|
I also rearranged the order of the fields, which can be quickly and easily undone if you don't like it. I thought it made more sense to ask for the Music name and DJ first, then the URL or file from your PC...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: music mod is playing up |  |
Posted: 05/19/2007 6:37 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
|

|
|
|
|
 |
Excellent! How you rearranged them is much better cheers  |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|