nextcloud / unsplash

πŸ“ΈπŸ”€β˜οΈ Random Nextcloud log in background from Unsplash
https://apps.nextcloud.com/apps/unsplash
GNU Affero General Public License v3.0
92 stars 23 forks source link

source.unsplash.com does not work - maybe use another provider or local pictures #138

Closed devnull4242 closed 1 month ago

devnull4242 commented 1 month ago

use GitHub reactions πŸ‘ to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug: I installed the app on Nextcloud 29.0.4 and older versions. The app does not work. The problem is the url https://source.unsplash.com/... . I think the server needs an API password.

To Reproduce:

  1. use a Nextcloud
  2. install the app Splash
  3. check all configurations for Splash
  4. on login page i do not get a picture, i get only the default background

Expected behavior: Random picture is loaded.

Screenshots: Normal Nextcloud login screen without the image from Unsplash.

Server:

Additional Information: I think the problem is unsplash.com . I think there is an API needed. Maybe a local directory can be used e.g. something like this.


<?php
$dir = __DIR__;
$images = glob($dir . "/*.{jpg,jpeg,png,gif}", GLOB_BRACE);
if (count($images) > 0) {
    $randomImage = $images[array_rand($images)];
    echo "<html><body>";
    echo "<img src='" . basename($randomImage) . "' alt='random image' style='max-width: 100%; height: auto;'>";
    echo "</body></html>";
} else {
    echo "No image found.";
}
?>

In my opinion, the Splash app cannot currently work for any user. If I am wrong, please let me know how I can continue to use Splash with Unsplash. I have used the app over many Nextcloud releases and found it really good.

newhinton commented 1 month ago

Thank you for using the issue template! However, the original reason for my closure was not because of the template, but because there are some duplicates to this request.

It is known that unsplash closed their original API, which is currently beeing replaced by the new one (#115). Also there is another issue (#70) for the local gallery.