Skip to content

Commit

Permalink
more things in FAQ
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Jan 30, 2024
1 parent 96d19e4 commit 08f29e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 28 deletions.
30 changes: 2 additions & 28 deletions docs/faq_general.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,7 @@ Via SSH, use the command `php artisan lychee:reset_admin`.

### How to hide smart albums?

Add the following custom CSS to your `user.css` or via the settings menu:
```css
[data-id="unsorted"] { display:none; }
[data-id="public"] { display:none; }
[data-id="starred"] { display:none; }
[data-id="recent"] { display:none; }
div#lychee_view_content > div.divider:first-child { display:none; }
div#lychee_view_content > div.divider:nth-child(6) {
margin-top: 10px;
border-top: 0;
box-shadow: none;
}
```
Go into your _Settings_ then _More_, find `SA_enabled` in the _"Smart Albums"_ section and set it to `0`.

### How to disable the 'zoom' animation while browsing pictures?

Expand Down Expand Up @@ -186,7 +174,7 @@ Change the URLs `https://fonts.googleapis.com` and `https://fonts.gstatic.com` t

### How to add custom scripts?

If you want to add custom scripts, for example to add an analytics service, you can add the script code to the `additional_footer_text` setting. For example, adding `<script>alert('Hello World!');</script>` to it will display an alert dialog with `Hello World!` in it every time you load the page.
Edit the `custom.js` file in `/path/to/lychee/public/dist/`.

### How is the upload folder protected?

Expand All @@ -204,16 +192,6 @@ Right now, the protection is basically through the use of difficult to guess nam

You can edit your `.env` and modify the `SESSION_LIFETIME=120` part (in minutes).

### How can I clear the Logs?

To remove the `Notice` and `Warnings`, simply click on the button at the top of the Log page.
However if the page is too heavy to load, you can either manually empty the `Logs` table or use artisan:

```bash
cd Lychee
php artisan lychee:logs clean
```

### How can I see the correct client IP address when running Lychee behind Cloudflare?

Please see [https://github.com/monicahq/laravel-cloudflare](https://github.com/monicahq/laravel-cloudflare). The Lychee file that needs changing can be found [here](https://github.com/LycheeOrg/Lychee/blob/master/app/Http/Middleware/TrustProxies.php).
Expand All @@ -240,10 +218,6 @@ No this is normal. This user does not have the ownership of that Album, so the r

### The divider h1 shows the text "Admin" when logged in with an ordinary user. Shouln't this be "Albums"?

<!-- TODO add deprecation notice once https://github.com/LycheeOrg/Lychee/pull/1539 is merged
> {note} This is a behavior of Lychee that only occurs if the admin user did not log in after the update. Please contact the admin to log in once. After this, the admin's username is shown instead of `Admin`.
-->

Actually no, this is because the user does not have any albums (yet). The `h1` divider is to show who is the owner of those albums. See below.
![2020-02-19_3840x1080_12:29:19](https://user-images.githubusercontent.com/627094/74830496-92c3a200-5313-11ea-9065-60cb8090c7ac.png)
And yes the right-click menu is available on the _PhD Defenses_ part but not in the _Admin_ parts.
Expand Down
8 changes: 8 additions & 0 deletions docs/faq_troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,11 @@ As a result, in order to use this function the file system on which `/uploads` r
_"Windows"_ file systems (e.g. NTFS, FAT, CIFS) won't work.
The directory with the original media files may still be a Windows file system.
This is, because symbolic links (as opposed to hard links) may cross file system boundaries.

### Uploads are not working with Cloudfare / behind a reverse proxy.

Check your `.env` file that the value of `TRUSTED_PROXIES` is correctly set.

### I get an error SQLSTATE: Numeric value out of range: 1264 Out of range value for column 'legacy_id', what should I do?

Go into your _Settings_ then _More_, find `force_32bit_ids` in the _"config"_ section and set it to `1`.

0 comments on commit 08f29e4

Please sign in to comment.