Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[ Audio / Visual ] - VB Mega Jukebox - Now with permissions to save bandwith Details »»
[ Audio / Visual ] - VB Mega Jukebox - Now with permissions to save bandwith
Version: 2.3, by trafix trafix is offline
Developer Last Online: Jul 2008 Show Printable Version Email this Page

Version: 3.0.5 Rating:
Released: 01-10-2005 Last Update: 02-14-2005 Installs: 112
DB Changes
 
No support by the author.

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

Show Your Support

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

Comments
  #292  
Old 02-08-2005, 05:37 AM
WiseOwl WiseOwl is offline
 
Join Date: Oct 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm its not downloading now, seems to play almost right away
Reply With Quote
  #293  
Old 02-08-2005, 05:41 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

its playing properly for me
Reply With Quote
  #294  
Old 02-08-2005, 06:07 AM
WiseOwl WiseOwl is offline
 
Join Date: Oct 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good deal.. thanks again Tafix and as soon as I got some extra loot, I got cha man..

Is there away to edit a category? and a form for leaving feedback on a song would be cool too, oh and a "date posted" column would be ideal
Reply With Quote
  #295  
Old 02-08-2005, 06:14 AM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you announce each song then that thread can be used for the feedback

to change the category of a song ... simply edit the song in the admin cp and either select a genre from the list or enter a new genre name
Reply With Quote
  #296  
Old 02-09-2005, 11:11 AM
WiseOwl WiseOwl is offline
 
Join Date: Oct 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yo Trafix... set my Jukebox to "members only" to kinda give incentive to register, well found a problem..

When a guest or unregistered member clicks on one of the songs to play it and I have the setting set to the 3rd setting which is "On - For members only" not the "On - For members (Credits Required)" it counts the play as a negative play... is there a quick fix for that???????
Reply With Quote
  #297  
Old 02-09-2005, 12:18 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm, i will have to look into it
Reply With Quote
  #298  
Old 02-09-2005, 12:21 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok try this .. open vb_jukebox and remove (aroung line 300)
PHP Code:
// because the jukebox is using credits this overrides the usergroup permissions
    
if ($vboptions[jb_mode] == "3" AND $bbuserinfo[userid] > "0" AND $mysong "0")
    {
        if (
$bbuserinfo[vbt_adcredit] > $vboptions[jb_cost])
        {
            
$DB_site->query("
                UPDATE " 
TABLE_PREFIX "user 
                SET vbt_adcredit = vbt_adcredit - 
$vboptions[jb_cost] 
                WHERE userid = 
$bbuserinfo[userid]
            "
);
        }
        else
        {
            
$DB_site->query("
                UPDATE " 
TABLE_PREFIX "vb_jukebox_trax 
                SET plays = plays - 1 
                WHERE songid = 
$mysong
            "
);
            
            
$mostplayed[plays] = $mostplayed[plays] - 1;
            
$canplay "2";
            
$warning "1";
            
$warningdesc "$vbphrase[jb_need_credits]";
            
$songdetails "$vbphrase[jb_nothing]";
        }
    } 
Reply With Quote
  #299  
Old 02-09-2005, 01:45 PM
spence2 spence2 is offline
 
Join Date: Jun 2002
Location: usa
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trafix,

As an admin when a user uploads a song and I approve it ... is there any way for me to know what category the user intended for the song? Thanks.
Reply With Quote
  #300  
Old 02-09-2005, 01:57 PM
dhurd dhurd is offline
 
Join Date: Jan 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

trafix,
I don't know if you can help with this or not. I am having trouble with the installer. I renamed my admincp directory when I installed vB so I think this may be causing a problem. When I run "forum/install/hack_install.php" script I get the following error:

Warning: chdir(): No such file or directory (errno 2) in c:\inetpub\...\install\his_files\hack_install_b3.p hp on line 32

Warning: main(./global.php): failed to open stream: No such file or directory in c:\inetpub\...\install\his_files\hack_install_b3.p hp on line 34

Fatal error: main(): Failed opening required './global.php' (include_path='.;c:\php4\pear') in c:\inetpub\...\install\his_files\hack_install_b3.p hp on line 34


I looked at the line of code it was referencing and it was using the variable $admincpdir. I looked at this variable and the value is "admincp" which is incorrect because I had renamed my admincp directory. So I hardcoded the name of my directory into the line which let me at least attempt to run the installer but now when I run it I get the following errors:


<?php

// Templates

Warning: Invalid argument supplied for foreach() in \his_files\hack_creator_b2.php on line 161
?>


and


<?php

// Phrases
Warning: Invalid argument supplied for foreach() in \his_files\hack_creator_b2.php on line 203
?>


and


Warning: halt(./includes/functions_log_error.php): failed to open stream: No such file or directory in c:\inetpub\...\includes\db_mysql.php on line 389

Warning: halt(): Failed opening './includes/functions_log_error.php' for inclusion (include_path='.;c:\php4\pear') in c:\inetpub\...\includes\db_mysql.php on line 389


And then an SQL error:

Database error in vBulletin 3.0.6:

Invalid SQL: SELECT varname, text FROM phrase WHERE varname IN () ORDER BY languageid DESC
mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY languageid DESC' at line 1

mysql error number: 1064

Date: Wednesday 09th of February 2005 08:51:18 AM
Script: http://.../install/hack_install.php
Referer: http://.../install/hack_install.php


Any ideas on what is going on? I know this is probably an installer problem but I looked at the thread for the installer and didn't really find any help. I'm not a php programmer so I'm pretty lost as far as debugging the scripts to find out whats going on.

Any help will be appreciated.

Regards,
Dan Hurd
DWE
www.smallrc.com
Reply With Quote
  #301  
Old 02-09-2005, 07:30 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by spence2
Trafix,

As an admin when a user uploads a song and I approve it ... is there any way for me to know what category the user intended for the song? Thanks.
No the user cant select the genre .... the songs are put into a genra called "A new song" so you can find new uploads easily ... you can hear the song by clicking on the title in the admin song list ... then decide for yourself
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 11:26 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.05917 seconds
  • Memory Usage 2,332KB
  • Queries Executed 27 (?)
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
  • (3)bbcode_php
  • (1)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
  • (2)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_postinfo_query
  • fetch_postinfo
  • 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