• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Customization Help with home page

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 Nov-25-2008, 09:13 PM
#1
blln314 is offline blln314 OP
Big grins
Help with home page
I have been working on the site now for a few days and I think it close to where I want it I am just tweaking things now. I have a slide show playing on the home page and I noticed if you click on the picture itself it links you back to smugmug home page. I would like it to link to my galleries page. Is this possible. I am sure it is possible but how do I do it. Also i was able to change the "gallery comments" to "guestbook comments" fine. I also wanted to change gallery to testimonial but if I add the same code with a different gallery id (for the testimonial gallery) it only recognizes one of them in the javascript. Any way to change them both? Allen has been helping me and he is awesome but I think that I have asked him enough and he probably hates me right now. Thanks for all your help. www.augusta-digital-imaging.smugmug.com

Last edited by blln314; Nov-25-2008 at 09:24 PM.
Old Nov-25-2008, 09:16 PM
#2
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by blln314
I have been working on the site now for a few days and I think it close to where I want it I am just tweaking things now. I have a slide show playing on the home page and I noticed if you click on the picture itself it links you back to smugmug home page. I would like it to link to my galleries page. Is this possible. I am sure it is possible but how do I do it. Allen has been helping me and he is awesome but I think that I have asked him enough and he probably hates me right now. Thanks for all your help. www.augusta-digital-imaging.smugmug.com
In your bio where you define your slideshow, change this line:

clickUrl: 'http://www.smugmug.com',

to

clickUrl: 'http://augusta-digital-imaging.smugmug.com/galleries',
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-25-2008, 09:56 PM
#3
blln314 is offline blln314 OP
Big grins
Quote:
Originally Posted by jfriend
In your bio where you define your slideshow, change this line:

clickUrl: 'http://www.smugmug.com',

to

clickUrl: 'http://augusta-digital-imaging.smugmug.com/galleries',
Beautiful. Thanks Jfriend. No idea about the other things?
Old Nov-26-2008, 07:45 AM
#4
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by blln314
Beautiful. Thanks Jfriend. No idea about the other things?
If you can be more specific about what exactly you want changed to testimonial with a link to the page and an idea of what pages you want it changed on in addition to that one (if any), then I can take a look.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-26-2008, 12:35 PM
#5
blln314 is offline blln314 OP
Big grins
Quote:
Originally Posted by jfriend
If you can be more specific about what exactly you want changed to testimonial with a link to the page and an idea of what pages you want it changed on in addition to that one (if any), then I can take a look.
Sure. on the guest book page and all original pages at the bottom is "gallery comment". I first installed a guestbook page and in order to change the word gallery to guestbook I entered pre written code I found in a tutorial. It worked fine.

I then made a testimonials page and want to change the word gallery (next to gallery comment) to testimonial. Actually If I can just get rid of "gallery comment" and replace it with something like "write testimonial" then perfect. Problem is I used the same code as on the guestbook page and changed the gallery id and the word guestbook to testimonial then put it in javascript right below the other. Only one seems to work though. I either have "guestbook comments" or "testimonial comments" but not both on their respective pages. Hope that clears things up a little more. Thanks for the help.
__________________
Rick-
Augusta Digital Imaging
www.augustaphotostudio.com
Old Nov-27-2008, 03:46 PM
#6
blln314 is offline blln314 OP
Big grins
Still looking for help if anyone can offer advice.
__________________
Rick-
Augusta Digital Imaging
www.augustaphotostudio.com
Old Nov-28-2008, 08:42 AM
#7
blln314 is offline blln314 OP
Big grins
This seems like a pretty simple problem. Surely someone can help.
__________________
Rick-
Augusta Digital Imaging
www.augustaphotostudio.com
Old Nov-28-2008, 11:44 AM
#8
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by blln314
Sure. on the guest book page and all original pages at the bottom is "gallery comment". I first installed a guestbook page and in order to change the word gallery to guestbook I entered pre written code I found in a tutorial. It worked fine.

I then made a testimonials page and want to change the word gallery (next to gallery comment) to testimonial. Actually If I can just get rid of "gallery comment" and replace it with something like "write testimonial" then perfect. Problem is I used the same code as on the guestbook page and changed the gallery id and the word guestbook to testimonial then put it in javascript right below the other. Only one seems to work though. I either have "guestbook comments" or "testimonial comments" but not both on their respective pages. Hope that clears things up a little more. Thanks for the help.
I've been out of town for a few days. All you need to do to make your existing code work is change the word ModifyText to ModifyTexyt2 in one of your two copies. In Javascript, there can only be one function named ModifyText so the second declaration is just replacing the previous one, thus only one ever works at a time.

Code:
function ModifyText2 ()
{
  if (YD.hasClass(document.body, "gallery_6653292")) 
  {
    var objElement = YD.get("comment")
    if (objElement != null) 
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'Testimonial');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText2);

function ModifyText () 
{
  if (YD.hasClass(document.body, "gallery_6651633")) 
  {
    var objElement = YD.get("comment")
    if (objElement != null) 
    {
      var str = new String(objElement.innerHTML);
      str = str.replace(/\gallery/gi, 'Guestbook');
      objElement.innerHTML = str;
    }
  }
}

