XF 2.0 Got a couple widget questions. Thanks if you can help

Brad Padgett

Well-known member
So I'm now getting used to using widget keys but I have an issue with members online.

I want to move members online down above forum statistics but keep staff online where it's at up top. I can't really use the widget key because there's no way to keep staff online up top if I do. I've tried taking the content out of the template and putting it in forum statistics but it gives the forum statistics icon so I'm at a loss on what the best way would be.

My last question is when creating widgets I've noticed there's no position to place them above the nodes "and" the sidebar. It always stays next to the sidebar even when you do "above nodes". This is a much needed feature getting it to go completely up top and I can't believe no ones implemented it yet. You would think there would be a way for that.

I simply wanted to put the 5 most recent threads in a new post style above the sidebar and nodes.

Anyways those are just 2 questions I have. I really appreciate anyone who wants to give some insight. Thanks a bunch.

- Brad
 
You can define your own widget positions but it’s hidden in developer mode.

There were details on the XF2 demo board but not sure if they made it over here.

Yes I think it's:

Code:
<xf:widgetpos position="my_position"/>

Or something similar to that but I haven't been able to find the position to do exactly what I want. I wish I knew how to find all the positions. Would be a big help.

@RobParker Just wanted to tag you. I accidentally hit send before finishing the message and had to edit my post.
 
Last edited:
Creating a widget position really is a developer thing -- if you're doing it yourself, you don't need a position as you can just call the widgets in the templates directly.

But the position you want would require you to add code to the PAGE_CONTAINER template. That's a "global" area, not somewhere that is accessible directly within a template.
 
Creating a widget position really is a developer thing -- if you're doing it yourself, you don't need a position as you can just call the widgets in the templates directly.

But the position you want would require you to add code to the PAGE_CONTAINER template. That's a "global" area, not somewhere that is accessible directly within a template.

I don't suppose you have time to tell me where to call the widget keys for both my questions? If not, I understand I know your probably busy. But if so, I'm sure it would help a lot of people. I may not be a php developer yet but I'm good with html and css and it would be very helpful. Thanks.

EDIT: @Mike okay I figured out how to get the new threads to appear above the sidebar and nodes. I simply add it after the UI.X 2 welcome section in page_container which is what I did and it worked perfectly.

If you know the answer to my other question just let me know I really appreciate it thanks.
 
Last edited:
Which question? The staff vs members bit? That's just done by one widget, so you'd likely need separate widgets to do something like that (potentially with custom code for each).
 
Creating a widget position really is a developer thing -- if you're doing it yourself, you don't need a position as you can just call the widgets in the templates directly.

Curious, are you able to define a sidebar without creating a position? Like if I wanted to add a sidebar with widgets to a specific page node
 
Which question? The staff vs members bit? That's just done by one widget, so you'd likely need separate widgets to do something like that (potentially with custom code for each).

Yes, putting the members online above forum statistics and keeping staff online up top. So I imagine I would need to separate the 2 parts in the template and put the part that's just "members" somewhere in page container. It may take looking at page_container to tell me. You don't have to do that if you don't want to. I can probably figure it out on my own at some point but if you know the exact position to move the "members" code let me know. I'm sure someone else will find it useful. And thank you
 
Curious, are you able to define a sidebar without creating a position? Like if I wanted to add a sidebar with widgets to a specific page node
<xf:sidebar>whatever HTML/widgets you want here</xf:sidebar>

but if you know the exact position to move the "members" code let me know.
My point was that the staff and the members boxes are from the same widget. There isn't support for splitting them out of the box.
 
My point was that the staff and the members boxes are from the same widget. There isn't support for splitting them out of the box.

No worries, I'll find a way. I do suggest you make them separate in the future. It kind of boxes you in and forces you to have them together. There should be more freedom in place. Just my thoughts.
 
Back
Top Bottom