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

Sidebar questions

Discussion in 'XenForo Questions and Support' started by mrchasez, Oct 31, 2012.

  1. mrchasez

    mrchasez Active Member

    On my current theme, i have a custom sidebar "box".

    Inside of a template called vote i have this
    "<div class="section">
    <div class="secondaryContent">
    <h3>Online / Vote</h3>
    HTML CODE HERE
    </div>"

    I have a new style, i add "vote" as a template but the block don't show up.
    Which makes me think i have to add a line of code in another template, i just don't know which one.
     
  2. James

    James Well-Known Member

    Have you included the vote template in the style you want it to appear in?
     
    Jake Bunce likes this.
  3. mrchasez

    mrchasez Active Member

    Yes
     
  4. mrchasez

    mrchasez Active Member

    Support is really lacking recently ;/
     
  5. xfrocks

    xfrocks Well-Known Member

    Do you have the template "vote" in the new style? If you create a custom template in your old style, it will not be carried to the new style unless the new style is a child style of the old one.
     
    Jake Bunce likes this.
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I agree with James and xfrocks. Basically make sure the relevant templates exist and are correct in your new style. If you continue to have problems then I can take a look if you give me admin access.
     
  7. borbole

    borbole Well-Known Member

    How is that if I may ask? Because you did not receive a reply for an hour or so?
     
  8. mrchasez

    mrchasez Active Member

    No because there used to be really good answers almost immediately and for my recent threads they don't for a day or two.
    I have seen them not get a reply at all for more then a day.

    I have this code:
    <div class="section">
    <div class="secondaryContent">
    <h3>Online / Vote</h3>
    HTML CODE HERE
    </div>"

    In the style, in a template named "Vote"

    Do i have to add like <xen:Vote> to another Template for it to appear??
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I assume the template contains the ending </div> tag, because the code you posted is missing one.

    You can see an example of a xen:include for a sidebar block in this template:

    Admin CP -> Appearance -> Templates -> forum_list

    Since your vote block is in a separate template you need to "xen:include" it in the sidebar in the content template for the page.
     
    mrchasez likes this.
  10. mrchasez

    mrchasez Active Member

    It worked! I love you :D
    How could i add stuff to the homepage aswell?
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  12. mrchasez

    mrchasez Active Member

  13. mrchasez

    mrchasez Active Member

  14. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  15. mrchasez

    mrchasez Active Member

    I am working on a different style right now, i have it setup on my old style but not the new one.
    I got the html working on http://kingscrafters.com/index.php?forum/
    However i want it on the hompage, which is created by xenporta

    Everything inside of Xenporta_portal is made by "blocks" so adding an "xen:include" isn't possible!

    Do you know if there are any Xenporta html blocks?
     
  16. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  17. mrchasez

    mrchasez Active Member

  18. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    There is. It's called RawHyperText.xml.
     
  19. mrchasez

    mrchasez Active Member

    Right now @ http://kingscrafters.com
    I have the "Vote" thing on the portal and on the forums page without any blocks.
    Do you know how to add a template to each page like that? (So i can remove it too)
     
  20. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

Share This Page