• 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

Last image uploaded patch

gonzalarcon

Chevereto Noob
Since people are requesting it, i posted it 😛

1. Open index.php with Notepad.
2. Copy and paste the following code where do you want to display the message:
Code:
<?php
if ($database = sqlite_open('dataStorage.sqlite')) {
    $selectQuery = sqlite_query($database,"SELECT filename FROM dataStorage LIMIT 1");
        while($printData = sqlite_fetch_array($selectQuery, SQLITE_ASSOC)) {
        print "<br>Last image uploaded is <a href=\"".PATH_SCRIPT.DIR_IM.$printData['filename']."\">".$printData['filename']."</a> ";
        }
    sqlite_close($database);
} else {
    print "Ups! The addon can't print the data.";
} 
?>
3. Now under the line 232 put this:
Code:
<?php
if ($database = sqlite_open('dataStorage.sqlite')) {
    sqlite_query($database, "UPDATE dataStorage SET filename = '$name'", SQLITE_ASSOC);
    sqlite_close($database);
} else {
    // Here i do nothing :P
}
?>
4. Download the sqlite database (3kb) and extract it in the Chevereto's path.

Enjoy 😛
 
Back
Top