vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - The XEON Mp3 Player for vBulletin 3.6.X Integrated (https://vborg.vbsupport.ru/showthread.php?t=129641)

MissKalunji 10-22-2006 11:44 AM

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!

Stifmeister2 10-22-2006 11:55 AM

What does this "mass populating the player" mean?

Gripemaster 10-22-2006 12:03 PM

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:

syrus.xl 10-22-2006 12:03 PM

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.

syrus.xl 10-22-2006 12:05 PM

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:D Thought you'd still be adding tracks...;)

Gripemaster 10-22-2006 12:11 PM

Quote:

Originally Posted by syrus.xl
Okay, you beat me to it! lol:D 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:

patsalko 10-22-2006 01:46 PM

Great Hack!

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

Thanks

syrus.xl 10-22-2006 02:01 PM

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.

patsalko 10-22-2006 02:24 PM

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!


bandare 10-22-2006 03:11 PM

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


All times are GMT. The time now is 11:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01800 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete