• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization New Naviagation Help?

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Sep-12-2012, 02:41 AM
#1
JamesonNorth is offline JamesonNorth OP
Big grins
JamesonNorth's Avatar
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
Old Sep-12-2012, 02:46 PM
#2
Smug Eric is offline Smug Eric
Smug Hero
Smug Eric's Avatar
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.
__________________
Eric
Support Hero and Customeister
http://www.smugmug.com/help
Old Sep-12-2012, 03:24 PM
#3
JamesonNorth is offline JamesonNorth OP
Big grins
JamesonNorth's Avatar
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.
Old Sep-12-2012, 03:40 PM
#4
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by JamesonNorth View Post
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.

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>
__________________
-Joe Allen
My Smugmug Site
Old Sep-12-2012, 04:04 PM
#5
JamesonNorth is offline JamesonNorth OP
Big grins
JamesonNorth's Avatar
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?
Old Sep-12-2012, 04:07 PM
#6
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by JamesonNorth View Post
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?



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!
__________________
-Joe Allen
My Smugmug Site
Tell The World!  
Tags
css , customize , interface , javascript , navigation

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump