Hi Patrick,
Sorry for the delayed response. Thanks for your help with this.
Upgrading to the 2.1.4 didn’t seem to help.
I’m attaching a copy of our plugin configuration page for commenting,
also, the registration button appears in the show.php file for our theme (on line 191) is that what you’re referring to? (see below)
<?php echo head(array('title' => metadata('item', array('Dublin Core', 'Title')),'bodyclass' => 'items show')); ?>
<div class="section section--brown">
<div class="l-wrap">
<div class="site-title t-left">
<h1><?php echo metadata('item', array('Dublin Core', 'Title')); ?></h1>
</div>
<div class="t-right">
<div class="search search--spread">
<?php echo search_form(array('show_advanced' => true)); ?>
</div>
</div>
</div>
</div>
<div class="l-wrap">
<div id="primary">
<?php if($item->getItemType() && $item->getItemType()->name == 'World War One Veterans'): ?>
<div class="l-left">
<div class="avatar-wrapper" id="links">
<?php if ((get_theme_option('Item FileGallery') == 0) && metadata('item', 'has files')): ?>
<?php
$files = $item->Files;
$firstFile = $files[0];
//echo $firstFile;
echo files_for_item(array('imageSize' => 'fullsize'));
?>
<?php else: ?>
<a class="download-file" href="/themes/seasons/img/solder-silhouette.jpg">
<img src="/themes/seasons/img/solder-silhouette.jpg" alt="">
</a>
<?php endif; ?>
<div class="zoom-icon"></div>
</div>
<div class="medal-elements">
<?php
if ($medal = metadata('item', array('Item Type Metadata', 'Medals and Entitlements'), array('delimiter'=>','))): ?>
<div id="medallist" class="medal-lists">
<?php $holdMedal = explode(',', $medal);
foreach($holdMedal as $key => $medalitem) {
$medalname = str_replace(' ', '-', strtolower($medalitem));
?>
<div class="medal-item">
<a href="/images/medals/<?php echo $medalname; ?>.jpg" title="<?php echo $medalitem; ?>">
<img src="/images/medals/<?php echo $medalname; ?>.jpg" alt="<?php echo $medalitem; ?>">
</a>
</div>
<?php } ?>
</div>
<?php endif; ?>
</div>
<div class="l-sidebar">
<div class="element-set">
<div class="element-set_body">
<?php
$item_list = array('Name', 'Birth Date', 'Birthplace', 'Service Number', 'Enlistment Date', 'Next of Kin', 'Address at time of Enlistment', 'Occupation', 'Marital Status','Death Date', 'Place of Burial' );
foreach ($item_list as $item)
{
$item_value = metadata('items', array('Item Type Metadata', $item));
if($item_value)
{
echo '<span class="element-title">'.$item.'</span>';
echo '<p>'.$item_value.'</p>';
}
}
?>
</div>
</div>
</div>
<div class="element-set">
<div class="element-set_body">
<!-- If the item belongs to a collection, the following creates a link to that collection. -->
<?php if (metadata('item', 'Collection Name')): ?>
<div id="collection" class="element">
<h2><?php echo __('Collection'); ?></h2>
<div class="element-text"><p><?php echo link_to_collection_for_item(); ?></p></div>
</div>
<?php endif; ?>
<!-- The following prints a citation for this item. -->
<div id="item-citation" class="element">
<h2><?php echo __('Citation'); ?></h2>
<div class="element-text"><?php echo metadata('item', 'citation', array('no_escape' => true)); ?></div>
</div>
<div class="filecontainer" id="links2">
<?php if ((get_theme_option('Item FileGallery') == 0) && metadata('item', 'has files')): ?>
<?php echo files_for_item(array('imageSize' => 'fullsize')); ?>
<?php endif; ?>
<div class="zoom-icon"></div>
</div>
</div>
</div>
</div>
<div class="l-right">
<div class="primary-content">
<div class="element-set">
<div class="element-set_body">
<div class="toggle-content">
<div class="content-half">
<?php
$ctr_half =0;
$item_list = array('Description');
foreach ($item_list as $item) {
$item_value = metadata('items', array('Dublin Core', $item));
if($item_value)
{
echo '<span class="element-title">'.$item.'</span>';
echo '<p>'.$item_value.'</p>';
$ctr_half++;
}
}
if($ctr_half <= 0){
echo '<span class="element-title">View Record Detail</span>';
}
?>
</div>
<div class="content-full">
<?php
$item_list = array('Description', 'Title', 'Subject', 'Creator', 'Source', 'Publisher', 'Date', 'Contributor', 'Rights', 'Relation', 'Format', 'Language', 'Type', 'Identifier');
foreach ($item_list as $item) {
$item_value = metadata('items', array('Dublin Core', $item));
if($item_value)
{
echo '<span class="element-title">'.$item.'</span>';
echo '<p>'.$item_value.'</p>';
}
}
?>
</div>
<div class="toggle-footer toggle-actions">
<a id="toggle-action-open" class="toggle-trigger" href="#">Open</a>
<a id="toggle-action-close" class="toggle-trigger" href="#">Close</a>
</div>
</div>
</div>
</div>
</div>
<?php
$text = metadata('items', array('Item Type Metadata', 'Biographical Text'));
if($text):
?>
<div class="l-content">
<div class="element-set">
<div class="element-set_body">
<span class="element-title">Biographical Text</span>
<p><?php echo $text; ?></p>
</div>
</div>
</div>
<?php endif; ?>
<?php
#$biographical_text = metadata('items', array('Item Type Metadata', 'Biographical Text'));
$biographical_text = metadata('items', array('Item Type Metadata', 'Bibliography'));
if($biographical_text):
?>
<div class="l-content">
<div class="element-set">
<div class="element-set_body">
<span class="element-title">Bibliography</span>
<p><?php echo $biographical_text; ?></p>
</div>
</div>
</div>
<?php endif; ?>
<?php
if(current_user())
echo get_specific_plugin_hook_output('Commenting', 'public_items_show', array('view' => $this, 'item' => $item));
else
echo '<h2>Comments</h2><a href="/users/login" class="log-in-btn">Please register/login to comment</a>';
?>
<div class="social-container">
<?php echo get_specific_plugin_hook_output('SocialBookmarking', 'public_items_show', array('view' => $this, 'item' => $item));; ?>
</div>
<ul class="item-pagination navigation">
<li id="previous-item" class="previous"><?php echo link_to_previous_item_show(); ?></li>
<li id="next-item" class="next"><?php echo link_to_next_item_show(); ?></li>
</ul>
</div>
<?php else: ?>
<?php // echo all_element_texts('item', array('show_element_sets' => array('Dublin Core', 'Item Type Elements'))); ?>
<div class="l-left g-left">
<?php if ((get_theme_option('Item FileGallery') == 0) && metadata('item', 'has files')): ?>
<div class="avatar-wrapper" id="links">
<?php
$files = $item->Files;
$firstFile = $files[0];
//echo $firstFile;
echo files_for_item(array('imageSize' => 'fullsize'));
?>
<div class="zoom-icon"></div>
</div>
<?php endif; ?>
<div class="l-sidebar">
<div class="element-set">
<div class="element-set_body">
<?php echo get_specific_plugin_hook_output('ItemRelations', 'public_items_show', array('view' => $this, 'item' => $item));; ?>
</div>
<div class="element-set_body">
<?php
$item_list = array('Name', 'Birth Date', 'Birthplace', 'Service Number', 'Enlistment Date', 'Next of Kin', 'Address at time of Enlistment', 'Occupation', 'Marital Status','Death Date', 'Place of Burial' );
foreach ($item_list as $item)
{
$item_value = metadata('items', array('Item Type Metadata', $item));
if($item_value)
{
echo '<span class="element-title">'.$item.'</span>';
echo '<p>'.$item_value.'</p>';
}
}
?>
</div>
</div>
</div>
<div class="element-set">
<div class="element-set_body">
<!-- If the item belongs to a collection, the following creates a link to that collection. -->
<?php if (metadata('item', 'Collection Name')): ?>
<div id="collection" class="element">
<h2><?php echo __('Collection'); ?></h2>
<div class="element-text"><p><?php echo link_to_collection_for_item(); ?></p></div>
</div>
<?php endif; ?>
<!-- The following prints a citation for this item. -->
<div id="item-citation" class="element">
<h2><?php echo __('Citation'); ?></h2>
<div class="element-text"><?php echo metadata('item', 'citation', array('no_escape' => true)); ?></div>
</div>
<div class="filecontainer" id="links2">
<?php if ((get_theme_option('Item FileGallery') == 0) && metadata('item', 'has files')): ?>
<?php echo files_for_item(array('imageSize' => 'fullsize')); ?>
<?php endif; ?>
<div class="zoom-icon"></div>
</div>
</div>
</div>
</div>
<div class="l-right g-right">
<div class="primary-content hoooray">
<div class="element-set">
<div class="element-set_body">
<div class="toggle-content">
<div class="content-half">
<?php
$ctr_half =0;
$item_list = array('Description', 'Source');
foreach ($item_list as $item)
{
$item_value = metadata('items', array('Dublin Core', $item));
if($item_value)
{
echo '<span class="element-title">'.$item.'</span>';
echo '<p>'.$item_value.'</p>';
$ctr_half++;
}
}
if($ctr_half <= 0){
echo '<span class="element-title">View Record Detail</span>';
}
?>
</div>
<div class="content-full">
<?php
$item_list = array('Description', 'Title');
foreach ($item_list as $item)
{
$item_value = metadata('items', array('Dublin Core', $item));
if($item_value)
{
echo '<span class="element-title">'.$item.'</span>';
echo '<p>'.$item_value.'</p>';
}
} ?>
<?php
if ($itemsubject = metadata('item', array('Dublin Core', 'Subject'), array('delimiter'=>','))): ?>
<?php $holdSubject = explode(',', $itemsubject);
echo '<span class="element-title">Subject</span>';
echo '<p>';
foreach($holdSubject as $key => $subjectitem) { ?>
<?php
echo $subjectitem.', ';
?>
<?php }
echo '<p>';
?>
<?php endif; ?>
<?php
$item_list = array('Creator', 'Source', 'Publisher', 'Date', 'Contributor', 'Rights', 'Relation', 'Format', 'Language', 'Type', 'Identifier');
foreach ($item_list as $item)
{
$item_value = metadata('items', array('Dublin Core', $item));
if($item_value)
{
echo '<span class="element-title">'.$item.'</span>';
echo '<p>'.$item_value.'</p>';
}
} ?>
</div>
<div class="toggle-footer toggle-actions">
<a id="toggle-action-open" class="toggle-trigger" href="#">Open</a>
<a id="toggle-action-close" class="toggle-trigger" href="#">Close</a>
</div>
</div>
</div>
</div>
</div>
<?php
$text = metadata('items', array('Item Type Metadata', 'Text'));
if($text):
?>
<div class="l-content">
<div class="element-set">
<div class="element-set_body">
<!-- <span class="element-title">Biographical Text</span> -->
<p><?php echo $text; ?></p>
</div>
</div>
</div>
<?php endif; ?>
<?php
$biographical_text1 = metadata('items', array('Item Type Metadata', 'Biographical Text'));
if($biographical_text1):
?>
<div class="l-content">
<div class="element-set">
<div class="element-set_body">
<span class="element-title">Biographical Text</span>
<p><?php echo $biographical_text1; ?></p>
</div>
</div>
</div>
<?php endif; ?>
<?php
#$biographical_text = metadata('items', array('Item Type Metadata', 'Biographical Text'));
$biographical_text = metadata('items', array('Item Type Metadata', 'Bibliography'));
if($biographical_text):
?>
<div class="l-content">
<div class="element-set">
<div class="element-set_body">
<span class="element-title">Bibliography</span>
<p><?php echo $biographical_text; ?></p>
</div>
</div>
</div>
<?php endif; ?>
<?php
if(current_user())
echo get_specific_plugin_hook_output('Commenting', 'public_items_show', array('view' => $this, 'item' => $item));
else
echo '<h2>Comments</h2><a href="/guest-user/user/register" class="log-in-btn">Please register/login to comment</a>';
?>
<div class="social-container">
<?php echo get_specific_plugin_hook_output('SocialBookmarking', 'public_items_show', array('view' => $this, 'item' => $item));; ?>
</div>
<ul class="item-pagination navigation">
<li id="previous-item" class="previous"><?php echo link_to_previous_item_show(); ?></li>
<li id="next-item" class="next"><?php echo link_to_next_item_show(); ?></li>
</ul>
</div>
<?php endif; ?>
</div><!-- end primary -->
<!-- The Gallery as lightbox dialog, should be a child element of the document body -->
<div id="blueimp-gallery" class="blueimp-gallery">
<div class="slides"></div>
<a class="prev">‹</a>
<a class="next">›</a>
<a class="close">×</a>
</div>
<script>
document.getElementById('links').onclick = function (event) {
event = event || window.event;
var target = event.target || event.srcElement,
link = target.src ? target.parentNode : target,
options = {index: link, event: event},
links = this.getElementsByTagName('a');
blueimp.Gallery(links, options);
};
document.getElementById('medallist').onclick = function (event) {
event = event || window.event;
var target = event.target || event.srcElement,
link = target.src ? target.parentNode : target,
options = {index: link, event: event},
links = this.getElementsByTagName('a');
blueimp.Gallery(links, options);
};
document.getElementById('links2').onclick = function (event) {
event = event || window.event;
var target = event.target || event.srcElement,
link = target.src ? target.parentNode : target,
options = {index: link, event: event},
links = this.getElementsByTagName('a');
blueimp.Gallery(links, options);
};
$('a.download-file').each(function(index, elem){
$(elem).attr('href', $(elem).find('img.full').attr('src'));
});
</script>
<?php echo foot(); ?>
</div>