Commit Graph

18 Commits

Author SHA1 Message Date
Julian Prieber
3fecf4a875 Bugfix
https://github.com/JulianPrieber/littlelink-custom/issues/365
2023-03-16 14:47:57 +01:00
Julian Prieber
5665465076 Added option for admins to upload background image for users 2023-02-15 18:14:54 +01:00
Julian Prieber
1f162ae8f3 Added custom background image to edit user page
Admins can delete custom background images of users
2023-02-15 17:45:00 +01:00
Julian Prieber
a7d59593c6 Added delete button for profile picture 2023-02-03 18:00:15 +01:00
Julian Prieber
5b23fa08de Changed profile picture save method to use user id
Changed profile picture to use user id instead of username to save it.

If merged, this will reset all current profile pictures on the instance.
2023-01-23 16:54:18 +01:00
Julian Prieber
c0c4397cd8 Bugfix 2023-01-23 16:48:45 +01:00
Julian Prieber
b9a371b924 Turned function findFile() into helper function 2022-12-22 09:51:19 +01:00
Julian Prieber
fd6b0e1dac Bugfix 2022-12-05 20:00:16 +01:00
Julian Prieber
38c856484d Added support for custom favicon
Custom logo and custom favicons can now have any supported format.
2022-11-29 23:33:25 +01:00
Julian Prieber
951df23c91 Laravel 9
Update to Laravel 9

Commit for the upcoming from-end update.
2022-11-08 16:11:59 +01:00
Julian Prieber
a8dec6ff9e Update edit-user.blade.php 2022-05-15 11:43:11 +02:00
Julian Prieber
cf66be63cb Fixed 'Edit User' changes not applying
Fixed bug where if a user was edited on the Admin Panel under 'Admin>Users> Edit User' changes would not apply without every value being changed.

This bug originates from LittleLink Admin (the fork of which this fork is based on).

One part of this issue was that most fields were required to fill in. If only one would be left, empty, none would apply. The problem was if this requirement was removed, the password would always overwrite the current password, even when left empty.
This meant you could only edit users if you knew their password, otherwise their passwords would be changed, probably preventing that user from login in ever again.

After some experimenting, I implemented the easiest fix I could come up with. A simple if-else statement that checks if the password field is empty and if so only saves the other parameters without touching the password. If the password is changed, the changes will be applied normally.

Also fixed the profile image size for the default placeholder image.
2022-03-28 19:54:17 +02:00
JulianPrieber
ec88a74889 Fixed bug/simplified setup
Fixed bug where users littlelink pages (domain.com/@username) would display a 404 error. This was caused due to the .env config file not containing an App URL. This issue could be solved by simply adding a URL to the config, this is now not necessary anymore, making the setup process easier and less confusing. 

I changed every instance of "{{ config('app.url') }}" to  "{{ url(' ') }}". This effectively automatically uses the correct URL for LittleLink links, even if LittleLink Custom is set up in a subdirectory.

In my testing, I couldn't find any problems this might have caused, so this appears to do the job just as well as setting the URL in the config. If I find any issues with this, I will revert this change.
2022-02-27 19:33:19 +01:00
JulianPrieber
c8696ca5d5 Fixed elseif
Fixed new elseif statements by changing:
"if
if"
to
"if
elseif"
2022-02-20 15:42:45 +01:00
JulianPrieber
96cfd5b4c1 Changed logo
As part of the new logo (https://github.com/JulianPrieber/littlelink-custom/milestone/1) I'm now using the new 'logo.svg' vector logo.

For this, I added an if-else statement in most cases, which first check for a custom logo uploaded by the admin or the avatar of an individual user. If the image doesn't exist, the default logo (logo.svg) is used.
2022-02-20 13:12:25 +01:00
JulianPrieber
c097c0ae09
Change public path
This is one of multiple public path edits. For simplified usability, I am integrating the public Laravel directory into the root directory. 

For this, I am changing every instance of 'public_path' to 'base_path' and will use this format in future changes as well.
2022-02-14 12:56:03 +01:00
aprillio
9d5bffd48b update panel edit user blade 2021-07-06 15:50:07 +07:00
Khashayar Zavosh
24db7cbbfb admin littlelink 2021-04-16 03:30:00 +04:30