Author |
Message |
dcasmr
Worker


Joined: Feb 06, 2004
Posts: 147
|
Posted:
Mon Feb 07, 2005 8:31 am |
|
Hi,
I have purchased an mp3 player software (wimpy) however I am havind a hard time adding the generated skins codes to nuke system.
Anyone with experience doing susch thing? I tried creating a block, but, when I enable the block it displays the codes on the site instead.
Here are the generated skins codes:
Quote: | <!-- START WIMPY PLAYER CODE -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0"width="520" height="300" id="wimpy" align="center">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.mysite.com/FasoMusic/wimpy.swf?wimpyApp=http://www.mysite.com/FasoMusic/wimpy.php&wimpySkin=http://www.mysite.com/FasoMusic/skin_itune.xml&wW=520&wH=300&defaultVisualExt=jpg&theVolume=100&bufferAudio=0&infoDisplayTime=3&defaultPlayRandom=yes&autoAdvance=no&serveMP3=yes&useSysCodePage=yes" />
<param name="loop" value="false" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#000000" />
<param name="wmode" value="transparent" />
<embed src="http://www.mysite.com/FasoMusic/wimpy.swf?wimpyApp=http://www.mysite.com/FasoMusic/wimpy.php&wimpySkin=http://www.mysite.com/FasoMusic/skin_itune.xml&wW=520&wH=300&defaultVisualExt=jpg&theVolume=100&bufferAudio=0&infoDisplayTime=3&defaultPlayRandom=yes&autoAdvance=no&serveMP3=yes&useSysCodePage=yes" loop="false" menu="false" quality="high" wmode="transparent" width="520" height="300" scale="noscale" salign="lt" name="wimpy" align="center" bgcolor="#000000" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- END WIMPY PLAYER CODE --> |
thanks
dcasmr |
|
|
|
 |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Mon Feb 07, 2005 7:52 pm |
|
Like this ?
Code:
<?php
if (stristr($_SERVER['SCR IPT_NAME'], "block-Wimpy.php")) {
Header("Location: index.php");
die();
}
$content = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,47,0\"width=\"520\" height=\"300\" id=\"wimpy\" align=\"center\"> ";
$content .= "<param name=\"allowScriptAccess\" value=\"sameDomain\" /> ";
$content .= "<param name=\"movie\" value=\"http://www.mysite.com/FasoMusic/wimpy.swf?wimpyApp=http://www.mysite.com/FasoMusic/wimpy.php&wimpySkin=http://www.mysite.com/FasoMusic/skin_itune.xml&wW=520&wH=300&defaultVisualExt=jpg&theVolume=100&bufferAudio=0&infoDisplayTime=3&defaultPlayRandom=yes&autoAdvance=no&serveMP3=yes&useSysCodePage=yes\" /> ";
$content .= "<param name=\"loop\" value=\"false\" /> ";
$content .= "<param name=\"menu\" value=\"false\" /> ";
$content .= "<param name=\"quality\" value=\"high\" /> ";
$content .= "<param name=\"scale\" value=\"noscale\" /> ";
$content .= "<param name=\"salign\" value=\"lt\" /> ";
$content .= "<param name=\"bgcolor\" value=\"#000000\" /> ";
$content .= "<param name=\"wmode\" value=\"transparent\" /> ";
$content .= "<embed src=\"http://www.mysite.com/FasoMusic/wimpy.swf?wimpyApp=http://www.mysite.com/FasoMusic/wimpy.php&wimpySkin=http://www.mysite.com/FasoMusic/skin_itune.xml&wW=520&wH=300&defaultVisualExt=jpg&theVolume=100&bufferAudio=0&infoDisplayTime=3&defaultPlayRandom=yes&autoAdvance=no&serveMP3=yes&useSysCodePage=yes\" loop=\"false\" menu=\"false\" quality=\"high\" wmode=\"transparent\" width=\"520\" height=\"300\" scale=\"noscale\" salign=\"lt\" name=\"wimpy\" align=\"center\" bgcolor=\"#000000\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" /> ";
$content .= "</object> ";
$content .= "
?>
|
|
|
|
|
 |
Nomad
Client

