Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
comment form closed when not logged in
solt
New
I have a theme where the comment form is closed for none logged user, how can i open it?
<?php $this->FireEvent('AfterDiscussion'); if($this->Pager->LastPage()) { $LastCommentID = $this->AddDefinition('LastCommentID'); if(!$LastCommentID || $this->Data['Discussion']->LastCommentID > $LastCommentID) $this->AddDefinition('LastCommentID', (int)$this->Data['Discussion']->LastCommentID); $this->AddDefinition('Vanilla_Comments_AutoRefresh', Gdn::Config('Vanilla.Comments.AutoRefresh', 0)); } echo $this->Pager->ToString('more'); // Write out the comment form if ($this->Discussion->Closed == '1') { ?><?php echo T('This discussion has been closed.'); ?>
<?php echo Anchor(T('All Discussions'), 'discussions', 'TabLink'); ?>
<?php
} else if ($Session->IsValid() && $Session->CheckPermission('Vanilla.Comments.Add', TRUE, 'Category', $this->Discussion->PermissionCategoryID)) {
echo $this->FetchView('comment', 'post');
} else if ($Session->IsValid()) { ?>
<?php
} else {
?>
<?php if (!defined('APPLICATION')) exit();
$Session = Gdn::Session();
if (!function_exists('WriteComment'))
include($this->FetchViewLocation('helper_functions', 'discussion'));
?>
Tagged:
0
Comments
use the anonymouse plugin.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Vanilla doesn't support guest commenting.