vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [ Audio / Visual ] - VB Mega Jukebox - Now with permissions to save bandwith (https://vborg.vbsupport.ru/showthread.php?t=74170)

trafix 01-10-2005 10:00 PM

[ Audio / Visual ] - VB Mega Jukebox - Now with permissions to save bandwith
 
I want to thank everyone who has supported the original release of this hack and for all the suggestions to make this hack even better :)
I have spent days on adding all these new features and would like to thank the people who have assisted me to get some of these function to work.

Its back after a long time :)

This hack will add a whole new dimention to your forums with a Jukebox

3 file edit
1 template edit
1 new db table
1 db table alteration

This hack uses and includes a copy of the [HIS] Hack Installer System (Build 3)
released by Link14716 and can be found here --> https://vborg.vbsupport.ru/showthread.php?t=71542
My thanks to Link for his one on one time in building the install files for the VB Jukebox :)

General Features

* The ability to play audio and movie formats - The script will detect both .mpg or .mpeg files and open the media player. If an audio format is played then the media player will stay invisable.

Admin Features

* Upload songs from your browser.
* Unlimited genres.
* Manual data entery for when the uploader fails or for large files.
* At a click will automaticly generate a new thread announcing a song in the jukebox.

* Usergroup permissions for:
--> 1) Who can listen to songs.
--> 2) Who can upload songs.
--> 3) Who can rate songs.

Front End Features

*Members can upload songs, these songs are not available in the jukebox until admin aproval (optional email notification available).
* Callapsable genres (only displays genres that have active songs in them).
* Members can rate songs.

Future Possible Functions

* members favs, this will allow members to add songs to their own favs list and if i can work it out i will try to make it so they can play their favs from start to finish.

INSTRUCTIONS FOR REMOTE SONG HOSTING

OPTION 1

In the admin options where it asks for the folder name enter the full path to the where the songs are stored eg "www.something.com/music folder" NO backslash after.
The Downside to this is that your members canrt upload or add songs to the jukebox and movie files will not work.

OPTION 2
In vb_jukebox.php find each instance of

PHP Code:

$playsong "$vboptions[jb_media_folder]/$playthisong 

replace with
PHP Code:

$playsong "$playthisong

Then enter the full url into the song file field for each song.

A Tutorial for manual install can be found here https://vborg.vbsupport.ru/showthread.php?t=76050

Please Click install :)

This hack will always be free however you can donate to paypal@petnshow.com

Jukebox Feedback Please
I would love to hear some feeback from your members there is a feedback thread here https://vborg.vbsupport.ru/showthread.php?t=76124

Update
Fix Template and missing image

Update 2.1
includes whos online code by Murphinator, i have changed the varname of the phrase to conform with the perfix ;)
also includes instructions for adding admin to the modcp

Update 2.2
Just a file edit here that will stop the media player desplaying a long narrow strip .. just upload the new vb_jukebox.php file

Update 2.3
Major bug fix ... negative song count for songs
just upload the new vb_jukebox.php file

GoTTi 01-11-2005 02:29 AM

your screen shots are so small dude...

btw, welcome back trafix :)

HiDeo 01-11-2005 03:31 AM

Nice job but the screens are too little :s

theArchitect 01-11-2005 04:17 AM

Quote:

Originally Posted by HiDeo
Nice job but the screens are too little :s

Yeah, thanks for this one. I have a forum coming up that I might use it on.

Lionel 01-11-2005 06:19 AM

A-Z navigation or categories would be nice. If you have too many songs, page could be long.

WiseOwl 01-11-2005 06:47 AM

Nice hack, installed perfectly, one thing though...

how do I cut it on? "The jukebox is currently turned off! "

yinyang 01-11-2005 07:12 AM

is there an easy way to make it so only certain usergroups are allowed access?

trafix 01-11-2005 07:21 AM

Quote:

Originally Posted by WiseOwl
Nice hack, installed perfectly, one thing though...

how do I cut it on? "The jukebox is currently turned off! "

these settings are located in the vb options list in the admin area

trafix 01-11-2005 07:24 AM

Quote:

Originally Posted by yinyang
is there an easy way to make it so only certain usergroups are allowed access?

currently you can set for:
freeplay for everybody
freeplay for members only
paid plays using credits (vb trader credits)

im sure someone will code an intergration hack so members can pay using uShop money


these settings can also be found in the vb options

WiseOwl 01-11-2005 07:37 AM

