Would work great with a check box to as there are only to possible states - on or off...originals on = check, originals off = uncheck.
The check box would also take fewer space on the screen.
Would work great with a check box to as there are only to possible states - on or off...originals on = check, originals off = uncheck.
The check box would also take fewer space on the screen.
Sebastian
:nono my (sarcastic) point to David was it's not a "box" but a "button"
I've been serious and I thought he meant this which is called a checkbox according to the source code and would work very good for such a script. <img src="https://us.v-cdn.net/6029383/emoji/mwink.gif" border="0" alt="" >
I've been serious and I thought he meant this which is called a checkbox according to the source code and would work very good for such a script. <img src="https://us.v-cdn.net/6029383/emoji/mwink.gif" border="0" alt="" >
I dunno if it's the same in the Windows world, but for Macs a check box is only for when there are multiple options, and a radio button is for one single option. On or off.
What I'm getting at here is that I want only the mulitple photos cart to show up.
So that it looks like this:
Bump so that Ivar can help me with the JS to rid myself of the "Buy This Photo" text and button and leave me only with the bulk cart that says only "Buy" (see above).
Bump so that Ivar can help me with the JS to rid myself of the "Buy This Photo" text and button and leave me only with the bulk cart that says only "Buy" (see above).
Just tried this, this works for smugmug style for sure - didn't test the other styles. Just replace the alternate text with nothing (delete it). Have to further hack this for all viewing styles, and also for cat bottom, I think?
Bump so that Ivar can help me with the JS to rid myself of the "Buy This Photo" text and button and leave me only with the bulk cart that says only "Buy" (see above).
Is that good or bad that people start bumping posts specifically for me? Have no fear, Ivar is here
Just tried this, this works for smugmug style for sure - didn't test the other styles. Just replace the alternate text with nothing (delete it). Have to further hack this for all viewing styles, and also for cat bottom, I think?
Is that good or bad that people start bumping posts specifically for me? Have no fear, Ivar is here
What you had Andy should work, but make sure you call it with the first line. It can be done easier i think.
I tried what Andy had, and had little luck.
Anyway, I took the code that you gave me, Ivar, and tweaked it some, because in some views I was still left with "photo", so I added a line trying to get that out, and it didn't seem to help. I also wanted to change "view cart" to "cart", and that's hit and miss, too. As you change the viewing style you're just as likely to get it working as not...any more ideas?
Anyway, I took the code that you gave me, Ivar, and tweaked it some, because in some views I was still left with "photo", so I added a line trying to get that out, and it didn't seem to help. I also wanted to change "view cart" to "cart", and that's hit and miss, too. As you change the viewing style you're just as likely to get it working as not...any more ideas?
Sorry i don't get where it goes. I tryed to paste it in few places but there is only some coding getting displayed on the front page. www.mirophoto.com
[UPDATED] - minor bug
ok guys...i rewrote this hack a little different, it works with all styles and does both header and footer cart icons.
addEvent(window, "load", redoCart);
function redoCart() {
oList = getElementsByClass("cartbuttons");
for (var i=0; i < oList.length ; i++)
{
aList = oList[i].getElementsByTagName("a");
for (var j=0; j < aList.length ; j++)
aList[j].parentNode.removeChild(aList[j]);
bList = getElementsByClass("cart_add", oList[i], "img");
for (var k=0; k < bList.length ; k++)
bList[k].parentNode.removeChild(bList[k]);
oList[i].innerHTML = oList[i].innerHTML.replace(/\|/gi, '&nbsp;<span class="title">cart:</span>')
}
}
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if ( node == null )
node = document;
if ( tag == null )
tag = '*';
var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^| )" + searchClass + "( |$)");
for (var i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
Cheers,
David
Sir;
very impressive. I am wondering if the text of the cart button can be reworded and text color changed in addition to the background color of the cart buttons? pick any gallery (avman.smugmug.com) and located above the cart button is a banner type button I placed there to draw attention to the the cart buttons. While proudly displaying the slide show I put on my home page, my friend went to click on the "banner" type button and did not receive a response. Then he told me he didn't even see the cart buttons! Please advise if this is doable and where the code above is placed. Thank you!
Respectfully,
Tom
thee avman
I really don't have anything nifty to say so I will remain quiet and observe!
Comments
Not a check box but a radio button.
Portfolio • Workshops • Facebook • Twitter
right again, Andy!
Dgrin FAQ | Me | Workshops
I'm just sayin'
Portfolio • Workshops • Facebook • Twitter
The check box would also take fewer space on the screen.
Sebastian
SmugMug Support Hero
:nono my (sarcastic) point to David was it's not a "box" but a "button"
Portfolio • Workshops • Facebook • Twitter
Sebastian
SmugMug Support Hero
I dunno if it's the same in the Windows world, but for Macs a check box is only for when there are multiple options, and a radio button is for one single option. On or off.
Either way, can someone get that working?
Dgrin FAQ | Me | Workshops
Can the code below be modified to *remove* the cart text? Not replace, but remove?
Dgrin FAQ | Me | Workshops
So that it looks like this:
Dgrin FAQ | Me | Workshops
Bump so that Ivar can help me with the JS to rid myself of the "Buy This Photo" text and button and leave me only with the bulk cart that says only "Buy" (see above).
Dgrin FAQ | Me | Workshops
Portfolio • Workshops • Facebook • Twitter
What you had Andy should work, but make sure you call it with the first line. It can be done easier i think.
www.ivarborst.nl & smugmug
I tried what Andy had, and had little luck.
Anyway, I took the code that you gave me, Ivar, and tweaked it some, because in some views I was still left with "photo", so I added a line trying to get that out, and it didn't seem to help. I also wanted to change "view cart" to "cart", and that's hit and miss, too. As you change the viewing style you're just as likely to get it working as not...any more ideas?
I also have this in my CSS:
Thanks for the help, Ivar.
Dgrin FAQ | Me | Workshops
www.ivarborst.nl & smugmug
ok guys...i rewrote this hack a little different, it works with all styles and does both header and footer cart icons.
Cheers,
David
SmugMug API Developer
My Photos
Portfolio • Workshops • Facebook • Twitter
www.mirophoto.com
www.mirophoto.com
smooth photography of...
very impressive. I am wondering if the text of the cart button can be reworded and text color changed in addition to the background color of the cart buttons? pick any gallery (avman.smugmug.com) and located above the cart button is a banner type button I placed there to draw attention to the the cart buttons. While proudly displaying the slide show I put on my home page, my friend went to click on the "banner" type button and did not receive a response. Then he told me he didn't even see the cart buttons! Please advise if this is doable and where the code above is placed. Thank you!
Respectfully,
Tom
thee avman
Tom
http://avman.smugmug.com/