Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 tasks done
devnull4242 opened this issue Jul 19, 2024 · 1 comment
Closed
3 tasks done
Labels

Comments

@devnull4242
Copy link

devnull4242 commented Jul 19, 2024

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!

  • This is not a feature request
  • This is not an image-provider request
  • I have searched the issuetracker if the issue is not already reported.

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:

  • Nextcloud version: Nextcloud 29.0.4
  • Splash-App version: 2.2.1

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
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants