XenZine Articles [Deleted]

In order to convert an article back to a thread, that article must be in a category that has an associated forum (otherwise, there is no forum to put it), and the user must have "Can Article To Thread" permissions

Both conditions have been met.
 
I see, for these particular forums, you would like these forums to only post articles (instead of posting threads), and thus change the button to "post new article".
Basically, you want these will be strict article forums...

Or do you want both buttons "post new article" "post new thread"

These are strictly article forums, so a "post new article" button would only be needed.
 
These are strictly article forums, so a "post new article" button would only be needed.

This one is an enhancement, I've added both to my to do list:
http://xenforo.com/community/threads/xenzine-articles-paid.52769/
32)
i) ACP options for article forums to contain "Post New Article" button instead of thread (strict article forums)
ii) ACP options for article forums to contain an additional button "Post New Article" (non strict article forums)
iii) ACP options for article forums to not contain the "Post New Article" button
 
I'm getting the following error when trying to create an article and click on Category

Code:
The following error occurred:
Invalid argument supplied for foreach()

    XenForo_Application::handlePhpError() in XenZine/Model/Category.php at line 134
    XenZine_Model_Category->getFirstSubcategory() in XenZine/ControllerPublic/Article.php at line 1363
    XenZine_ControllerPublic_Article->actionCategory() in XenForo/FrontController.php at line 337
    XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
    XenForo_FrontController->run() in C:/wamp/www/XF12/index.php at line 13

For this one, is it possible you have a top level category with no child? (a category with no subcategory)

That could be the issue (for all of those errors).

For now, make sure categories have subcategories. I do plan on supporting categories with no sub-categories, but it's not supported yet
 
Last edited:
For this one, is it possible you have a top level category with no child? (a category with no subcategory)

That could be the issue (for all of those errors).

For now, make sure categories have subcategories. I do plan on supporting categories with no sub-categories, but it's not supported yet

Adding a top level category fixed that. Please add an option to have categories with no sub categories as the category list looks awkward as I have less than 10 categories.
 
Right now if you click "Edit", it will edit the "... published a new article" post. Please consider adding a user group permission based option to allow members to edit their articles from the discussion thread (IE the link would take you to the regular article editing interface).


upload_2013-8-4_13-16-5.webp
 
It could be anyone of those

Can you just try something for me, rename this file to Thread.old.php (so you have a back up)
library\XenZine\ControllerPublic\Thread.php
and place this file in it's place:

Then navigate to the thread and see if it still causes the issue (if it does, what is the exception now)

Hi sorry for the late reply, I've had this change on for about 3 hours now, with no new errors recorded... I had many spaced out over the day prior to that. I'll leave it overnight now, check back in the morning and let you know how it's gone.
 
Great work @tenants, this looks fantastic on our 1.2 forums. We're using it for our own embedded video posts :)

I came across 3 (same) errors in the logs so far, not sure of it, as it seems to relate to a totally unrelated thread in another forum section.

ErrorException: Undefined property: XenForo_ControllerResponse_Redirect::$params - library/XenZine/ControllerPublic/Thread.php:21

Generated By: SomeUser, Today at 10:05 AM

I too have come accros the same errors in the server log. I have added the "new" Thread.php and will advise if the error persists.

Other than the above, this is looking great!
 
I have post ratings but since adding the file you supplied, haven't yet seen any further errors :)
 
@tenants - am about to install more Xenzines on my second and third board - no big rush but would like to know if I could export the articles from my first xenzine
would save a lot of slog to upload all the images for example.
 
@Morgain what is it that you want the articles on the second board for, are you going to have 2 identical installs of articles, or do you just want to get to the source of the images?

I can tell you the location of the images (data\article_images, data\article_cat_images), but there is no functionality for importing articles to another board
You could do it with custom sql (but it wouldn't a 5 second job, there are a few tables to keep in mind, such as xf_attachment_data)
 
@Morgain what is it that you want the articles on the second board for, are you going to have 2 identical installs of articles, or do you just want to get to the source of the images?
I can tell you the location of the images (data\article_images, data\article_cat_images), but there is no functionality for importing articles to another board
Yes I want duplicates of most of the existing articles.
So if I download those folders, and paste the article text from board 1, the article content should be OK? That wouldn't be too bad to do.
 
Yes I want duplicates of most of the existing articles.
So if I download those folders, and paste the article text from board 1, the article content should be OK? That wouldn't be too bad to do.

Possibly not, unless you do it in exactly the same order you did it last time (including deleting / adding images). I would advise re-uploading the images, since the number assigned to the images represents the order in which it was uploaded
 
Questions. If I convert a thread with attachments to articles, what will happen to them? Also, can I upload attachments when I create a new article?
 
Back
Top Bottom