|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Big grins
|
New Naviagation Help?
I'm looking to simplify my site naviagation and integrate my naviagation with my business plan. I am in a Zenfolio trial period right now, and I fell in love with this feature, which I have here: http://jamesonnorth.zenfolio.com/clients.html
I really want to do this with my SmugMug account, but instead of it only linking with one gallery, I'd like it to link with their Sub-category which has all their galleries in it. I have no clue how to go about this. I thought about assigning client numbers to the keywords of all my photos, but at best I'd end up with one huge smart gallery per client, which I don't want. If anyone has an idea of how to go about this, I'd be very grateful. I'm not exactly great with SmugMug customization. I also really like the user inteface on the above linked Zenfolio site of mine, and I'd really like to use something similar on SmugMug, so if anyone has any suggestions on that, I'd be eternally grateful! If you need to see the current mess, my SmugMug site is jamesonnorth.smugmug.com or www.jnphoto.biz |
|
|
|
|
#2
|
|
|
Smug Hero
|
I know the code from here:
http://www.dgrin.com/showthread.php?t=217514 Can be used to set up a client login type button for your page. But all the uses of that I have seen are a popup box. I don't know if the code from there has in information to embed the box in a page like on the page you linked. But that shouldn't be too difficult. |
|
|
|
|
#3
|
|
|
Big grins
|
That doesn't work. I've tried it at least twice, having removed all my customizations prior to trying it so I eliminate any problems caused by other CSS or JS. Can I implement some sort of search that links you to a client sub-category? The password pop-up page just doesn't work for me; I don't understand how it works for anyone else.
|
|
|
|
|
#4
|
||
|
Major grins
|
Quote:
Try this and see if you like...just make a new unlisted gallery and add this to the description area: Code:
<html>
<div style="width: 70%; text-align: center; border: 1px solid #999999; background-color: #666666; margin:auto; padding:8px">
<td width="30"></td>
<td width="400"><form name="f_login">
<p style="font-size: 1.2em">To view your photographs, please enter your password.</p>
<p>
Note: Passwords are case-sensitive and should be entered exactly as provided.
</p>
<p>password: <input name="pword" onkeypress="return checkEnter(event)" size="30" type="password">
<input value="Login" onclick="Login()" type="button"></p>
</form>
<br/>
<p>
If you need assistance, please contact me at <a href="mailto:photographer@mysite.com">photographer@mysite.com</a>
</p>
</td>
</tr>
</tbody></table>
</div>
<script type="text/javascript">
<!--
function checkEnter(e){ //e is event object passed from function invocation
var characterCode; // literal character code will be stored in this variable
if(e && e.which){ //if which property of event object is supported (NN4)
e = e;
characterCode = e.which; //character code is contained in NN4's which property
}
else{
e = event;
characterCode = e.keyCode; //character code is contained in IE's keyCode property
}
if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
Login(); //submit the form
return false;
}
else{
return true;
}
}
function Login(){
var done=0;
var pword=document.f_login.pword.value;
pword=pword.toLowerCase();
/////////////////// Add new galleries and passwords below here /////////////////
if (pword=="passwordone") { window.location="https://www.google.com/"; done=1; }
if (pword=="test2") { window.location="XXXXXX_XXXXX"; done=1; }
if (pword=="test3") { window.location="XXXXXX_XXXXX"; done=1; }
////////////////////////////////////////////////// end galleries////////////////////////////////////////////////
if (done==0) { alert("Password not accepted. Please try again."); }
}
-->
</script>
</html>
|
|
|
|
||
|
#5
|
|
|
Big grins
|
Okay, so this is just a simple redirect form then? I just edit the description to include all my client subcategories (or really any URL I want to send them to) and when they enter the password, their browser redirects them with JS?
Simple and brilliant. This is exactly what I wanted. So I can use this in an HTML only page I create so I can get the look and feel I want as well as maintain a working login? |
|
|
|
|
#6
|
||
|
Major grins
|
Quote:
![]() I wish smugmug had a built in feature for this...instead of all this hacking...but I like the amount of hacking your able to do! |
|
|
|
||
| Tell The World! | |
| Tags | |
| css , customize , interface , javascript , navigation | |
| Thread Tools | |
| Display Modes | |
|
|