Jump to content

Custom link in user settings


ziggyds
Go to solution Solved by Happy2Play,

Recommended Posts

ziggyds

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
Link to comment
Share on other sites

Happy2Play

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}

.

 

 

Link to comment
Share on other sites

ziggyds

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? 

Link to comment
Share on other sites

  • Solution
Happy2Play

@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.

Link to comment
Share on other sites

Happy2Play

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

image.thumb.png.eea7a01684bc1dfbaec22c4c3d6b7dfd.png

Link to comment
Share on other sites

Happy2Play
12 minutes ago, ziggyds said:

I'll give it a whirl this evening. ty

In my test I just added between ReadOnlyContent and DynamicRoutes.

 

Link to comment
Share on other sites

ziggyds

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!

Link to comment
Share on other sites

ziggyds
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
Link to comment
Share on other sites

Eigeplackter

Ah found it.

For Synology it is located under:

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

Link to comment
Share on other sites

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...