News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Music Database [version 2.x through 3.0 beta]

Started by Cccddd, March 09, 2004, 01:23:33 PM

Previous topic - Next topic

Cccddd

rofl okay i'll check it out. poor testing on my part. i tend to do that a lot actually... never take time to test before i release! I guess i will do a quick bug fix before I continue work on 3.0

Cccddd

okay its all fixed. the problem was I wasnt listening to limp bizkit when making the package... lol. Anyways I fixed the install and, amazingly, the uninstall.

Install the new 2.5 version, but first, I'm sorry about this but you have to manually remove the old package. Here's how...

edit {your smf dir}/index.php and remove the two music lines
edit Packages/installed.list and remove the music db entry
remove the musicdb file from the Packages folder
remove Sources/Music.php
edit Sources/ManagePermissions.php and delete the block for the music permissions
remove Themes/default/Music*
edit Themes/default/index.template.php and remove the two music buttons from the bottom function
remove Themes/default/languages/Music*
edit Themes/default/languages/ManagePermissions.english.php and remove the permission_mdb* lines from the bottom
edit Themes/default/languages/Errors.english.php and remove the cannot_mdb lines
remove Themes/default/images/english/music*

Cccddd

also, since the uninstall is fixed in my package, you will not have to do this manual uninstall anymore!

Cccddd

and one last thing, the sql stuff is finally working. i tested it pretty thoroughly so there should be no issues anymore.

Ray™

Ok it seems to be working ok -- where is the data stored I see no new tables in sql...also one more thing can mp3 files be upload and downloaded or is this just a data base ??? was thinking it was a data base of what mp3 one had on the site to share out
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Cccddd

didnt i put all that in the readme?

here's a copy of the readme for those of you that skimmed past that in the install:

Music Database
by James "Cheschire" Yarbro
http://nrrds.com

This mod adds a music database to your forum.

You need to edit Music.template.php and change this line:
$musicfileurl = 'http://mysite.com/smf/musicfiles';

This is where all the images and mp3's will be loaded from. You need to have a folder for music files that has two subdirectories, one called "img" and one called "mp3".

You can setup permissions through the SMF admin interface to regulate who can view, rate, add, change, etc. Buttons are added to the SMF default theme and setup to check user permissions before showing up. Just copy the code into your theme if you want to use them.

Cccddd

then look for the box that says file, and put the filename in there.

Ray™

ok thanks all is working great and as far as the data -- maybe I should refresh the sql before i post that  :P -- thanks for your hard and really fast work.
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Cccddd

no problem.

My eventual goal is to have the album covers, artist photos, and thumbnails, all stored in a preset folder, with upload scripts to move stuff between your computer and your webserver.

I will probably make a page just for album covers and mp3 files, and then have a dropdown menu on the other pages to select the files. that way the files are not dependant on anything else.

Ray™

That would be nice -- also is their anyway to make it so a user could upload a file and add that file to the data base also??
arcade-Only (over 800 Games)
http://www.arcade-only.com
Hand Made Ceramics
http://cbr.rranderson.com

Midgard


Cccddd

Quote from: Ray on January 09, 2005, 02:21:09 PM
That would be nice -- also is their anyway to make it so a user could upload a file and add that file to the data base also??

yeah eventually any user will be able to be given permission through the admin interface to upload files as well. Thats part of why i want the music file manager on a separate page from the other pieces. The admin can then decide if they want to allow people full access to teh admin interface or only partial.

Cccddd

here's some screenshots from the new version I am working on...






JayBachatero

#33
If you want to put a title use this

edit the Music.php file found in the Sources dir
   // Title
   $context['page_title'] = "Music Database"; // Set title


i put it right under this

   global $scripturl,$_REQUEST,$context;
   loadTemplate('Music');


the code shouldd look like this   global $scripturl,$_REQUEST,$context;
   loadTemplate('Music');
   // Title
   $context['page_title'] = "Music Database"; // Set title

not sure if that the place to put it but it worked for me.

[edit]
i just found out the admin panel doesnt show the title so i put the above code like this


  global $context, $sourcedir, $user_info, $modSettings;
  // Title
  $context['page_title'] = "Music Database Admin Panel"; // Set title


find this

  global $context, $sourcedir, $user_info, $modSettings;


replace with

  global $context, $sourcedir, $user_info, $modSettings;
  // Title
  $context['page_title'] = "Music Database Admin Panel"; // Set title


So you have to add those two lines so the code shows in the admin area and the music section.
[/edit]

would be nice if you can create a download link for the music files
Im sure the experts over here will find the right way to get this workin a cleaner way.
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

JayBachatero

how can i add multiple artists pictures?
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Cccddd

the file stuff isnt even close to done yet. all you got right now is the ability to upload some files manually through some ftp program, then put the filename in the mod and it loads it.

mp3's already work, you just open Music.template.php, change $musicfileurl, and then in $musicfileurl/mp3/ upload all your mp3's and put the filename in the filename box for the song.

The multiple pics for an artist... thats a good idea. It'll start to verge on being a picture album software at that point, but we'll see what I can work out. I'm already going to have to go relearn all the GD stuff i havent touched in months just to make the thumbnails.

Cccddd

I have had a few people ask how to install this mod. I am putting instructions in the first post of this thread right now on how to do it.

JayBachatero

im tryin gout the 3.0 alpha version and this mod rocks. 8)
Follow me on Twitter

"HELP!!! I've fallen and I can't get up"
This moment has been brought to you by LifeAlert

Elijah Bliss


Elijah Bliss

Now with this mod, is it possible to link CD covers to links of your choice (in my case, an amazom.com affiliate link).

Advertisement: