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.
Importing Wordpress posts into Vanilla
Hi, while I am quite satisfied with Wordpress to post news on most of my websites, I figured that a blog would be redundant on one site where I'm considering intergrating a forum. I decided to look beyond PHPBB and try out Vanilla as I heard good things about this system.
So instead of having both a forum and a news update blog, I'd like to create a forum category for my news updates, but it would be nice if I could retrieve my current news post archive from my Wordpress database and populate the forum with these. If they could conserve their dates, that would be perfect but not absultely necessairy.
Perhaps someone would have a non messy way of doing this?
If not, I will probably copy-paste everything manually (over 50 posts...)
Thank you!
0
This discussion has been closed.
Comments
<?php //Wordpress's add stuff. Do not remove. Or it will break Wordpress. //Now, also post it to Vanilla. //If it's a different db, mysql_select_db("new_db"); mysql_query("INSERT INTO vanilla_posts (Field, Field, Field) VALUES ({$_POST['Title']}, etc, etc);"); ?>
The first post should set the tone/title/theme of the thread anyway; 'blogifying it' a bit could be a help for readers and possible contributors to the thread when choosing what to browse.
Possibilities:
- Identify the first post and style it differently via CSS. For example...
- Give the posts you want to be "blog-like" their own category: "Blog". Set up a tab (Page Management extension?) that presents just the category "Blog" by calling its own custom "blog.php" page (You'd have to make it). That way you have "Blog" posts and regular forum posts. All your blog posts get to take advantage of the forum commenting capabilities.
@lech: lol! – so true! But crummy forum options are leading people to Vanilla. If you don't need it all, you pick the one that gets you the most and adapt what's missing.Edit the vanilla.css (or go CSS > Edit CSS if you have the Web Developer Extension in Firefox) with the following. You can place it after the "#Comments code {}" rule.
div#ContentBody ol#Comments a + div + div { font-size: 11px; } div#ContentBody a[name="Item_1"] + div + div { font-size: 16px; font-family: "Georgia"; background: #333; color: #ccc; padding: 8px 14px; } div#ContentBody ol#Comments li:first-child { border: 2px solid #999; background: #000; } #ContentBody ol#Comments div.CommentHeader ul > li { border: none; background: #fff; } #ContentBody ol#Comments a[name="Item_1"] + div.CommentHeader ul > li { background: #000; } #ContentBody ol#Comments a[name="Item_1"] + div.CommentHeader ul > li a { font-family: Georgia; font-size: 18px; margin-right: 4px; margin-left: 14px; }
I wouldn't be surprised if IE barfs on it (I've not tested there).