Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Blog extension 0.9.8
This discussion has been closed.
Comments
i have no idea why?
Does someone have the same problem?
In Blog/library/Control.Blog.php change the following from:
class Blog extends Control { var $PageJump; var $CurrentPage; var $DiscussionData; var $DiscussionDataCount; var $RowNumber;
To:
class Blog extends Control { var $PageJump; var $CurrentPage; var $DiscussionData; var $DiscussionDataCount; var $RowNumber; var $Body; var $FormatType; var $ShowHtml;
In Blog/library/Control.Blog.php change the following from:
$BlogList .= '<div class="BlogBody">'.$CommentBody['main'];
To:
$this->Body = $CommentBody['main']; if (!$this->ShowHtml) $this->FormatType = $this->Context->Configuration['DEFAULT_FORMAT_TYPE']; $this->Body = $this->Context->FormatString($this->Body, $this, $this->FormatType, FORMAT_STRING_FOR_DISPLAY); $BlogList .= '<div class="BlogBody">'.$this->Body;
btw u won't assign the default format, but the format that is assigned to the comment. so grab the format type for the comment from the database and use that.
PLus u have to pick showhtml as well. you initialized it and then used it, without assigning anything to it.
new version uplaoded
The (e) is the edit button.. I didn't include a permalink because theres already a link to the topic anyway and that should be the permalink. Anyway here it is:
I also have to think about where the tags will go and where Digg and delicious links will go
plus I'm getting ride of the whole sidebar thing. It breaks th layout if a floating image is posted as comment.
I dunno how to fix it. So I'm going to remove this whole sidebar thing all together,
cool )))
Tagged: tag01, tag02, tag03
Del.icio.us, Digg images etc.. here.
Though please have the social link thing optional to display.
Also good job on removing the sidebar, instead have a horizontal bar or subset menu under the vanilla tabs.
found the problem with permalink
in Theme.blogPermalink.php
change this line
'.date($this->Context->Configuration['BLOG_DATE'], UnixTimestamp($Discussion['DateCreated'])).'
the UnixTimeStamp is missing