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
This discussion has been closed.
Comments
What about the Category Role thingy? Is it something related mostly to your extension or does it need some Category Roles hacking? (or both?)
the simplest solution is not to show the Start a new blog link. if users do not have permission
making extensions work with each other is usually a bitch
In theme/panel.php, change the following from:
// Add the start button to the panel if ($this->Context->Session->UserID > 0 && $this->Context->Session->User->Permission('PERMISSION_START_DISCUSSION')) { $CategoryID = ForceIncomingInt('CategoryID', 0); if ($CategoryID == 0) $CategoryID = ''; echo '<h1><a href="'.GetUrl($this->Context->Configuration, 'post.php', 'category/', 'CategoryID', $CategoryID).'">' .$this->Context->GetDefinition('StartANewDiscussion') .'</a></h1>'; }
to:
// Add the start button to the panel if ($this->Context->Session->UserID > 0 && $this->Context->Session->User->Permission('PERMISSION_START_DISCUSSION')) { $CategoryID = ForceIncomingInt('CategoryID', 0); if ($CategoryID == 0) $CategoryID = ''; $CatFilter = new Cat_filter(); $CatFilter->get_levels($this->Context->Session->User->RoleID); if (isset($CatFilter->cat_levels[$CategoryID]['create_level']) && ($CatFilter->cat_levels[$CategoryID]['create_level'] > $CatFilter->user_level)){ // No post link for you } else { echo '<h1><a href="'.GetUrl($this->Context->Configuration, 'post.php', 'category/', 'CategoryID', $CategoryID).'">' .$this->Context->GetDefinition('StartANewDiscussion') .'</a></h1>'; } }
With Steve's extension, I used a simple trick for drafts: I've set up a category only autors can see, where they post their stuff first and discuss about their work, then publish their finished articles in the blog category.
How hard would it be to add an option in order to send blog posts in a similar "drafts category" first? I'd really like to have such a feature, since at the moment there's no way to review a submitted article. Ideally this could be a setting in the administrative panel, something like this, followed by a drop-down category menu:
Optional : select a draft category where blog posts are sent first before being published in the blog tab (be sure to choose a category hidden to public).
That would be great, but even a simple hack to send the blog posts in a category different than the blog category would be perfect in my case.
it takes u to the same page as start a new discussion. I have just hidden the category selector. in default.php line 124
$Head->AddString('<STYLE TYPE="text/css" MEDIA=screen>.CategorySelect {display:none;}</STYLE>');
if u remove it u will get the selector back. then u can pick ur drafts category.
yeah word count can be added
check for more tag with the word count. if true then use more. if not then use word count instead.
1.under blog-tab - list of entries with summaries
2.permalink takes you to the full text in blog-tab format
3.edit link takes you to the discussion tab where only the summary is displayed, not the full text
if you have a short entry with no summary (and no 'more' tag) then permalink and discussion views are identical in content, but not in format.
where you end up clicking on the entry title, i don't know. but nor does it matter. both permalink and discussion views would be fine
Anyway in my case I'd like to see these sites:
delicious
digg
stumbleupon
Technorati would be a must social bookmark to have, thank you.