Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Make sure you are using the Clear Sidebar widget on every page where you are using Widget Framework. It's probably this that's causing the 'duplicate' - you're seeing the one in the Xenforo side bar as well as the one in Widget Framework as it's not being cleared.
Sorry @Martok how is this applied?
 
it only gives you the popular template position, i need specific ones like above. Am i in the right direction? its VERY confusing...
 
All i want is the sidebar to be the same on any page its shows - why is this add on so complicated? why would it show different on each page…why isn't there clear instructions on how to properly set this up on a forum.
 
it only gives you the popular template position, i need specific ones like above. Am i in the right direction? its VERY confusing...

All i want is the sidebar to be the same on any page its shows - why is this add on so complicated? why would it show different on each page…why isn't there clear instructions on how to properly set this up on a forum.

Yes you are on the right track and no, it isn't very confusing. It just requires a bit of thought and a little understanding. :)

i think what i need to do is add all widgets to forum_list so they don't appear on other pages causing duplicate content?
Adding them to forum_list will only show them on the forum_list template (the main page of your forums), it won't show them on any other pages unless you add them to the template for that page.


You need to use Inspect Elements in Chrome (or similar in other browsers - possibly not in Safari as that's crap ;) ) It's your friend, you can learn a lot from it and find out many answers to what you need using this.

If you use it on any page, you can find out the template that page uses. If you look at the main forums page and use this, you will see that it tells you that the template is forum_list

upload_2014-2-8_15-55-53.webp

Xenforo is nicely built like this, the class it uses for content is the same name as the template. If you go into a forum and try the same there, you'll see that it tells you that it is forum_view.

So, give it a go, try it out on the page you linked to above and you'll then see what template that uses. :D

Once you've seen how this works, Widget Framework is a doddle to use. You simply decide on which pages you want your widgets to show on and in the Position box for each one you add all of the templates for all of these pages. Once you do that, it's done. :)
 
Yes you are on the right track and no, it isn't very confusing. It just requires a bit of thought and a little understanding. :)


Adding them to forum_list will only show them on the forum_list template (the main page of your forums), it won't show them on any other pages unless you add them to the template for that page.


You need to use Inspect Elements in Chrome (or similar in other browsers - possibly not in Safari as that's crap ;) ) It's your friend, you can learn a lot from it and find out many answers to what you need using this.

If you use it on any page, you can find out the template that page uses. If you look at the main forums page and use this, you will see that it tells you that the template is forum_list

View attachment 66815

Xenforo is nicely built like this, the class it uses for content is the same name as the template. If you go into a forum and try the same there, you'll see that it tells you that it is forum_view.

So, give it a go, try it out on the page you linked to above and you'll then see what template that uses. :D

Once you've seen how this works, Widget Framework is a doddle to use. You simply decide on which pages you want your widgets to show on and in the Position box for each one you add all of the templates for all of these pages. Once you do that, it's done. :)
Thanks @Martok - very useful information. However, I still don't understand why i have elements from the core Xenforo side bar. see here, tried adding your clear sidebar recommendation to no avail.

Screen Shot 2014-02-08 at 12.53.13 PM.webp

Screen Shot 2014-02-08 at 12.55.19 PM.webp
 
Thanks @Martok - very useful information. However, I still don't understand why i have elements from the core Xenforo side bar. see here, tried adding your clear sidebar recommendation to no avail.

View attachment 66823

View attachment 66824
It definitely works, I just tested it on my site.

You need to post a screenshot of your entire widget list from ACP > Appearance > List Widgets so we can see which templates your widgets are applied to and the order of these widgets in each template.
 
Ok - widgets here:

Screen Shot 2014-02-08 at 5.33.37 PM.webp

Here is whats on my forum home sidebar:

1.webp
2.webp
3.webp
4.webp

online_list
1.webp
2.webp
3.webp
4.webp
 

Attachments

  • 2.webp
    2.webp
    53.4 KB · Views: 2
  • 3.webp
    3.webp
    27.7 KB · Views: 1
  • 4.webp
    4.webp
    5.7 KB · Views: 1
The reason it's a mess and not the same throughout all of your pages is because you've got a mix of widgets added to hooks and widgets added to templates. I haven't added to any hooks, mine are just added to templates.
 
The reason it's a mess and not the same throughout all of your pages is because you've got a mix of widgets added to hooks and widgets added to templates. I haven't added to any hooks, mine are just added to templates.
I had to do it this way with hooks to have them align from top to bottom as I wanted them. The normal display system did not work properly for me.
 
I had to do it this way with hooks to have them align from top to bottom as I wanted them. The normal display system did not work properly for me.
Really? I've got them in the exact order I want them on every page that I want them on and only using templates. I think you may want to look at your setup again...

Clear Sidebar widget must be the first priority in every template.
This is correct too. I think your lack of use of this and not using templates is your problem.
 
and also, Clear Sidebar will not work on widgets using hooks.
It will just work on regular template, as far as I know.
Correct me if I'm wrong @xfrocks :)
 
Yes you are on the right track and no, it isn't very confusing. It just requires a bit of thought and a little understanding. :)


Adding them to forum_list will only show them on the forum_list template (the main page of your forums), it won't show them on any other pages unless you add them to the template for that page.


You need to use Inspect Elements in Chrome (or similar in other browsers - possibly not in Safari as that's crap ;) ) It's your friend, you can learn a lot from it and find out many answers to what you need using this.

If you use it on any page, you can find out the template that page uses. If you look at the main forums page and use this, you will see that it tells you that the template is forum_list

View attachment 66815

Xenforo is nicely built like this, the class it uses for content is the same name as the template. If you go into a forum and try the same there, you'll see that it tells you that it is forum_view.

So, give it a go, try it out on the page you linked to above and you'll then see what template that uses. :D

Once you've seen how this works, Widget Framework is a doddle to use. You simply decide on which pages you want your widgets to show on and in the Position box for each one you add all of the templates for all of these pages. Once you do that, it's done. :)
Very informative! Thank you.
 
and also, Clear Sidebar will not work on widgets using hooks.
It will just work on regular template, as far as I know.
Correct me if I'm wrong @xfrocks :)
It works with hook positions too but it will also clear existing content of the hook so maybe you don't want to use it for certain hooks.
 
  • Like
Reactions: rdn
Back
Top Bottom