Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: DumbWizard on June 27, 2013, 08:29:47 AM

Title: index.html or home.html in YOURSERVERNAME/roundcubemail/
Post by: DumbWizard on June 27, 2013, 08:29:47 AM
Hello, I'm looking for the HTML file for the roundcube login page-  I need to make a small change to some formatting.  Where is it located on the server?
Title: Re: index.html or home.html in YOURSERVERNAME/roundcubemail/
Post by: amol.l.khade on June 27, 2013, 10:43:05 AM
If you are looking for Skin Change for Larry :

Roundcube Installation Folder> Skins > Larry > Templates > login.html

   Regards
AMOL KHADE.

Title: Re: index.html or home.html in YOURSERVERNAME/roundcubemail/
Post by: DumbWizard on June 28, 2013, 04:06:29 AM
Thanks.

I should've been more specific in my OP.  I'm looking for the HTML because I've written a TOS for my webmail (just a little cover-my-a$$ blurb) and I want to insert a checkbox that says "I have read the Terms of Service" and disable the login button until this box is checked.  Any thoughts?

Title: Re: index.html or home.html in YOURSERVERNAME/roundcubemail/
Post by: amol.l.khade on June 28, 2013, 04:25:37 AM
Hello,

Method 1:
I ll suggest to write the plugin for Roundcube, Its easy too. http://trac.roundcube.net/wiki/Doc_Plugins

Method 2:
If you want to manage it without using plugin then just set the check box & use Java Script to build the logic for event in login.html page to do what you want.make sure you are not affecting any other dependencies.

     Regards.
   AMOL KHADE
Title: Re: index.html or home.html in YOURSERVERNAME/roundcubemail/
Post by: DumbWizard on June 28, 2013, 07:34:49 AM
Thanks, that helped a bit.  I've got the checkbox on the page, but I'm having trouble getting it to validate if the box is checked.

Here's my code:

Validator module:

<script type="text/javascript">
  // Checkbox validator
     function validate(){
        if (TOS.checked == 1){
        }else
   alert("Please check the box labeled 'I have read the Terms of Service'")
        }
     }

  </script>


Checkbox:

<input id="TOS" type="checkbox" name="TOS" value="Yes"><font color="white">I have read the</font><a href="JavaScript:newPopup('http://www.XXXXXXXXXX.com/roundcubemail/TOS.html');">Terms of Service</a><br>

and the login button



<p class="formbuttons"><input type="submit" id="Submit" class="button mainaction" value="<roundcube:label name='login' "/>" onclick="validate()"/></p>



Title: Re: index.html or home.html in YOURSERVERNAME/roundcubemail/
Post by: amol.l.khade on June 29, 2013, 01:10:23 AM
Hello,
I think, below link will guide you for your requirement:

http://stackoverflow.com/questions/1594952/jquery-disable-enable-submit-button

still if you cant, let me know.

   Regards
AMOL KHADE.