News:

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

Main Menu

Music Database [3.1]

Started by Cccddd, April 21, 2005, 08:12:38 AM

Previous topic - Next topic

Cccddd

ah the &'s. I never bothered learning what that thing did. would oyu mind explaining it? its not exactly hte easiest thing to search for on the internet lol

ディン1031

Quote from: Cheschire on May 05, 2005, 07:57:00 AM
ah the &'s. I never bothered learning what that thing did. would oyu mind explaining it? its not exactly hte easiest thing to search for on the internet lol
http://de2.php.net/manual/en/language.variables.php

Hmm somewhere else stand something to *g*.
It's not the best way ever to do this ;).
But sometimes it helps.
(Better is a empty, isset check or fill it at the top of the script, but sometime the '&' quote is enouph)
Support only via MOD Thread! NO PM Support!
My Forum: ayu][kult Forum
My Mods: My Small Mod Collection
My Parser: DIN1031's ModParser
Current Info: More away the next days, because i've to much work to do :x

Cccddd

#42
right i use isset generally, but im lazy and isset'ing all the variables is annoying, albeit The Right Thing To Do (tm)

btw the & thing... sets references. what does that have to do with variables that arent set? does it just reference it to something that doesnt exist? kind of like a half-assed definition?

also, most of those extra eval errors you found i noticed were from having the file manager mod installed, which is probably why i didnt see those errors :)

Cccddd

Quote from: MellowB on May 04, 2005, 01:54:34 PM
And one more problem, you seem to have mixed up the language files in the archive. The german.php's are also all in English. Have replaced them with the old one's couse they didnt change afais.

for some reason i forgot to respond to this. anyways, for some reason the MusicAdmin.german.php was still in english. i made sure to replace it again. very odd...

Cccddd

3.0.3 released. definitely not a necessary upgrade, but helpful for those concerned about these issues. I know, daily releases is kinda annoying, but i'm definitely not telling you that you HAVE to upgrade. it's just nice for those people who find minor annoyances and want to have them fixed.

3.0.3) cleaned up changelog. now only contains changes from 3.0+. see thread to find old changes
3.0.3) more eval error fixes. this time focused on file manager related eval errors. (Help from DIN1031)
3.0.3) re-added MusicAdmin.german.php. For some reason the updated file didn't get included in the last two releases?

MellowB

Hm i have one request...
Could you please make the Admin pages "more usefull"?
At the moment its somehow complicated to use these... or better its confusing.

If you have for example a LOT albums in the database its sometimes difficult to find the one you want to change. If in fron of the album in the drop down list there would be the artists name it wouldnt be as complicated. Or better, you add a seconed drop down field there for artists too. So first you choose the artist and then you see in the second dropdown list all albums listed by this artist in the database. So you also could more easyly add new albums to this artist...

Same goes with the song page. There its even MORE confusing. What if you have multiple songs with thes same name in the database? How do you know the correct one? Add drop-down fields there for Artist, Album and then Songs. This would make things much more easyly in my opinion. Same goes for our users which are allowed to add new songs, albums etc. which asked already sometimes about help how to use this page couse its so confusing sometimes.

If you could clear these pages up a bit and add picture support again everything would be perfect for us atm., beside these points its a really nice mod so thanks for all. :)
On the Keyboard of life, always keep one finger on the ESC key.

StormLrd

