Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
The XEON Mp3 Player for vBulletin 3.6.X Integrated Details »»
The XEON Mp3 Player for vBulletin 3.6.X Integrated
Version: 4.0.1, by syrus.xl syrus.xl is offline
Developer Last Online: Apr 2016 Show Printable Version Email this Page

Category: Major Additions - Version: 3.6.11 Rating:
Released: 10-21-2006 Last Update: 09-20-2008 Installs: 335
DB Changes Uses Plugins Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

The XEON Mp3 Player for vBulletin 3.6.X






Design: Syrus XL Media 2003-2007
Coding Update: vBmotion.com

Demo: www.digitalport.co.uk (Click Entertainment>XEON Mp3 Player)

Important: Supported only on Digital Port UK

Update Rev: 4.0.1 - Navbar code updated to work with vBadvanced CMPS outside the forum directory.
Updated Rev: 4.0.0 - All known bugs fixed in AdminCP, these include the Approve Mp3 issue and the Edit Mp3 problem.
Added: 21/04/07 - XEON Player in vB Custom Page Instructions.zip
Demo: http://www.digitalport.co.uk/digital...&template=Xeon

Version: 3.6.0 coding (Major UPDATE) *see below
Version: 3.5.1 coding (Product XML file updated)
Version: 3.0 XEON Player (Shuffle disabled) *Player Only Package* added.

Fully compatible and tested on vBulletin 3.6.0, 3.7 and up.

No example tracks are included in this version.

*IMPORTANT: About version 3.6!!*

If you have installed this modification prior to the latest version 3.6, it is recommended that you update to the latest version 3.6 immediately. Older versions contain a Security Hole in the admin section. All database errors have been fixed, special thanks to Code Monkey.

[high]External Data Pull[/high]
This modification is designed to pull data from internal and external servers. Check that you enter full urls to pull external data or the modification will fail to read.

[high]Features:[/high]
  • Can hold upto 500 mp3 tracks (5 playlists with 100 tracks in each)
  • Automatically cuts off access to playlists if 100 tracks are reached
  • All track data held in database
  • Volume & Pan(balance) Controls
  • Add mp3's through AdminCP or via Popup
  • PM system notifcation of new tracks submitted
  • Edit/Delete/Approve/Deny tracks via AdminCP
  • Usergroup Permissions for adding tracks and viewing of player
  • Multi-functional display on mp3 player
  • WOL Enabled - see who's using the mp3 player
  • Stream and Buffer parameters per track
  • Track pre-loading on display
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 have been changed, and now fully utilizes the vBulletin AdminCP for settings, mp3 playlist management, usergroup permissions.

[high]Known Issues:[/high]
None

UPDATING:
Overwrite all files with the new package XEON Mp3 Player v4.0.0
Import the Product XML file using the vBulletin Product Manager. Go to Mp3 Player Management and update settings and Save.

Template edit:
(required on new install or upgrade, unless you have installed other products from us.).
In the headinclude template -
Find:
Code:
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>

Above add:

Code:
<script type="text/javascript" src="clientscript/flashobject.js"></script>
If this line of code already exists then DO NOT ADD IT!

End of Update


