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

Adding sidebar with data in new page node

Discussion in 'XenForo Development Discussions' started by gginni, Apr 27, 2013.

  1. gginni

    gginni Active Member

    Hello Guys,

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


    I added below code in template to show sidebar:-

        <xen:include template="sidebar_online_users" />
    <xen:include template="sidebar_share_page" />
    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 :)
  2. gginni

    gginni Active Member

    Someone please help me??
  3. tyteen4a03

    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.
    gginni likes this.
  4. xf_phantom

    xf_phantom Well-Known Member

    Use the bd widget framework

    as position you need to set
    and replace XX with the node id
  5. gginni

    gginni Active Member

    Thanks for telling some hints... I checked widget thread and posted the same in that thread as query coz this was still nt working :(

Share This Page