Author Topic: Can own skin modify content in program folder  (Read 2559 times)

Offline Termi

  • Newbie
  • *
  • Posts: 6
Can own skin modify content in program folder
« on: January 25, 2017, 06:27:34 PM »
I am changing a skin and have an issue.
I want to get rid of the labels for username and password on the login screen and replace it with the html tag "placeholder" in the text and password input fields.
I made the labels invisible by changing css display:none

To insert the placeholder tag into the text input I have to change program/include/rcmail_output_html (add the tag) and program/lib/Roundcube/html.php (allow the tag).

It works when I do this in the original roundcube folders but that's not the idea of skins.
I tried to do this in skins/myskinname/program/include/rcmail_output_html and skins/myskinname/program/lib/Roundcube/html.php but these files are not regarded.

Does this work as designed or am I missing something?
Is there a way to achieve my goal within the skins folder?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Re: Can own skin modify content in program folder
« Reply #1 on: January 26, 2017, 03:03:34 AM »
you cannot do it from the skins folder but using a plugin you could override the default handler for the login form and write your own.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,882
    • SKaero - Custom Roundcube development
Re: Can own skin modify content in program folder
« Reply #2 on: January 26, 2017, 09:18:19 AM »
Or you can add the placeholder text with Javascript which can be done from the skins folder.