thank you sirnot! thank you!!!!! still
i get this! can someone help me!?
Fatal error: Class declarations may not be nested in /home/ybalabin/public_html/community/library/Vanilla.Comment.class.php on line 613
Looks like you didn't modify the files correctly. Did you follow the following directions?
[find in controls/comments.php]
$sReturn .= "</div>";
}
$sReturn .= $PageList
[replace first found line with]
$sReturn .= (strlen(isset($Comment->Settings['Signature']) ? $Comment->Settings['Signature'] : '') && defined('EXTENSION_SIGNATURE_ENABLED') ? ('<div class="Signature CommentTime" style="float: none; margin-top: 0; margin-bottom: 5px;">'.$Comment->Settings['Signature'].'</div>') : '')."</div>";
[find in library/Vanilla.Comment.class.php, as well as in extensions/Whispers.php]
if ($this->AuthRoleIcon != "") $this->AuthIcon = $this->AuthRoleIcon;
[add in the line above]
$this->Settings = UnserializeAssociativeArray(ForceString(@$DataSet['UserSettings'], ''));
[find in those same files]
$s->AddWhere("m.DiscussionID", $DiscussionID, "=");
$s->AddOrderBy("DateCreated", "m", "asc");
[add above]
if($this->Context->Session->User->Setting('AllowSignatures', 1) && defined('EXTENSION_SIGNATURE_ENABLED'))
$s->AddSelect('Settings', 'a', 'UserSettings');
Sirnot thank you for answering my question and helping me put. unfortunately i tried it again as you told me (althouhg i didi the same things the first time) and this time whenever i try to enter a dicussion i get a totally blank page.... any ideas why this is happening?
thank you
Are you sure you edited the files correctly? Were you attempting to use it with version 0.9.3? And, as stupid as this may sound, did you actually enter anything for you signature?
I edited the files correctly, I'm using the 0.9.2.2, and yes, I put something in the signature field and the signature box is checkmarked in the Forum Preferences.
Odd... You wouldn't happen to be using a custom theme or something, that might be hiding the signatures, would you? I don't recall any previous problems with this extension that didn't involve incorrect editing...
Nope, using the vanilla theme. It maybe because I'm currently having trouble enabling the extensions from the Manage Extensions. I had to manually add the Signatures extension in the extensions.php file.
Comments