knightsguard
Chevereto Member
I've looked around this forum and cannot find a code to place into the index.php file that actually works. I want to show the most recent uploads right below the upload button. Can anyone give me the correct code?
Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.
Please keep in mind:
<?php if(!defined('access') or !access) die('This file cannot be directly accessed.'); ?>
<?php include_theme_header(); ?>
<div id="content" class="pages page_gallery">
<?php
$largeArray = glob("images/*.jpg");
$counter = 0;
foreach (array_slice(glob("images/thumbs/*.jpg"),0,60) as $thumb) {
echo ("<div class='thumbgall'><a href='$largeArray[$counter]'><img src='$thumb'/></a></div>");
$counter++;
}
?>
</div>
<?php include_theme_footer(); ?>
I've already tried that and Its giving me a 404 error. Take a look for yourself - http://pibbitt.com/gallery
I've done everything that the instructions said to do, including copying the code, the pages_config.php, creating the css file and adding the part into the header.