1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to create blocks?

Discussion in 'XenForo Questions and Support' started by Carlos, Nov 10, 2010.

  1. Carlos

    Carlos Well-Known Member

    Well, right now, I'm half-way finished with my vb4 installation at www.mw2boards.com and I'm looking to finish my xenforo installation at www.mw2forums.com

    When I was looking around in the ACP, I've wondered how to create blocks. I'm looking at all the options and still remained confused and don't want to be breaking things. I said I'd come back to it at some point, so I would like to know how to create one.

    Because soon, I'm going to put social networks in a box, and an ad for monetizing. So, how do I go about creating blocks AND!

    Making both visible on thread display...
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Edit this template:

    Admin CP -> Appearance -> Templates -> thread_view

    Add this code to the bottom of the template:

    	<div class="section">
    		<div class="secondaryContent">
    That will create a sidebar on thread pages.
    Shelley and Peggy like this.
  3. Carlos

    Carlos Well-Known Member

    Got that part down, so how do I create a block for mainpage? Ya know, the standard one?

    Just tell me where to look in the ACP, and I'll be on my way. I'll put an ad first thing I add a standard block.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. Peggy

    Peggy Well-Known Member

    Jake perhaps you could post both of these in Template Modifications, if you haven't done so already?
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yeah I have a bunch more I need to post in there. I will get to it soon.
  7. Carlos

    Carlos Well-Known Member

    Thank you, kind sir! :)

Share This Page