PDA

View Full Version : Guest Book help


Granby
Mar-08-2008, 11:44 AM
I copied and loaded the following code to change "Gallery Comments" to "Guest Book Comments" but nothing changed. The FAQ said to put it in the Java Script Box. I tried the Java Script header & the JS footer but no go.

What did I do wrong?



function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_http://www.smugmug.com/gallery/4465410_qDiWM"))
{
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);

denisegoldberg
Mar-08-2008, 11:50 AM
I copied and loaded the following code to change "Gallery Comments" to "Guest Book Comments" but nothing changed. The FAQ said to put it in the Java Script Box. I tried the Java Script header & the JS footer but no go. What did I do wrong?

function ModifyText ()
{
if (YD.hasClass(document.body, "gallery_http://www.smugmug.com/gallery/4465410_qDiWM"))
{
.....
The YD.hasClass attribute representing the gallery is incorrect. The javascript in the help says it needs to be:
if (YD.hasClass(document.body, "gallery_XXXXXXX"))
So change yours to
if (YD.hasClass(document.body, "gallery_4465410"))
--- Denise

Granby
Mar-08-2008, 12:20 PM
Denise, I tried your fix but it still reads "gallery comments". Any other thoughts on where I missed a turn?

I tried it in the JS header & the JS footer section under control panel, customize.

As you can tell, I'm very new to this but want to learn.

Bob

denisegoldberg
Mar-08-2008, 03:36 PM
Denise, I tried your fix but it still reads "gallery comments". Any other thoughts on where I missed a turn?

I tried it in the JS header & the JS footer section under control panel, customize.

As you can tell, I'm very new to this but want to learn.

Bob
Try it with the gallery key as well. I'm still not sure when that is required, should have mentioned it before. So try this:
if (YD.hasClass(document.body, "4465410_qDiWM"))
It should be fine in the footer javascript. That's where mine is running.

Also - it would be helpful if you'd put your site name into your signature. That way anyone who is trying to help can see your current site. Click You! above and to the left, then edit signature.

--- Denise

Granby
Mar-08-2008, 04:45 PM
Try it with the gallery key as well. I'm still not sure when that is required, should have mentioned it before. So try this:
if (YD.hasClass(document.body, "4465410_qDiWM"))
It should be fine in the footer javascript. That's where mine is running.

Also - it would be helpful if you'd put your site name into your signature. That way anyone who is trying to help can see your current site. Click You! above and to the left, then edit signature.

--- Denise

Thanks once more! Still didn't change it so, it probably isn't the code. I'll go back & look everything over again. I am persistant if nothing else.

Thanks for the reminder about the signature. As you can tell, I'm pretty new at this. I've only been working on my site for a few days. Frustrating but fun!

Bob

denisegoldberg
Mar-08-2008, 04:55 PM
Thanks once more! Still didn't change it so, it probably isn't the code. I'll go back & look everything over again. I am persistant if nothing else.

Thanks for the reminder about the signature. As you can tell, I'm pretty new at this. I've only been working on my site for a few days. Frustrating but fun!

Bob
Do you by any change have hide owner set on your guestbook gallery? I can't see any customizations for that gallery, and hide owner would cause that.

--- Denise

Granby
Mar-08-2008, 05:14 PM
Do you by any change have hide owner set on your guestbook gallery? I can't see any customizations for that gallery, and hide owner would cause that.

--- Denise

I just picked that one up too. It's fixed now.

I'm hot on the trail! I'm only 62 now so I figure have time to get this figured out...

rainman
Mar-23-2008, 09:51 AM
Hi Denise.....I tried it too and it still isn't working. I'm pretty sure i checked everything you mentioned......AUGGGGHHHHHH!:dunno

Erv
Mar-23-2008, 10:56 AM
Hi Denise.....I tried it too and it still isn't working. I'm pretty sure i checked everything you mentioned......AUGGGGHHHHHH!:dunno

I have two sites, on thie first site it worked just fine but I can not seem to get it working on the second site.

#1 http://www.photos4time.com working
#2 http://www.hgbconline.org NOT working