+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

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

  1. #1
    kaozskyblade is offline x10 Sophmore kaozskyblade is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    118

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

    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???

  2. #2
    kaozskyblade is offline x10 Sophmore kaozskyblade is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    118

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

    mmm, any one??

  3. #3
    kaozskyblade is offline x10 Sophmore kaozskyblade is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    118

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

    mmm, so nobody knows what i can do to fix this???

  4. #4
    bigguy's Avatar
    bigguy is offline Retired bigguy is an unknown quantity at this point
    Join Date
    Mar 2005
    Location
    Canada
    Posts
    5,426

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

    What type of music are you putting on your site. Is the music copyrighted ?
    P.C. Tweakr - For all your computer and internet support
    P.C. Tweakr - For all your SMF help and support

  5. #5
    Join Date
    Oct 2005
    Posts
    12

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

    Ye make sure its legal before you do this.

  6. #6
    kaozskyblade is offline x10 Sophmore kaozskyblade is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    118

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

    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

  7. #7
    Join Date
    Oct 2005
    Posts
    12

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

    Lol. So they give u code to put on your[I][B] site?

  8. #8
    kaozskyblade is offline x10 Sophmore kaozskyblade is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    118

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

    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.

  9. #9
    kaozskyblade is offline x10 Sophmore kaozskyblade is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    118

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

    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

  10. #10
    kaozskyblade is offline x10 Sophmore kaozskyblade is an unknown quantity at this point
    Join Date
    Sep 2005
    Posts
    118

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

    Bump

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

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  2. {Tutorial} Inserting the ads in PHP NUKE
    By Zenax in forum Tutorials
    Replies: 3
    Last Post: 12-22-2006, 05:17 AM
  3. Como colocar ads en header de php nuke??
    By pes5champion in forum Soporte
    Replies: 8
    Last Post: 10-10-2006, 11:00 PM
  4. Help!! php nuke
    By oab in forum Free Hosting
    Replies: 13
    Last Post: 11-02-2005, 05:50 PM
  5. PHP Nuke, header.html
    By oab in forum Free Hosting
    Replies: 0
    Last Post: 04-21-2005, 11:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers