diff --git a/fp-plugins/commentcenter/inc/admin.php b/fp-plugins/commentcenter/inc/admin.php index 19a56e0..bd039d7 100644 --- a/fp-plugins/commentcenter/inc/admin.php +++ b/fp-plugins/commentcenter/inc/admin.php @@ -122,7 +122,7 @@ class admin_entry_commentcenter extends AdminPanelAction { $smarty->assign('pl_conf', $conf); $conf=$plugin->getConf(); - if($conf['akismet_check']) { + if(isset($conf) && array_key_exists('akismet_check', $conf) && $conf['akismet_check']) { $akismet=$plugin->akismetLoad(); if(is_numeric($akismet)) { $error=$lang['admin']['entry']['commentcenter']['akismet_errors'][$akismet]; diff --git a/fp-plugins/commentcenter/tpls/configure.tpl b/fp-plugins/commentcenter/tpls/configure.tpl index f5bbf93..bd32512 100644 --- a/fp-plugins/commentcenter/tpls/configure.tpl +++ b/fp-plugins/commentcenter/tpls/configure.tpl @@ -2,6 +2,9 @@ {html_form}

{$plang.configure}

{$plang.desc_conf}

+{if !isset($pl_conf)} + {assign var=pl_conf value=""} +{/if}
@@ -25,12 +28,22 @@
-
+ {if isset($pl_conf.akismet_key)} + {assign var=akismet_key value=$pl_conf.akismet_key} + {else} + {assign var=akismet_key value=""} + {/if} +
{$plang.akismet_key_long}
-
+ {if isset($pl_conf.akismet_url)} + {assign var=akismet_url value=$pl_conf.akismet_url} + {else} + {assign var=akismet_url value=""} + {/if} +
{$plang.akismet_url_long|sprintf:$smarty.const.BLOG_BASEURL}
diff --git a/fp-plugins/commentcenter/tpls/listcomments.tpl b/fp-plugins/commentcenter/tpls/listcomments.tpl index f90cbf1..b1ea548 100644 --- a/fp-plugins/commentcenter/tpls/listcomments.tpl +++ b/fp-plugins/commentcenter/tpls/listcomments.tpl @@ -1,34 +1,36 @@ -{if !$delete}{/if} +{if !isset($delete)}{/if} -{if !$delete}{/if} +{if !isset($delete)}{/if} {assign var="i" value=0} {foreach from=$entries key=entryid item=entry} -{if count($entry.$fetch)>0 && !$is_managing} +{if count($entry.$fetch)>0 && !$is_managing} {/if} {foreach from=$entry.$fetch item=comm key=comm_id} {assign var="i" value=$i+1} -{if !$delete}{/if} +{if !isset($delete)}{/if} - + - -{if !$delete} +{if !isset($delete)}{/if} +{/if}
{$plang.app_date} {$plang.app_content} {$plang.app_author} {$plang.app_email} {$plang.app_ip}{$plang.app_actions}{$plang.app_actions}
{$entryid|idToSubject} ({$entryid})
{$entryid|idToSubject} ({$entryid})
{$comm.date|date_format:"%D, %T"} {$comm.content|strip_tags} -{if $delete} +{if isset($delete)} {/if} {if $comm.url}{$comm.name|wp_specialchars}{else}{$comm.name|wp_specialchars}{/if}{if isset($comm.url)}{$comm.name|wp_specialchars}{else}{$comm.name|wp_specialchars}{/if} {$comm.email|wp_specialchars}{$comm.ip-address} -{if $is_managing && $use_akismet} +{* a bit hackish: {$comm.ip-adress} would lead to $this->_tpl_vars['comm']['ip']-$this->_tpl_vars['ddress']; *} +{assign var=ipadress value="ip-address"} +{$comm.$ipadress} +{if isset($is_managing) && isset($use_akismet)} {$plang.man_spam} {elseif !$is_managing} {$plang.app_publish} @@ -48,10 +50,10 @@ {/foreach} {/foreach} {if $i==0} -
{$plang.app_nocomms}
{$plang.app_nocomms}
-{if !$delete} +{if !isset($delete)}