YE.onAvailable("comment", ModifyText);
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-28-2008, 01:45 PM
#9
blln314 is offline blln314 OP
Big grins
Thanks John I appreciate the help it worked perfectly. If you get a chance and you feel like it could you check out my site and see if you have any other ideas that might spruce it up a little. Its a 1000 times better and I am happy now. Just if you are looking for something to do. If anyone else that reads this has ideas I am all ears. Any other comments are welcome too. Thanks for the help.
__________________
Rick-
Augusta Digital Imaging
www.augustaphotostudio.com
Old Nov-28-2008, 02:37 PM
#10
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by blln314
Thanks John I appreciate the help it worked perfectly. If you get a chance and you feel like it could you check out my site and see if you have any other ideas that might spruce it up a little. Its a 1000 times better and I am happy now. Just if you are looking for something to do. If anyone else that reads this has ideas I am all ears. Any other comments are welcome too. Thanks for the help.
Here are a few other things to consider:

On your About Us page, I'd do three things:

/* hide gallery page navigation on about page */
.gallery_6627507 .pageNav {display:none;}

/* hide breadcrumb object on about page, except when logged in for tools button */
.notLoggedIn .gallery_6627507 #breadcrumb {display:none;}

/* get rid of extra top border on about page */
.gallery_6627507 #albumNav_top {border:none;}

Then, repeat all three rules for your guestbook page and testimonials page with gallery number 6651633 and 6653292 instead of 6627507 to get the same effect there.

I'd implement the YUI style picker for your galleries to replace the orphaned and old fashioned Style drop-down with something much nicer.

I'd change the top level of your breadcrumb to point to your galleries page rather than the home page with the script in this posting (mod the script for your own domain) so that user's can always back up one level using the breadcrumb.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-28-2008, 11:47 PM
#11
blln314 is offline blln314 OP
Big grins
Quote:
Originally Posted by jfriend
Here are a few other things to consider:

On your About Us page, I'd do three things:

/* hide gallery page navigation on about page */
.gallery_6627507 .pageNav {display:none;}

/* hide breadcrumb object on about page, except when logged in for tools button */
.notLoggedIn .gallery_6627507 #breadcrumb {display:none;}

/* get rid of extra top border on about page */
.gallery_6627507 #albumNav_top {border:none;}

Then, repeat all three rules for your guestbook page and testimonials page with gallery number 6651633 and 6653292 instead of 6627507 to get the same effect there.

I'd implement the YUI style picker for your galleries to replace the orphaned and old fashioned Style drop-down with something much nicer.

I'd change the top level of your breadcrumb to point to your galleries page rather than the home page with the script in this posting (mod the script for your own domain) so that user's can always back up one level using the breadcrumb.
Thanks John. I did all those things and they worked out great except I don't really know what the last thing did I might not have done it right. I don't really know what I am looking for. I appreciate all your help.
__________________
Rick-
Augusta Digital Imaging
www.augustaphotostudio.com
Old Nov-29-2008, 12:05 AM
#12
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by blln314
Thanks John. I did all those things and they worked out great except I don't really know what the last thing did I might not have done it right. I don't really know what I am looking for. I appreciate all your help.
Wow, you are quick. The point of the last one is to make a click on the top level of your breadcrumb:



Take you to your galleries page, not to your homepage. If you want to be able to open a category and then use the breadcrumb to get back to the galleries page (which is what is the most natural), then that's what this change is for.

It is not working on your page because you need to tweak the code for your site as the example was made for somebody else's domain. Use this code that I have inserted your domain into.

Code:
YE.onContentReady("breadCrumbTrail", function () {this.innerHTML = this.innerHTML.replace(/href="\/"|href="http:\/\/www.augustaphotostudio.com"/, 'href="/galleries"');});
Also, you have a javascript error on your site. On the site-wide-customization page, you need to scroll down to where is says "Body Tag" and delete what's in that field and then hit Update at the bottom of the screen. It looks like you may have some remnants of some old slideshow code there that is being called when your page is loaded, but is no longer present so it creates a scripting error.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Nov-29-2008, 06:23 AM
#13
Allen is offline Allen
"tweak 'til it squeaks"
Allen's Avatar
Quote:
Originally Posted by jfriend
...

Code:
YE.onContentReady("breadCrumbTrail", function () {this.innerHTML = this.innerHTML.replace(/href="\/"|href="http:\/\/www.augustaphotostudio.com"/, 'href="/galleries"');});
...
John just curious. What happens if logged in with nickname and the top link is
not www.augustaphotostudio.com? Does the js need an "OR" for nickname.smugmug.com?
Old Nov-29-2008, 06:43 AM
#14
jfriend is offline jfriend
Scripting dude-volunteer
Quote:
Originally Posted by Allen
John just curious. What happens if logged in with nickname and the top link is
not www.augustaphotostudio.com? Does the js need an "OR" for nickname.smugmug.com?
You are correct that this is only set up to work everywhere with the custom domain. It could easily be be modified to work with the nickname too. I didn't happen to know what his nickname was. Fortunately, categories only use "/" for the top level link so it works in categories for either. It's only galleries where it needs the hostname to work perfectly there.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Tell The World!  

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