Page 1 of 1

Adding comments module to Album Module (Thickbox)

Posted: Fri Dec 22, 2006 11:03 pm
by jack4ya
I've inserted {cms_module module='comments' modulename='Album' pageid=$entry->id} in the javascript, but understandable the code gets parsed in the wrong way...

It has something to do with the smarty coding I think, how do I have properly parsed?

in the javascript (in de module/album/db/js folder)

TB_WIDTH = imgPreloader.width + 30;
TB_HEIGHT = imgPreloader.height + 60;
$("#TB_window").append(""
+ ""+caption+"Close{cms_module module='comments' modulename='Album' pageid=$entry->id}");
$("#TB_closeWindowButton").click(TB_remove);
TB_position();
$("#TB_load").remove();
$("#TB_ImageOff").click(TB_remove);
$("#TB_window").slideDown("normal");
}


Structural thinking error of mine... I think the question must be:
Is there a possibilty to have visitors leave comments (with the comment module?) at a picture/image in Album module?
Preferably at the popped up enlargement?

Re: Adding comments module to Album Module (Thickbox)

Posted: Sat Dec 23, 2006 2:08 am
by Dr.CSS
Did you try putting it inside the div? I think you may have to use the friendly name for Album/album

"+caption+"{cms_module module='comments' modulename='album' pageid=$entry->id}Close

Re: Adding comments module to Album Module (Thickbox)

Posted: Sat Dec 23, 2006 10:46 am
by jack4ya
No I haven't but the popup is javascript generated and if I do it like that every photo will have the same usercomments, instead of every photo its own user comment.