LinkStackOrg / LinkStack

LinkStack - the ultimate solution for creating a personalized & professional profile page. Showcase all your important links in one place, forget the limitation of one link on social media. Set up your personal site on your own server with just a few clicks.
https://linkstack.org
GNU Affero General Public License v3.0
2.3k stars 235 forks source link

Same questions and problems #23

Closed lastsamurai26 closed 2 years ago

lastsamurai26 commented 2 years ago

Is there a way to show the login and register button on every page ?

as I have changed the main page so that I can beautify the home page and not have the Little link default page.

Is there also a way to go directly to the studio after logging in without having to type /studio/index ?

I also noticed that I can't change my own password as a user.

is there a way to get an error message if you enter a wrong URL with domain.com/ as an example?

JulianPrieber commented 2 years ago

The easy answer is no.

If you used the built-in option to set profile as homepage in the config, you can find the login/register page at yourdomain.com/home or perhaps yourdomain.com/if-in-a-sub-folder/home. Otherwise, there is no built-in functionality for what you're looking for.

Now, if you know a bit about HTML/PHP, you could add the register/login button to every page fairly easily.

Your problem with having to type '/studio/index' can be solved by editing the routes in /routes/web.php, but this might break some automatic redirections, so you would have to edit those as well.

Also, thank you for pointing the password thing out, I will look into it.

Now for your last mention, I think this might be what you're looking for. Alternatively, this has to be done via your web hosting software.

lastsamurai26 commented 2 years ago

I think :-( I expressed myself strangely.

  1. littlelink is running fulldomain but in .env I have set HOME_URL to main, which means that the domain.de no longer shows the default page that littlelink brings but one of a registered user. This means that either I use HOME_URL = "" or I have to enter /studio/index when I want to go to the studio.

  2. if I want to add a link via Add Link the URL must not end with a /, however it saves this link but if you call it you get an error page. Can this be intercepted directly when saving? It makes no sense to me why a URL may not end with a / but an error message when saving would be great :-)

  3. register and Login -> can you tell me where I can do that? Then I could indeed do this

  4. password topic -> thanks :) -> if I change the password as user or the web page studio/profile it is not saved

JulianPrieber commented 2 years ago

Ah, I see.

  1. LittleLink Custom is set up in a way that you don't really need to use the HOME_URL, you can just leave that empty.

  2. I'm still working on a filter system for that exact case. I think I know how to reject a "/" at the end of a URL, but I still haven't gotten to how to display a feedback prompt notifying the user of the problem with the URL.

  3. Implementing the native login/register functionality would be a bit tricky, so probably the easiest way you could implement this is by simply linking to the login/register site on the page you want to implement the login functionality.

JulianPrieber commented 2 years ago

Perhaps something like this:

<div class="sign" style="margin-top: 30px; text-align: right;">
    <a href="{{ route('login') }}" class="underline spacing">Log in</a>
    <a href="{{ route('register') }}" class="underline spacing">Register</a>
</div>
lastsamurai26 commented 2 years ago

Perhaps something like this:

<div class="sign" style="margin-top: 30px; text-align: right;">
    <a href="{{ route('login') }}" class="underline spacing">Log in</a>
    <a href="{{ route('register') }}" class="underline spacing">Register</a>
</div>

thanks i will check this :)

JulianPrieber commented 2 years ago

I also noticed that I can't change my own password as a user.

I just made a push that should have resolved that issue. I'm planning on doing a full release later today.

Finding the issue was pretty easy, but solving it was not. The solution I ended up using might not be the optimal way, but it should work just fine.

For the user not too much has changed except every field can now only be changed separately, for this I added a separate button to apply the changes.

Below, you can find a beta version of the new release: BETA v2.5.5

lastsamurai26 commented 2 years ago

thanks :)

I will leave out the database .sqlite and .env as these are already present - I can overwrite all the others. I will test this tomorrow and keep you informed. An update of the database itself is not necessary?

JulianPrieber commented 2 years ago

An update of the database itself is not necessary?

The database has not been changed and is not needed for the update.

JulianPrieber commented 2 years ago
  1. if I want to add a link via Add Link the URL must not end with a /, however it saves this link but if you call it you get an error page. Can this be intercepted directly when saving?

The last two commits #303 and #304 added checks if edited and newly added links begin with "https://" and not end with a "/".

If you now add a link as "google.com/" it would get saved as "https://google.com" for example.

I'm planning on publishing the new release later today, so if all goes well, you can try out the full thing tomorrow.

lastsamurai26 commented 2 years ago

If you now add a link as "google.com/" it would get saved as "https://google.com" for example.

Does this mean that if I save without https:// and without ending / it saves it as https://domain.de but what happens if I save it as https://domain.de/ ? Then the rewrite doesn't works. Can I filter this somehow via htaccess or directly on save ?

I have to say :) your work is really great!!! I like littlelink custom better than all the others from littlelink

*edit

JulianPrieber commented 2 years ago

Release is out now: LittleLink Custom v2.5.5

This fix should account for every combination of URLs, regardless if they begin with "https://" or end with "/".

domain.de, domain.de/, https://domain.de and https://domain.de/ should all get saved as https://domain.de

lastsamurai26 commented 2 years ago

Thank you :-) it works.

Password change as well as the one with the links

Closed :-)