We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Hi all,

    I don’t know if it is to do with how I have put my template, chunks and TV’s together, but with photo blogging (from the wiki), when a user comments on an image, it posts it on every image in a collection.

    Is this normal?

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 17717
      • 433 Posts
      Ok, gone back through the tutorial and started from scratch, I can get the comments to work, but not to function as they do on the blog section of my site, one question, can I use placeholders for this particular method, when I adapt the call in the chunk with jot placeholders, the whole thing goes missing, here is the call:

      [[Jot? &placeholders=`1`&tagid=`[+maxigallery.picture.id+]` &output=`0` &subscribe=`1` &moderated=`0` &notify=`2` &canmoderate=`Site Admins` ]]
      
      [+jot.html.moderate+]
      [+jot.html.comments+]
      [+jot.html.form+]
      [+comment.custom.email:is=``:then=``:else=`[+comment.custom.email:gravatar+]`+]


      Arrghhhh... can anyone help... please.

      Lee
        http://www.blend.uk.com | Web Design by Blend
        • 7923
        • 4,213 Posts
        try putting the jot placeholders in the document content or in site template..


          "He can have a lollipop any time he wants to. That's what it means to be a programmer."
          • 17717
          • 433 Posts
          Hi mate,

          Glad I got hold of you, close to having to take a site down, tried it in the template didn’t seem to work, let me try again, and perhaps document it better.
            http://www.blend.uk.com | Web Design by Blend
            • 17717
            • 433 Posts
            Here is the call I have on one of the documents that holds a collections of images on the site:
            [!MaxiGallery? &pics_per_row=`4` &max_thumb_size=`135x135` &max_pic_size=`530x530` &pictureTpl=`mgPictureTplComment` !]
            
            [[Jot? &placeholders=`1`&tagid=`[+maxigallery.picture.id+]` &output=`0` &subscribe=`1` &moderated=`0` &notify=`2` &canmoderate=`Site Admins` ]]
            
            [+jot.html.moderate+]
            [+jot.html.comments+]
            [+jot.html.form+]
            [+comment.custom.email:is=``:then=``:else=`[+comment.custom.email:gravatar+]`+]


            Could I perhaps give you a site login, really desperate sad
              http://www.blend.uk.com | Web Design by Blend
              • 17717
              • 433 Posts
              Perhaps there is an error in the jot call???? Just disappears when I use the following:

              &tagid=`[+maxigallery.picture.id+]`
                http://www.blend.uk.com | Web Design by Blend
                • 7923
                • 4,213 Posts
                the jot call must be in the maxigallery template to get that [+maxigallery.picture.id+] placeholder working.. what I meant is that have the jot call in the maxigallery custom template and put the jot placeholders after maxigallery call in the document..


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 17717
                  • 433 Posts
                  MaxiGallery snippet call in document:

                  [!MaxiGallery? &pics_per_row=`4` &max_thumb_size=`135x135` &max_pic_size=`530x530` &pictureTpl=`mgPictureTplComment` !]


                  mgPictureTplComment contents:

                  [+maxigallery.config.display:is=`pictureview`:then=`
                  	[+maxigallery.managebutton:isnot=``:then=`
                  
                  		<center>[+maxigallery.managebutton+]</center>
                  		<br />
                  	
                  	`+]
                  `+]
                  
                  <div class="picturecontainer">
                  <p class="navigation">
                  		[+maxigallery.counter:is=`1`:then=`
                  			[+maxigallery.strings.previous+] |
                  		`:else=`
                  			<a href="[+maxigallery.previous_pic_url+]">[+maxigallery.strings.previous+]</a> | 
                  		`+]
                  			<a href="[+maxigallery.index_url+]">[+maxigallery.strings.index+]</a> | 		
                  		[+maxigallery.counter:is=`[+maxigallery.total_pics_count+]`:then=`
                  			[+maxigallery.strings.next+]
                  		`:else=`
                  			<a href="[+maxigallery.next_pic_url+]">[+maxigallery.strings.next+]</a>
                  		`+]
                  	</p>
                  	<p class="picturecount">[+maxigallery.strings.picture+] [+maxigallery.counter+] / [+maxigallery.total_pics_count+]</p>
                  
                  	
                  	[+maxigallery.total_pics_count:isnot=`0`:then=`
                  		
                  	
                  	<div class="picture">
                  	
                  	[+maxigallery.big_img_linkstyle:is=`slidebox`:then=` 
                  
                  		<a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
                  
                  	`+]
                  
                  	[+maxigallery.big_img_linkstyle:is=`lightboxv2`:then=` 
                  
                  		<a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
                  
                  	`+]
                  
                  	[+maxigallery.big_img_linkstyle:is=`slimbox`:then=` 
                  
                  		<a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
                  
                  	`+]
                  
                  	[+maxigallery.big_img_linkstyle:is=`popup`:then=` 
                  
                  		<a href="javascript:void(0);" onClick="javascript:openWindow('[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]',[+maxigallery.picture_height_big+],[+maxigallery.picture_width_big+],'gallery');" title="[+maxigallery.strings.click_to_open_original+]">
                  
                  	`+]
                  
                  	[+maxigallery.big_img_linkstyle:is=`external`:then=` 
                  
                  
                  	`+]
                  
                  	[+maxigallery.keep_bigimg:is=`0`:then=`
                  
                  		<a href="[+maxigallery.index_url+]" title="[+maxigallery.strings.click_to_go_back+]">
                  
                  	`+]
                  
                  		<img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="imageview" alt="[+maxigallery.strings.date+] : [+maxigallery.picture.date+]" />
                  
                  		</a>
                  		
                  	</div>
                  	
                  	`+]
                  	
                  	[+maxigallery.picture.title:isnot=``:then=`
                  		<p class="title">[+maxigallery.picture.title:htmlent+]</p>
                  	`+]
                  	[+maxigallery.picture.descr:isnot=``:then=`
                  		<p class="description">[+maxigallery.picture.descr:htmlent+]</p>
                  	`+]
                  	
                  </div>
                  
                  [[Jot? &placeholders=`1`&tagid=`[+maxigallery.picture.id+]` &output=`0` &subscribe=`1` &moderated=`0` &notify=`2` &canmoderate=`Site Admins` ]]
                  
                  [+jot.html.moderate+]
                  [+jot.html.comments+]
                  [+jot.html.form+]
                  [+comment.custom.email:is=``:then=``:else=`[+comment.custom.email:gravatar+]`+]


                  This results in no comment form at all, I do not have +maxigallery.picture.id+ in the above chunk except for in the jot call, is this why?

                  Thanks
                  Lee

                    http://www.blend.uk.com | Web Design by Blend
                    • 7923
                    • 4,213 Posts
                    like i said, try moving the jot placeholders to the document content after maxigallery call

                    these:

                    [+jot.html.moderate+]
                    [+jot.html.comments+]
                    [+jot.html.form+]
                    [+comment.custom.email:is=``:then=``:else=`[+comment.custom.email:gravatar+]`+]


                      "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                      • 17717
                      • 433 Posts
                      Oh, I see what you mean, it still didn’t fix it though, unless I am still doing something wrong, still no form. Just to make sure,

                      My maxigallery snippet is now:

                      [!MaxiGallery? &pics_per_row=`4` &max_thumb_size=`135x135` &max_pic_size=`530x530` &pictureTpl=`mgPictureTplComment` !]
                      
                      [+jot.html.moderate+]
                      [+jot.html.comments+]
                      [+jot.html.form+]
                      [+comment.custom.email:is=``:then=``:else=`[+comment.custom.email:gravatar+]`+]


                      and the mgPictureTplComment chunk is now:

                      [+maxigallery.config.display:is=`pictureview`:then=`
                      	[+maxigallery.managebutton:isnot=``:then=`
                      
                      		<center>[+maxigallery.managebutton+]</center>
                      		<br />
                      	
                      	`+]
                      `+]
                      
                      <div class="picturecontainer">
                      <p class="navigation">
                      		[+maxigallery.counter:is=`1`:then=`
                      			[+maxigallery.strings.previous+] |
                      		`:else=`
                      			<a href="[+maxigallery.previous_pic_url+]">[+maxigallery.strings.previous+]</a> | 
                      		`+]
                      			<a href="[+maxigallery.index_url+]">[+maxigallery.strings.index+]</a> | 		
                      		[+maxigallery.counter:is=`[+maxigallery.total_pics_count+]`:then=`
                      			[+maxigallery.strings.next+]
                      		`:else=`
                      			<a href="[+maxigallery.next_pic_url+]">[+maxigallery.strings.next+]</a>
                      		`+]
                      	</p>
                      	<p class="picturecount">[+maxigallery.strings.picture+] [+maxigallery.counter+] / [+maxigallery.total_pics_count+]</p>
                      
                      	
                      	[+maxigallery.total_pics_count:isnot=`0`:then=`
                      	
                      	
                      	
                      	
                      	
                      	<div class="picture">
                      	
                      	[+maxigallery.big_img_linkstyle:is=`slidebox`:then=` 
                      
                      		<a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
                      
                      	`+]
                      
                      	[+maxigallery.big_img_linkstyle:is=`lightboxv2`:then=` 
                      
                      		<a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
                      
                      	`+]
                      
                      	[+maxigallery.big_img_linkstyle:is=`slimbox`:then=` 
                      
                      		<a href="[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]" rel="lightbox" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
                      
                      	`+]
                      
                      	[+maxigallery.big_img_linkstyle:is=`popup`:then=` 
                      
                      		<a href="javascript:void(0);" onClick="javascript:openWindow('[(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]',[+maxigallery.picture_height_big+],[+maxigallery.picture_width_big+],'gallery');" title="[+maxigallery.strings.click_to_open_original+]">
                      
                      	`+]
                      
                      	[+maxigallery.big_img_linkstyle:is=`external`:then=` 
                      
                      
                      	`+]
                      
                      	[+maxigallery.keep_bigimg:is=`0`:then=`
                      
                      		<a href="[+maxigallery.index_url+]" title="[+maxigallery.strings.click_to_go_back+]">
                      
                      	`+]
                      
                      		<img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="imageview" alt="[+maxigallery.strings.date+] : [+maxigallery.picture.date+]" />
                      
                      		</a>
                      		
                      	</div>
                      	
                      	`+]
                      	
                      	[+maxigallery.picture.title:isnot=``:then=`
                      		<p class="title">[+maxigallery.picture.title:htmlent+]</p>
                      	`+]
                      	[+maxigallery.picture.descr:isnot=``:then=`
                      		<p class="description">[+maxigallery.picture.descr:htmlent+]</p>
                      	`+]
                      	
                      </div>
                      
                      [[Jot? &placeholders=`1`&tagid=`[+maxigallery.picture.id+]` &output=`0` &subscribe=`1` &moderated=`0` &notify=`2` &canmoderate=`Site Admins` ]]
                        http://www.blend.uk.com | Web Design by Blend