Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Hi xfrocks,

Find_new_posts, the template that generates the "New Posts" and "Recent Posts" pages.

My problem: I want to add sidebar to these pages, without having to edit the find_new_posts core template. I can't get it to work with Widget Framework, because it looks like this page has no unique ID. Yes, there is a class, but the expression area in Widget Framework works solely with PHP ID's...

Can you help me out please?

I tried:

1) Making a new page and pasting the code of find_new_posts in it so that I can give it a unique ID.

Result: page is showing no new posts.

2) Trying to find a hook for the find_new_posts page

Result: nothing found.

@xfrocks please, can you help me?
 
I created a custom field to hide a sidebar block if they have it checked. How do I check for this in the expression block?

The following isn't working:

PHP:
$visitor['user_id'] AND $visitor['customFields']['enablechatbox']

Edit: Figured it out. Was using wrong field at end.
 
Last edited:
It's unlikely it will be included in the add-on since most people don't need it.
And yes, you can copy the file and change it a bit. Will need to register as new add-on to make use of the event listener. I assume you are a developer?

Managed it! Was much easier than anticipated. Maybe i'll write some more widgets :)
 
Then use "find_new_posts" as position.

****. I had tried hook:find_new_posts, but it didn't come up to me that I can use that one too. Thank you very much!

The only tiny little problem is that it puts next to the threads... is there a way I can put it outside the container?
 
****. I had tried hook:find_new_posts, but it didn't come up to me that I can use that one too. Thank you very much!

The only tiny little problem is that it puts next to the threads... is there a way I can put it outside the container?
Remove hook:, just use "find_new_posts".
 
Remove hook:, just use "find_new_posts".

Yes, I did that, thanks..

Different question: can I specify the positioning in the page itself too? I mean using find_new_posts && hook:top_page or something?

If I use a comma, it appears on every page and not on the page I specified.
 
Yes, I did that, thanks..

Different question: can I specify the positioning in the page itself too? I mean using find_new_posts && hook:top_page or something?

If I use a comma, it appears on every page and not on the page I specified.
What are the list of pages you want your widget should display?
 
Modern statistics addon-addon can now be added to the list with widget framework support :cool:http://xenforo.com/community/threads/*******-modern-statistics-paid.56703/
 
Then on position field, input: find_new_posts, forum_view, thread_view

No brother, that's not what I meant... I thought you were asking something else.

Anyhow, I want to add the widget on the TOP of the find_new_posts template. Is that possible?
 
Ok here it is:

Expression:

On Position:

Yes! That's it! Thank you man!

Different question: the widget for recent posts, can we make it just like the recent posts in the core? Cause it looks like it does not show the avatar of the user and the forum where it is posted in. Can you help with that too?
 
Just installed this to xenForo 1.2.4; whenever I attempt to add a sidebar widget, I get

The following error occurred:
The field 'widget_page_id' was not recognised.

I've filled out all appropriate forms for this, including the location, hook:forum_list_sidebar
 
Just installed this to xenForo 1.2.4; whenever I attempt to add a sidebar widget, I get

The following error occurred:
The field 'widget_page_id' was not recognised.

I've filled out all appropriate forms for this, including the location, hook:forum_list_sidebar
Just use "forum_list".
 
Is it possible that my issue with this add on conflicts with the core Xeenforo sidebar? I have "sort of" duplicate content on certain pages. Any help would be appreciated. One example below.
Screen Shot 2014-02-08 at 6.40.47 AM.webp
 
Is it possible that my issue with this add on conflicts with the core Xeenforo sidebar? I have "sort of" duplicate content on certain pages. Any help would be appreciated. One example below.
View attachment 66800
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.
 
Back
Top Bottom