#46
Great program but i kinda already enabled the filemanager lmao, im gonna have to uninstall looks like and re install just to get at the bloody checkbox again :( oh well should of read the forum first and wasnt paying attn.

Hope this gets fixed soon I think it will be real cool with bugs eliminated. Ive just unistalled it again, kept getting an error when ever i tried to save anything in the layout options screen of admin..

Also kept giving defining path errors when trying to set up a music. Be cool to have a genral load for the db as well for some different types of music. Without having to upload everyone (as if i can even get to that point in its current form.

Will keep on this thread for updates to it.

The Family Forum

StormLrd

This is the message:

An Error Has Occurred!
2: Invalid argument supplied for foreach()
File: /home/stormlrd/public_html/rhcforum/Sources/ModSettings.php
Line: 585 





/* Display the options.  May be:
array('option 1', 'value' => 'option2', 'etc')
OR array(array('value', 'option'), array('samevalue', 'option'))
(this way you can have two options with one value, if needed.) */

----585--> foreach ($config_var[2] as $key => $option)
if (is_array($option))
$context['raw_data'] .= '
<option value="' . $option[0] . '"' . ($option[0] == $modSettings[$config_id] ? ' selected="selected"' : '') . '>' . $option[1] . '</option>';
else
$context['raw_data'] .= '
<option value="' . $key . '"' . ($key == $modSettings[$config_id] ? ' selected="selected"' : '') . '>' . $option . '</option>';

$context['raw_data'] .= '
</select>
';
}

This is the culprit causing it:


// I gotta use an if statement here, so I had to move the whole block out.
// Gotta play nice with the other mods! ;]

array_push($config_vars, array('heading', 'Music'), array('int', 'mdb_maxlyrics'), array('check', 'mdb_enable_fm_features'), array('rule'));

if (isset($modSettings['mdb_enable_fm_features']) && $modSettings['mdb_enable_fm_features'] > 0)
array_push($config_vars,
array('select', 'mdb_artist_folder', $fm_folders),
array('select', 'mdb_album_folder', $fm_folders),
array('select', 'mdb_song_folder', $fm_folders),
array('rule')
);








I'm assuming thats the filemanager? and for some reason its interfering with me doing anything on the layout page lol without getting the error message at top.

Ive removed that section for now so ive got a non functioning mod at moment.

If anyone knows the solution id be greatful, ive already tried moving it to above the calander and so forth with same results, so im stuck for now.

Thanks in advance for any help :)

LFC4EVA

how do i install it? i downloaded it but i don't know where to install it. whats this u have to install it in themes/style thing i just don't get it

StormLrd

#49
I did a little work to match the music database blend in with BLOC's helios theme:

Images:








blank for your own
blank for your own

I used arial font in bold. Just replace original images with these since they have same filename.

Now to make it match in the menu's

i used the headerbodies style in style sheet for background of table and my headerbodies is set to a dark red since im using the red helios theme.

Lining up menubar: In the install.xml it says to do this:


<file name="$themedir/index.template.php">
<operation>
<search position="after"><![CDATA[
// The [calendar]!]]></search>
<add><![CDATA[
// Music Database mod
if (allowedTo('mdbview'))
echo '
<a href="', $scripturl, '?action=music">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/music.gif" alt="Music" style="margin: 2px 0;" border="0" />' : 'Music'), '</a>', $context['menu_separator'];

if (allowedTo(array('mdbadd','mdbmodify','mdbdelete')))
echo '
<a href="', $scripturl, '?action=musicadmin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/music_admin.gif" alt="Music Admin" style="margin: 2px 0;" border="0" />' : 'Music Admin'), '</a>', $context['menu_separator'];
]]></add>
</operation>
</file>


Instead repace it with this:



// Music Database mod
    if (allowedTo('mdbview'))
        echo '<td><a href="', $scripturl, '?action=music">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/music.gif" alt="Music" style="margin: 0px 0;" border="0" />' : 'Music'), '</a></td>';

    if (allowedTo(array('mdbadd','mdbmodify','mdbdelete')))
        echo '<td><a href="', $scripturl, '?action=musicadmin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/music_admin.gif" alt="Music Admin" style="margin: 0px 0;" border="0" />' : 'Music Admin'), '</a></td>';
       


view here on this forum: The Family Forum


Ok lol Now if i can get help with getting it to work id sincerely appreciate it. My problem is listed in previous post dealing with the modsettings page

thanks in advance  :)

Cccddd

sorry all. i had a combat life saving class all this week in Darmstadt, germany, so i wasn't around computers at all for a several days.

Quote from: MellowB on May 08, 2005, 02:43:24 PM
If you have for example a LOT albums in the database its sometimes difficult to find the one you want to change. If in fron of the album in the drop down list there would be the artists name it wouldnt be as complicated. Or better, you add a seconed drop down field there for artists too. So first you choose the artist and then you see in the second dropdown list all albums listed by this artist in the database. So you also could more easyly add new albums to this artist...

