mountainpz
Oct-09-2008, 01:54 PM
Hello all! Just joined so pls bear with me...
Here are a few things I have been trying to do but cannot seem to accomplish on my own despite giving them an honest try:
1-Contact form:
I have created one on wufoo and I have pasted the "embed form code" as is in my Footer JavaScript but my "Contact Me" page/gallery does not show anything. I would appreciate some help on that. Link to the page: http://www.zizka.ca/gallery/5191914_PYF7g
2-Category descriptions:
I have entered the following in my Footer JavaScript but all that appears under my Categories at the moment is "30 galleries with 736 photos", etc. I tried changing "breadcrumb" to "breadcrumbTrail" as someone suggested but no luck:
function addCategoryDescription() {
var categoryDescription = {
"Landscapes" : "Images from the wildest parts of our planet",
"Themes" : "Panoramas, Sepias and Views from the Top",
"Sports" : "Active people in the wilderness"
};
if ((YD.hasClass(document.body, "category")) && (!YD.hasClass(document.body, "subcategory"))) {
re = /category_(\S+)/i;
re.exec(document.body.className);
breadCrumb = YD.get("breadcrumbTrail");
if (breadCrumb && categoryDescription[RegExp.$1]) {
divTag = document.createElement("div");
divTag.className = "categoryDescription";
divTag.appendChild(document.createTextNode(categor yDescription[RegExp.$1]));
breadCrumbTrail.parentNode.insertBefore(divTag, breadCrumbTrail.nextSibling);
}
}
if (YD.hasClass(document.body, "homepage")) {
re = /\>([\w\-]+)<\/a>/i;
divTag = YD.get("categoriesBox");
if (divTag) {
divTags = YD.getElementsByClassName("albumTitle", "p", divTag);
for (i=0; i<divTags.length; i++) {
re.exec(divTags[i].innerHTML);
if (categoryDescription[RegExp.$1] != undefined) {
pTag = document.createElement("p");
pTag.className = "categoryDescription";
pTag.appendChild(document.createTextNode(categoryD escription[RegExp.$1]));
divTags[i].parentNode.insertBefore(pTag, divTags[i].nextSibling);
}
}
}
}
}
YE.addListener(window, "load", addCategoryDescription);
Link: http://www.zizka.ca/galleries
3-Watermarks:
I carefully read the tutorial on PNG watermarks but it seems no matter what I do my
watermark images are surrounded by a visible rectangle once uploaded to SmugMug.
That rectangle is the color of the text used instead of just being transparent.
Example:
http://zizka.smugmug.com/photos/389772339_oyFTL-L.jpg
4-Home page:
My business has two parts, one of which is photography and the other, guiding. I would
like visitors to my site to first arrive at an html-only page where they choose either
guiding or photography. The guiding link would lead to other html-only pages
whereas the photography link would take them to my current SmugMug photo
homepage. Is that something I can do entirely within SmugMug or will I have to look
elsewhere?
Thank you kindly for you help... and patience.
Here are a few things I have been trying to do but cannot seem to accomplish on my own despite giving them an honest try:
1-Contact form:
I have created one on wufoo and I have pasted the "embed form code" as is in my Footer JavaScript but my "Contact Me" page/gallery does not show anything. I would appreciate some help on that. Link to the page: http://www.zizka.ca/gallery/5191914_PYF7g
2-Category descriptions:
I have entered the following in my Footer JavaScript but all that appears under my Categories at the moment is "30 galleries with 736 photos", etc. I tried changing "breadcrumb" to "breadcrumbTrail" as someone suggested but no luck:
function addCategoryDescription() {
var categoryDescription = {
"Landscapes" : "Images from the wildest parts of our planet",
"Themes" : "Panoramas, Sepias and Views from the Top",
"Sports" : "Active people in the wilderness"
};
if ((YD.hasClass(document.body, "category")) && (!YD.hasClass(document.body, "subcategory"))) {
re = /category_(\S+)/i;
re.exec(document.body.className);
breadCrumb = YD.get("breadcrumbTrail");
if (breadCrumb && categoryDescription[RegExp.$1]) {
divTag = document.createElement("div");
divTag.className = "categoryDescription";
divTag.appendChild(document.createTextNode(categor yDescription[RegExp.$1]));
breadCrumbTrail.parentNode.insertBefore(divTag, breadCrumbTrail.nextSibling);
}
}
if (YD.hasClass(document.body, "homepage")) {
re = /\>([\w\-]+)<\/a>/i;
divTag = YD.get("categoriesBox");
if (divTag) {
divTags = YD.getElementsByClassName("albumTitle", "p", divTag);
for (i=0; i<divTags.length; i++) {
re.exec(divTags[i].innerHTML);
if (categoryDescription[RegExp.$1] != undefined) {
pTag = document.createElement("p");
pTag.className = "categoryDescription";
pTag.appendChild(document.createTextNode(categoryD escription[RegExp.$1]));
divTags[i].parentNode.insertBefore(pTag, divTags[i].nextSibling);
}
}
}
}
}
YE.addListener(window, "load", addCategoryDescription);
Link: http://www.zizka.ca/galleries
3-Watermarks:
I carefully read the tutorial on PNG watermarks but it seems no matter what I do my
watermark images are surrounded by a visible rectangle once uploaded to SmugMug.
That rectangle is the color of the text used instead of just being transparent.
Example:
http://zizka.smugmug.com/photos/389772339_oyFTL-L.jpg
4-Home page:
My business has two parts, one of which is photography and the other, guiding. I would
like visitors to my site to first arrive at an html-only page where they choose either
guiding or photography. The guiding link would lead to other html-only pages
whereas the photography link would take them to my current SmugMug photo
homepage. Is that something I can do entirely within SmugMug or will I have to look
elsewhere?
Thank you kindly for you help... and patience.