• Welcome to the Chevereto user community!

    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:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Recent uploads on homepage?

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?
 
I have read all the posts here and none of the code works with the newest version of Chevereto. Well, at-least not for me. I even tried making a gallery page by following the steps listed on that thread and it didn't work either.

When I try to make a gallery, it gives me a Not Found (404) error using the following code:
<?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 added the gallery function the instructions said to do on the pages_config.php file also.
 
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.
 
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.

Could you post the content of your pages_config.php file please?

And are you a 100% sure that you created the gallery.php file in content/your_theme/pages folder?

If you really did those step, you can, if you wish, send me your ftp info so that I can fix it for you.
 
Back
Top