|
|
Thread Tools | Display Modes |
|
#1
|
|
|
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. |
|
|
|
|
#2
|
||
|
Scripting dude-volunteer
|
Quote:
clickUrl: 'http://www.smugmug.com', to clickUrl: 'http://augusta-digital-imaging.smugmug.com/galleries',
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#3
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#4
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#5
|
||
|
Big grins
|
Quote:
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. |
|
|
|
||
|
#6
|
|
|
Big grins
|
Still looking for help if anyone can offer advice.
|
|
|
|
|
#7
|
|
|
Big grins
|
This seems like a pretty simple problem. Surely someone can help.
|
|
|
|
|
#8
|
||
|
Scripting dude-volunteer
|
Quote:
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#9
|
|
|
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.
|
|
|
|
|
#10
|
||
|
Scripting dude-volunteer
|
Quote:
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 Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#11
|
||
|
Big grins
|
Quote:
|
|
|
|
||
|
#12
|
||
|
Scripting dude-volunteer
|
Quote:
![]() 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"');});
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
|
#13
|
||
|
"tweak 'til it squeaks"
|
Quote:
not www.augustaphotostudio.com? Does the js need an "OR" for nickname.smugmug.com?
__________________
Al My Website my Blog Mozilla Firefox Web Developer Firebug Customization FAQ Banner/Navbar/Slideshow Tutor |
|
|
|
||
|
#14
|
||
|
Scripting dude-volunteer
|
Quote:
__________________
--John Homepage • Popular JFriend's javascript customizations • Secrets for getting fast answers on Dgrin Always include a link to your site when posting a question |
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|