PDA

View Full Version : 2 questions about music section


sonik44
12-23-2005, 05:04 AM
1. In the Admin section, when I block guests from viewing the music section on the main site, the music videos on members profile pages don't work. I would like to block guests from viewing the music section on the main site but still allow them to see the videos on other members profile pages. Is this possible?

2. I've been trying to figure out how to add this flash mp3 player http://www.jeroenwijering.com/?item=Flash_MP3_Player so that members can upload mp3's to thier page. (Like hotfoxonline.com) I want to make it so that a member starts out as a normal member with enough space for one song or audio file, and when they become Gold or VIP, they get more space to upload. Any ideas on how to add this mp3 player so each member has a unique playlist based on the files that they have uplaoded?

Thank you very much...I can't seem to figure it out.

natio :: phpFox
12-23-2005, 09:14 PM
Hello,

1. oh yeah the music section thing, this is kinda annoying ill add this to the update list cause it should still allow guests to view the actual video even if you block the music section.

2. Adding the mp3 player might need a little time to create the script to do so.
First you need to look at your server settings. As PHP has a limit on how much can be uploaded, which is 2MB and is very small for a mp3 song. So if your on sharded hosting you will have to ask your host if they can boost up the Upload Limit in the PHP.INI file to like say 6MB. If you run a VPS or a Dedicated Server you should then have access to the PHP.INI file and you can then make the change on your own. No like hotfoxonline.com i know they dont run a VPS or a DS as they are hosted on one of our affiliate servers, they worked around the PHP upload limit and created a mp3 upload script in CGI Perl. So get back to me on your server situation so i know more about how to help you out. :D

The mp3 you selected to use is a great mp3 player and once you fix up a upload script it will be easy to make it work with that mp3 player. As i know it works with a .xml file so all that needs to be done is when a person uploads a song is to create a .xml for that person and once someone views their page create a script on the profile page to check if the .xml and .mp3 for that person exists and then call the Flash Mp3 player to load the users .xml file. Anywho get back to me with your server setup and then we can look into how to set this up.

sonik44
12-24-2005, 01:43 AM
Hi Mike,

Yes... I believe my upload_max_filesize in php.ini is 2mb since that is the PHP default. I checked the forums at my host and they say that I can change this value with an htaccess file. I have no Idea which htaccess file to change and also I don't know how to test to see what my upload_max_filesize limit is currently set at. I have a support ticket in with my host. Also, When you use a cgi/perl upload script, does this override the php upload limit? If so, should I look for a similar script?

Thanks for the help!

ForPals[dot]com
12-24-2005, 02:50 AM
Content visible to registered users only.

Here's what I did for my site:

Content visible to registered users only.

I prefer this method over allowing your members to upload to your site. So, you can use your space for something else. When your community grows, you will need that extra space.

Hope that helps... If you have any question, just post it here.

Good luck!
Geoff

natio :: phpFox
12-25-2005, 02:53 AM
Content visible to registered users only.

Howdy,
Yeah i would think by default most hosts keep it at 2mb.
hhmm to be able to change it with .htaccess, i dont think it could work cause it connects to apaches config not the php.ini, but if there is a way i would love to hear it cause one annoying thing about php is the limit on certain parts of the source. Cgi/perl there is no limits to how much you can upload. You just need to find a good script that can handle big files. Ive tested some cgi scripts that can uploaded files of up too 1GB, it took sometime to upload the file but still worked. :) . So if you could get a script to upload a mp3 like 8-9 mb that would be more than enough. Or you could do what friendster.com did and what "webanddesigns" suggested is to have your members upload their mp3/media on some other server and they can handle the file upload and you will save space and bandwidth. Then simply connect the .xml file to the other server where the actual song is located.

sonik44
12-30-2005, 07:49 AM
Hey Mike and Geoff,

My host got back to me and I found out that my upload limit is already set to 10mb so no worries there. I think for now I will take your advice and keep the mp3 files off of my server.

Once again, thanks for the help.