PDA

View Full Version : Add-On Releases - XEON Mp3 Player in vBadvanced Center Block


syrus.xl
10-30-2006, 10:00 PM
Adding the XEON Mp3 Player to vBadvanced CMPS


Center Block Only CMPS Installation
Coded by Syrus XL Media
Digital Port UK (http://www.digitalport.co.uk)

Addon for the XEON Mp3 Player (https://vborg.vbsupport.ru/showthread.php?t=129641) (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.

Note: 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.

Color Matching the background: 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.

Creating the CMPS Block

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

Template details:
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:

<!-- 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

syrus.xl
10-30-2006, 10:02 PM
*Reserved*

shadowevil
10-30-2006, 11:44 PM
first post .... *installed*

GrendelKhan{TSU
10-31-2006, 06:54 AM
woot! now I can upgrade! thanks and great job...will let you know how it goes. ^^

<< install :)

natralis
10-31-2006, 07:13 AM
Installed, great Job.

Snake
10-31-2006, 12:14 PM
Thanks for the release! :)

radarhunter
10-31-2006, 01:03 PM
Thanks A Million

FFW
10-31-2006, 05:03 PM
This doesn't work for me. I get "null" on playlists. It doesn't find the MP3 files for some reason. Was/is working fine in using the original pop-up.

http://img253.imageshack.us/img253/2170/screenshot1yu1.th.jpg (http://img253.imageshack.us/my.php?image=screenshot1yu1.jpg)

My template code:


<!-- Start XEON Player -->
<tr>
<script type="text/javascript" src="forums/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("forums/xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");
fo.addParam("quality", "high");
fo.write("xeon_player");
</script>

<!-- js flashobject -->
</td>
</tr>
<!-- End XEON Player -->

radarhunter
10-31-2006, 05:11 PM
working fine wit me

Lionel
10-31-2006, 05:33 PM
It will not work if you also have a link in the navbar. This is why you are getting a Null message

FFW
10-31-2006, 05:46 PM
Doesn't work with or without a link in the navbar. I've tried that.

ed146
11-01-2006, 12:53 AM
These instructions assume you have installed the vBa CMPS in the Forum root

Apologize in advance for asking a noob question but where do you download vba cmps? or does it come with 3.6 installation?

radarhunter
11-01-2006, 01:01 AM
go to www.vbadvanced.com site and you`ll find the software there

PtP
11-01-2006, 01:10 AM
Mine also does not show the mp3's on the portal but fine with original popup.

syrus.xl
11-01-2006, 06:41 AM
This doesn't work for me. I get "null" on playlists. It doesn't find the MP3 files for some reason. Was/is working fine in using the original pop-up.



Hi FFW,

A NULL value in the player indicates that the player is not connecting to the database. Make sure you change the 'forum_root' in the code to your own forum directory name.

If the code below doesn't work then I have another idea.

Try this code:

<!-- Start XEON Player -->
<tr>
<script type="text/javascript" src="/forum_root/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("/forum_root/xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");
fo.addParam("quality", "high");
fo.write("xeon_player");
</script>

<!-- js flashobject -->
</td>
</tr>
<!-- End XEON Player -->

Lionel
11-01-2006, 06:45 AM
I think there is some kind of conflict with both versions installed. Both, the popup in navbar and the vbadvanced returned NULL value. When I disabled one of them, the other worked, and vice versa.

FFW
11-01-2006, 03:42 PM
Hi FFW,

A NULL value in the player indicates that the player is not connecting to the database. Make sure you change the 'forum_root' in the code to your own forum directory name.

If the code below doesn't work then I have another idea.

Hi syrus, I had already done that in my code -- my forum root is "forums/". Also tried an absolute path but still nothing.

Lionel, I have disabled the original popup and tested but its still the same.

It would be good to know whether the people here who have it working have their CMPS in the same directory as their forums. I suspect this is the case and why a couple of us who have their forums in a sub-directory are having problems.

syrus.xl
11-02-2006, 12:21 AM
Hi syrus, I had already done that in my code -- my forum root is "forums/". Also tried an absolute path but still nothing.

Lionel, I have disabled the original popup and tested but its still the same.

It would be good to know whether the people here who have it working have their CMPS in the same directory as their forums. I suspect this is the case and why a couple of us who have their forums in a sub-directory are having problems.

I looked at one install this evening, where the vBa CMPS was installed outside the forum root, it is now working.

The actual launch link in the navbar for the main player was changed to a full url. It was showing a PHP error.

Entering the full url inside the javascript popup code seemed to have cured the problem.

FFW
11-02-2006, 08:46 PM
Hmm, I can't seem to get this to work in CMPS no matter what I do. I have tried placing absolute paths to all the files but alas I still get the null error. :(

syrus.xl
11-02-2006, 08:57 PM
Hmm, I can't seem to get this to work in CMPS no matter what I do. I have tried placing absolute paths to all the files but alas I still get the null error. :(

If you PM me your URL... I'll take a look tomorrow morning, getting pretty late here in the UK. Time I had a break.;)

It shouldn't cause problems, but sometimes its just simple things that are overlooked in most cases. But I will check your install for you.

A 'null' or 'NaN' normally derives if the player is not reading data correctly from the database. If it's a 'NaN' error then it could be a mistype on track adding. A 'NULL' or undefined is usually a database read problem.

Other errors occur from the way other addons have been installed, causing conflicts. One of which I had to fix with the flashobject.js file recently, that didn't like one of the vBulletin .js files.:confused:

threat
11-14-2006, 02:49 AM
How do i enable the flash and javascript?

syrus.xl
11-14-2006, 06:36 AM
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.

Greek76
11-15-2006, 09:01 AM
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?

syrus.xl
11-15-2006, 12:45 PM
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:
<script type="text/javascript" src="flashobject.js"></script>

to this:
<script type="text/javascript" src="http://www.mydomain.com/forum_name/flashobject.js"></script>

And also this line:
var fo = new FlashObject("xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");

to this:
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.

Lalib
11-15-2006, 04:51 PM
thanks man :)

Greek76
11-16-2006, 12:09 AM
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:
<script type="text/javascript" src="flashobject.js"></script>

to this:
<script type="text/javascript" src="http://www.mydomain.com/forum_name/flashobject.js"></script>

And also this line:
var fo = new FlashObject("xeon_mp3_beta.swf", "xeon_player", "450", "400", "8,0,0,0", "#f7f8fa");

to this:
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...

syrus.xl
11-16-2006, 12:20 AM
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.

Greek76
11-16-2006, 12:28 AM
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.

syrus.xl
11-16-2006, 12:50 PM
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).

:)

Greek76
11-16-2006, 11:46 PM
I've PM'd you and will take a look at it this evening (UK time).

:)

Thanks a lot buddy.

Stavs16
12-21-2006, 02:12 AM
hey syrus im getting this null problem too buddy, reuploaded everything again and still the same problem

do you think you can take a look at it

Stavs16
12-21-2006, 02:29 AM
i will pm you when requested and will give you the info to my database

Player-63
12-22-2006, 09:02 PM
NIS 2007 Detected a virus in mp3player_admin.php

See Attachment

loonytune15
01-02-2007, 05:14 AM
well I cant get the playlists to work in the cmps. Made the urls absolute, which got rid of the java/flash errors.

any ideas on the playlist yet?
I have 2 songs in the first playlist.
Can be found in my sig.

syrus.xl
01-02-2007, 09:32 AM
well I cant get the playlists to work in the cmps. Made the urls absolute, which got rid of the java/flash errors.

any ideas on the playlist yet?
I have 2 songs in the first playlist.
Can be found in my sig.

Did you make the url to the Player.swf absolute? The player will only work if it is located in the same dir as the php files that populate the playlists.

loonytune15
01-02-2007, 03:09 PM
both are absolute, but the playlists just done appear.

afmarko99
01-22-2007, 03:44 PM
Installed = couldn't upload mp3s.
Re-installed = couldn't upload mp3s.

Error=

Database error in vBulletin 3.6.4:

Invalid SQL:
insert into mp3playlist values(

'','http://www.thepublicenemy.net/mp3/diaryofjane.mp3','true','5','',''

);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Monday, January 22nd 2007 @ 12:43:55 PM
Script : http://www.thepublicenemy.net/forum/admincp/mp3player_admin.php?do=do_add_playlist1
Referrer : http://www.thepublicenemy.net/forum/admincp/mp3player_admin.php?do=addplaylist1
IP Address : 72.198.34.221
Username : EaglezEye
Classname : vb_database

INTENSELIFE
02-08-2007, 10:40 AM
installed it and all i get is a big grey box

syrus.xl
02-08-2007, 04:51 PM
Installed = couldn't upload mp3s.
Re-installed = couldn't upload mp3s.

Error=

Database error in vBulletin 3.6.4:

Invalid SQL:
insert into mp3playlist values(

'','http://www.thepublicenemy.net/mp3/diaryofjane.mp3','true','5','',''

);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Monday, January 22nd 2007 @ 12:43:55 PM
Script : http://www.thepublicenemy.net/forum/admincp/mp3player_admin.php?do=do_add_playlist1
Referrer : http://www.thepublicenemy.net/forum/admincp/mp3player_admin.php?do=addplaylist1
IP Address : 72.198.34.221
Username : EaglezEye
Classname : vb_database

This error refers to another version of the modification

TeknoSounds
02-08-2007, 06:27 PM
Okay since I've narrowed it down to the CMPS player...

Works fine as a standalone with the navbar link, however doesn't work in the CMPS. Not an issue with being in the navbar as I was attempting to get it to work in the CMPS before I added a navbar link...also I don't have a navbar link in my default custom style.

The issue is there isn't any mp3s listed in the playlists, they all just say 'undefined'. Permissions are all set up and works fine in the regular player...

TeknoSounds
02-08-2007, 06:29 PM
Installed = couldn't upload mp3s.
Re-installed = couldn't upload mp3s.

Error=

Database error in vBulletin 3.6.4:

Invalid SQL:
insert into mp3playlist values(

'','http://www.thepublicenemy.net/mp3/diaryofjane.mp3','true','5','',''

);

MySQL Error : Column count doesn't match value count at row 1
Error Number : 1136
Date : Monday, January 22nd 2007 @ 12:43:55 PM
Script : http://www.thepublicenemy.net/forum/admincp/mp3player_admin.php?do=do_add_playlist1
Referrer : http://www.thepublicenemy.net/forum/admincp/mp3player_admin.php?do=addplaylist1
IP Address : 72.198.34.221
Username : EaglezEye
Classname : vb_database

see this thread and make the appropriate changes:
https://vborg.vbsupport.ru/showpost.php?p=1163668&postcount=473

Whitey193
07-10-2007, 04:16 PM
Okay since I've narrowed it down to the CMPS player...

Works fine as a standalone with the navbar link, however doesn't work in the CMPS. Not an issue with being in the navbar as I was attempting to get it to work in the CMPS before I added a navbar link...also I don't have a navbar link in my default custom style.

The issue is there isn't any mp3s listed in the playlists, they all just say 'undefined'. Permissions are all set up and works fine in the regular player...

I know this is a very old post but I have tried everything listed here to no effect. The navbar works perfectly with the playlists and adding MP3's. Althought the approve button doesn't seemt o work and I;ve had to turn it off otherwise I just can;t get the file authorised, I have to delete it, turn it off and then addd it again and It's fine.

One other point is that the flashobject.js file is actually located in the ..forum/clientscript/ folder as per the instructions to upload the file.

I've tried changing the path to this folder, absolute path and even copying the file across to the forum directory knowing it wouldn;t work but just in case.. Stranger things have happened.

I will say that this is an awesome mod and to be honest I;m not all that bothered if I can;t get it working on the CMPS.

i haven't tried it, but I would suggest that if it is re-installed in the root directory and not the forumm directory it would work in CMPS and you'd have to change the path on the navbar to get it to work. Not going to try to try it tho.

Whitey.. :eek:

angkor408
11-18-2007, 02:40 AM
I had follow the instruction exactly but my center block doesn't show. Is there anything's els I need to check?

Sean James
12-05-2007, 11:52 AM
Nice hack, installed it for a client ;)

Is there going to be a smaller version created so we can add it to the left or right columns?

syrus.xl
12-05-2007, 12:16 PM
There is a smaller version, but I never got around to releasing it. It looks similar to an iPod in style but is only around 190 pixels wide.

I'll see if I can find the source file, and update it before posting it as a release.

:)

bostton1
02-17-2008, 12:03 PM
There is a smaller version, but I never got around to releasing it. It looks similar to an iPod in style but is only around 190 pixels wide.

I'll see if I can find the source file, and update it before posting it as a release.

:)


did you ever find and update the smaller version?

thanks

syrus.xl
02-21-2008, 12:30 PM
I haven't updated it yet, mainly because of updating mods to work under 3.7

volitian
03-07-2008, 05:30 AM
Fantastic work matey thankyou!!

Bustah
07-25-2008, 12:42 AM
Its saying enable Javascript and Flash, but those are already enabled.

All I did was make the module, is there more to it from the original hack that I'm missing?

My forums are stored in the /boards directory.

syrus.xl
07-25-2008, 07:59 AM
Hi,

Check this post to see if it helps.

http://www.digitalport.co.uk/digital/vbulletin-modification-support/75135-help-vbmp3.html#post197906

If that doesn't solve the issue then get back to me.

Bustah
07-25-2008, 06:46 PM
It didn't work.

My portal is at thegwa.org/portal.php

The jukebox is in the very top left.

This is my headinclude template after the edit. The edit makes a reference to clientscript/flashobject.js, but I don't have that file in there. Am I supposed to?

<meta http-equiv="Content-Type" content="text/html; charset=$stylevar[charset]" />
<meta name="generator" content="vBulletin $vboptions[templateversion]" />
<if condition="$show['threadinfo']">
<meta name="keywords" content="$threadinfo[title], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$threadinfo[title] $foruminfo[title_clean]" />
<else />
<if condition="$show['foruminfo']">
<meta name="keywords" content="$foruminfo[title_clean], $vboptions[keywords]" />
<meta name="description" content="<if condition="$pagenumber>1"><phrase 1="$pagenumber">$vbphrase[page_x]</phrase>-</if>$foruminfo[description_clean]" />
<else />
<meta name="keywords" content="$vboptions[keywords]" />
<meta name="description" content="$vboptions[description]" />
</if>
</if>

<!-- CSS Stylesheet -->
$style[css]
<if condition="is_browser('opera') AND !is_browser('opera', '8.0.1')">
<style type="text/css">
ul, ol { padding-left:20px; }
</style>
</if>
<!-- / CSS Stylesheet -->
<script type="text/javascript">
<!--
function who_rated_member(userid)
{
return openWindow(
'misc.php?' + SESSIONURL + 'do=who_rated_member&u=' + userid,
230, 300
);
}

function who_viewed_member(userid)
{
return openWindow(
'misc.php?' + SESSIONURL + 'do=who_viewed_member&u=' + userid,
230, 300
);
}
// -->
</script>

<script type="text/javascript">
<!--
var SESSIONURL = "$session[sessionurl_js]";
var IMGDIR_MISC = "$stylevar[imgdir_misc]";
var vb_disable_ajax = parseInt("$vboptions[disable_ajax]", 10);
// -->
</script>
<script type="text/javascript" src="clientscript/flashobject.js"></script>
<script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
<if condition="$show['popups']"><script type="text/javascript" src="clientscript/vbulletin_menu.js?v=$vboptions[simpleversion]"></script></if>
<if condition="$vboptions['externalrss']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS2" />
<if condition="$show['foruminfo'] OR $show['threadinfo']">
<link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] - $foruminfo[title_clean] - RSS Feed" href="external.php?type=RSS2&amp;forumids=$foruminfo[forumid]" />
</if>
</if>

Bustah
07-28-2008, 01:30 AM
Anyone?

Zapper1
07-31-2008, 03:30 PM
Where can I get free mp3 music urls from having a hard time finding any.

panraf
02-26-2009, 12:19 PM
I have installed the hack and its playing fine when i am opening that from navbar but it shows undefined on the playlists in the cmps block whatever i have try to do.
I disabled the navbar options, i put the full url on the collumns, nothing...Has anyone made it working on the cmps center page? I have vbulletin 3.8.0 and cmps 3.1 installed.

syrus.xl
02-26-2009, 06:30 PM
I have installed the hack and its playing fine when i am opening that from navbar but it shows undefined on the playlists in the cmps block whatever i have try to do.
I disabled the navbar options, i put the full url on the collumns, nothing...Has anyone made it working on the cmps center page? I have vbulletin 3.8.0 and cmps 3.1 installed.

Fixed via PM.
Re-compiled SWF file, locking domain & adding absolute url calls.