Giter VIP home page Giter VIP logo

blackfrog1 / agreedisclaimer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmeile/agreedisclaimer

0.0 2.0 0.0 218 KB

App to show a disclaimer that the user has to agree before accessing ownCloud. If the user doesn't check the "agree" checkbox, an error will be displayed and she/he won't be able to continue until it gets checked.

Home Page: https://apps.owncloud.com/content/show.php/AgreeDisclaimer?content=170844

License: MIT License

Makefile 0.66% PHP 45.03% CSS 2.96% JavaScript 51.34%

agreedisclaimer's Introduction

AgreeDisclaimer

App to show a disclaimer that the user has to agree before accessing OwnCloud. If the user doesn't check the "agree" checkbox, an error will be displayed and she/he won't be able to continue until it gets checked.

You can either show a link to open a dialog with the disclaimer text, a link to a pdf file, or both.

It is also multi-language, so, you can add as many languages as you want and you can define a default one if the user's language hasn't been translated yet. The application uses the l10n language service of ownCloud, so, in order to add a new language, create two files inside: agreedisclaimer/l10n, ie: "fr_BE.js" and "fr_BE.json"; you will find a template called en.pot with the messages I'm using in the application. Just add the respective headers and footers to the translation files and paste that template in the middle of them.

I'm not a native English nor German speaker, so, I would appreciate if you correct my translations and send me some feedback. I would also appreciate if you translate it in your own language, please see: jmeile#13

You can contact me through this form:

https://apps.owncloud.com/messages/?action=newmessage&username=jmeile&PHPSESSID=o79r9jk0oe3ubbqb0c4h7shja4

Or send me an email to: jmeile at hotmail dot com

For reporting issues, please use the tracker: https://github.com/jmeile/agreedisclaimer/issues

TODO:

  • Fix the style sheets so that the pdf icon gets vertical aligned.
  • Allow to upload text and pdf files through the admin settings

If you are willing to help me with these three points you can send me the patch files to my email. I invested lots of time trying to fix the css issue, but I couldn't figure out how to do it; anyway, it doesn't look that bad :-)

##Upgrading Before you update the app, please make copy the contents of the folders: "agreedisclaimer/pdf", "agreedisclaimer/txt", and, if you translated/modified your own languages, then also copy "l10n". Afterwards, do the update and overwrite the first two folders. Then overwrite only the files you modified from the "l10n" folder. In order to keep the translations up to date you need to translate the missing messages from the template "l10n/en.pot".

agreedisclaimer's People

Contributors

jmeile avatar msmarcal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.