Jump to content

Custom link in user settings


Go to solution Solved by Happy2Play,

Recommended Posts

Posted

Am using emby with LLDAP and updating the password in LDAP directly isn't supported, I've a custom self service password app setup.
Is there a way to add a link in the user settings or convert the current password entry to link to my ssp app?

The current password element I hide by disabling the change password setting on the user (which wouldn't do anything anyway).

Am talking about this section/menu: 

image.png.2e0cbdc3f3eed920eabda9dc8ad796c7.png

I looked through the forum but only found ways to hide/disable items. Anyway to add?
Most convenient would be if I could just set a url in LDAP settings and that it would replace the element in the background for LDAP enabled users but since that isn't option am hoping I can add/modify it myself somehow.

  • Agree 1
Happy2Play
Posted

There is a per user option but it hides password and profile image options. "Allow this user to change their password and profile image"

But this css, something like this

[data-index="4"] [title="Password"] {display: none}

.

 

 

Posted

Thanks for reacting but this is not what I was looking for. I already found this in another forum thread.

What I want to do is add a custom link to my self service tool for the LDAP that am running.
Is there a convenient way to insert another index with a custom url? 

  • Solution
Happy2Play
Posted

@ziggyds Can't be done in css.

You would have to edit the \system\dashboard-ui\settings\settings.htiml similar to how we applied personal-links here

Or possibly tweak the js.  Or maybe the password.html itself.

Happy2Play
Posted

Dirty copy and paste of personal-links to settings.html with minor tweak to top

image.thumb.png.eea7a01684bc1dfbaec22c4c3d6b7dfd.png

Posted

I'll give it a whirl this evening. ty

Happy2Play
Posted
12 minutes ago, ziggyds said:

I'll give it a whirl this evening. ty

In my test I just added between ReadOnlyContent and DynamicRoutes.

 

Posted

Easiest and most convenient for me seemed to modify the password.html page.

image.png.4cae1a70470b61afc053cc4f998d8438.png

I hid the 2 forms with css since deleting them completely would brake the page.

/*Hide Change Password on password page*/
form.updatePasswordForm.passwordSection.userProfileSettingsForm.auto-center.padded-top {
  display: none; 
}
/*Hide Local Network Access*/
form.localAccessForm.localAccessSection.auto-center {
  display: none; 
}

And inserted my external webpage with the following in the password.html page

<embed type="text/html" src="https://***.***.***/" width="800" height="900">

Only thing left to do is to align the css of the ssp a bit more with the emby one!

Eigeplackter
Posted

Question from the newbie fraction, in which folder can I find the settings.html ?

 

Posted (edited)
1 hour ago, Eigeplackter said:

Question from the newbie fraction, in which folder can I find the settings.html ?

 

Depends on how you deployed your emby.

Am using the linuxserver.io image and then it's in

/app/emby/dashboard-ui/settings/settings.html
Edited by ziggyds
Eigeplackter
Posted

Ah found it.

For Synology it is located under:

volumeX/@appstore/EmbyServer/system/dashboard-ui

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...