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

1235789

Comments

  • i know I know.
    i have no idea why?
  • edited April 2007
    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).

    Does someone have the same problem?
  • formatter seem to only work on the comments.php page, they don't even work on page manager pages
  • edited April 2007
    Ok, found the 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;
  • edited April 2007
    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.

    new version uplaoded
  • Yay! Now Textile & BBCode work (and I guess Markdown too). Thanks a lot, now I don't even know what to request for the next feature :)
  • @MySchizoBuddy - Could you help me figure out how to hardcode an Advertisement after the first blog post? This is working perfect btw!!
  • i'm working on adding that in the Nuggets extensions. If u cannot wait for it. i can tell u what to do
  • I feel weird saying I cannot wait for it.. So I'll just say if you get time, I would much appreciate any insight :)
  • 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:

    Free Image Hosting at www.ImageShack.us
  • edited May 2007
    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,
  • going to remove this whole sidebar thing all together

    cool :))))
  • 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?
  • Tags and the delicious links can go under the "Click to read more" link like so:

    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.
  • ADM by sidebar I wasn't talking about the panel.
  • Ahh ok.. I really should install this to actually play around with it before I make more suggestions on layout heh.
  • Dunno if it comes from me or not, but all blog posts displayed in permalink mode seem to show the date 01/01/70.
  • i have the sidebar switched off in the permalink mode, so cannot tell. but in the list mode (under the blog tab) the date is ok
  • 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?
  • edited May 2007
    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
This discussion has been closed.