Thank you, knew it was somewhere, just couldn't find it, workin fine.. I had just installed about 8 modifications, jukebox was the last to be installed.

No conflicts except with "who was online in last 24 hour" modification.. I don't know if this was a conflict with jukebox and that mod or not, but after installing jukebox it is not showing the members usernames that have visited

Also there is TABLE tag that has not been closed.. view http://digitalmental.com/bb/vb_jukebox.php for refrence, bottom of the page..

http://digitalmental.com/bb

Other than those minor things A+

Thanks Again,
Owl

trafix 01-11-2005 07:45 AM

Quote:

Originally Posted by WiseOwl
Thank you, knew it was somewhere, just couldn't find it, workin fine.. I had just installed about 8 modifications, jukebox was the last to be installed.

No conflicts except with "who was online in last 24 hour" modification.. I don't know if this was a conflict with jukebox and that mod or not, but after installing jukebox it is not showing the members usernames that have visited

Also there is TABLE tag that has not been closed.. view http://digitalmental.com/bb/vb_jukebox.php for refrence, bottom of the page..

http://digitalmental.com/bb

Other than those minor things A+

Thanks Again,
Owl

who was online in last 24 hour does reset its self ... but in not sure when that time is .... i cant see the jukebox having any conflict there.

trafix 01-11-2005 07:53 AM

Quote:

Originally Posted by Lionel
A-Z navigation or categories would be nice. If you have too many songs, page could be long.

i can aleo look at that

reteep 01-11-2005 08:07 AM

Little bug in edits of admincp.php:

Original (readme.txt):
Quote:

***********
Insert Before
***********

if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['jb_track_list'], 'vb_jukebox_admin.php', '<br />');
construct_nav_group("$vbphrase[jb_vbjukebox]", '<hr />
}
That has to be:
Quote:

***********
Insert Before
***********
if (can_administer('canadminstyles'))
{
$printhr = true;
construct_nav_option($vbphrase['jb_track_list'], 'vb_jukebox_admin.php', '<br />');
construct_nav_group("$vbphrase[jb_vbjukebox]", '<hr />');
}
You forgot a ');.

Nice hack, thanks!

reteep 01-11-2005 08:18 AM

But one more question:

The midi directory doesn't have any special function yet, right? It's just for uploading songs and pointing the URL to that folder(no code specific use of that folder yet?)

trafix 01-11-2005 08:24 AM

Quote:

Originally Posted by stormblast
But one more question:

The midi directory doesn't have any special function yet, right? It's just for uploading songs and pointing the URL to that folder(no code specific use of that folder yet?)

yep thats right ... make a folder in your forum directory and ftp the songs into it from your pc, then when you add a song to the juke include the url to the folder, the relative path should work.

the next version will have an upload feature where you can use the web browser to upload the songs .... this will also be in the main jukebox area so members can upload songs ... the admin will have to approve the song before they appear in the jukebox list :) ....

you will notice at the moment that that have not been activated are listed in red ;)

trafix 01-11-2005 08:26 AM

Quote:

Originally Posted by stormblast
Little bug in edits of admincp.php:

Original (readme.txt):


That has to be:


You forgot a ');.

Nice hack, thanks!

oh crap ... thanks :)

reteep 01-11-2005 09:10 AM

For those who are interested, here's a german language file attached ;)

agiacosa 01-11-2005 10:22 AM

Sorry to bring this up, but what are the legalities of doing this?

trafix 01-11-2005 10:24 AM

Quote:

Originally Posted by agiacosa
Sorry to bring this up, but what are the legalities of doing this?

well .... there are no issues with using midi files in your jukebox

you can use other files at your own risk

reteep 01-11-2005 10:25 AM

Quote:

Originally Posted by agiacosa
Sorry to bring this up, but what are the legalities of doing this?

In Germany you may not play Songs which are licensed under the GEMA. If you act like a radio you'd have to pay for broadcasting those songs. It's kinda the same in most of the states. So are probably only able to add selfmade stuff there from friends or yourself which aren't licensed.

NuclioN 01-11-2005 01:13 PM

We want to use this with mp3 files. How to adjust code Trafix?

reteep 01-11-2005 01:57 PM

Quote:

Originally Posted by NuclioN
We want to use this with mp3 files. How to adjust code Trafix?

It works with mp3 files just like that.

yinyang 01-11-2005 06:32 PM

Quote:

