|
|
Thread Tools | Display Modes |
|
#41
|
||
|
Major grins
|
Quote:
Change you code to Last edited by J Allen; Jan-06-2013 at 10:33 AM. |
|
|
|
||
|
#42
|
|
|
Major grins
|
is there a way to do this with EVENTS? My thoughts were a page like--> http://www.johnparliphotography.com/Weddings with all events listed with thumbnail image and name. Click it and it sends/redirects u to the EVENT sing-in page. Any ideas how to make these galleries redirect?
thanks all! |
|
|
|
|
#43
|
|
|
Big grins
|
I have multiple questions about this but we will start with this. Is there anyway to add a user name with this. I have multiple corporate clients and this is exactly what I need however I think it will only work if I can have user name and password. Wouldn't it basically be a new password box labeled user name and it will send you to a certain page if both the user name and password are correct? www.nkerleyproofs.com under special projects. A drop down username box would be absolutly perfect for me. Ie:drop down the username box and choose a username then enter the password manually.
Last edited by Shooter84; Aug-28-2011 at 02:00 PM. |
|
|
|
|
#44
|
|
|
Big grins
|
If anyone is interested I found a solution to my problem. I added the following code to my description... I will be messing with this to get it so that different user names and passwords will link to different galleries in the future and if anyone is interesed I will post when I get this done.
<html> <center> <script type = "text/javascript"> var count = 2; function validate() { var un = document.myform.username.value; var pw = document.myform.pword.value; var valid = false; var unArray = ["User Name Here"]; // as many as you like - no comma after final entry var pwArray = ["Password Here"]; // the corresponding passwords; for (var i=0; i <unArray.length; i++) { if ((un == unArray[i]) && (pw == pwArray[i])) { valid = true; break; } } if (valid) { window.location = "Insert gallery here"; return false; } var t = " tries"; if (count == 1) {t = " try"} if (count >= 1) { alert ("Invalid username and/or password. You have " + count + t + " left."); document.myform.username.value = ""; document.myform.pword.value = ""; setTimeout("document.myform.username.focus()", 25); setTimeout("document.myform.username.select()", 25); count --; } else { alert ("Still incorrect! You have no more tries left!"); document.myform.username.value = "No more tries allowed!"; document.myform.pword.value = ""; document.myform.username.disabled = true; document.myform.pword.disabled = true; return false; } } </script> <form name = "myform"> <p>USERNAME <select type= "username" name= "username" > <option value=""></option> <option value="Insert User Name Here">Insert User Name Here</option> </select> <br> <br> PASSWORD <input type="password" name="pword"> <br> <br> <input type="button" value="Log In" name="Submit" onclick= "validate()"> </p> </center> </form></html> |
|
|
|
|
#45
|
|
|
Beginner grinner
|
Switch login from Gallery nickname to password
On my top nav bar i have a link to "Client Login" currently the password is set to be the nickname of the gallery. That is the way my web dev did it. I would prefer to have it so it could use the password option from the gallery. Any suggestions how to get this done?
This is what is in my top nav bar - The "smugid" is what is being entered by the client. function opensmugLinkWindow(smugid) { if (document.customerproofs.customerid.value == "") { alert("Client Login ID required"); document.customerproofs.customerid.focus(); } else { var smugmugbase = "http://melanietvetephotography.com/Proofs/"; var smugidname = smugid; var URL = smugmugbase + smugidname; window.location=URL; } } Thanks in advance! |
|
|
|
|
#46
|
|
|
Beginner grinner
|
This does not need to be a security risk! If you change your thinking so that the password is actually used more like a username, it will then redirect you to your password protected gallery. Just food for thought, an example of this is on my website: chrisstraitphoto.smugmug.com. Even if you gain access to the URL for the gallery you still cannot get into it :).
- Chris |
|
|
|
|
#47
|
|
|
Major grins
|
I am trying to create "Client Login" page. I am not sure where to place J Allen's code.
Here is what I did: 1) Created a new gallery 2) Went to "Gallery Settings" and pasted J Allen's code in "Description" under "Extras." 3) I used "Journal" style. I haven't worked on the password configuration yet, but II just want to know what I did so far are correct. ***Also, I am sure this is very basic, but how do I make more room between the footer and "submit" button?*** http://kphoto1.smugmug.com/ClientLog...7cnJsx#000000_ |
|
|
|
|
#48
|
||
|
Major grins
|
Quote:
Would you be up for installing something different, that works a TON better than what I posted here? It'll take some leg work on your end.... |
|
|
|
||
|
#49
|
|
|
Major grins
|
|
|
|
|
|
#50
|
|
|
Major grins
|
Removed for updated tutorial
Last edited by J Allen; Oct-24-2011 at 10:13 PM. |
|
|
|
|
#51
|
||
|
Major grins
|
Quote:
By the way, I just wanted to make sure - I paste the code in "Description" under "Extras" and use "Journal" style, correct?? Thank You! |
|
|
|
||
|
#52
|
||
|
Major grins
|
Quote:
Any style will do...I usually just use smugmug style because of the stretchy feature. |
|
|
|
||
|
#53
|
||
|
Major grins
|
Quote:
I worked on the new "Client Login" page following your instruction. The new link --> http://kphoto1.smugmug.com/Clients/c...9284776_x97vqz All the passwords (testone, testtwo, and testthree) work great. I have a couple of problems though: as you can see, the photo in "testone" gallery did not get hidden for some reason. Also I could not figure out how to change the warning sign (I guess I am supposed to change "Kenya" and so on, but I got too confused and left those code as is.) |
|
|
|
||
|
#54
|
||
|
Major grins
|
Quote:
In your bottom java-script box, find these lines of code: Last edited by J Allen; Oct-24-2011 at 10:13 PM. |
|
|
|
||
|
#55
|
||
|
Major grins
|
Quote:
Thank you for your generous and precise info as always. I worked on the Java you gave me. Again, all the passwords work great and they direct me right to that particular gallery. (Passwords are testone, testtwo, and testthree.) I have one question - is there any way that we can make the warning shows up as a pop-up? Your former "Client Login" codes that I used earlier had pop-up when I insert a wrong password. But this one doesn't. My client login page -> http://kphoto1.smugmug.com/Clients/clients/19284776_x97vqz |
|
|
|
||
|
#56
|
||
|
Major grins
|
Quote:
__________________
www.ericholmesphotography.com |
|
|
|
||
|
#57
|
|
|
Major grins
|
Ok, yeah. That second way to do it kicked my tail. I ended up hiding every gallery in my website and then when you entered a wrong password it took you to the examples page. Quite a mess.
__________________
www.ericholmesphotography.com |
|
|
|
|
#58
|
|
|
Major grins
|
|
|
|
|
|
#59
|
|
|
Workaholic
|
Well, it seems time to give this a try myself. I've got my login gallery here: http://www.rinkshots.com/Clients/Login/19367904_dTMCj2. I currently have three galleries in it, and they seem to work fine. The passwords are 092511, 031311 and 040311. Now on to some more personalization. I like the fixed width of the old journal style, but I want it to by 1000 px wide, instead of 800. How do I go about that? Is the email address on this page another required item, or just for logging purposes? (http://www.gotgrins.com/Clients/Clie...8715544_4DHQ6c). I assume I would have to update this each and every time I add a new gallery as well, to keep up on the passwords and stuff?
Thanks! Scott
__________________
RinkShots.com - Photography by Scott Cooley |
|
|
|
|
#60
|
||
|
Major grins
|
Quote:
If you follow the steps from post #50, you don't have to update anything...Just make sure your gallery name and the "nice name" (from the url) match. |
|
|
|
||
| Tell The World! | |
| Similar Threads | Thread Starter | Forum | Replies | Last Post | ![]() |
| hiding galleries, linking to client page, help! | Gasconphotography | SmugMug Customization | 4 | Apr-28-2012 07:31 AM | |
| Client Creating Holiday Cards?? | smilenj | SmugMug Pro Sales Support | 6 | Aug-28-2010 07:19 AM | |
| B&W section | Kilo | Dgrin Forum Support | 3 | May-03-2010 04:14 PM | |
| New Riverwalk Section is Open | redleash | Landscapes | 5 | Dec-05-2009 10:59 AM | |
| Forum section for photo contests? What do you think? | sdmoel | The Big Picture | 2 | Mar-02-2005 12:10 PM | |
| Thread Tools | |
| Display Modes | |
|
|