• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

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