• 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

Ghan_04

Active member
#1
Greetings,

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?

Thanks,
Ghan
 

Ghan_04

Active member
#3
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?
 

Jake Bunce

XenForo moderator
Staff member
#5
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?
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.
 

Ghan_04

Active member
#6
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.
 

Ghan_04

Active member
#8
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.