MP3 Player
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21178
Printed Date: 29 March 2026 at 12:52pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: MP3 Player
Posted By: numanme
Subject: MP3 Player
Date Posted: 31 August 2006 at 12:14am
|
Just added an MP3 player to my forum I was just wondering if someone would have a look and have a go at perfecting this as I have just whacked it together but it works. The player is from http://www.jeroenwijering.com/?item=Flash+Mp3+Player - http://www.jeroenwijering.com/?item=Flash+Mp3+Player
What I would like is for only members to view the player can anyone help, see the mp3 link in the menu
http://www.numanme.co.uk/forumme/mp3.asp - http://www.numanme.co.uk/forumme/mp3.asp
|
Replies:
Posted By: quaz
Date Posted: 01 September 2006 at 12:26am
id use <!--#include virtual="/Wherever your forum system is/common.asp" --> <% If lngLoggedInUserID <> "2" Then %> the mp3 system <% Else %> for unauthorized users <% End If %>
|
Posted By: numanme
Date Posted: 01 September 2006 at 2:01am
|
Sorry but without sounding dumb, I don’t understand ASP can someone give it a go
|
Posted By: jckruger
Date Posted: 05 September 2006 at 12:16am
|
I assume your buttons are in includes/navigation_buttons_inc.asp.
The line that has the response.Write for that button, just put this in front of it:
If lngLoggedInUserID <> 0 AND lngLoggedInUserID <> 2 AND blnActiveMember <> "False" Then
|
If no one knows the location of the MP3.asp file they won't know where it is. The above code should make the button hidden until the person is logged in. I have done this with all my buttons except for the register and login buttons until the person is logged on and then they appear.
Hope that's what you were after.
Cheers
Justin
|
Posted By: numanme
Date Posted: 05 September 2006 at 12:44am
|
thanks for that all is working well
|
Posted By: numanme
Date Posted: 05 September 2006 at 12:46am
|
If anyone is interested I will put up the files with some instructions
|
Posted By: jckruger
Date Posted: 05 September 2006 at 12:47am
|
That would be great.
Wow!!. You realy have put in a huge effort into your website. Impressive.
|
Posted By: numanme
Date Posted: 05 September 2006 at 2:24am
|
Give me about a week to put it together anyone up for testing
|
Posted By: numanme
Date Posted: 05 September 2006 at 2:26am
jckruger wrote:
That would be great.
Wow!!. You realy have put in a huge effort into your website. Impressive. |
i try thanks
|
Posted By: jckruger
Date Posted: 05 September 2006 at 2:29am
|
I'll give it a go. I am running my forum on my own 2003 server, Access Version.
|
Posted By: numanme
Date Posted: 05 September 2006 at 2:37am
|
Ok I will contact you when I have put it together and tidied it up a bit
|
Posted By: numanme
Date Posted: 10 September 2006 at 2:14am
|
http://www.numanme.co.uk/mp3player.zip - http://www.numanme.co.uk/mp3player.zip
Here it is I’m new to this and not very good with instructions
|
Posted By: javi712
Date Posted: 14 September 2006 at 2:22am
hi numanme... i just tried installing it and everything works fine except the actual mp3 player doesn't show up at all... all that shows is just a link...
FLASH MP3 PLAYER 2.3
any suggestions?
thanks in advance!
|
Posted By: jckruger
Date Posted: 15 September 2006 at 12:00am
|
It is showing the same for me too.
|
Posted By: numanme
Date Posted: 15 September 2006 at 2:15am
Posted By: numanme
Date Posted: 15 September 2006 at 2:21am
|
Sorry I,m new to all this I missed out a folder I just updated the zip download sorry, just put the folder scripts in your forum folder 
|
Posted By: numanme
Date Posted: 15 September 2006 at 2:24am
|
Love to see this working I was trying to add a pop button to the mp3 player to give the option to carry on listing and surfing the rest of the site, but I cant do it
|
Posted By: numanme
Date Posted: 15 September 2006 at 2:27am
|
Did I mention the player works from a play list very easy to edit you just add some links and text and you’re a way, get most of my links from http://search.singingfish.com/sfw/home.jsp - http://search.singingfish.com/sfw/home.jsp
|
Posted By: javi712
Date Posted: 15 September 2006 at 2:28am
hi numanme... i'm going to give it a try again to see if it works now
maybe the popup might work with javascript... let me get it working first and then we'll go from there to see if we can get it to pop up
|
Posted By: jckruger
Date Posted: 15 September 2006 at 3:34am
|
Mine didn't work until I changed the code from this line 118
<table border="0" width="13%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"> <noscript> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="200" id="mp3player" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 - http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 "> <param name="movie" value="mp3player.swf" /> <param name="wmode" value="transparent" /><embed src="mp3player.swf" wmode="transparent" width="300" height="200" name="mp3player" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer - http://www.macromedia.com/go/getflashplayer " /> </object> </noscript> <script language="JavaScript" type="text/javascript" > <!-- AC_RunFlContentX ("movie", "mp3player", "quality", "high", "bgcolor", "#000000", "src", "mp3player", "width", "300", "height", "200", "name", "mp3player", "id", "mp3player" ); //--> </script> </td>
|
To this
<table border="0" width="100%" cellspacing="5" cellpadding="0"> <tr> <td width="100%"> <table border="0" width="13%" cellspacing="0" cellpadding="0"> <tr> <td width="100%"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="200" id="mp3player" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 - http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 " > <param name="movie" value=" http://serverpath/mp3player.swf - http://serverpath/mp3player.swf " /> <param name="flashvars" value="config=http://serverpath/config.xml&file=http://serverpath/playlist.xml" /> <embed src=" http://serverpath/mp3player.swf - http://serverpath/mp3player.swf " width="300" height="200" name="mp3player" flashvars="config=http://serverpath/config.xml&file=http://serverpath/playlist.xml" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer - http://www.macromedia.com/go/getflashplayer " /> </object> <script language="JavaScript" type="text/javascript" > <!-- AC_RunFlContentX ("movie", "mp3player", "quality", "high", "bgcolor", "#000000", "src", "mp3player", "width", "300", "height", "200", "name", "mp3player", "id", "mp3player" ); //--> </script> </td>
|
|
Posted By: jckruger
Date Posted: 15 September 2006 at 6:46am
|
To make it a javascript popup you could do this
In navigation_buttons_inc.asp add this line.
If lngLoggedInUserID <> 0 AND lngLoggedInUserID <> 2 AND blnActiveMember <> "False" Then Response.Write (" <a href=""#MP3_Player#"" onclick=""javascript:window.open('mp3_pop.asp','MP3_Player','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=322,height=222')""class=""nav"" accesskey=""2""><img src=""" & strImagePath & "mp3player.gif"" border=""0"" align=""absmiddle""/>MP3 Player</a>")
|
Then create a new asp file called mp3_pop.asp or whatever you want and only put this in it. Remember to change the path of your servername.
Note: I have not tested this from a remote server just on my laptop with IIS.
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="200" id="mp3player" codebase=" http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 - http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0 " > <param name="movie" value=" http://serverpath/mp3player.swf - http://serverpath/mp3player.swf " /> <param name="flashvars" value="config=http://serverpath/config.xml&file=http://serverpath/playlist.xml" /> <embed src=" http://serverpath/mp3player.swf - http://serverpath/mp3player.swf " width="300" height="200" name="mp3player" flashvars="config=http://serverpath/config.xml&file=http://serverpath/playlist.xml" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer - http://www.macromedia.com/go/getflashplayer " /> </object>
|
If this works then post accordingly.
Please correct me if I am wrong.
Update: Actually I think it does work with the file locations being just the file and not the full internet address.
|
Posted By: numanme
Date Posted: 15 September 2006 at 1:22pm
|
I was trying to put the button under the player on the mp3 page
|
Posted By: numanme
Date Posted: 15 September 2006 at 3:18pm
|
Had a go at the pop up thing and this is what I have come up with hope it works
http://www.numanme.co.uk/forumme/mp3.asp - http://www.numanme.co.uk/forumme/mp3.asp
|
|