Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Member #
    20830
    Hi all,

    i do not want to delve into PHP or ASP to provide password protection on my site. I only need a simple way to ensure people register and login to access a particular page - our image gallery.

    I have been thinking, and as opur gallery is provided by my hosting company on a different URL (i.e. gallery.mysite.com) i thought of creating a page on my site called gallery, that would ask the user for a registration or login. Upon login, the user would then be redirected to the gallery.mysite.com URL where they could see all images. If needs be, i could use a simple form for users to send me the registration request, that way we can keep closer tabs on the users that register.

    Can this be achieved easily?

    Hope so

    thanks

    de049.

  2.  

  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    You can't have the "user registration or login" without PHP or ASP.
    You can't have them send you the registration request (form) without PHP or ASP.

    The only way to do it without server-side scripting is if they email you manually,
    and you give them the password for the page that is protected with .htaccess,
    which doesn't require PHP or ASP.

    You could just give the URL a strange name that nobody could figure out,
    and then give that URL to anyone that sends you an email "to register".
    The problem is, they could pass the URL to anyone else, or bookmark it on
    their PC, where other users could see it ... not very secure.

    What is the gallery about, and how many "users" would you expect to register?


  4. #3
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Member #
    20830
    well thats just it. the gallery will contain photos of young children and i was hoping only members (i.e. parents) could have access upon my authorisation.

    The gallery is on a gallery.mysite.com URL. I was thinking of linking gallery buttons to a www.mysite.com/gallery.html page, where i'd ask for login credentials.

    Now that my site is done, can i fit PHP on this one gallery.htmnl page to accomplish this? I wouldn't want to consider redoing all my pages at this stage, but just the one i wouldn't mind.

    please advise and thanks!

    de049.

  5. #4
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    First of all, you either need to change the extension of the gallery page
    to .php ... or use .htaccess to process your .html pages as PHP. Not sure
    you know how to use .htaccess?

    Then, you need a simple page (an HTML form) where they can enter a password.
    That form goes to another PHP script that logs them in.

    Now, on the gallery page, you check for the login and if it's not there, you
    send them back to some other page (you don't let them view the gallery).

    You will need to have access to the gallery page to insert the PHP scripting.
    But it sounds like you don't have access to that?

    EDIT:
    It all has to be done on the same server that contains the gallery page.
    And above, I'm just describing what will happen ... we can walk you through the scripting.



    .


  6. #5
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Member #
    20830
    hi mlseim,

    really appreciate your time and support. :ichatwink:

    have a look at the site (its only a provisional upload of the site, just to see what it would look like online) Its by no means the final product. But i can probably better explain how i prefer this to work by showing you this.

    www.mautd-gib.com

    The actual gallery is here: http://gallery.manutd-gib.com but i want to direct people who click on any Gallery link to go to this other page first, where we'd place the login form that you mention http://www.mautd-gib.com/gallery. From here, once authnticvated, i would expect the user to be redirected (through PHP?) to the actual gallery URL.

    After pinging the site and gallery URLs, both seem to be hosted on the same server, so i guess that answers your question? However i dont have access to the HTML content of the gallery, thats controlled by the host.

    I think this should be ok to implement what you mentioned, but i have no knowledge of PHP ( i have programmed in various other languages, just never delved into PHP - not yet anyways, certainly will do for my future sites though).

    Anytyhing you can send my way or recommend i would greatly appreciate.

    Once again, thanks a million for your time.

    de049.

  7. #6
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    Well, in order to make this work, you'll have to have access the the actual
    gallery pages (where the photos are rendered). But it looks like you don't.
    So I would say you're not going to be able to protect it.

    But I notice on this page, http://gallery.manutd-gib.com/#home
    they talk about "public images" and "public albums" ... that leads me to believe
    that you can create "private albums". Why can't you create a private album and
    give the login to your clients?

    The only other option is to install your own gallery script on your own website,
    and use a PHP/MySQL gallery script with user log-ins, etc. Make your own
    gallery instead of using a remote gallery service.

    By the way, this URL doesn't work:
    http://www.mautd-gib.com/
    EDIT ... I see now, it's supposed to be:
    http://www.manutd-gib.com/

    How many photos do you have, and how many different users will be
    needing to access them? Maybe it's easier to just put the photo gallery
    on your own website and make a simple password script?



    .


  8. #7
    Junior Member
    Join Date
    Jan 2010
    Posts
    7
    Member #
    20830
    thats an alternative that i have been giving some thought. Gallery n my own page. however, do you mean use a JS script? or are you still refering to PHP?

    Can i add PHP to this single page only, where a user must authnticate else the page is not visible?

    thanks

    de049

  9. #8
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Location
    Cottage Grove, Minnesota
    Posts
    7,693
    Member #
    5580
    Liked
    717 times
    What are you using to make your web pages? Dreamweaver?

    I'm thinking that you make the gallery manually, like any other page,
    and then you add password protection to those pages later on. Of course,
    to add photos, you would have to edit the web pages.

    Create a directory on your own website called "gallery" and upload your
    manually created gallery, however you created it. It all depends on how
    "automated" you want to make it. If you're the only person that edits the
    website, maybe a gallery created by hand is the easiest way to do it?

    I'm just looking for the easiest way to get your own gallery without installing
    a whole massive script. The password part can be added later.


  10. #9
    Senior Member aeroweb99's Avatar
    Join Date
    Feb 2008
    Location
    Port Huron, Michigan
    Posts
    1,037
    Member #
    16468
    Liked
    1 times
    One other option... Bravenet, or some other service that will do this for you. Looks like copy and paste code, which will actually take you to a different server for the access info, then you can decide where to redirect to. I have not used it, but I'm guessing that's how it works....and it's free!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:27 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com