I disabled all extensions except this one, BetterBBCode and Textile, and these two formats still don't work. It doesn't seem to be a conflict between BBCode and Textile because if I enable only one of them, the other still doesn't appear in the blog tab. So... I don't know what to do (except converting all my old articles from BBCode to HTML, but it would cause quite a pain in a particular part of my anatomy).
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;
Super dude 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.
Ok I know you said you didn't want layout changes being made now but I though I'd show what I think would be a suitable layout for the news section.. I only remade the bottom news post on your screen, the top one is your layout. Guess this makes it good for a comparison between them anyway.
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:
that e is for edit is no go. people expect Edit to be Edit not e.
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,
I agree with MSB, (e) means English version, not Edit for me. Because meaningless Lorem Ipsum makes me a funny contrast. :P
btw, how can i sit images in comments, MSB? Does it need any add-ons?
I've just noticed something else: when using Category Roles, if the user doesn't have the permission to post in the blog category, he can still make a new blog post, but doing this causes an error (because there's no category available, of course). Would it be hard to hide "Start a new blog post" if the user's role doesn't fit?
yup zero that is going to be a problem. 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
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