how to do this with php-nuke......

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.
<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>
as you can see, its has an embed tag. I wanted to do some php's with this kind of code
<?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>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<p align="center">&nbsp;</p>
</body>
</html>
<?php
include("footer.php");
?>
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.

I was then going to use this code for the video that the user had chosen:
<?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");
?>
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???
 

bigguy

Retired
Messages
10,984
Reaction score
10
Points
38
What type of music are you putting on your site. Is the music copyrighted ?
 

kaozskyblade

New Member
Messages
236
Reaction score
0
Points
0
yes, it is legal, and plus, im not hosting the videos off my storage, im just putting the code that is provided by them. It is like if i am just putting the link to it. Plus, i found that site out of the corporate banner i put in my web site. I dont think x10 would be promoting piracy or anything like that :p
 

kaozskyblade

New Member
Messages
236
Reaction score
0
Points
0
yes, they give me a code to put in the site. what i dont know is how to link them all together and make then part of the same module. The only thing I can do is make an index.php. When i want to link it to other php's, I cant, because then the only way to do it is to put is as "a href="...modules/videos/..." and I dont want people to access it directly and to know the root directory and everything. I don't know how to make it so that you can link them with no problems or without letting them see the root directory.
 

kaozskyblade

New Member
Messages
236
Reaction score
0
Points
0
ok, I dont know what I need to do. I looked for some php navigation tutorials, but none of them helped out. I kept getting an error here or there in all of the scripts i used. Anyone here know about a secure, easy to learn script i can use?? Like, can someone post a script and tell me what info do i need to replace and things like that to make it work???any help is appreciated
 

kaozskyblade

New Member
Messages
236
Reaction score
0
Points
0
Bump

mmm, i dont want to be annoying or be a spammer or anything, i just want to be helped
 

oab

New Member
Messages
918
Reaction score
0
Points
0
im a little bit confused at what your problem is but i think i might understand what you are saying.

why not make a drop down list with all the artists on it and post it to itself so everything is on 1 page?
 
Top