MAIN INSTALLATION

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. Once you install this version make sure you Update the MP3 Management settings and click SAVE, failure to do so will result in an error if you enable the custom PM notification system.

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('$vboptions[bburl]/mp3playerindex.php?do=viewmp3playerpopup','newWin','width=500,height=500,left=0,top=0, toolbar=No,location=No,scrollbars=1,status=No,resizable=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!

[high]Update notifications can only be sent out if you have clicked 'INSTALL'.[/high]

More players will available shortly.

Enjoy!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 10-22-2006, 11:44 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl
At the moment, the player is not coded to stream a radio station. This might be an addition we may implement in the Commercial Premium version, which also supports video as well as mp3 streaming.
wow you're amazing! thanks!
Reply With Quote
  #43  
Old 10-22-2006, 11:55 AM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does this "mass populating the player" mean?
Reply With Quote
  #44  
Old 10-22-2006, 12:03 PM
Gripemaster Gripemaster is offline
 
Join Date: Oct 2005
Location: MD
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2
What does this "mass populating the player" mean?
The ability to add more than one URL for the MP3's at a time. I have over 300 songs, and adding them is somewhat tedious when it has to be done one at a time. Copy, paste, add name, lather, rinse, repeat. LOL

But this hack is well worth it, in my humble opinion. :rambo:
Reply With Quote
  #45  
Old 10-22-2006, 12:03 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Stifmeister2
What does this "mass populating the player" mean?
Basically, if you had the previous version installed which used XML files to populate the player. then this is an option to convert them to use the vbulletin database. All the urls and track data needs to be inserted into this version manually, one at a time.

So, 'mass populating' can be done by using a SQL query, by entering all the tracks into a notepad document, and then copy and paste this data into either the AdminCP - SQL Query or directly into your database using phpMyAdmin.

For SQL queries to be done in vBulletin you need to enable this feature in the includes/config.php file.
Reply With Quote
  #46  
Old 10-22-2006, 12:05 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Gripemaster
The ability to add more than one URL for the MP3's at a time. I have over 300 songs, and adding them is somewhat tedious when it has to be done one at a time. Copy, paste, add name, lather, rinse, repeat. LOL

But this hack is well worth it, in my humble opinion. :rambo:
Okay, you beat me to it! lol Thought you'd still be adding tracks...
Reply With Quote
  #47  
Old 10-22-2006, 12:11 PM
Gripemaster Gripemaster is offline
 
Join Date: Oct 2005
Location: MD
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl
Okay, you beat me to it! lol Thought you'd still be adding tracks...
I got 3 of the 5 playlists done before my eyes just would not stay open last night (or I should say this morning LOL)

I wondered about doing it through the database, but I barely feel comfortable with code... I don't mess with the database unless I absolutely have to. I am the only admin and yes I can run queries, I just don't so I don't break something. :up:
Reply With Quote
  #48  
Old 10-22-2006, 01:46 PM
patsalko patsalko is offline
 
Join Date: Nov 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Hack!

Any way to change 'PlayList 1' to something more meaningfull like 'JAZZ'??

Thanks
Reply With Quote
  #49  
Old 10-22-2006, 02:01 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by patsalko
Great Hack!

Any way to change 'PlayList 1' to something more meaningfull like 'JAZZ'??

Thanks
We can incorporate playlist naming, but this will probably be released in an update. As it would require code and internal player code modifications.

Or are you refering to the names it shows in vBulletin? If this is the case, it's not that hard to change, but the player buttons would also require changes.
Reply With Quote
  #50  
Old 10-22-2006, 02:24 PM
patsalko patsalko is offline
 
Join Date: Nov 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those interested, I have created a little PERL shell script to create the playlist SQL insert statement automatically.

Here u go. You do need to know PERL to run it

Code:
1. Create the file list

LIST.txt needs to be in this format
file1.mp3
file2.mp3
file3.mp3

you can do a dir or ls (in unix) and save the list to LIST.txt (or whatever)


2. Create a Perl script . Name it what you like i.e. list.pl


------------ cut here ------------------
#!D:/xampp/perl/bin/perl.exe  #update this to the location of your perl executable #!/usr/bin/perl or whatever

# Open file
$data_file="LIST.txt";

my $url = "http://yourmp3_files_URL/";

open(FILE, $data_file) || die("Could not open file!");

@raw_data=<FILE>;

close (FILE);


# Data stored in VB this way
#Playlist 1 = 'vb_mp3playlist'
#Playlist 2 = 'vb_mp3playlist1'
#Playlist 3 = 'vb_mp3playlist2'
#Playlist 4 = 'vb_mp3playlist3'
#Playlist 5 = 'vb_mp3playlist4'

# Insert rows like this
#INSERT INTO `vb_mp3playlist` VALUES (1, 'mp3 1 url goes here', 'true', 1, 'artist and song number 1 goes here', 1);
#INSERT INTO `vb_mp3playlist` VALUES (2, 'mp3 2 url goes here', 'true', 1, 'artist and song number 2 goes here', 1);
#INSERT INTO `vb_mp3playlist` VALUES (3, 'mp3 3 url goes here', 'true', 1, 'artist and song number 3 goes here', 1);

my $i = 0;  # or whatever you want the list to start at
foreach $line (@raw_data)
{
	 chop($line);
	 #Split name and extension
	 ($w_name,$temp)=split(/\./,$line);
	 
	 #build full url
	 my $mp3url= $url . $line;
	 
	 #build songname
	 my $songname = $w_name;
	 
	 #insert statement
	 print "INSERT INTO vb_mp3playlist VALUES ($i, '$mp3url', 'true', 1, '$songname', 1);\n";
	 
	 $i++;
 
}

exit (0);
--------------------- cut here ---------------


3. Run scrit and pipe the results

list.pl > list.txt


4. Run the the SQL


5. Voila!
Reply With Quote
  #51  
Old 10-22-2006, 03:11 PM
bandare bandare is offline
 
Join Date: Nov 2004
Location: Derby, UK
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, I may be ignorant but can this work as a popup?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:52 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.12344 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete