0ptima
Well-known member
Okay. So I guess the next question is then, how do I get that content into Xenzine?
Now that they are threads, just do this
http://xenzine.com/articles/how-to-convert-a-thread-to-an-article.216/
Okay. So I guess the next question is then, how do I get that content into Xenzine?
Now that they are threads, just do this
http://xenzine.com/articles/how-to-convert-a-thread-to-an-article.216/
So I did that, and when I try to promote an imported thread, I get:
"
Error
Please enter a value for the required field 'username'.
"
Since the article was created by the "vB4 Importer" perhaps?
Oh no! I made a big mistake... I deleted my xenzine categories. I recreated them using the same names but the articles are not going back. When I click on the article I can still see the original category in the bread crumbs but not on the article page. Is there a way to reorganize this mess I made?
1) Yes (filterable and searchable), currently you can see the filterable custom field "County" when selecting the filter button here: xenzine.com
- I still have to add it to the searchable index (not complete)
2) Yes, all words should be phrased and can be updated with the phrase manager
...
4) [TIMEFRAME] I can't really say, there is still much to do, I would like to include a few more things for next version
less than 2 Months more than a week. Sorry, I can't be more accurate than that.
Do you have access the database, can you look at the post_id you are trying to convert
The article Authors user name is grabbed from the first post.
$articledw->set('username', $post['username']);
SQL:
SELECT * FROM `xf_post` WHERE post_id = YourPostIdGoesHere
If username is not set, then there is something wrong with the way that post has been imported (you can update all of these with a bit of sql, but it should really have been done by your importer)
Just ran it. Username is set as me. It does have a space in it though, could that be throwing it? I've tried it with others though
View attachment 68261
$threadId = $this->_input->filterSingle('thread_id', XenForo_Input::UINT);
$ftpHelper = $this->getHelper('ForumThreadPost');
list($threadFetchOptions, $forumFetchOptions) = $this->_getThreadForumFetchOptions();
list($thread, $forum) = $ftpHelper->assertThreadValidAndViewable($threadId, $threadFetchOptions, $forumFetchOptions);
$first_post_id = $thread['first_post_id'];
$post = $this->_getPostModel()->getPostById($first_post_id);
So I did that, and when I try to promote an imported thread, I get:
"
Error
Please enter a value for the required field 'username'.
"
Since the article was created by the "vB4 Importer" perhaps?
Hello @tenants I was wondering if there is a way for the articles that land in the forum to open on the 'article' tab and not the 'discussion' tab. Even better, is there a way to display the whole article in the 'discussion' tab when it is opened via a forum? It's a little confusing for new members. Silly I know, but true.
Many Thanks,
Nick
www.californiareefs.com
Not at the moment, it has been requested a couple of times, so I'll add it to the to-do list
No, that should work fine, I can't see anything wrong with that row, username should be populated (unless the post wasn't grabbed)
I grab the 1st post of the thread via:
Code:$threadId = $this->_input->filterSingle('thread_id', XenForo_Input::UINT); $ftpHelper = $this->getHelper('ForumThreadPost'); list($threadFetchOptions, $forumFetchOptions) = $this->_getThreadForumFetchOptions(); list($thread, $forum) = $ftpHelper->assertThreadValidAndViewable($threadId, $threadFetchOptions, $forumFetchOptions); $first_post_id = $thread['first_post_id']; $post = $this->_getPostModel()->getPostById($first_post_id);
I wonder if first_post_id is not set for that thread, can you also run the sql for that thread:
SQL:
SELECT * FROM `xf_thread` WHERE thread_id = YourTheadIdGoesHere
They do match. I checked some of the content in that post ID when I had ran the SQL for it earlier. Here is the one for the thread ID:
View attachment 68300
But... on the same token, here is what it shows on threaddisplay;
View attachment 68301
EDIT: I also just noticed, the threadlist view is showing "0" replies for every thread, when infact a lot of them do - probably part of the problem?
We use essential cookies to make this site work, and optional cookies to enhance your experience.