Originally Posted by agiacosa
Sorry to bring this up, but what are the legalities of doing this?

i'm not an expert on copyright laws and protection, but i've been in the entertainment world here in wollyhood for over 10 years and this is what i think (only worth $.02).

trafix has coded a jukebox, not unlike a person's own personal walkman. how they get their music that goes into their walkman is outside the jurisdiction of the walkman.

therefore, as long as trafix doesn't offer/promote a way to trade copyrighted songs, i think the legalities are fine.

Kliqster 01-11-2005 07:01 PM

Thanks, installed successfully.

Just wondering, how compatible is this with streaming videos aswell? I run a wrestling forum and the idea of being able to stream matches via the jukebox is very appealing. Are there any specific file formats that will work so that the users can see video aswell?

trafix 01-11-2005 08:15 PM

Quote:

Originally Posted by Kliqster
Thanks, installed successfully.

Just wondering, how compatible is this with streaming videos aswell? I run a wrestling forum and the idea of being able to stream matches via the jukebox is very appealing. Are there any specific file formats that will work so that the users can see video aswell?

Yep .... easy .... add your mpeg files and in the jb_JUKEBOX template find the media embedding tag and add a hight and width to it and thats all you need to do i think :)

kisersose 01-12-2005 06:24 AM

Code:

Database error in vBulletin 3.0.5:

Invalid SQL:
                        SELECT *
                        FROM vb_jukebox_trax
                        ORDER BY plays
                        DESC LIMIT 1
               
mysql error: Table 'emceepla_forums.vb_jukebox_trax' doesn't exist

mysql error number: 1146

im getting this message when I enter the jukebox, what course of action should I take?

trafix 01-12-2005 07:03 AM

Quote:

Originally Posted by kisersose
Code:

Database error in vBulletin 3.0.5:

Invalid SQL:
                        SELECT *
                        FROM vb_jukebox_trax
                        ORDER BY plays
                        DESC LIMIT 1
               
mysql error: Table 'emceepla_forums.vb_jukebox_trax' doesn't exist

mysql error number: 1146

im getting this message when I enter the jukebox, what course of action should I take?

hmm .... looks like the install didnt complete as the
Quote:

Table 'emceepla_forums.vb_jukebox_trax' doesn't exist

trafix 01-12-2005 07:05 AM

do you have access to your phpmyadmin? do you feel confident with using it

trafix 01-12-2005 10:03 PM

Quote:

Originally Posted by WiseOwl
Thank you, knew it was somewhere, just couldn't find it, workin fine.. I had just installed about 8 modifications, jukebox was the last to be installed.

No conflicts except with "who was online in last 24 hour" modification.. I don't know if this was a conflict with jukebox and that mod or not, but after installing jukebox it is not showing the members usernames that have visited

Also there is TABLE tag that has not been closed.. view http://digitalmental.com/bb/vb_jukebox.php for refrence, bottom of the page..

http://digitalmental.com/bb

Other than those minor things A+

Thanks Again,
Owl

Im about to upgrade the zip to fix the reported bugs ..... can you please post the edited template where the table has not been closed ... i cant see you JB as i need to be registered ... tnx

Any other bug reports or issues that i havnt addressed before i upgrade the zip?

trafix 01-12-2005 10:06 PM

Quote:

Originally Posted by kisersose
Code:

Database error in vBulletin 3.0.5:

Invalid SQL:
                        SELECT *
                        FROM vb_jukebox_trax
                        ORDER BY plays
                        DESC LIMIT 1
               
mysql error: Table 'emceepla_forums.vb_jukebox_trax' doesn't exist

mysql error number: 1146

im getting this message when I enter the jukebox, what course of action should I take?

Hmmm, tnx for the heads up on the table prefix ... i actually found a few that didnt have it

WiseOwl 01-13-2005 03:34 AM

https://vborg.vbsupport.ru/external/2005/01/4.gif

that's what it looks like, don't know exactly what template... hope that helps, ill explore later on tomorrow if you haven't found it..

trafix 01-13-2005 03:40 AM

Quote:

Originally Posted by WiseOwl
http://digitalmental.com/images/tabletag.gif

that's what it looks like, don't know exactly what template... hope that helps, ill explore later on tomorrow if you haven't found it..

hmmm .... possibly the vb_JUKEBOX template ... i will have a look soon

i deved the hack here http://www.usodja.com/forums/vb_jukebox.php?

