0 Schlabo's Scripts

Schlabo's
Scripts
- home -


Scripts
 Information
 Admin
 POTD
 DL
 SP
 COW

Download
 Download

Installation & Usage
 Overview
 Installation
 Q&A: Admin
 Q&A: POTD
 Q&A: DL
 Q&A: SP
 Q&A: COW

Support
 Troubleshooting

General
 Startpage
 What's New?
 Quotes
 Future
 Contact
 Privacy
 Terms of Use
 Copyright

 


ADMIN-Q&A

< Back to the Overview...

 

 How to make the scripts work with PHP-Nuke?

Thanks to Proph who posted this solution on the support forum!

Once you have installed schlabo's script for picture of the day and it has sucessfully been configured and works it is time to import it to your front page.

These are instructions for PHP-NUKE!

  1. Create a block named "block-potd". This is what will be in the block..

    ///// EVERYTHING BELOW THIS LINE/////////
    <?php

    if (eregi("block-block-name.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
    }
    $content = file_get_contents("http://www.yoursite.com/cgi-bin/schlabo/potd_thumbnail.pl");
    ?>

    ///// EVERYTHING ABOVE THIS LINE ///////

  2. Save and Put that block in your blocks folder on your FTP.
  3. Then go in to the admin control panel of PHP Nuke. Then go to "BLOCKS" then create a new block called potd from FILE NAME. There should be a file name at the bottom named "potd".
  4. Activate for all users and it should appear with no issues.

Thanks from Nukecops.com for the help in getting this created especially Dezina.