PDA

View Full Version : Need help customizing


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.

Allen
Oct-09-2008, 02:00 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

...
Your link doesn't take me to your gallery.

Take the code and put it between html tags in the gallery description. If it's
form code you can not edit once it's in. You have to paste whole code in
each time hitting edit. So save it in a text file.

<html>
put your code in here.
</html>

mountainpz
Oct-09-2008, 02:34 PM
Thanks for your help Al. Item 1 is taken care of! I guess I still have to learn how to provide proper link though... I just copied and pasted the address bar and that seemede to fail. How does one provide a link for a gallery that does not contain any photos and does not display a "share" button?

Thanks again!

Allen
Oct-09-2008, 05:28 PM
Thanks for your help Al. Item 1 is taken care of! I guess I still have to learn how to provide proper link though... I just copied and pasted the address bar and that seemede to fail. How does one provide a link for a gallery that does not contain any photos and does not display a "share" button?

Thanks again!
It might be because it asks for a password, so can't help much from the outside.

mountainpz
Oct-09-2008, 11:58 PM
OK Let's try that again. Galleries should public and password-free. Here is what am trying to do:

1-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

2-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

3-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.

Allen
Oct-10-2008, 06:32 AM
...
3-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.
See if something like this (http://allen-steve.smugmug.com/gallery/4776685_46R9o) helps, allows more layers. You could use your biobox
for the first level thumbs. Even have a slideshow in there and some text info.

mountainpz
Oct-11-2008, 10:51 AM
See if something like this (http://allen-steve.smugmug.com/gallery/4776685_46R9o) helps, allows more layers. You could use your biobox
for the first level thumbs. Even have a slideshow in there and some text info.

Thanks Allen. That was useful and I think I am getting there. However I cannot seem to adjust the CSS in a way that make the two large banners appear on top of each other instead of beside each oher. That is my topmost level home page and I would like it to only display the two large banners - nothing else whatsoever.

What I want to do next:

1-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

2-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

Thank you kindly for you help... and patience.