Vanilla 1.1.5 is a product of Lussumo. More Information: Documentation, Community Support.
Help keep Vanilla free:quirrel was saying she had a new way for janine to work
When it comes to your old blog posts created by Janine, you have three options:
Vanilla and WordPress must be using the same database, same username, same password.
Neat Trick #1: If your blog and your Vanilla forum share the same users table, set this option to '0'. Janine will try to post the discussion using the same user ID that made the blog post.
JanineDiscUserID
The user ID that Janine will use to post discussions, default is '1'.
...
JanineDiscCategoryID
The ID of the category where the new discussions will appear, default is '1'.
When you first enable Janine it should automatically create some default settings in Vanilla's conf/settings.php file. If you are using WordPress 2.0.X or 2.1.X, the default settings should work just fine for you, though you will probably want to customize some of them. These settings are stored in Vanilla's conf/settings.php file.
'BlogPostModified' => 'post_modified_gmt','BlogPostContent' => 'post_content',$SqlBuilder->AddSelect(array('BlogPostID', 'BlogPostUserID', 'BlogPostTitle', 'BlogPostComments', 'BlogPostLink'), 'bp');$SqlBuilder->AddSelect(array('BlogPostID', 'BlogPostUserID', 'BlogPostTitle', 'BlogPostComments', 'BlogPostLink', 'BlogPostContent'), 'bp');// Attempt to get the category ID, nice but not necessary// Split the post content at the "more" tag
$PostContent = explode('<!--more-->', $ReturnData['BlogPostContent'], 2);
$ReturnData['BlogPostBeforeSplit'] = $PostContent[0];
$ReturnData['BlogPostAfterSplit'] = ForceSet(@$PostContent[1], '');A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
The "JanineWordPress204" control referenced by "JanineWordPress204" does not appear to exist.
Affected Elements
ObjectFactory.CreateControl();
This will give you three new tokens: BlogPostContent, BlogPostBeforeSplit, and BlogPostAfterSplit. The first has the entire text of the blog post, the second has everything before the "more" tag (or everything, if there is no more tag), the third has everything after the "more" tag (or nothing, if there is no more tag).
Does this help?
<?php
global $user_ID, $user_identity;
get_currentuserinfo();
if (!$user_ID):
?>
// do something if the user is NOT logged in
<?php
else:
?>
// do this if the user IS logged in
<? endif; ?>
<a rel=nofollow href=<a rel="nofollow" href="...// Get the most recent blog post
$SqlBuilder->Clear();
$SqlBuilder->SetMainTable('JanineBlogPosts', 'bp', $pre);
$SqlBuilder->AddSelect(array('BlogPostID', 'BlogPostUserID', 'BlogPostTitle', 'BlogPostComments', 'BlogPostLink'), 'bp');
$SqlBuilder->AddWhere('bp', 'BlogPostStatus', '', 'publish', 'like', 'and', '', '1', '1');
$SqlBuilder->AddWhere('bp', 'BlogPostStatus', '', 'static', 'like', 'or');
$SqlBuilder->EndWhereGroup();
$SqlBuilder->AddOrderBy('BlogPostModified', 'bp', 'desc');
$SqlBuilder->AddLimit(0, 1);
if ($BlogPostID) {
// If the post ID is specified, require it to match
$SqlBuilder->AddWhere('bp', 'BlogPostID', '', ForceInt($BlogPostID, 0), '=', 'and', '', '0');
}// Get the blog post
$SqlBuilder->Clear();
$SqlBuilder->SetMainTable('JanineBlogPosts', 'bp', $pre);
$SqlBuilder->AddSelect(array('BlogPostID', 'BlogPostUserID', 'BlogPostTitle', 'BlogPostComments', 'BlogPostLink'), 'bp');
$SqlBuilder->AddLimit(0, 1);
if ($BlogPostID) {
// If the post ID is specified, require it to match
$SqlBuilder->AddWhere('bp', 'BlogPostID', '', ForceInt($BlogPostID, 0), '=');
}
else {
// If no post ID is specified, try to guess the most recent post
$SqlBuilder->AddWhere('bp', 'BlogPostStatus', '', 'private', 'not like');
$SqlBuilder->AddOrderBy('BlogPostModified', 'bp', 'desc');
}