and there is no problem there for your intrest here is the template from that site
PHP Code:

$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
title>$vboptions[bbtitle] ~ $vbphrase[jb_jukebox] - powered by vBulletin</title>
$headinclude
</head>
<
body>
$header
$navbar

<script LANGUAGE="Javascript">
<!--
function 
showwin(name,size
{
attrbts size ",resizable=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes"
window.open(name"jukebox"attrbts);
}                                       
//-->
</script>

<if 
condition="$canplay == 1">                        
    <
object id="MediaPlayer1" 
width=0 height=0
classid
="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
type="application/x-oleobject">
<
param name="URL" value="$playsong">
<
embed type="application/x-mplayer2" 
name="MediaPlayer"
width=0
height
=0
src
="$playsong"
showcontrols="0">
</
embed>
</
object>

</if>


<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
<
tr>
<
td class="panelsurround" align="center" colspan="2">
    <
div class="panel">
        <
div style="width:$stylevar[formwidth]align="$stylevar[left]">
            <
fieldset class="fieldset">
                <
legend><strong>$vbphrase[jb_now_playing] ..... <i>$songdetails</i></strong></legend>
                <
table align="center" cellpadding="0" cellspacing="$stylevar[formspacer]border="0">
                <
tr>
                <
td>
                    <
center>
                    <if 
condition="$vboptions[jb_mode] == 1">
                    
$vbphrase[jb_free_for_members_guests]
                    </if>
                    <if 
condition="$vboptions[jb_mode] == 2">
                    
$vbphrase[jb_free_for_members_only]
                    </if>
                    <if 
condition="$vboptions[jb_mode] == 3">
                    
$jb_credit_for_members_only
                    
</if>
                    <
br /><br />
                    
$mostpopular
                    
<br />$vbphrase[jb_top10_note]
                    <
br /><a href="javascript:showwin('vb_jukebox.php?$session[sessionurl]do=top10', 'width=450,height=400')"><b>$vbphrase[jb_view_top10]</b></a>
                    <
br /><br />
                    
$vbphrase[jb_instructions]
                    <if 
condition="$warning == 1">
                    <
br /><br />
                    
$warningdesc
                    
</if>                        
                    </
center>
                </
td>
                </
tr>
                </
table>
            </
fieldset>
        </
div>
    </
div>
<
tr>
    
</
tr>
<
tr>
<
td class="thead">
    <
b>$vbphrase[jb_song]</b>
</
td>
<
td class="thead">
    <
b>$vbphrase[jb_requests]</b>
</
td>
</
tr>

$playlist

</td>
</
tr>
</
table>

</
td></tr>
<
tr>
    <
td><center>Powered By: <b>$vboptions[bbtitle]</b>
    <
br>vB Jukebox 1.0 By Trafix</center></td>
  </
tr>
</
table>

$footer

</body>

</
html

let me know it that works

jugo 01-13-2005 02:22 PM

Quote:

Originally Posted by trafix
the next version will have an upload feature where you can use the web browser to upload the songs ....


Most MP3 Songs are more than 3 MB is size. how will you handle the PHP restrictions on upload sizes?

trafix 01-13-2005 08:47 PM

i have by-passed the size limiting .... hmmm ... something to ponder

yoyoyoyo 01-14-2005 06:56 AM

very nice! I am especially looking forward to this feature:
Quote:

* The ability for members to upload songs to the site the songs wont be active on the jukebox until the admin activates them for security issues

trafix 01-14-2005 08:20 AM

I have to get some work done on the vb trader however i will get to these features soon :)

Kyoko 01-14-2005 11:27 AM

Great work
*applauds*

trafix 01-14-2005 09:06 PM

* trafix takes a bow

Quote:

Originally Posted by Kyoko
Great work
*applauds*


ambrosious 01-15-2005 01:09 AM

Ok, I'm completely stupid here, can someone tell me where to upload music files to?

I have tried three locations. Server/midi, then public_html/midi folder then public_html/vbulletin/midi and no songs ever show up? Is there something I missed?

trafix 01-15-2005 06:20 AM

ok ... usong you ftp ... make a new folder in the same area as your vb root area ... then upload your songs to it.

to add the songs to the jukebox click on "Add" and enter the name of the song in the first line and then the url of the song in the second


All times are GMT. The time now is 04:49 PM.

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.01877 seconds
  • Memory Usage 1,900KB
  • 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
  • (3)bbcode_code_printable
  • (3)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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