Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
music mod is playing up
Post new topic   Reply to topic View previous topic :: View next topic
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
music mod is playing up
PostPosted: 05/18/2007 8:31 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
greatbrE.gif
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  Rolling Eyes  violent1
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: music mod is playing up
PostPosted: 05/18/2007 10:43 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:38 AM
Location: St Pete, FL
peace.gif
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???

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: music mod is playing up
PostPosted: 05/19/2007 9:39 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
greatbrE.gif
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
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: music mod is playing up
PostPosted: 05/19/2007 5:46 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 3:38 AM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: music mod is playing up
PostPosted: 05/19/2007 6:37 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 8:38 AM
Location: Birmingham, UK.
greatbrE.gif
Excellent! How you rearranged them is much better cheers Smile
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours

Page 1 of 1


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0808s (PHP: 64% - SQL: 36%) - SQL queries: 43 - GZIP disabled - Debug on