Index: extensions/LLGBO2/admin/llgbo_admin.php
===================================================================
--- extensions/LLGBO2/admin/llgbo_admin.php	(revision 6234)
+++ extensions/LLGBO2/admin/llgbo_admin.php	(revision 6241)
@@ -2,5 +2,5 @@
 // +-----------------------------------------------------------------------+
 // | Plugin Name : Look_Like_GBO  2                                                              |
-// | Plugin Version : 2.0                                                                                    |
+// | Plugin Version : 2.1.A                                                                                    |
 // | File Version : 0.1                                                                                       |
 // | Plugin Version author : Ex-FTB                                                               |
@@ -135,10 +135,17 @@
 	if (!isset($_POST['llgbo_maintain_header'])) {$_POST['llgbo_maintain_header'] = '';}
 	if (!isset($_POST['llgbo_allinfo'])) {$_POST['llgbo_allinfo'] = 'false';}
-    $_POST['llgbo_hdlightbox'] = 'false'; 
+    if (!isset($_POST['llgbo_hdShadowbox'])) {$_POST['llgbo_hdShadowbox'] = 'false';} 
 	// compliance HD Shadowbox
-	$query =" SELECT ID FROM  piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ;
-   $result = pwg_query($query);
-   while ($row = pwg_db_fetch_assoc($result))
-		{ $_POST['llgbo_hdlightbox'] = 'true';}  
+	  $shadowbowactive = 0;
+	  $query =" SELECT ID FROM  piwigo_plugins where id ="."'HDShadowbox'"."and state ='active'" ;
+      $result = pwg_query($query);
+	  while ($row = pwg_db_fetch_assoc($result))
+		{ $shadowbowactive = 1;}  
+	if ($shadowbowactive == 0)
+		{ if ($_POST['llgbo_hdShadowbox'] != 'false') 
+		{$lang['llgbo_hdShadowbox'] =  ' * * * * '.$lang['llgbo_hdShadowbox'].' * * * * '; }
+		$_POST['llgbo_hdShadowbox'] = 'false';
+		} 
+	
 	if (!isset($_POST['llgbo_always_displayexif'])) {$_POST['llgbo_always_displayexif'] = 'false';} //10	
 	 $param_llgbo = array($_POST['llgbo_frame'],
@@ -147,5 +154,5 @@
 				$_POST['llgbo_title_frame'],			$_POST['llgbo_header'],
 				$_POST['llgbo_maintain_header'],			$_POST['llgbo_allinfo'],
-				$_POST['llgbo_hdlightbox']	,$_POST['llgbo_always_displayexif']
+				$_POST['llgbo_hdShadowbox']	,$_POST['llgbo_always_displayexif']
 			);		 
 	$llgbo_new_value = implode ("," , $param_llgbo);
@@ -181,5 +188,5 @@
 	  {$template->assign(array( 'LLGBO_ALLINFO' => 'true'));}  else {  $template->assign( array( 'LLGBO_ALLINFO' => "false"));} 
 	if ($conf['LLGBO_SETTINGS'][9] == 'true')
-	  {$template->assign(array( 'LLGBO_HDLIGHTBOX' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDLIGHTBOX' => "false"));}
+	  {$template->assign(array( 'LLGBO_HDShadowbox' => 'true'));}  else  { $template->assign(array( 'LLGBO_HDShadowbox' => "false"));}
 	if ($conf['LLGBO_SETTINGS'][10] == 'true')
 	  {$template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => 'true'));}  else  { $template->assign(array( 'LLGBO_ALWAYS_DISPLAYEXIF' => "false"));}
Index: extensions/LLGBO2/admin/llgbo_adminsettings.tpl
===================================================================
--- extensions/LLGBO2/admin/llgbo_adminsettings.tpl	(revision 6234)
+++ extensions/LLGBO2/admin/llgbo_adminsettings.tpl	(revision 6241)
@@ -40,12 +40,15 @@
 		<td class="llgboinput">{html_radios name='llgbo_title_frame' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_TITLE_FRAME}</td>	
 	</tr>
- <!--	<tr>
-		<td class="llgbolabel">{'llgbo_hdlightbox'|@translate}</td>
-		<td class="llgboinput">{html_radios name='llgbo_hdlightbox' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HDLIGHTBOX}</td>
-	</tr>    --> 
+   
 	<tr>
 		<td class="llgbolabel">{'llgbo_header'|@translate}</td>
 		<td class="llgboinput">{html_radios name='llgbo_header' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HEADER}</td>	
 	</tr>	
+	<tr>
+	</tr>
+	<tr>
+		<td class="llgbolabel">{'llgbo_hdShadowbox'|@translate}</td>
+		<td class="llgboinput">{html_radios name='llgbo_hdShadowbox' values='true,false'|@explode output='Yes,No'|@explode|translate selected=$LLGBO_HDShadowbox}</td>
+	</tr>   
 </table>
 
