• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Client Login button

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 #130 (Hot or Cold), Memol..

The next Dgrin Challenge DSS #131 (Music) is open for entries through June 24th, 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 Aug-05-2012, 07:43 AM
#1
pipercreekphotography is online now pipercreekphotography OP
Big grins
Client Login button
Client Login button change size and text
Hi all,

I was wondering if anyone knew how to change the client login box size and text, or even customize the background image to reflect our sites consistancy. I appreciate your help. My box looks like this as per the original code posted on the client-login post. However this size is not working for firefox everything else. Any suggestions would be great!

this is what I see in firefox:



Brandon
www.pipercreekphotography.com
Old Aug-05-2012, 01:26 PM
#2
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by pipercreekphotography View Post
Client Login button change size and text
Hi all,

I was wondering if anyone knew how to change the client login box size and text, or even customize the background image to reflect our sites consistancy. I appreciate your help. My box looks like this as per the original code posted on the client-login post. However this size is not working for firefox everything else. Any suggestions would be great!

this is what I see in firefox:



Brandon
www.pipercreekphotography.com


carefully look through your script and find this long line, change these parameters first, then we'll add some CSS to style more....first though, get the width adjusted here...and the text...post back with more details on how you want to style it...like do you have a background image you want to try...or what color do you want the box to be...what color do you want the text....things like that :



Code:
 YE.onDOMReady(function(){clientLogin(Sizzle('a[href=/Clients]')[0],'Clients')});function clientLogin(trigger,category){var clDialog=new YAHOO.widget.Panel("clDialog",{width:"325px",fixedcenter:true,zIndex:100,constraintovikrport:true,underlay:"shadow",modal:true,close:true,visible:false,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:.7}});clDialog.setHeader("<h1>Login</h1><p>Please Enter Your Password To Continue.</p>");clDialog.setBody('<label>Login Name: </label><input id="clUsername" type="text" />');clDialog.setFooter('<input id="clLoginButton" type="button" value="submit" />');clDialog.render(document.body);YE.addListener(trigger,'click',function(e){YE.preventDefault(e);clDialog.show()});YE.addListener('clLoginButton','click',function(e){var value=YD.get('clUsername').value;if(value!=''){var url='/'+category+'/'+value;window.location.href=url}else{alert('Please enter your username to continue')}})};
__________________
-Joe Allen
My Smugmug Site
Old Aug-05-2012, 06:48 PM
#3
pipercreekphotography is online now pipercreekphotography OP
Big grins
Allen,

Found the line of code and changed it. Now I think I would like to play around with the color or maybe add a specific image to the box in order for it to look like other items on my site.

Quote:
Originally Posted by J Allen View Post
carefully look through your script and find this long line, change these parameters first, then we'll add some CSS to style more....first though, get the width adjusted here...and the text...post back with more details on how you want to style it...like do you have a background image you want to try...or what color do you want the box to be...what color do you want the text....things like that :



Code:
 YE.onDOMReady(function(){clientLogin(Sizzle('a[href=/Clients]')[0],'Clients')});function clientLogin(trigger,category){var clDialog=new YAHOO.widget.Panel("clDialog",{width:"325px",fixedcenter:true,zIndex:100,constraintovikrport:true,underlay:"shadow",modal:true,close:true,visible:false,draggable:false,effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:.7}});clDialog.setHeader("<h1>Login</h1><p>Please Enter Your Password To Continue.</p>");clDialog.setBody('<label>Login Name: </label><input id="clUsername" type="text" />');clDialog.setFooter('<input id="clLoginButton" type="button" value="submit" />');clDialog.render(document.body);YE.addListener(trigger,'click',function(e){YE.preventDefault(e);clDialog.show()});YE.addListener('clLoginButton','click',function(e){var value=YD.get('clUsername').value;if(value!=''){var url='/'+category+'/'+value;window.location.href=url}else{alert('Please enter your username to continue')}})};
Old Aug-05-2012, 09:37 PM
#4
J Allen is offline J Allen
Major grins
J Allen's Avatar
Quote:
Originally Posted by pipercreekphotography View Post
Allen,

Found the line of code and changed it. Now I think I would like to play around with the color or maybe add a specific image to the box in order for it to look like other items on my site.

try something like this:


Code:
/*pop-up login form*/
#clDialog {background-image:none;
background-color:#000;color:#fff}
#clDialog.yui-panel .ft {background-image:none;
background-color:#000;border:none}
#clDialog.yui-panel .hd h1{text-shadow:none}
.yui-panel .bd {border:none}
.yui-panel .hd {background-image:none;
background-color:#000;border:none}
#clDialog .bd {text-align:center}
#clDialog {border:2px solid #fff}
__________________
-Joe Allen
My Smugmug Site
Old Aug-06-2012, 06:41 AM
#5
aztek081 is offline aztek081
Big grins
i like that format, how does it work Clients enter there name and then go to there gallery or do they then need to enter a password also?
Old Aug-06-2012, 09:32 AM
#6
pipercreekphotography is online now pipercreekphotography OP
Big grins
For our site the clients password is a unique ID, associated with the gallery. So if I create a gallery the client's password is the name of the gallery.

Quote:
Originally Posted by aztek081 View Post
i like that format, how does it work Clients enter there name and then go to there gallery or do they then need to enter a password also?
Old Aug-06-2012, 11:52 AM
#7
aztek081 is offline aztek081
Big grins
does it work with sub-categories
Old Aug-06-2012, 03:50 PM
#8
pipercreekphotography is online now pipercreekphotography OP
Big grins
It should...the password is just the name of the gallery

Quote:
Originally Posted by aztek081 View Post
does it work with sub-categories
Old Aug-06-2012, 03:51 PM
#9
pipercreekphotography is online now pipercreekphotography OP
Big grins
Thanks J. I will play around with it

Quote:
Originally Posted by J Allen View Post
try something like this:


Code:
 
/*pop-up login form*/
#clDialog {background-image:none;
background-color:#000;color:#fff}
#clDialog.yui-panel .ft {background-image:none;
background-color:#000;border:none}
#clDialog.yui-panel .hd h1{text-shadow:none}
.yui-panel .bd {border:none}
.yui-panel .hd {background-image:none;
background-color:#000;border:none}
#clDialog .bd {text-align:center}
#clDialog {border:2px solid #fff}
Tell The World!  
Similar Threads Thread Starter Forum Replies Last Post
How to place like button inline with my nav bar gerdo SmugMug Customization 2 Jun-14-2011 10:57 AM
Navbar help thread Andy SmugMug Customization 4975 May-31-2010 03:29 PM
I'm shooting a Wedding Advice please 98olds Weddings 142 Mar-01-2010 06:56 AM
Login Button redhalton SmugMug Customization 2 Aug-29-2008 08:43 AM
Spacing Nav Bar Buttons OSIR SmugMug Customization 5 Sep-13-2007 06:38 AM


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