We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7923
    • 4,213 Posts
    To get the field descriptions showing in picture management, open up /assets/snippets/maxigallery/lang/lang_en.php file and add the lanuage strings there what you have created.

    In your template, you are using:

    [+maxigallery.strings.AdoptionStatus+]
    [+maxigallery.strings.gender+]
    [+maxigallery.strings.age+]

    So you need to add the following lines in the language file:

    $strings[’AdoptionStatus’] = "Adoption Status";
    $strings[’gender’] = "Gender";
    $strings[’age’] = "Age";

    The files will probably start to work ok, once you have deleted the pictures table from database and let MaxiGallery create a new one.


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

      I’m having a similar problem.

      I have followed the guide above and via ’manage pictures’ i can see the new input boxes of ’my testfield’ and ’my another field’.
      But when i add text to these fields it disappears when i click ’save changes’.
      I would also like this information to appear with the thumbnail...including the ’description’ which currently only appears on the big image.
      I am using embedded display with slimbox.
      One more thing i would like to do but don’t know how is to have the thumbnail a different image from the big one...is this possible?

      Here’s my code if anyone can help....
      CHUNK mg_gallerypicturetpl
      [+maxigallery.embedtype:is=`smoothgallery`:then=` 
      	<div class="imageElement">
      	<h3>[+maxigallery.picture.title:htmlent+]</h3>
      	<p>[+maxigallery.picture.descr:htmlent+]</p>
      	<a href="[+maxigallery.picture_link_url+]" title="[+maxigallery.strings.click_to_zoom+]" class="open"></a>
      	<img src="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="full" />
      	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" />
      	</div>
      `+]
      
      [+maxigallery.embedtype:isnot=`smoothgallery`:then=`
       
      <li>
      [+maxigallery.embedtype:is=`slidebox`:then=` 
      
      	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox_[+maxigallery.path_to_gal+]gallery">
      
      `+]
      
      [+maxigallery.embedtype:is=`lightboxv2`:then=` 
      
      	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
      
      `+]
      
      [+maxigallery.embedtype:is=`slimbox`:then=` 
      
      	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="lightbox[maxigallery]" title="[+maxigallery.picture.title:htmlent+] - [+maxigallery.picture.descr:htmlent+]">
      
      `+]
      
      [+maxigallery.embedtype:is=`popup`:then=` 
      
      	<a href="javascript:void(0);" onClick="javascript:openWindow('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]','[+maxigallery.picture.title:htmlent+]',[+maxigallery.picture_height_normal+],[+maxigallery.picture_width_normal+],'gallery');">
      
      `+]
      
      [+maxigallery.embedtype:is=`external`:then=` 
      
      	<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" rel="external">
      
      `+]
      
      [+maxigallery.embedtype:is=``:then=`
      	
      	<a href="[+maxigallery.picture_link_url+]">
      
      `+]
      	
      	 	<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
      	
      	</a>
      	[+maxigallery.picture.title:isnot=``:then=`
      		<p>
      [+maxigallery.picture.title:htmlent+]
      [+maxigallery.picture.testfield+]
      [+maxigallery.picture.anotherfield+]
      		</p>
      	`+]
      </li>
      `+]


      CHUNK mg_managepicturetpl
      <div class="managepicturecontainer">
      	<input type="hidden" name="[+maxigallery.fieldnames.pictureid+]" value="[+maxigallery.picture.id+]"/>
      	<input type="hidden" name="[+maxigallery.fieldnames.modified+]" id="[+maxigallery.fieldnames.modified+]" value="no"/>
      	<div class="managepicture">
      		<a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" target=_new>
      			<img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" alt="[+maxigallery.strings.click_to_zoom+]"/>
      		</a>
      	</div>
      	<div class="shortfields">
      		ID: [+maxigallery.picture.id+]
      		<br />
      		[+maxigallery.strings.delete+]:
      		<input type="checkbox" name="[+maxigallery.fieldnames.delete+]" value="yes" title="[+maxigallery.strings.check_to_delete_this_picture+]"/>
      		<br />
      		[+maxigallery.strings.hide+]:
      		<input type="checkbox" name="[+maxigallery.fieldnames.hide+]" value="yes" title="[+maxigallery.strings.check_to_hide_this_picture+]" onClick="document.editform.[+maxigallery.fieldnames.modified+].value='yes'" [+maxigallery.picture.hide:is=`1`:then=`checked="checked"`+]/>
      		<br />
      		[+maxigallery.strings.position+]:
      		<input type="text" size="3" name="[+maxigallery.fieldnames.position+]" id="[+maxigallery.fieldnames.position+]" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'" value="[+maxigallery.picture.pos+]"/>
      	</div>
      	<br class="clearboth"/>
      	[+maxigallery.strings.title+]:
      	<br/>
      	<textarea name="[+maxigallery.fieldnames.title+]" rows="2" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.title:htmlent+]</textarea>
      	<br />
      	[+maxigallery.strings.description+]:
      	<br/>
      	<textarea name="[+maxigallery.fieldnames.description+]" rows="4" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.descr:htmlent+]</textarea>
      	<br />
      My testfield:
      <br/>
      <textarea name="[+maxigallery.fieldnames.testfield+]" rows="4" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.testfield:htmlent+]</textarea>
      <br />
      My another field:
      <br/>
      <textarea name="[+maxigallery.fieldnames.anotherfield+]" rows="4" cols="40" onKeyDown="document.editform.[+maxigallery.fieldnames.modified+].value='yes'">[+maxigallery.picture.anotherfield:htmlent+]</textarea>
      <br />
      
      	<hr />
      </div>


      and the SNIPPET call:
      [!MaxiGallery? &galleryPictureTpl=`mg_gallerypicturetpl` &managePictureTpl=`mg_managepicturetpl` &customFields=`testfield,anotherfield` `&pics_per_row=`1` &embedtype=`slimbox` &display=`embedded`!]


      Thanks for any help

      Janice
        www.9thwave.co.uk
           WEB | DESIGN | PRINT