Thread: Mini Mods - vbMp3 & XEON vbMp3 Player
View Single Post
  #2  
Old 09-04-2006, 09:07 PM
syrus.xl's Avatar
syrus.xl syrus.xl is offline
 
Join Date: Jun 2005
Location: In a cyber world...
Posts: 999
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Adding the vbMp3 Player to vBadvanced CMPS


CMPS Installation

These instructions are based on vBulletin 3.6 and using CMPS 2.2

This package contains all files needed to enable the vbMp3 Player to work in a left or right block. To compensate for the default 175px block width, the player dimensions have been reduced, as opposed to the popup version. You may adjust them if you wish to the default values of width 190 by height 430, but note you will also need to change your default CMPS Block width.

The template code uses the supplied flashobject.js to call the vbPlayer.swf, this fixes the issue with view the player in Internet Explorer 6.0 and above. There is some text in the code “Warning!!! To view this vbMp3 Player please enable JavaScript and Flash ! “, this will only display if a person views your site with javascript and flash disabled. You can change this line of text to what you would like to display to visitors. The flashobject.js file will detect if the person has javascript and flash enabled, and will either display the text or the mp3 player automatically.

For Stream & Buffer settings read the main modication details above.

Files included in this package:

vbPlayer.swf
plylist.xml
flashobject.js

Upload these 3 files to the root of your forum, if your main cmps_index.php file is located within the forum directory. Else upload them to domains root directory.

The vbplayer.swf supplied in this package is the autoStart version, meaning it will automatically start buffering the mp3's on page load. It also has 'shuffle' disabled. If you want the 'shuffle' version of the player download the main zip file.

Creating the CMPS Block

Login in to AdminCP -> vBa CMPS -> Add Module
Select Module Type: ‘Template’

Template details:
Module Title: vbMp3 Player
Column: Left or Right (Your preference)
Display Order: (Your preference)
Active: Yes
Update All Pages: (Your preference)

Template to Include: adv_portal_vbmp3player
Style: (select your style you wish to add this module to)
Template Content: Copy and paste all of the following code:

Code:
<!-- Start vbMp3 Player -->
<tr>
<script type="text/javascript" src="flashobject.js"></script>

</tr>
	</thead>

	<tr>
		<td class="$getbgrow">
<!-- js flashobject -->

<div align="center" width="100%" id="vbMp3_player">
Warning!!! To view this vbMp3 Player please enable JavaScript and Flash ! 
</div>
      <script type="text/javascript">
   var fo = new FlashObject("vbPlayer.swf", "vbMp3_player", "170", "383", "8,0,0,0", "#666666");
   fo.addParam("quality", "high");
   fo.write("vbMp3_player");
      </script>

<!-- js flashobject -->
		</td>
	</tr>
<!-- End vbMp3 Player -->
Use Module Shell Template: Yes

Set Usergroups as you wish.

Click Save and you are finished.


A Pro version of this add-on will be available soon, giving many more extra features, and control.

If you wish to be kept up-to-date with new enhancements to this modification please click Install.

This mod is fully supported only vbulletin.org

DEMO: http://www.digitalport.co.uk/vb36/?styleid=1
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01638 seconds
  • Memory Usage 1,780KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete