The XEON Mp3 Player for vBulletin 3.6.X
Design: Syrus XL Media 2003-2006
Extra Coding: vb-hacks.com
Demo: [URL="http://www.digitalport.co.uk/"]
www.digitalport.co.uk[/URL]
Note demo is using a vbPortal 3.6.1 block(not yet released).
Release date: 21/10/06
Version: 1.5b coding
Version: 2.0 XEON Player
Fully compatible and tested on vBulletin 3.6.0 and above.
Addons will be released throughout this week
No example tracks are included in this version.
[URL="http://www.vbulletin.org/forum/vborg_miscactions.php?do=nominatehotm&t=129641"]Click to 'Nominate for Mod of the Month'[/URL]
This version is not compatible with the XML driven vbMp3 Player I released awhile ago (you may uninstall or leave in, as this version uses renamed files). The player, and all code as been changed, and now fully utilizes the vBulletin AdminCP for settings, mp3 playlist management, usergroup permissions. You will notice I have released this as a beta version, reason being it does have a few issues that I need to address, these are listed under ‘Known Issues’ below.
Once you install this version make sure you
Update the Management settings, failure to do so will result in an error if you enable the custom PM notification system.
Known Issues:
Redirect phrase missing in AdminCP.
Approval Setting not holding setting after clicking Update in AdminCP Settings.
Use of quote or double quotes causes database error in AdminCP.
To do list:
Delete the ‘Add Mp3’ link in popup window.
Add dropdown menu to navbar, with Mp3 Launcher and Add Mp3 links for users.
Install as described below, once the Product XML is imported, refresh the AdminCP to see the Mp3 Player Management. Select Mp3 Settings and update accordingly, click Update. Navigate to Usergroups, and change the usergroup permissions for viewing and adding mp3’s.
I will be modifying these instructions over the next few days, and updating the main files. I will also provide manual update instructions if you have already installed this modification, so playlists are not overwritten.
Installation:
Upload the contents of the ‘Upload folder’ to your forum root. Import the ‘product-mp3player.xml’ file via ‘Plugins & Products’ – Manage Products – Import Product in your AdminCP. Press F5 or refresh your browser window to view the Mp3 Player Management menu.
Template Edits:
These edits are based on the default vBulletin style, you may need to change if you have a custom style.
AdminCP -> Styles & Templates -> Navigation / Breadcrumb Templates -> navbar
Find:
Code:
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
After add:
Code:
<!—Mp3 Player Launch --><if condition="$show['member']"><td class="vbmenu_control"><a href="javascript
:NewWindow=window.open('mp3playeri ndex.php?do=viewmp3playerpopup','newWin','width=50 0,height=500,left=0,top=0, toolbar=No,location=No,scrollbars=1,status=No,resi zable=No,fullscreen=No');NewWindow.focus(); void(0);">vbMp3 Player</a></td></if><!—End Mp3 Player Launch -->
Now, navigate to
AdminCP -> Usergroups -> Usergroup Manager – adjust usergroups permissions as required. Default is all usergroups have no access.
You now have the vbMp3 XEON player installed!
Update notifications can only be sent out if you click 'INSTALL'.
vBadvanced CMPS version:
An addon will be released very soon. Due to varying installations of this portal, there will be different center block codes available.
More players will available shortly, and the package will be updated.
Enjoy!
Advanced Users ONLY:
IMPORTANT: DO NOT ATTEMPT THIS IF YOU DO NOT KNOW WHAT SQL QUERIES ARE!!
A few people have asked me about 'mass' populating the player, at present the player doesn't support this feature. However, if you're familiar with MySQL queries, here is one way of achieving this.
Run these queries on your database, this can be done from within the AdminCP:
INSERT INTO `mp3playlist` VALUES (id, 'mp3 url goes here', 'true', 1, 'artist and song goes here', 1);
Just increase the id by 1 for each mp3 query. So you would have sommething like this:
INSERT INTO `mp3playlist` VALUES (1, 'mp3 1 url goes here', 'true', 1, 'artist and song number 1 goes here', 1);
INSERT INTO `mp3playlist` VALUES (2, 'mp3 2 url goes here', 'true', 1, 'artist and song number 2 goes here', 1);
INSERT INTO `mp3playlist` VALUES (3, 'mp3 3 url goes here', 'true', 1, 'artist and song number 3 goes here', 1);
If your database uses a 'Prefix' add this to 'mp3playlist', e.g. vb_mp3playlist
The
id value should be increased by 1 increment for each mp3 added, do not overwrite an mp3 by using the same id value. Ideally, start at 1 and add I for each query, on a fresh install.
Note: How playlist tables are stored in the database, they are named:
Playlist 1 = 'mp3playlist'
Playlist 2 = 'mp3playlist1'
Playlist 3 = 'mp3playlist2'
Playlist 4 = 'mp3playlist3'
Playlist 5 = 'mp3playlist4'
These maybe prefixed if your forum was installed with a prefix value.