kaozskyblade
New Member
- Messages
- 236
- Reaction score
- 0
- Points
- 0
Ok, i wanted to add some music videos from www.mediapunch.net into my web site, but after a while of messing with the modules and php and html codes, i gave up. Does any1 know if there is a module that could make this easy for me??? The code they give you at mediapunch is something like this.
I was then going to use this code for the video that the user had chosen:
as you can see, its has an embed tag. I wanted to do some php's with this kind of code<div align="center"><div align="center"><embed allowScriptAccess="never" name="RAOCXplayer" src="http://www.mediapunch.net/play.php?id=6183907" type="application/x-mplayer2" width="300" height="300" ShowC..'1' ShowStatusBar="0" loop="true" EnableC..'0' DisplaySize="0" pluginspage="<A href="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div><a">http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div><a href="<A href="http://www.mediapunch.net/">Music">http://www.mediapunch.net/">Music Video Code Proudly Provided by Media Punch</a></div>
That was going to be the index with a table of the artist/band and a picture of them. I wanted to make it so that this page would take the visitor to another page with some music videos for that artist.<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle = "Music Videos";
include("header.php");
?>
<html>
<body>
<h1 align="center">Videos Musicales</h1>
<table width="84%" border="0" cellpadding="2">
<tr>
<td colspan="2"><h1 align="center">Artista</h1></td>
</tr>
<tr>
<td width="51%"><a href="">Cafe Tacuba</a></td>
<td width="49%"><a href=""><img src="" alt="Cafe Tacuba"></a></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
<p align="center"> </p>
</body>
</html>
<?php
include("footer.php");
?>
I was then going to use this code for the video that the user had chosen:
Now I am getting frustrated because I cant do it the way I wanted it. I cant link anything from the index of the music video module because then the the whole root adress would be available to anyone and all the other php's like header.php and footer.php won't work. I tried to look for a module that would help me but i couldnt find one. Any one have any tips or answers that could help me out???<?php
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
$pagetitle = "Music Videos";
include("header.php");
?>
<html>
<body>
<div align="center"><div align="center"><embed allowScriptAccess="never" name="RAOCXplayer" src="http://www.mediapunch.net/play.php?id=2170986" type="application/x-mplayer2" width="300" height="300" ShowC..'1' ShowStatusBar="0" loop="true" EnableC..'0' DisplaySize="0" pluginspage="<A href="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div><a">http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/"></embed></div><a href="<A href="http://www.mediapunch.net/">Music">http://www.mediapunch.net/">Music Video Code Proudly Provided by Media Punch</a></div>
</body>
</html>
<?php
include("footer.php");
?>