Skip to content

Commit 5251e30

Browse files
ildyriad7415
andauthored
More things in FAQ (#119)
* more things in FAQ * Update docs/faq_general.md Co-authored-by: Martin Stone <[email protected]> * Update docs/faq_troubleshooting.md Co-authored-by: Martin Stone <[email protected]> --------- Co-authored-by: Martin Stone <[email protected]>
1 parent 96d19e4 commit 5251e30

File tree

2 files changed

+10
-28
lines changed

2 files changed

+10
-28
lines changed

docs/faq_general.md

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,7 @@ Via SSH, use the command `php artisan lychee:reset_admin`.
6666

6767
### How to hide smart albums?
6868

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

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

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

187175
### How to add custom scripts?
188176

189-
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.
177+
Edit the `custom.js` file in `/path/to/lychee/public/dist/` or use the _"Personalize JS"_ area in _Settings_.
190178

191179
### How is the upload folder protected?
192180

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

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

207-
### How can I clear the Logs?
208-
209-
To remove the `Notice` and `Warnings`, simply click on the button at the top of the Log page.
210-
However if the page is too heavy to load, you can either manually empty the `Logs` table or use artisan:
211-
212-
```bash
213-
cd Lychee
214-
php artisan lychee:logs clean
215-
```
216-
217195
### How can I see the correct client IP address when running Lychee behind Cloudflare?
218196

219197
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).
@@ -240,10 +218,6 @@ No this is normal. This user does not have the ownership of that Album, so the r
240218

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

243-
<!-- TODO add deprecation notice once https://github.com/LycheeOrg/Lychee/pull/1539 is merged
244-
> {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`.
245-
-->
246-
247221
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.
248222
![2020-02-19_3840x1080_12:29:19](https://user-images.githubusercontent.com/627094/74830496-92c3a200-5313-11ea-9065-60cb8090c7ac.png)
249223
And yes the right-click menu is available on the _PhD Defenses_ part but not in the _Admin_ parts.

docs/faq_troubleshooting.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,11 @@ As a result, in order to use this function the file system on which `/uploads` r
197197
_"Windows"_ file systems (e.g. NTFS, FAT, CIFS) won't work.
198198
The directory with the original media files may still be a Windows file system.
199199
This is, because symbolic links (as opposed to hard links) may cross file system boundaries.
200+
201+
### Uploads are not working with Cloudfare / behind a reverse proxy.
202+
203+
Check that the value of `TRUSTED_PROXIES` is correctly set in your `.env` file.
204+
205+
### I get an error SQLSTATE: Numeric value out of range: 1264 Out of range value for column 'legacy_id', what should I do?
206+
207+
Go into your _Settings_ then _More_, find `force_32bit_ids` in the _"config"_ section and set it to `1`.

0 commit comments

Comments
 (0)