Adding comments module to Album Module (Thickbox)

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Adding comments module to Album Module (Thickbox)

Post 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?
Last edited by jack4ya on Fri Dec 22, 2006 11:42 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Adding comments module to Album Module (Thickbox)

Post 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
jack4ya
Power Poster
Power Poster
Posts: 294
Joined: Thu Oct 19, 2006 10:07 am

Re: Adding comments module to Album Module (Thickbox)

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”