Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Footer link to text (Theming App) #10024

Closed
hume1991 opened this issue Jun 27, 2018 · 22 comments · Fixed by #10875
Closed

Footer link to text (Theming App) #10024

hume1991 opened this issue Jun 27, 2018 · 22 comments · Fixed by #10875
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: theming
Milestone

Comments

@hume1991
Copy link

Hello,

I use the Theming App Version: 1.4.5. I would like to display the footer link as text. Which file has to be edited? Link to the cloud: https://www.cloud.geonativ-energie.de

Best regards

Christian Huml

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #9479 (Theming App Problem), #5547 (When sharing "Upload Only" link, have theme background), #4807 (Add a dark theme to theming app), #9851 (Upload the logo in Theming App failed), and #7100 (Theming app and ImageMagick).

@MorrisJobke
Copy link
Member

I guess there is no way to disable it as of now. IMO we should also not add yet another option here. Just set it to the URL of your instance.

Or what is the motivation of this request?

cc @nextcloud/theming @jancborchardt

@MorrisJobke MorrisJobke added enhancement 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Jun 27, 2018
@juliushaertl
Copy link
Member

Yes, we should not introduce another option here. You could also easily hide the link with the theming_customcss app.

@hume1991
Copy link
Author

I would have thought it is open source? I can not make any customization on my own server? I am very well good in programming and HTML and CSS. That's not a solution for me. If it continues like this, I will set up a cloud myself.

Best regards

Christian Huml

@MariusBluem
Copy link
Member

Uhmmm ... @hume1991 - I think you did understand something wrong here. You are allowed to make as many changes to the code you want as long as it keeps compatible with the AGPLv3-License the code is licensed with.

This discussion was about what is possible with the current features/implementations in the settings. So customzie your own Nextcloud instance and feel free to open a pull request here on GitHub if you think your enhancement would be a good addition to Nextclouds code ;)

@juliushaertl
Copy link
Member

@hume1991 As @MariusBluem said, there is nothing limiting you from changing things on your server. Since the GitHub issue tracker is used to track enhancement requests and bug reports, we discuss here how and if requests can be integrated. You might want to checkout https://help.nextcloud.com for questions regarding customization or other questions that are not bug reports or feature requests.

Besides that, core/templates/layout.guest.php might be the file you are looking for, but custom changes will of course be overwritten by every update.

@MorrisJobke
Copy link
Member

I would have thought it is open source? I can not make any customization on my own server? I am very well good in programming and HTML and CSS. That's not a solution for me. If it continues like this, I will set up a cloud myself.

Keep also in mind that open source does not mean, that every feature that can be imagined will be implemented. We think about it and then decide if it should be in the product or not. Keep also in mind that once it is in we as maintainers also need to take care of it for the next years and keep it working. Thus we decide carefully what to add and what not.

@hume1991
Copy link
Author

Can I submit a request for the code of the theming app? Would expand it.

Best regards

Christian Huml

@juliushaertl
Copy link
Member

@hume1991 Sure any contribution is welcome there. But as said above, there should not be another option for that, since the theming app settings are already quite long and complex and adding another checkbox for a setting that has a very small target group of users conflicts with our goal to do things automatically instead of offering configuration options. (See our design guidedlines)

If you can come up with a different solution, feel free to propose it for discussion here. 👍

@MorrisJobke
Copy link
Member

Can I submit a request for the code of the theming app? Would expand it.

As @juliushaertl pointed out: let's discuss first the possible solutions here. For this it would be super helpful if you explain the reason for this option. Maybe we can come up with a better idea to fix this problem.

@hume1991
Copy link
Author

@juliushaertl @MorrisJobke

I see something critically opposed to links. Since with us that German law is authoritative, it can possibly lead to warnings. Besides, it can be irritating for the users. If necessary I have to develop my own app that uses the parameters of the theming app.

Best regards

Christian Huml

@MorrisJobke
Copy link
Member

I see something critically opposed to links. Since with us that German law is authoritative, it can possibly lead to warnings. Besides, it can be irritating for the users. If necessary I have to develop my own app that uses the parameters of the theming app.

Could you rephrase this, because I don't get what a link has to do with German law, warnings and the need to avoid links?

@hume1991
Copy link
Author

@MorrisJobke

It is about the disclaimer. Each additional link has a certain liability.

Best regards

Christian Huml

@jancborchardt
Copy link
Member

How about: If a link isn't set in the theming app, simply don't linkify the name in the footer?
@juliushaertl?

@juliushaertl
Copy link
Member

How about: If a link isn't set in the theming app, simply don't linkify the name in the footer?

Yes that should work fine. Good idea @jancborchardt

It is about the disclaimer. Each additional link has a certain liability.

I still don't see how a link to the page itself could have influence the liability there, but if we go with the approach @jancborchardt proposed, it should be fine, right @hume1991 ?

We then need to adjust the footer generation here:

$footer = '<a href="'. $this->getBaseUrl() . '" target="_blank"' .

Are you still interested in contributing? Feel free to open a pull request with the change. 😉

@hume1991
Copy link
Author

@jancborchardt @juliushaertl

Would be in my sense. :)

Best regards

Christian Huml

@jancborchardt
Copy link
Member

@hume1991 cool! Then as @juliushaertl said:

Are you still interested in contributing? Feel free to open a pull request with the change. 😉

Thank you! :)

@hume1991
Copy link
Author

hume1991 commented Jul 23, 2018

I am currently testing. What other files are affected except: server/apps/theming/lib/ThemingDefaults.php?

List:

theming/appinfo/info.xml
theming/js/settings-admin.js
/theming/lib/Controller/ThemingController.php
/theming/lib/Capabilities.php
/theming/lib/ThemingDefaults.php
/theming/templates/settings-admin.php

Everything? Did I forgot something?

Best regards

Christian Huml

@juliushaertl
Copy link
Member

juliushaertl commented Jul 23, 2018

@hume1991 You should be able to just add a check to the ThemingDefaults->getShortFooter() method, that will not return a link when the url is empty. I'm not sure why the other files you have listed should be affected by the change?

@hume1991
Copy link
Author

hume1991 commented Jul 24, 2018

@juliushaertl

I would have thought the link should be officially removed from the theming app?
The variables and the text output (Theming App) would then have to be edited accordingly.

Where can I find (theming app) pull request?

Best regards

Christian Huml

@juliushaertl
Copy link
Member

juliushaertl commented Jul 26, 2018

@hume1991 Maybe you have got the discussion wrong then, the plan is to only remove the link only if the link value inside the theming app is empty. If a link has been set, nothing will change.

@hume1991
Copy link
Author

hume1991 commented Jul 26, 2018

@juliushaertl

Ok, now I understand.
Then only: server/apps/theming/lib/ThemingDefaults.php is affected.

Edit:

If the field is empty, the text is no longer output. The text should still be output, but without a link.

Best regards

Christian Huml

juliushaertl added a commit that referenced this issue Aug 27, 2018
fixes #10024

Signed-off-by: Julius Härtl <jus@bitgrid.net>
juliushaertl added a commit that referenced this issue Aug 27, 2018
fixes #10024

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@MorrisJobke MorrisJobke added this to the Nextcloud 14 milestone Aug 28, 2018
weeman1337 pushed a commit to weeman1337/server that referenced this issue Sep 6, 2018
fixes nextcloud#10024

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap enhancement feature: theming
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants