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
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
this is what it should look like.
Blog page
Blog settings
Draft mode
Draft side panel
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
Blog settings
Draft mode
Draft side panel
0
This discussion has been closed.
Comments
Do you happen to have a working example I can see?
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.
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...
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
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
- 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.
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.
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?
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
now only the pagination bug remains
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...
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.)
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;