Adding sidebar with data in new page node

gginni

Active member
Hello Guys,

I have created a new page node following below guideline:-

http://xenforo.com/community/threads/editing-templates-and-defining-a-callback-for-pages.7226/

I added below code in template to show sidebar:-

Code:
<xen:sidebar>
    <xen:include template="sidebar_online_users" />
<xen:include template="sidebar_share_page" />
</xen:sidebar>
Now it is showing share page and online users sidebar but online user side bar have no data means it is showing me 0 members online:-



How to show correct count. I know I need to add something in my listener but what?? And also I'm using widget framework to show latest threads and replies in forum view and thread view as side bar... How to use that same sidebar in this my custom page.

Help will be greatly appreciated :)

Please help me...thanks :)
 

tyteen4a03

Well-known member
Most likely you need a <xen:set> and/or a $viewParams tweak. Look at the original template to spot any variables you didn't set.
 

xf_phantom

Well-known member
Use the bd widget framework

as position you need to set
Rich (BB code):
_page_node.XX
and replace XX with the node id
 

gginni

Active member
Use the bd widget framework

as position you need to set
Rich (BB code):
_page_node.XX
and replace XX with the node id
Thanks for telling some hints... I checked widget thread and posted the same in that thread as query coz this was still nt working :(
 
Top