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
  #302  
Old 02-09-2005, 07:32 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 dhurd
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
Ummm, these installer files go into the "install" folder, not the "admincp" folder.

There is only 1 file that is uploaded to the admincp .. vb_jukebox_admin.php
Reply With Quote
  #303  
Old 02-09-2005, 09:10 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those who want to be able to install without using the HIS please read https://vborg.vbsupport.ru/showthrea...661#post609661
Reply With Quote
  #304  
Old 02-09-2005, 09:46 PM
WiseOwl WiseOwl is offline
 
Join Date: Oct 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still gettin negative plays after adding the code around line 300 in vb_jukebox.php take a peep at http://bb.hiphop.org/vb_jukebox.php
Reply With Quote
  #305  
Old 02-09-2005, 09:46 PM
spence2 spence2 is offline
 
Join Date: Jun 2002
Location: usa
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
Might you consider making this a feature for a future version? (fingers-crossed).

In my particular instance, my users will be uploading both published songs and original compositions ... and there is no way for me to tell the diff without some way for them to designate which genre.
Reply With Quote
  #306  
Old 02-09-2005, 09:47 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmmm ok ... i will look at it
Reply With Quote
  #307  
Old 02-09-2005, 09:48 PM
spence2 spence2 is offline
 
Join Date: Jun 2002
Location: usa
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You da MAN!
Reply With Quote
  #308  
Old 02-09-2005, 10:22 PM
dhurd dhurd is offline
 
Join Date: Jan 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Trafix,
I did migrate the HIS files into the install folder. I put all the other files in the zip within thier respective folders from the root of my directory.
What happened initally when I ran the script was I was getting an error because the script used the variable $admincpdir to set some other variables containing directory values. The problem is the $admincpdir in the script contains the value of "admincp" which is incorrect because I renamed my admincp folder during the inital vB install so that directory doesn't exist. I changed it by hard coding it to the correct folder name but then it produced errors once I checked the jukebox option and clicked install. I wonder if the installer script uses that variable elsewhere and it's causing the problems.
I will try the manual method. Thanks for the link.

Dan
Reply With Quote
  #309  
Old 02-09-2005, 10:37 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 dhurd
Trafix,
I did migrate the HIS files into the install folder. I put all the other files in the zip within thier respective folders from the root of my directory.
What happened initally when I ran the script was I was getting an error because the script used the variable $admincpdir to set some other variables containing directory values. The problem is the $admincpdir in the script contains the value of "admincp" which is incorrect because I renamed my admincp folder during the inital vB install so that directory doesn't exist. I changed it by hard coding it to the correct folder name but then it produced errors once I checked the jukebox option and clicked install. I wonder if the installer script uses that variable elsewhere and it's causing the problems.
I will try the manual method. Thanks for the link.

Dan
thats possible ... i havnt looked at the coding of the HIS
Reply With Quote
  #310  
Old 02-09-2005, 11:28 PM
WiseOwl WiseOwl is offline
 
Join Date: Oct 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Still gettin negative plays after replacing the original coding with the following coding, take a peep http://bb.hiphop.org/vb_jukebox.php still "-plays"

Quote:
Originally Posted by trafix
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
  #311  
Old 02-09-2005, 11:30 PM
trafix's Avatar
trafix trafix is offline
 
Join Date: Dec 2002
Location: Australia
Posts: 1,021
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not replace .... just remove the code from the file altogether
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:43 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.05455 seconds
  • Memory Usage 2,349KB
  • 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
  • (3)bbcode_php
  • (4)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_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