Quote:
Originally Posted by Boofo
This is what you need to have it as:
PHP Code:
<? error_reporting(E_ALL & ~E_NOTICE); require_once('./global.php'); define('THIS_SCRIPT', 'gallery'); if(isset($page)){ if(is_file('/home/xxx/php/'.$page.'.php')) { include('/home/xxx/php/'.$page.'.php'); $file=$page.'.php'; } elseif(is_file('/home/xxx/php/'.$page)) { include('/home/xxx/php/'.$page); $file=$page; } else { echo "<font face=verdana size=1><b>Page \"$page\" is invalid."; } } else { include('/home/xxx/php/1.php'); $file='home'; } eval('print_output("' . fetch_template('gallery_main') . '");'); eval('$navbar = "' . fetch_template('navbar') . '";'); ?>
Then put your code above this in the template:
PHP Code:
$header $navbar
|
I still can't get it to work because the way my script works.
What it does is call a php file with the image thumbnails and links from another folder (say /php/1.php), and then loads the content of it. Then if you click on a link (gallery.php?page=2), it will call 2.php and load the next 25 images. I know its primitive, but its been working fine for over a year now :P
Thats whats keeping me from adding the code to the templates, because I have 10 php files, for a total of 250 images.