Jump to content

hexcode

Members
  • Posts

    10
  • Joined

  • Last visited

hexcode's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. No such luck. Adding that closing tag didn't help. Thanks though.
  2. Thank you for finding the reason out. Kind of had a feeling that line was causing the rest of the config.xml file to not load. Just wondering, are you experienced with Flash coding/modifying? There are three of four changes I need done to the player to make it work for me. I wanted to know if you could or would be interested in help me making them (although I'm very basic with flash) or might consider looking into making them (I have all the raw files I could send you)?
  3. That's true I guess. It just used to work of my previous music player so I was wondering why it was not working with this newer music player.
  4. Hi, Yes, it is. Just the music player's playlist is blank (which mean the XML file is not loading) when I add the additional <?xml tag to the top. The purpose of the .xsl tag is to now allow the xml page to be viewable if you use its url address. Part of the XSL file has: <meta http-equiv="refresh" content="0; url=http://www.mywebsite.com/"></meta>
  5. <?xml-stylesheet href="/player.xsl" type="text/xsl"?> <config> <auto_start>false</auto_start> <player_skin>/test.swf</player_skin> <main_title>Test</main_title> <playlist_title>PLAYLIST</playlist_title> <time_text>TOTAL TIME</time_text> <pan_labels>L,R</pan_labels> <scroller_speed>1</scroller_speed> <scroller_marquee_content>#TRACK_NAME#</scroller_marquee_content> <repeat_is_enabled>false</repeat_is_enabled> <shuffle_is_enabled>false</shuffle_is_enabled> <default_volume>75</default_volume> <default_pan>0</default_pan> <play_list> <item>test.mp3;Test Soundtrack</item> </play_list> </config> Hi, The above code is from an XML file and I added the <?xml line of code to the XML file, but doing so causes the whole page to no longer display the track information (just blank). Is there there a way I could modify that text to try and call it another way? Thanks
  6. Thanks for everyone's help, but I found the problem. I was missing a tag that I thought would not be needed. <div id=\"flashcontent\"><strong>You need to upgrade your Flash Player</strong></div>
  7. Yup, it works. False when logged out and True when logged in. I already knew the base script worked. The problem is the new way of calling this swf player. Just so you can try this on your end, the script is here: http://www.tufat.com/script146.htm Click the try it free link or use http://www.tufat.com/files_lgpl/script_146.zip That way you can try the call the music player on your own server using my modified php. I think the problem is this just the way this swf scrip is called. Because on my old music player the "object" based calling worked while the new way of calling this swf with javascript does not load right when in php. <script type=\"text/javascript\"> var multiplayer = new SWFObject(\"player.swf?xml=config.xml&player_skin=skin.swf\", \"multiVideoPlayer\", \"361\", \"283\", \"7\", \"#FFFFFF\", true); multiplayer.write(\"flashcontent\"); </script>
  8. Hi, Thanks you for trying, but this also returns an blank page.
  9. <?php if($user->data['is_registered']) { echo "<html> <head> <script type=\"text/javascript\" src=\"swfobject.js\"></script> </head> <body> <script type=\"text/javascript\"> var multiplayer = new SWFObject(\"player.swf?xml=config.xml&player_skin=skin.swf\", \"multiVideoPlayer\", \"361\", \"283\", \"7\", \"#FFFFFF\", true); multiplayer.write(\"flashcontent\"); </script> </body> </html>"; } else { echo '<html> <head></head> <body>Please login to access this page.</body> </html>'; } ?> Hi, Above is a slimmed down version of the full file. How it works is if the user is logged in, it will display the Javascript section. If not, it will ask them to log in. I used to call the the swf file a different way using "object" as seen below, but this is a complete different swf setup and I can not use the old call system. <html> <head> <script type=\"text/javascript\">if (top.frames.length!=0) top.location=self.document.location;</script> </head> <body> <object type=\"application/x-shockwave-flash\" data=\"player.swf\" width=\"325\" height=\"235\"> <param name=\"movie\" value=\"player.swf\"></object> </body> </html>
  10. <html> <head> <script type=\"text/javascript\" src=\"swfobject.js\"></script> </head> <body> <script type=\"text/javascript\"> var multiplayer = new SWFObject(\"player.swf?xml=config.xml&player_skin=skin.swf\", \"multiVideoPlayer\", \"361\", \"283\", \"7\", \"#FFFFFF\", true); multiplayer.write(\"flashcontent\"); </script> </body> </html> Hi, Could anyone help make the above code run inside my PHP file? When loaded, I just get a blank page and I know the paths to files are correct. Thank you
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.