[pLog-svn] r4972 - in plugins/branches/lifetype-1.2/authimage: . templates

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Sat Mar 3 20:17:10 EST 2007


Author: jondaley
Date: 2007-03-03 20:17:10 -0500 (Sat, 03 Mar 2007)
New Revision: 4972

Modified:
   plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php
   plugins/branches/lifetype-1.2/authimage/templates/authimage.template
Log:
add another global field.  I couldn't figure out how to get the backgrounds to be in the global settings, so I left it out.

Modified: plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php
===================================================================
--- plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php	2007-03-04 01:04:41 UTC (rev 4971)
+++ plugins/branches/lifetype-1.2/authimage/pluginauthimage.class.php	2007-03-04 01:17:10 UTC (rev 4972)
@@ -184,7 +184,9 @@
 				Array( "name" => "plugin_authimage_enabled", "type" => "boolean" ),
 				Array( "name" => "plugin_authimage_length", "validator" => new IntegerValidator(), "type" => "integer" ),
 				Array( "name" => "plugin_authimage_key", "validator" => new StringValidator(), "type" => "string" ),
-				Array( "name" => "plugin_authimage_test_dropdown", "type" => "list", "options" => Array( "1" => "option 1", "2" => "option 2", "3" => "option 3" ))
+				Array( "name" => "plugin_authimage_expiredtime",
+                       "validator" => new IntegerValidator(),
+                       "type" => "integer" ),
 			));
 		}
     }

Modified: plugins/branches/lifetype-1.2/authimage/templates/authimage.template
===================================================================
--- plugins/branches/lifetype-1.2/authimage/templates/authimage.template	2007-03-04 01:04:41 UTC (rev 4971)
+++ plugins/branches/lifetype-1.2/authimage/templates/authimage.template	2007-03-04 01:17:10 UTC (rev 4972)
@@ -31,7 +31,7 @@
    <label for="expiredTime">{$locale->tr("label_expiredtime")}</label>
    <span class="required">*</span>
    <div class="formHelp">{$locale->tr("authimage_expiredtime")}</div>
-   <input class="text" type="text" name="expiredTime" id="expiredTime" value="{$expiredTime}" width="10" />
+   <input class="text" type="text" name="expiredTime" id="expiredTime" value="{$expiredTime}" width="10" {user_cannot_override key=plugin_authimage_expiredtime}disabled="disabled"{/user_cannot_override} />
   </div>   
 
   <div class="field">
@@ -50,7 +50,7 @@
      {foreach from=$backgrounds item=background}
      <tr>
       <td>
-       <input class="radio" type="radio" name="default" id="default" value="{$background}" {if $default==$background} checked="checked" {/if} />
+       <input class="radio" type="radio" name="default" id="default" value="{$background}" {if $default==$background} checked="checked" {/if} {user_cannot_override key=plugin_authimage_default}disabled="disabled"{/user_cannot_override} />
       </td>
       <td>
        {$background}
@@ -71,4 +71,4 @@
  </div>
 </form>
 {include file="$admintemplatepath/footernavigation.template"}
-{include file="$admintemplatepath/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/footer.template"}



More information about the pLog-svn mailing list