The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
MP3 Playlist , Player from YoBroMoFo Details »» | |||||||||||||||||||||||||||
MP3 Playlist , Player from YoBroMoFo
Developer Last Online: Jan 2013
Mp3 Playlist Flash Player
If you do not click INSTALL no help will be provided. Do NOT remove Copyright information or our small link ! What is this:? Ok its The AussieTrance MP3 Playlist Vbulletin Integration. Its brilliant, fast fun and free. Listen to music whilst on your forum, add to your playlist, remove items, members stay on your forum for longer ! Ok second stab at integrating the www.aussietrance.com playlist player onto your Vbulletin forum. Please note this is tested on Vb 3.7.x only. Credits goto: DigitalJedi ( for help with code ) Gary King ( Your own Vbulletin Powered Page ) All of the members on www.yobromofo.com for putting up with my Guinnea Pig Trials. Okay. This is quite extensive but easy to do, just follow the steps. Step 1. Create your own vbulletin powered page, and call it: playlist.php Here is the code I use. Just copy and paste it into notepad, or other text editor, then upload via ftp to your forum root, example ( forum/playlist.php ) Code:
<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'playlist'); // change this depending on your filename // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array( ); // get special data templates from the datastore $specialtemplates = array( ); // pre-cache templates used by all actions $globaltemplates = array( 'playlist', ); // pre-cache templates used by specific actions $actiontemplates = array( ); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### $navbits = array(); $navbits[$parent] = 'Aussie Trance Playlist'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('playlist') . '");'); ?> Creating a Vb Powered Page Template. Goto admincp>Styles and Templates>Style Manager>Your Style>All Style Options>Add New Template Title: playlist Template : add the code below Code:
<center> <embed src="http://www.aussietrance.com/playlistplayer.swf" width="400" height="145" allowscriptaccess="always" allowfullscreen="false" flashvars="height=145&width=400&file=http://www.aussietrance.com/includes/sources/playlistxml.php?id=$bbuserinfo[field16]&backcolor=0xCCCCCC&displaywidth=125&searchbar=false&showicons=false&showeq=true&showdownload=true&thumbsinplaylist=false&autostart=false&autoscroll=true" /><br><a href="http://www.aussietrance.com/" target="_new">Create your own FREE music playlist for your profile!</a></center> This you will need to change after the next step. OK Step 3. Admincp>User Profile Fields>Add New Profile Field Title: AussieTrance.com Vbulletin Playlist ID Description: Put your AussieTrance.com Playlist ID here. Max Length of Allowed user input: 100 Field Length: 25 Field Reqd: No Private Field : Yes Field Searchable on members List: No Show On Members List: No Click Save Now when you return to the Profile Field Manager screen, take note of the field Number example field16 Step Four: Now go back to your template playlist (find in Styles and Templates, your template search playlist ) Find $bbuserinfo[field16] and change the 16 to your number ! EASY Step 4. OK now thats ALL edits done... apart from we now need to edit Navigation Bar. This is also fairly easy. In your template:> navbar Add the code below to the very top of your template Code:
<!--playlist popup--> <script type="text/javascript"> function openpopup(popurl){ var winpops=window.open(popurl,"","width=450,height=180") } </script> <!--end of playlist popup--> Code:
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td> </tr> Code:
<!--menu for playlist--> <tr> <td class="vbmenu_option" > <a href="javascript:openpopup('playlist.php')">My Playlist</a> </td> </tr> <!--end of menu for playlist--> Step 5. Goto FORUMHOME template find Code:
</head> Code:
<!--playlist popup--> <script language="javascript" type="text/javascript"> <!-- var win=null; function NewWindow(mypage,myname,w,h,scroll,pos){ if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;} if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;} else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20} settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes'; win=window.open(mypage,myname,settings);} // --> </script> <!--end of playlist popup--> Now all your users need to do, is goto www.aussietrance.com , join up for FREE. Search and add tunes to their playlist. When they are done, they can click My Playlist They will see: Add My Playlist to Vbulletin post or Signature Underneath is their Playlist ID. Copy the ID. Come back to your forum, goto UserCP Edit your Details Scroll to the bottom, and Paste the ID into the Aussie Trance box. Thats it. Now when they are on your site, they can click the Playlist menu item, and their AussieTrance playlist will popup and begin playing. Its a brilliant CODE. I cannot convert to a product. As it does require template creation and template edits. Have Fun Ozzy *** We will be creating a Postbit Addon too *** SOON ********************** 5th September 2008 ********************** ADDED POSTBIT ADDON ********************** 6th September 2008 ********************** Added Product This product will display the users Playlist in their profile. It automatically pulls the info from their User Control Panel (fieldx) Full instructions enclosed. Please read ALL instructions. To Install :::::: Decompress the included Zip. 1. upload the product via admincp > Product manager > Upload product ( locate the product within this zip ) 2. follow the instructions in the Playlist Install Info , readme. Done. TODO:::: Currently this mod pulls the information from your own bbuser info, so when viewing another persons profile, your playlist is shown. Similarly other users, will see their playlist in your user profile. We will be looking for a code workaround on this asap. Supporters / CoAuthors Show Your Support
|
Comments |
#12
|
||||
|
||||
If you have installed, please click Installed Thanks
|
#13
|
||||
|
||||
Goto admincp>Styles and Templates>Style Manager>Your Style>All Style Options>Add New Template
I don't understand. I see Styles & Templates>Style Manager> ...Add New Template... I'm missing"Your Style>All Style Options> It seems pretty straight forward, but I don't see that. |
#14
|
||||
|
||||
Quote:
|
#15
|
||||
|
||||
Thanks so much!
I just got back from school...okay one more question. What's my ID# How do I get that? Find $bbuserinfo[field16] and change the 16 to your number ! color me stupid, I know, but I don't get it |
#16
|
||||
|
||||
Quote:
Quote:
You have a forum, your users may want to play music on a playlist they have created. So. You have to bridge the two. By creating a profile field, in profile field manager, we are assigning it a value, to be added or not. If nothing is added, nothing is displayed. Your users, then goto Aussietrance and create a playlist, which spits out a ID for them to use on your forum. By doing the Extra profile field above, ( obviously ) dependant on your forum, and config, your profile field for this, may be 27 or 12 or 178 , I have no idea, but VB creates and assigns a profile field number when you create that profile field. All you have to do, is take a note of the user profile field number ( lets say 27 ) And change my code accordingly, from 16 to 27 Simple, if you get stuck, send me a pm, and admin access, I will do template edits for you. Ste |
#17
|
||||
|
||||
Thank you!! You're a sweetheart. I think I get it now though
|
#18
|
||||
|
||||
No problems. Any issues please let me know, and if you use it, please mark installed.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|