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

Sidebar Blocks on Other Pages/Forums/Threads/Etc

Discussion in 'XenForo Questions and Support' started by Ghan_04, May 10, 2012.

  1. Ghan_04

    Ghan_04 Active Member


    I have created a new template for my sidebar in my working style here and I've put the usual <xen:sidebar> code in here so that I can include this template in other templates and have my sidebar appear on any page I wish. This works easily for the custom blocks I've added to the template with text and links, but blocks like the users online and site statistics which use variables outputted by the PHP code do not display correctly (as expected). I just don't know how to fix it.
    I am extremely unfamiliar with how the Xenforo backend works (is there any good documentation somewhere that I can read? I've never found any) and I have no idea where to even start looking to find the right functions that calculate the totals and make them available to the templates. Does anyone know where this data is calculated and how I can add it to any page I want?

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. Ghan_04

    Ghan_04 Active Member

    I just tried out the widget framework as you suggested and, since I have the Flexile style, added the provided compatibility CSS entries, but this completely breaks the style. It's like some of the CSS files aren't even getting rendered anymore. Do you know anything about this or am I back to square one here?
  4. Dinh Thanh

    Dinh Thanh Well-Known Member

    I have custom style and WF are working fine. Check your style to see what cause issue.
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I assume it works OK on the default style?

    Like Dinh Thanh said, you should probably check with the author of that style. Flexile is a highly customized style that sometimes doesn't play nice with other customizations.
  6. Ghan_04

    Ghan_04 Active Member

    Actually, no, it doesn't work on the default style. That one gets borked for the framework as well. I have made zero changes to the default style.
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  8. Ghan_04

    Ghan_04 Active Member

    Yeah, this looks like a widget framework problem. It's only happening when I make certain changes to the widgets. Thanks - I'll post over there.

Share This Page