entirely too easy, and a great idea too. I will either make this change and release a 3.0.4, or i will add some more slightly major changes and go for a 3.1 release.

Cccddd

Quote from: StormLrd on May 11, 2005, 01:28:25 PM
I did a little work to match the music database blend in with BLOC's helios theme:

Nice work!

Quote from: StormLrd on May 11, 2005, 01:28:25 PM
Ok lol Now if i can get help with getting it to work id sincerely appreciate it. My problem is listed in previous post dealing with the modsettings page

thanks in advance  :)

uninstall the filemanager mod, and the music mod, then install whatever the latest version of SMF is in UPDATE form (not upgrade or install version). Do not install the package manager version of the update, just download the update package from the downloads page from the SMF front page.

Cccddd

Quote from: LFC4EVA on May 11, 2005, 02:34:06 AM
how do i install it? i downloaded it but i don't know where to install it. whats this u have to install it in themes/style thing i just don't get it

goto the package manager page on your admin page of your own forum, and then in the package uploading block, hit browse, find teh package, and click upload.

muzikashqip2005

hejj do u know wen the filemanger mod is gonna be working

Cccddd


IronMANro

hi,

first of all, i like this mod and i want to use it.

i tryed to install on my forum... i uploaded manual using ftp. the mod apear in package list with [aplly now] link.
when i press this link i recive next message:

An Error Has Occurred!
2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 21762 is not allowed to access /usr/local/www/data-dist/go/raverbase/forum/Packages/temp owned by uid 80
File: /usr/local/www/data-dist/go/raverbase/forum/Sources/Subs-Package.php
Line: 1476


can anyone help me?

thanks in advance!

Cccddd

Quote from: IronMANro on May 19, 2005, 10:58:34 AM
hi,

first of all, i like this mod and i want to use it.

i tryed to install on my forum... i uploaded manual using ftp. the mod apear in package list with [aplly now] link.
when i press this link i recive next message:

An Error Has Occurred!
2: fopen(): SAFE MODE Restriction in effect. The script whose uid is 21762 is not allowed to access /usr/local/www/data-dist/go/raverbase/forum/Packages/temp owned by uid 80
File: /usr/local/www/data-dist/go/raverbase/forum/Sources/Subs-Package.php
Line: 1476


can anyone help me?

thanks in advance!

check the permissions on your Packages folder, and make sure its set to 777

Cccddd

#57
Aight Music database is now updated to 3.1

3.1) completely revamped admin page for song editing
3.1) fixed filemanager functionality
3.1) moved German language files to separate package to facilitate separate updates
3.1) removed old unused language file entries

Basically the song editing page was the primary focus of this update, with the filemanager functionality coming in a close second. Once I am sure the song page is user-friendly enough, I will start to work on the album and artist page too.

Norbert: I need you to retranslate the language files if that's okay. I will be releasing a separate package for the language files so that I don't have to wait on translations to update the root package. This also means you can make changes to the german language package without having to wait for me to update the main thing. Just PM me the stuff, or attach the files to a post here.

Norbert

Quote from: Cheschire on May 22, 2005, 09:12:45 AM
Norbert: I need you to retranslate the language files if that's okay. I will be releasing a separate package for the language files so that I don't have to wait on translations to update the root package. This also means you can make changes to the german language package without having to wait for me to update the main thing. Just PM me the stuff, or attach the files to a post here.

I'll do this tomorrow.

CokeCan

#59
Great work!! :D
I want to create a lyrics site and I would like to know if it's posible to add a "pirnt" version where they can see the lyrics in a popup window without all the forum design?
And would be nice list the artists, albums and songs by letters just like it's at the memberlist, what do you think? that would be VERY useful!
And is it posible to add the album's cover over the album's list?

Oh, one more thing, is it posible to add the lyrics translation? would be nice if users can add it's translation to their own language you can add the text "translation to:" "English", "Español (Spanish)", "Portugues (Portuguese)"...

Advertisement: