Results 1 to 12 of 12

Thread: Create a Login

  1. #1
    New user
    Join Date
    04-02-15.
    Posts
    1

    Default Create a Login

    Hi there. We have some presentations on our website, which have always been public accessible. Now we want to change this. Is it possible to hide this presentations and only show them, if someone enters a password?

    If there are more details needed, just ask.

    Thank you for every tip

  2. #2
    User tetrijeb's Avatar
    Join Date
    04-19-12.
    Location
    Bosnia&Herzegovina
    Posts
    98

    Default

    In Back end -> Account Manager -> Member Groups, Members

    For the elements/articles that you want to make available only for logged members, you have "Access protection" option when you define element inside the articles. Check "Protect element" box, and choose to which group will be element available.

    Of course, you should put a Login form for members somewhere in Front-End page.
    Last edited by tetrijeb; 04/02/2015 at 16:17.

  3. #3
    New user
    Join Date
    04-28-16.
    Posts
    16

    Default

    Quote Originally Posted by tetrijeb View Post
    In Back end -> Account Manager -> Member Groups, Members

    For the elements/articles that you want to make available only for logged members, you have "Access protection" option when you define element inside the articles. Check "Protect element" box, and choose to which group will be element available.

    Of course, you should put a Login form for members somewhere in Front-End page.
    I use html code to make login form and java script to make validation of login and it works in online html tester but in contao java script did not work under html.
    Can someone help me with this?
    Thanks

  4. #4
    New user
    Join Date
    04-28-16.
    Posts
    16

    Default

    Quote Originally Posted by EIC View Post
    Hi there. We have some presentations on our website, which have always been public accessible. Now we want to change this. Is it possible to hide this presentations and only show them, if someone enters a password?

    If there are more details needed, just ask.

    Thank you for every tip
    Did you solve this?

  5. #5
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    Quote Originally Posted by ehliba View Post
    I use html code to make login form...
    You should not do this. Use the FE member management for this. See on http://demo.contao.org/en/

    Do you have problems with inserting JS into an HTML CE or module? See allowed tags in settings. Also you can try to implement a file with {{file::myfile.php}} into an HTML CE or module. Search for "contao insert tags".
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  6. #6
    New user
    Join Date
    04-28-16.
    Posts
    16

    Default

    Quote Originally Posted by Andreas View Post
    You should not do this. Use the FE member management for this. See on http://demo.contao.org/en/

    Do you have problems with inserting JS into an HTML CE or module? See allowed tags in settings. Also you can try to implement a file with {{file::myfile.php}} into an HTML CE or module. Search for "contao insert tags".
    Dear Andreas,
    thanks for reply, yes i have problem with inserting JS into an HTML code. It deletes it.Unfortunately I don't have administrator rights as I only maintain the page with the content.
    But I got the requirement to allow certain content on one page only with login and password.
    I am not sure that I know how to implement a file with {{file::myfile.php}}but I try it
    In the meantime I made file like e.g. secure.php that has basic code for login, login verification and redirect to page but I don't how to implement it into contao. Please can you help me with this?
    Last edited by ehliba; 05/03/2016 at 11:55.

  7. #7
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    If you don't have admin rights you should contact the admin.

    No, I can not help you with this. There's no need to reinvent the wheel. Simply use the member management of conato. All you need is build in.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  8. #8
    New user
    Join Date
    04-28-16.
    Posts
    16

    Default


    anyway thanks for reply!

  9. #9
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    Quote Originally Posted by ehliba View Post

    anyway thanks for reply!
    Why ? It should be "wow that's great" as you don't need to write such a security risky piece of code.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  10. #10
    New user
    Join Date
    04-28-16.
    Posts
    16

    Default

    Quote Originally Posted by Andreas View Post
    Why ? It should be "wow that's great" as you don't need to write such a security risky piece of code.
    :>) that's great: but as i said before I don't have admin password to work with member management

  11. #11
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    484

    Default

    Mmh, sorry, but that sounds strange to me - no admin but setting up php scripts for handling member accounts.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  12. #12
    New user
    Join Date
    04-28-16.
    Posts
    16

    Default

    Quote Originally Posted by Andreas View Post
    Mmh, sorry, but that sounds strange to me - no admin but setting up php scripts for handling member accounts.
    yes that's strange, as I only maintain the webpage built in contao. but i only want to accomplish the requirement given to me by trying to embed javasript into html. Am I suspicious?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •