1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

XenForo Article Addon

Discussion in 'Tips and Guides [Archive]' started by IanC, Sep 14, 2011.

  1. IanC

    IanC Active Member

    There have been lots of requests for an article system addon for XenForo, but as yet I couldn't find one that was finished or ready to be integrated in to the core.

    So for the time being, I've created a very simple one by just adding a custom template. I thought it may help by outlining how to do this, as it's simple do and works well.

    Here's an example of the article listing page and an article:

    I'm hoping to add a simple expansion by adding a thumbnail as the avatar placeholder (in time).

    To begin:
    • Create a "child" to your main style
    • Create your article forum(s) and force the new child style choice
    You've now got your article sections using the new style, but you need to customise it properly. You'll need to open up the following templates in your editor and edit them as you see fit to get the look you are after:
    • message
    • thread_view
    • thread_list
    • thread_list_item
    The changes I made were to remove the author info box, quick reply options and then tweak some of the button text. As each site design differs, I've not posted the exact changes as I've made so many others to the template. But as an example, you'd need to look for the following code in "message" to remove the user info box:

    It should also be possible to re-style the replies so that it looks like a comments section - there are lots of things that are easy to do with the templating system that will allow you to make an article section without needing an addon. Once addons start to appear it should be possible to import them easily enough as they are just within the normal thread/post DB.
    Akela, Brandon Sheley, gldtn and 2 others like this.
  2. kkm323

    kkm323 Well-Known Member

    thanks for the article its helpful
    i think jaxel has establish spectacular job with his cms [8wayRun.Com] XenPorta (Portal) check out (is worth the try)
  3. Digital Doctor

    Digital Doctor Well-Known Member

    Why are replies to the Article hard to do if the article is just a regular XenForo thread ?
  4. IanC

    IanC Active Member

    It's not hard, but it's requires some extra work to work properly - especially if you want the first post to be shown on all pages of comments (I'm not sure how to do that yet). I'm currently working on a way to get a separate comments thread to be automatically created when an article is posted :).
    Digital Doctor likes this.
  5. Digital Doctor

    Digital Doctor Well-Known Member

  6. IanC

    IanC Active Member

    Thanks Digital Doctor, I'll check out that post and see what I can do :)
  7. bambua

    bambua Well-Known Member

    So really as long it's a first post on each page, all you'd have to do is make sure the first post of the thread is styled different to match your article template. Which I think is what they were talking about in the chief post thread.
  8. Digital Doctor

    Digital Doctor Well-Known Member

    Maybe if you combine this with Jake's Tabs thing, you could get the Articles tab to highlight :)
  9. IanC

    IanC Active Member

    I'm not familiar with that addon - do you have a link to it please? :)
  10. Digital Doctor

    Digital Doctor Well-Known Member

    IanC likes this.
  11. IanC

    IanC Active Member

    Thanks, I'll give that a shot!
  12. Morgain

    Morgain Well-Known Member

    Your addon is very intresting.
    It automatically has permissions/ can display a category in node tree/ has author, date of posting.
    bbcode editing wiith all that includes for styling, links, images.
    Comments in a far richer mode than blogging.

    Could also have pagination, using a series of posts on a thread.

    Would be useful to be able to create fields to submit to the post for different kinds of Articles, like Quotes.

    Congrats Ian. Nice bit of lateral thinking there!

Share This Page