Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
MP3 Playlist , Player from YoBroMoFo Details »»
MP3 Playlist , Player from YoBroMoFo
Version: 3.00, by TimberFloorAu TimberFloorAu is offline
Developer Last Online: Jan 2013 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.7.2 Rating:
Released: 09-03-2008 Last Update: 09-05-2008 Installs: 7
Uses Plugins Template Edits
Additional Files  
No support by the author.

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') . '");');
 
?>
Step 2.
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>
Note : In this code it says $bbuserinfo[field16]

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-->
Scroll down the page, and look for ::
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>
After add:
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-->
Save.

Step 5.

Goto FORUMHOME template

find
Code:
</head>
JUST before it add.
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-->
FINISHED !

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

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

Comments
  #2  
Old 09-04-2008, 04:11 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved ***
Reply With Quote
  #3  
Old 09-04-2008, 01:51 PM
Markos Markos is offline
 
Join Date: Aug 2006
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks installed
Reply With Quote
  #4  
Old 09-04-2008, 09:48 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Markos

We will be adding Proile and Postbit options in the coming days.

Ste
Reply With Quote
  #5  
Old 09-05-2008, 06:50 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Modification upgraded.


******************
* Postbit Integration *
******************

1 template to edit.
add small code.
Click save

How to?

download and unzip Postbit_playlist_addon_YBMF

Follow the instructions.
Copy the code and paste into your postbit_legacy ( should work exactly the same for postbit )

Ensure you edit the field id to match the field id you created when installing our Playlist Modification.

Save.

RUN !

Job done.

What will happen?

Okies, if a user has a playlist saved in their userpanel, the My Playlist text will appear in their postbit. If they dont... nothing will appear !

Simple !
Fun !
Easy !
Fast !

Say no more
Enjoy.
Those not clicking install, sorry we cannot help with technical issues.

Ozzy

We will be adding code to Play others Playlists in postbit too. ( to follow )
Reply With Quote
  #6  
Old 09-05-2008, 09:44 PM
Preech Preech is offline
 
Join Date: Aug 2002
Location: Fort Campbell
Posts: 325
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sounds like a interesting mod. Just might be what I need.
Reply With Quote
  #7  
Old 09-05-2008, 10:03 PM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thankyou.

We are still improving this mod, and will notify all installed members , as soon as possible.
Reply With Quote
  #8  
Old 09-05-2008, 10:30 PM
JesusLiv3s JesusLiv3s is offline
 
Join Date: Feb 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Keep up the good work buddy, I'm not going to install just yet, as I'd like you wait until you finish integrating it with everything properly, but I would definitely install it when your done.
Reply With Quote
  #9  
Old 09-06-2008, 01:25 AM
TimberFloorAu's Avatar
TimberFloorAu TimberFloorAu is offline
 
Join Date: May 2008
Location: Brisbane
Posts: 2,264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mate.

I have upgraded the player today, in popout with css.

If anyone would like to try it. 3 changes necessary

a css file included for you to upload to your forum/css directory

Locate the playlist template you uploaded and replace the code with the following code.


1. upload the enclosed playlist.css to your forum/css directory.
2. copy the enclosed playlist ( template ) text into your Styles&Templates>your template>playlist --- template that you created.
*****Be sure to change the css url to point to your css url*****

Example : www.yourwebsite.com/forum/css/playlist.css

3. goto styles and templates>your style>navbar

Find:<!--playlist popup-->blah blah blah <!--end of playlist popup-->

replace with

Code:
<!--playlist popup-->
<script type="text/javascript">
function openpopup(popurl){
var winpops=window.open(popurl,"","width=420,height=250")
}
</script>
<!--end of playlist popup-->
Sorted.

You may wish to change the top url, in the playlist player. Thats FINE
Please dont change the bottom link under the playslist player, as this gives other members of yours the link to www.aussietrance.com to create a playlist .


Now Player Customization.

Search for
Code:
backcolor=0xff9900
in the playlist_template_change within the zip I have just uploaded.
This is the hex colour for your player.
This can be changed to ANY hex colour you want.

Please note you will need to change background colours in the css file you uploaded.

Look for:
Code:
background: #000000;
and change to a hex colour that suits your style.

Hope that Helps

More updates will be added.
Reply With Quote
  #10  
Old 09-07-2008, 11:06 AM
FiMeTi FiMeTi is offline
 
Join Date: May 2008
Location: Germany
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks nice man .. good job
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 01:59 PM.


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.04618 seconds
  • Memory Usage 2,312KB
  • Queries Executed 24 (?)
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
  • (10)bbcode_code
  • (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
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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