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?
Adding comments module to Album Module (Thickbox)
Adding comments module to Album Module (Thickbox)
Last edited by jack4ya on Fri Dec 22, 2006 11:42 pm, edited 1 time in total.
Re: Adding comments module to Album Module (Thickbox)
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
"+caption+"{cms_module module='comments' modulename='album' pageid=$entry->id}Close
Re: Adding comments module to Album Module (Thickbox)
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.