Joined: Jan 21, 2006
Posts: 87
Location: Arizona
|
Posted:
Tue Feb 28, 2006 10:19 pm |
|
I know this post is old, but just incase, here are a few additional solutions:
1. You can find a prebuilt module called "flash MP3 player" that runs off of wimpy technology, it includes a block.... or.......
2. Goto wimpyplayer.com, use the configuration tool to create a html file. Upload this to your wimpy folder on your site. Download the php block from the wimpy site or copy the following code. Edit the "$wimpyHTML" variable to show the path to the html file on your site, and enable the block.:
Code:
<?php
/////////////////////////////////////////////////////////////////
// //
// //
// Wimpy Block //
// v2.3 //
// //
// //
// available at //
// www.wimpyplayer.com //
// //
// Thanks to //
// Zaster //
// www.uwfnetwork.com //
// //
// //
/////////////////////////////////////////////////////////////////
//
//
// $_SERVER['PHP_SELF']
if (eregi("block-Wimpy.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
// You may have to edit this location, depending
// on where you actually installed wimpy.
$wimpyHTML = "MP3s/myWimpy.html";
if($data = @file_get_contents($wimpyHTML)){
$AwimpyWidthA = explode('<object', $data);
$AwimpyWidthB = explode(' width="', $AwimpyWidthA[1]);
$AwimpyWidthC = explode('"', $AwimpyWidthB[1]);
$wimpyWidth = $AwimpyWidthC[0];
//
$AwimpyHeightA = explode('<object', $data);
$AwimpyHeightB = explode(' height="', $AwimpyHeightA[1]);
$AwimpyHeightC = explode("'", $AwimpyHeightB[1]);
$wimpyHeight = $AwimpyHeightC[0];
$content = '<IFRAME src="'.$wimpyHTML.'" name="wimpy" width="'.$wimpyWidth.'" height="'.$wimpyHeight.'" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" ></IFRAME>';
} else {
$content = 'Could not locate the file: <a href="'.$wimpyHTML.'" target="_BLANK">'.$wimpyHTML.'</a> as specified in the <BR>';
$content .= 'variable $wimpyHTML within the block-Wimpy.php, Check to make <BR>';
$content .= 'sure you have created and uploaded a custom HTML file using the <BR>';
$content .= 'Customizer tool at wimpyplayer.com and uploaded it to your wimpy <BR>';
$content .= 'folder on your site.<BR>';
}
// print ($content);
?>
|
3. To make a basic module: Use the config tool on the wimpy site to generate a html file. Edit this html file to your satisfaction (adding graphics, text or whatever). Create a new php file called index.php and use the following code, but just edit the path to your myWimpy html file. Create a folder in you modules directory and name it whatever you like, Upload the index.php file to that folder and activate the module in your admin menu.
Code:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* PHP-Nuke-HOWTO module for <application>PHP-Nuke</application> */
/* MP3 Player --add whatever you want here */
/* Copyright (c) 2003 index.php */
/* by Chris Karakas */
/* http://www.karakas-online.de */
/* */
/* See licence.html for the Licence of the other files */
/* distributed together with this index.php file. */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the <acronym>GNU</acronym> General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
if ( !defined('MODULE_FILE') )
{
die("You can't access this file directly...");
}
define('INDEX_FILE', true); // false: do not show right blocks - true: show right blocks
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
OpenTable();
//edit the path here to your myWimpy.html
include ("MP3s/myWimpy.html");
CloseTable();
include("footer.php");
?>
|
|
_________________ Nomad!~! |
|
|
 |
Nomad

|
Posted:
Tue Feb 28, 2006 10:44 pm |
|
Now can someone help me?
I would like to configure my wimpy player to load mp3 files from a folder outside of my website. The wimpy player has the option of using a configuration file (wimpyConfigs.xml) to do this, but it only works if you load the wimpy.php file directly in your browser. It works perfectly. But I cant get it to work with a html file or within my module.
Is there a way to include a wimpy.php file in your module page? I use this codeing for a html file and it loads the player but the player doesn't run off of the config file. Code: include ("MP3s/myWimpy.html");
|
but if I try this Code: include ("MP3s/wimpy.php");
| I just get a blank space on my page, it doesnt work.
The bottom line is: I would like to hide my MP3 files from being snatched....Any suggestions? |
|
|
|
 |
Nomad

|
Posted:
Fri Mar 03, 2006 9:23 am |
|
OK, I figured it out. I put the file in an I-Frame by inserting the following code in my module's index.php
Code:echo "<iframe frameborder=\"0\" src=\"MP3s/wimpy.php?is_admin=$is_admin&adminName=$adminName\" width=\"100%\" height=\"300\"><ilayer src=\"MP3s/wimpy.php?is_admin=$is_admin&adminName=$adminName\" width=\"100%\" height=\"300\"></ilayer></iframe>";
|
|
|
|
|
 |
gazj
Worker


Joined: Apr 28, 2006
Posts: 152
Location: doncaster england
|
Posted:
Fri Apr 28, 2006 1:36 pm |
|
yeah thats what i do saves time  |
_________________ as i stare into the abyss and battle with my demons i yell timeout and have a coffee break. |
|
|
 |
|