Adding comments module to Album Module (Thickbox)
Posted: Fri Dec 22, 2006 11:03 pm
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?
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?