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
  #432  
Old 03-07-2005, 11:44 AM
spence2 spence2 is offline
 
Join Date: Jun 2002
Location: usa
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel
Is there a way to make the genres collapsible by default? That should help with the long page problem.
Here.
Reply With Quote
  #433  
Old 03-07-2005, 11:56 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you spence2
Reply With Quote
  #434  
Old 03-07-2005, 12:50 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

spence2, would it be possible to make the Genre clickable and expand it, instead of the icon?

never mind, the answer was under my nose...
Reply With Quote
  #435  
Old 03-07-2005, 02:38 PM
Blam Forumz Blam Forumz is offline
 
Join Date: Jun 2004
Posts: 554
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do I remove all the Jukebox database entries without going into PHPMyAdmin (because i always mess up things there)

Thanks.
Reply With Quote
  #436  
Old 03-08-2005, 01:43 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there any reason why a 2.7 meg mpeg movie would play only half the file and then ends? On my desktop it plays the full movie.
Reply With Quote
  #437  
Old 03-08-2005, 03:01 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of all, this is not from me. I merely took the who's online arcade hack and made it for jukebox. I thought that was neat and I want to share.

step 1- create new template jb_jukebox_loggedinuser and put this in there

PHP Code:
<a href="member.php?u=$loggedin[userid]">$loggedin[musername]</a>$loggedin[invisiblemark]$loggedin[buddymark
Step 2 add this in template jb_JUKEBOX where you want to display it
PHP Code:
<br />
<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%" align="center">
         <
tr>
             <
td class="thead" align=left>Users Currently Listening to Music Total Users$totalonlineMembers: <b>$numberregistered </b> | Visiting Guests: <b>$numberguest </b>&nbsp;
)</
td>
            </
tr>
            <
tr>
             <
td class="alt1">$activeusers
 
                
</td>
            </
tr>
        </
table
Step 3 put this in the php file before
// ###################### Start Main ###########################################

