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

Ok here is a basic blog extension. By basic I mean none fancy, not feature rich.
Please use it only on testing servers. the final version will have its own database and other goodies

if using friendlyURL
RewriteRule ^extension/category/([0-9]+)$ extension.php?CategoryID=$1 [QSA,L] RewriteRule ^extension/category/([0-9]+)/$ extension.php?CategoryID=$1 [QSA,L] RewriteRule ^extension/discussion/([0-9]+)$ extension.php?DiscussionID=$1 [QSA,L] RewriteRule ^extension/discussion/([0-9]+)/$ extension.php?DiscussionID=$1 [QSA,L] RewriteRule ^extension/([0-9]+)/([0-9]+)$ extension.php?CategoryID=$1&page=$2 [QSA,L] RewriteRule ^extension/([0-9]+)/([0-9]+)/$ extension.php?CategoryID=$1&page=$2 [QSA,L]

this is what it should look like.
Blog page
Picture 4
Blog settings
Picture 4
Draft mode
Picture 1
Draft side panel
Picture 2
«13456789

Comments

  • Options
    edited April 2007
    Schizo, correct me if I'm insane, but does this extension turn Vanilla into a blog with forum? Like the integration?

    Do you happen to have a working example I can see?
  • Options
    edited April 2007
    first thing that came to mind. if you assign a category for blog-posts, then it makes sense to disable the category drop-down menu when your are starting a discussion from the blog. it should then go to the assigned one by default. also would be nice to have the difference indicated strongly by turning the 'start a new discussion' link into smth like 'post a new entry'
  • Options
    and didn't quite get it is it intended this way that postings from the blog-category do not show up in the general discussions list? if so, does it really make sense?
  • Options
    seems neato
  • Options
    Seems and works great!
    And here's what I could find:
    • test . Html Formatter doesn't support it yet. However, u can still use it in the comment and it should work none the less
    It works fine BUT when clicking on "Continue Reading", it shows up the tag on the page as part of the rest of the text.
    • Test Pagination. you can select blog posts per page. change it and see if u get pagination
    I've a Vanilla test site installed within my public_html dir so the Vanilla url is like this: www.xxxx.com/Vanilla/
    and when clicking on the next page, it takes me back to the main site which is: www.xxx.com/

    Keep up the great work, thanks.
  • Options
    sorry for banging on formatting rather than coding issues...

    see no point in the current 'permalink' link directing to the same spot as the 'category' one. in the best of all possible worlds it should lead to an entirely different kind of page (like vanilla wiki pages, for example; perhaps, without the sidebar and the navigation menu, but with a post title for the header) from where you get back to the forum by following the 'comments' or 'edit' links...
  • Options
    edited April 2007
    @AllisonMooreSmith
    yes its an integration, So u have a blog and forum side by side.

    @alast
    If i disable the category drop down menu, then if u later decide to make the blog post into a forum post. there won't be a way to do that
    what I can do is add "Start a new Blog Post" when ur in the Blog tab and have the blog category selected if u click on "Start a new Blog post"
    Regarding blog posts not appearing in discussion. I'll make it an option, So u decide how u want it.

    @sjeeps. yeah thats because Html formatter is leaving the more tag in there. It should replace it with an anchor. I mentioned in on the HTml formatter page. hopefully Sirnot will add this. I'll look into pagination problem

    @I'm not sure about permalinks either. I think i'll take it out. cause now its the same link as the title link
  • Options
    edited April 2007
    i have a coding issue it seems :)

    it seems to conflict with the Page Manager. with the PM on, the Blog tab was nto created. when i disabled the PM, it worked fine.

    and does it really disable the styling, turning on the default vanilla one for the entries? or so it seems
  • Options
    in Page Manager, Do resync tabs and the Blog tab will be added
  • Options
    edited April 2007
    • Select different category ID's and see if they are turned into blogs
    • Ok
    • Redirect to blog. When u save a discussion and you selected a blog category. It should direct u to the blog tab, not the discussion tab
    • Ok
    • Blog Category shouldn't appear in the discussion list
    • Ok... but I'd really prefer at least a setting to make it appear.
    • Use Category Roles extension to only allow certain roles to post in the blog category
    • Ok (but it needs more testing, I didn't try a lot of possibilities)
    • Add Comments, close discussions, edit them should work just like in the forum
    • Ok
    • Blog posts should be chronological. meaning adding comments shouldn't bump them up.
    • Ok, which means the sink option is useless, since blog posts have already this behaviour.
    • test <!--more-->. Html Formatter doesn't support it yet. However, u can still use it in the comment and it should work none the less
    • Ok
    • Test Pagination. you can select blog posts per page. change it and see if u get pagination
    • Ok
    • Test Sticky posts.
    • Ok
    • Edit link shouldn't be there if ur not the author of the post. Unless ur the admin, then u will see edit in all of em
    • Ok
    • IE6,7 styling
    • Seems fine ...but not in Firefox :/ It's a problem I already had with Steve's extension : the first blog post is stretched to fit the total height of the sidepanel. The second post only appears after the Lussumo credits.
    • Friendly URL
    • I'll try tomorrow :)
    Globally it works pretty well, you did a great job!

    Now a few things I'm thinking about:
    - I agree with alast, as I said earlier: I'd prefer to see the blog posts in the discussion list. What about an admin setting to show/hide blog posts in the discussion list?
    - Do you plan to support other formats than HTML? I'd really like to see BBCode & Textile.
    - Could the permalink be a simple anchor pointing to the blog post itself in the blog tab? (I've no idea if it's difficult or not to do that)
    - Latest forum posts look like a good idea, but I'm not sure it's necessary since Latest Discussion Prime already did this pretty well.
  • Options
    edited April 2007
    updated to 0.3. Pagination without friendly url works
    Pagination isn't working with friendly url
    Does anyone know how to fix it

    Also now excluding blog post is now an option in the settings page
    Categories can now be selected from a drop down menu

    @Zero. yeah found the problem with the formatting Its the clearfix class that is causing it. Removing clearfix make the matter worse. Will take some time to fix it.
  • Options
    Schiz, I must be doing something wrong... (great idea by the way)
    I've installed the extension, created a new category called 'blog', assigned 'blog' to your extension, the blog tab shows, I can post and the blog listings show, BUT...

    When I click on th BLOG tab I see all posts, but with this in the header-panel (left of the post):
    [Deleted] 1 Jan 70 Add Comments Permalink Edit

    Clicking add comments or edit results in the error message: Some problems were encountered The requested discussion could not be found.
    Any clue as to what could be going on?
  • Options
    edited April 2007
    can u show me the site
    that date is way wrong.

    u said u created the blog category, so it should be blank, where r u getting the posts from
    try it on a different category. one that already exists
  • Options
    edited April 2007
    version 0.4beta1 uploaded. get it from the same link above. the css issue should be gone now. atleast its gone on my comp
    now only the pagination bug remains
  • Options
    great :)

    as for the 'permalink' function, it could be justified if, unlike the 'add comment' and 'edit' links, it lead to the whole of a single post text (before and after a possible tag) formatted in the blog rather than discussions way...
  • Options
    edited April 2007
    also, it would be nice to have a user-friendly localisation for the date. and not only languagewise but also as far as the date-format is concerned. (and this 'continue reading' as well :))
  • Options
    Yep, the CSS blank space problem disappeared. Great job :)
    May I ask how you solved it? I have the same problem with a few others extensions, only with IE this time. While replying to a post, the comment box is put after the side panel objects, and this bug seems to be caused by a strange combination of the BBInsertBar, the Textile formatter and the Next Unread Discussion Link. (I know this not directly related to the blog extension, but this is driving me nuts.)
  • Options
    the 'Blog posts should be included in discussion list' option does not seem to work in my case. it is always on and cannot be saved otherwise
  • Options
    edited April 2007
    @alast. ok the exclude blog thing is now fixed.
    Continue reading is now a definition
    Which date formats should i include. there can be lot of variations. Which ones do people use most often

    @zero, the problem is clearing floats. The panel is floating left. so when u clear float in the body it clears the one in the panel as well. hence all posts are elongated to the size of the panel. If u do not clear the floats the content underneath the float tends to rise up and mess up everything. So i took out the clearing of the floats and add min height hack
    min-height:140px; height:auto !important; height:140px;
  • Options
    i think, the easiest option as far as the date is concerned to is to have it all in numbers. that will not require localisation and is likely to satisfy everyone. alternatively, you could include it into the definitions in a customisable form so that users themselves decide whether it's going to be an j or an F, for example
This discussion has been closed.