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.
Options

Blog extension 0.9.8

1235789

Comments

  • Options
    i know I know.
    i have no idea why?
  • Options
    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?
  • Options
    formatter seem to only work on the comments.php page, they don't even work on page manager pages
  • Options
    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;
  • Options
    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
  • Options
    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 :)
  • Options
    @MySchizoBuddy - Could you help me figure out how to hardcode an Advertisement after the first blog post? This is working perfect btw!!
  • Options
    i'm working on adding that in the Nuggets extensions. If u cannot wait for it. i can tell u what to do
  • Options
    I feel weird saying I cannot wait for it.. So I'll just say if you get time, I would much appreciate any insight :)
  • Options
    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
  • Options
    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,
  • Options
    going to remove this whole sidebar thing all together

    cool :))))
  • Options
    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?
  • Options
    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.
  • Options
    ADM by sidebar I wasn't talking about the panel.
  • Options
    Ahh ok.. I really should install this to actually play around with it before I make more suggestions on layout heh.
  • Options
    Dunno if it comes from me or not, but all blog posts displayed in permalink mode seem to show the date 01/01/70.
  • Options
    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
  • Options
    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?
  • Options
    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.