Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
XEON Mp3 Player in vBadvanced Center Block Details »»
XEON Mp3 Player in vBadvanced Center Block
Version: 1.00, by syrus.xl syrus.xl is offline
Developer Last Online: Apr 2016 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.2 Rating:
Released: 10-30-2006 Last Update: Never Installs: 43
Template Edits
 
No support by the author.

Adding the XEON Mp3 Player to vBadvanced CMPS


Center Block Only CMPS Installation
Coded by Syrus XL Media
Digital Port UK

Addon for the XEON Mp3 Player (vBulletin Integration version)

These instructions are based on vBulletin 3.6.2 and using CMPS 2.2.x

The template code uses the flashobject.js to call the xeon flash player, 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 XEON 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 your visitors. The flashobject.js file will detect if the person has javascript and flash enabled, and will either display the text or the Xeon player automatically.

[high]Note:[/high] These instructions assume you have installed the vBa CMPS in the Forum root. If you have installed outside the forum root, then the calls to the flashobject.js and the xeon.swf file will need updated relative paths.

[high]Color Matching the background:[/high] You will see in the code a HEX value '#666666' this parameter determines the background color of the player. Change this to another value, if you require an alternative color background. Ideal program for color capture in HEX and RGB values is Color Cop (do a search on Google), this is a free little utility.

[high]Creating the CMPS Block[/high]

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

[high]Template details:[/high]
Module Title: XEON Player (Change this if required)
Column: Left or Right (Your preference)
Display Order: (Your preference)
Active: Yes
Update All Pages: (Your preference)

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

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

</tr>
	</thead>

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


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

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

Set Usergroups as you wish.

Click Save and you are finished.


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

This mod is supported only at vbulletin.org

CMPS DEMO: No longer available for this modification

Supporters / CoAuthors

Show Your Support

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

Comments
  #22  
Old 11-14-2006, 02:49 AM
threat threat is offline
 
Join Date: Jul 2005
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do i enable the flash and javascript?
Reply With Quote
  #23  
Old 11-14-2006, 06:36 AM
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

Quote:
Originally Posted by threat View Post
How do i enable the flash and javascript?
By default, both of these should be both enabled. Usually, this error happens if you have not installed the modification correctly. Check you have uploaded the javascript file 'flashobject.js' - this file is used to write the correct embed tag code, if its missing you will receive this error.
Reply With Quote
  #24  
Old 11-15-2006, 09:01 AM
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning!!! To view this vbMp3 Player please enable JavaScript and Flash!

It works fine on the forum but on cm this is the error message I get any ideas?
Reply With Quote
  #25  
Old 11-15-2006, 12:45 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

Quote:
Originally Posted by Greek76 View Post
Warning!!! To view this vbMp3 Player please enable JavaScript and Flash!

It works fine on the forum but on cm this is the error message I get any ideas?
I assume from the error message you do not have the vBa CMPS installed in the forum 'ROOT'. This is why this message will appear, since it uses a relative path to find the flashobject.js and swf files.

The easiest way around this issue is to change this line:
Code:
<script type="text/javascript" src="flashobject.js"></script>
to this:
Code:
<script type="text/javascript" src="http://www.mydomain.com/forum_name/flashobject.js"></script>
And also this line:
Code:
var fo = new FlashObject("xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");
to this:
Code:
var fo = new FlashObject("http://www.mydomain.com/forum_name/xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");
Now both lines are absolute urls and should cause no problems.
Reply With Quote
  #26  
Old 11-15-2006, 04:51 PM
Lalib's Avatar
Lalib Lalib is offline
 
Join Date: Mar 2006
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks man
Reply With Quote
  #27  
Old 11-16-2006, 12:09 AM
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl View Post
I assume from the error message you do not have the vBa CMPS installed in the forum 'ROOT'. This is why this message will appear, since it uses a relative path to find the flashobject.js and swf files.

The easiest way around this issue is to change this line:
Code:
<script type="text/javascript" src="flashobject.js"></script>
to this:
Code:
<script type="text/javascript" src="http://www.mydomain.com/forum_name/flashobject.js"></script>
And also this line:
Code:
var fo = new FlashObject("xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");
to this:
Code:
var fo = new FlashObject("http://www.mydomain.com/forum_name/xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");
Now both lines are absolute urls and should cause no problems.
That work but the problem is my playlists are not on the radio. what I did was I replaced ]<script type="text/javascript" src="http://www.mydomain.com/forum_name/flashobject.js"></script] to the name of my the name of my domain which is greekrealm.com/forum/flash ect... I removed the _name after forum that is the only way it showed up. But like I said no playlists...
Reply With Quote
  #28  
Old 11-16-2006, 12:20 AM
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

Quote:
Originally Posted by Greek76 View Post
That work but the problem is my playlists are not on the radio. what I did was I replaced ]<script type="text/javascript" src="http://www.mydomain.com/forum_name/flashobject.js"></script] to the name of my the name of my domain which is greekrealm.com/forum/flash ect... I removed the _name after forum that is the only way it showed up. But like I said no playlists...
Have you got guests viewing permissions set to on? Otherwise I'll need to check by using a test account.
Reply With Quote
  #29  
Old 11-16-2006, 12:28 AM
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl View Post
Have you got guests viewing permissions set to on? Otherwise I'll need to check by using a test account.
I can give you my user info its ok. I will send it to you in pm. Feel free to check it out whenever you like and thank you. Im sure its something minor like you stated but unfortunately I dont know much about coding sorry and thank you.
Reply With Quote
  #30  
Old 11-16-2006, 12:50 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

Quote:
Originally Posted by Greek76 View Post
I can give you my user info its ok. I will send it to you in pm. Feel free to check it out whenever you like and thank you. Im sure its something minor like you stated but unfortunately I dont know much about coding sorry and thank you.
I've PM'd you and will take a look at it this evening (UK time).

Reply With Quote
  #31  
Old 11-16-2006, 11:46 PM
Greek76's Avatar
Greek76 Greek76 is offline
 
Join Date: Aug 2006
Location: Planet Earth
Posts: 440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by syrus.xl View Post
I've PM'd you and will take a look at it this evening (UK time).

Thanks a lot buddy.
Reply With Quote
Reply

Thread Tools

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 05:02 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.04917 seconds
  • Memory Usage 2,320KB
  • Queries Executed 26 (?)
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
  • (9)bbcode_code
  • (7)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
  • (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