The admin interface and drupal integration
dennys - November 10, 2008 - 13:37
| Project: | Zina |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
I just download Zina and found it's great, but I'm interested in the admin interface and drupal integration
Interface:
Most operations (add artist/album/song...) are file based, users need to create/delete folder/files themselves. Will you plan to build a GUI for it ? Just like the Gallery project (http://gallery.menalto.com/)
Drupal Integration:
For current version, Zina could be embedded in Drupal now, but is there any other integration function ?
For example
- A filter to embedded a artist/album/song in a node
- A block for newest artist/album/song or whatever...

#1
- Well, there's already configure-able blocks for various stats (make sure the zina db is installed).
- I'd probable resist the idea of making an interface to the filesystem. I'm sure there's already a module that does that.
- A filter to embed an artist/album/song? Could you explain more what you mean?
#2
About the block and database in Drupal module
I got it, but a little complicated:
1. The "true/false" radio button in Drupal is disabled (but it's ok in standalone), so, I edit zina.ini.php and put in it. Then, I can save the database configuration in Drupal now.
2. But I still didn't see any new tables even I change some data and press update database and run cron job. (no error message)
3. Finally, I export the SQL from the standalone module and run it in drupal's database. It's ok now, I can vote it and see the result.
4. And, I see the blocks now. A suggestion is "Block description" should be change, I think "Zina Block 1" is not easy for management.
Filter
for example, pleaser reference http://drupal.org/node/332440.
Since Zina already has id, path, file information in database, I think it's possible.
When user writes a node to introduce a song, maybe he wants to let readers to play it directly on screen. Of course, a CCK field is ok too, but I think filter is better personally. "Asset Bonus Pack" (including in http://drupal.org/project/asset) already provide this function, I'm not sure is it possible to call it's API directly.
GUI
I can understand it, there are already lots of file management tools now. We can use it for Zina, although a dedicated/special GUI for Zina is good, but it needs to take lots of time. Maybe you can consider it later, just like Drupal, it provide the install GUI after 5.0, before 4.x, users need to run the SQL manually.
Some suggestions:
Just for your reference:
1. Maybe you can add to some more categories (i.e. Third-party integration)
2. Myabe you can consider to post a article in http://groups.drupal.org/art-music or other suitable place to promote this great module
3. The setting http://example.com/music/?l=20 should detect the existance or write permission when user first use entry this functin. It will be better than show the error message when user press update button.
4. I think database support of Drupal should not be optional (standalone maybe ok), since users already have a Drupal, he should already have a database. And if db is optional, then some function (i.e. vote) should be disabled when the db is not ready.
5. What's the purpose of the administrator in Drupal module? I can understand we need it in standalone, but when we need it in Drupal ?
Sorry for lots of words and poor English...
#3
I've started to add more drupal integration, if you want to help, see:
https://sourceforge.net/forum/message.php?msg_id=7444010
#4
Hi, I just test it and the following are some suggestions.
1. Suggest to use sites/example.com/files/zina/cache... for cache directory, modules/zina/zina/cache is not a good idea. And in Drupal's multisite architecture, modules/zina/zina/cache will cause some problems.
2. Music Directory, default is modules/zina/zina/demo, also suggest to use sites/example.com/files/zina/...
3. I found "Chinese (traditional)", but it doesn't work. ("Chinese" works). And I only find lang/zh-cn.php, it's for "Chinese", no file for "Chinese (traditional)"
4. When I clicked "Edit images" in http://example.com/music/, I got the message "Directory is not writeable. You cannot save or delete images.", but I have no idea what directory have no privilege.
5. The privilege of modules/zina/zina/cache/public and modules/zina/zina/cache/private are both 755 in UNIX, I guess it should be 777? (I'm nor sure.)
6. I use http://example.com/node/add/zina to create a new Zina node, but I don't know how to use it? It seems Zina uses the node function of Drupal, but users should not modify the node directly?
7. How to use tag/comment? If we use current node's function to modify tag, but we don't use it to upload data, it's strange, users will be confused...
#5
Hi I'm using the IMCE module for uploading songs.
IMCE has the feature to create a folder for each user you choose or each roles.
Those folders could be named as user name.
So i have asked IMCE to create a directory with the name of each user who got the "artists" role in /var/www/drupal/sites/mysite.com/files/artists/
In zina i have change the data directory for /var/www/drupal/sites/mysite.com/files/artists/
So when a new user log in ,he can upload folders or mp3 in his dedicated directory.
Whith the "clean url" feature each "artists" user got their discographies in http://"ysite.com/music/"username"
Check it in my project http://lamifa.fr
Hope that help dennys bye