• 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.

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