PHP Code:
// ######################### BEGIN WHOIS ONLINE IN Jukebox #########################
$activeusers '';
if (
$vboptions['displayloggedin'])
{
$datecut TIMENOW $vboptions['cookietimeout'];
$numbervisible 0;
$numberregistered 0;
$numberguest 0;
$forumusers $DB_site->query("
SELECT
user.username, (user.options & 
$_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
session.userid, session.inforum, session.lastactivity,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " 
TABLE_PREFIX "session AS session
LEFT JOIN " 
TABLE_PREFIX "user AS user ON(user.userid = session.userid)
WHERE session.lastactivity > 
$datecut and session.location like '%vb_jukebox%'
iif($vboptions['displayloggedin'] == 1"ORDER BY username ASC") . "
"
);
if (
$bbuserinfo['userid'])
{
// fakes the user being online for an initial page view of arcade.php
$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
$userinfos = array
(
$bbuserinfo['userid'] => array
(
    
'userid' => $bbuserinfo['userid'],
    
'username' => $bbuserinfo['username'],
    
'invisible' => $bbuserinfo['invisible'],
    
'inforum' => 0,
    
'lastactivity' => TIMENOW,
    
'usergroupid' => $bbuserinfo['usergroupid'],
    
'displaygroupid' => $bbuserinfo['displaygroupid'],
)
);
}
else
{
$userinfos = array();
}
$inforum = array();
while (
$loggedin $DB_site->fetch_array($forumusers))
{
$userid $loggedin['userid'];
if (!
$userid)
// Guest
$numberguest++;
$inforum["$loggedin[inforum]"]++;
}
else if (empty(
$userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
{
$userinfos["$userid"] = $loggedin;
}
}
foreach(
$userinfos AS $userid => $loggedin)
{
$numberregistered++;
if (
$userid != $bbuserinfo['userid'])
{
$inforum["$loggedin[inforum]"]++;
}
$loggedin['musername'] = fetch_musername($loggedin);
if (
fetch_online_status($loggedin))
{
$numbervisible++;
eval(
'$activeusers .= ", ' fetch_template('jb_jukebox_loggedinuser') . '";');
}
}
 
unset(
$userinfos$loggedin);
$activeusers substr($activeusers 2); 
$DB_site->free_result($loggedins);
$totalonline $numberregistered $numberguest;
$numberinvisible $numberregistered $numbervisible;
$maxusers unserialize($datastore['aaamaxloggedin']);
if (
intval($maxusers['aaamaxonline']) <= $totalonline)
{
$maxusers['aaamaxonline'] = $totalonline;
$maxusers['aaamaxonlinedate'] = TIMENOW;
build_datastore('aaamaxloggedin'serialize($maxusers));
}
$recordusers $maxusers['aaamaxonline'];
$recorddate vbdate($vboptions['dateformat'], $maxusers['aaamaxonlinedate'], true);
$recordtime vbdate($vboptions['timeformat'], $maxusers['aaamaxonlinedate']);
$show['loggedinusers'] = true;
}
else
{
$show['loggedinusers'] = false;
}
// ###################### Start of getOnlineStatus #######################
function fetch_online_status(&$user$setstatusimage false)
{
global 
$bbuserinfo$permissions$vboptions$stylevar$vbphrase;
static 
$buddylist$datecut;
// get variables used by this function
if (!is_array($buddylist))
{
$datecut TIMENOW $vboptions['cookietimeout'];
if (
$bbuserinfo['buddylist'] = trim($bbuserinfo['buddylist']))
{
$buddylist preg_split('/\s+/'$bbuserinfo['buddylist'], -1PREG_SPLIT_NO_EMPTY);
}
else
{
$buddylist = array();
}
}
// is the user on bbuser's buddylist?
if (in_array($user['userid'], $buddylist))
{
$user['buddymark'] = '+';
}
else
{
$user['buddymark'] = '';
}
// set the invisible mark to nothing by default
$user['invisiblemark'] = '';
$onlinestatus 0;
// now decide if we can see the user or not
if ($user['lastactivity'] > $datecut AND $user['lastvisit'] != $user['lastactivity'])
{
if (
$user['invisible'])
{
if ((
$permissions['genericpermissions'] & CANSEEHIDDEN) OR $user['userid'] == $bbuserinfo['userid'])
{
    
// user is online and invisible BUT bbuser can see them
    
$user['invisiblemark'] = '*';
    
$onlinestatus 2;
}
}
else
{
// user is online and visible
$onlinestatus 1;
}
}
if (
$setstatusimage)
{
eval(
'$user[\'onlinestatus\'] = "' fetch_template('postbit_onlinestatus') . '";');
}
return 
$onlinestatus;
 
}
// ######### end of Get online Status
// ######################### END WHOIS ONLINE IN jukebox##################### 

Next, since I have flashchat, I will make it clicking on username starts a chat.
Reply With Quote
  #438  
Old 03-08-2005, 05:42 AM
TCB's Avatar
TCB TCB is offline
 
Join Date: Jun 2004
Location: the Netherlands
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow! This really is a major addition! Excellent work
Reply With Quote
  #439  
Old 03-08-2005, 12:15 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By theway-- I finally got some help with mine and the problem was the installer. It was not making all the querrys....

-
Reply With Quote
  #440  
Old 03-08-2005, 12:38 PM
J.C.'s Avatar
J.C. J.C. is offline
 
Join Date: Apr 2003
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm about to install this, but, do I have to install HIS and Dual Navigation first?

Can I install it without the two?

Thanks in advance.
Reply With Quote
  #441  
Old 03-08-2005, 09:10 PM
qhoa qhoa is offline
 
Join Date: Jul 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have set only members login can listen to vb jukebox, but after i login with my username i still have this msg
You are not permitted to listen to the Jukebox.
Please ask about upgrading your membership.
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 08:34 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.05295 seconds
  • Memory Usage 2,377KB
  • 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_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_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