Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Sorry, there is nothing like that. Actually, I'm considering to drop that "deactivate for mobile" option because it's better to do it using responsive CSS/JavaScript. Detecting mobile browser using browser user agent is not foolproof at all! Plus, there are many tables today and most of them will be recognized as "mobile"...
thanks xfrocks. Cheers for the response and the great work on this addon :)

i might try this http://xenforo.com/community/threads/browser-detection-mobile-msie.38613/ to do what i need re ads to mobile/tablet users.
 
If I activate the "new replies" widget, how do I get it to appear before all other widgets, including the "members online" and such? I tried adjusting the numbers that determine order, but they don't seem to get that new replies widget up to the top. Thanks.
 
If I activate the "new replies" widget, how do I get it to appear before all other widgets, including the "members online" and such? I tried adjusting the numbers that determine order, but they don't seem to get that new replies widget up to the top. Thanks.
It should work. Which position are you using it?
 
With the recent posts widget, why doesn't the widget update immediately upon the entry of a new post? It seems to take five minutes or so?
 
Are there any areas here that holds simple guides on how to modify the widgets that come with this product? I have set up a "Threads - New Replies" sidebar for the home page and I want to remove all information there and just leave the thread titles, that way I can get a lot more in there for the size. I just want to remove the avatar pictures, usernames and time/date info. Does anyone know if this is possible and if so if there are any easy guides out there to follow? Thanks very much :).
 
With the recent posts widget, why doesn't the widget update immediately upon the entry of a new post? It seems to take five minutes or so?
You are right, the cache TTL for Threads is 5 minute. You can set it to refresh faster in the widget edit page.

Are there any areas here that holds simple guides on how to modify the widgets that come with this product? I have set up a "Threads - New Replies" sidebar for the home page and I want to remove all information there and just leave the thread titles, that way I can get a lot more in there for the size. I just want to remove the avatar pictures, usernames and time/date info. Does anyone know if this is possible and if so if there are any easy guides out there to follow? Thanks very much :).
The only way to have that kind of customization is to edit template. You can edit the template wf_widget_threads_thread_sidebar
 
  • Like
Reactions: UKD
You are right, the cache TTL for Threads is 5 minute. You can set it to refresh faster in the widget edit page.


The only way to have that kind of customization is to edit template. You can edit the template wf_widget_threads_thread_sidebar


That you so much, I can figure it out from here :D.
Also, would you not recommend disabling caching? I'm just curious as to why it is set to 5 mins? That seems very long. I would imagine most people would want their threads to appear instantly on their widget, so why would it be set to 300 seconds? Is the rule that the longer you set it to, the less strain it puts on your server? I wouldn't have thought this widget put any strain on a server as it is such a simple information fetch feature?
 
Also, sorry to be a pain but in the template "wf_widget_threads_thread_sidebar" I found the avatar and disabled that, however I can't for the life of me see anything relating to username and time. I want to disable who is is posted by and what time, I am just looking to leave the thread title and the link to the thread, but this information doesn't seem to exist in my code ??

Code:
<li class="thread-{$thread.thread_id} thread-node-{$thread.node_id}">
    <xen:comment><xen:avatar user="$thread" size="s" img="true" /></xen:comment>

    <xen:if is="{$widget.options.display.show_prefix}">{xen:helper threadprefix, $thread}</xen:if>

    <a {xen:if '{$thread.title} != {xen:helper snippet, $thread.title, @wf_threads_titleMaxLength}', 'title="{$thread.title}" class="Tooltip"'}
        href="{xen:if '{$_threadLink}', {xen:raw $_threadLink}, {xen:link threads, $thread}}">
        {xen:helper snippet, $thread.title, @wf_threads_titleMaxLength}
    </a>

    <div class="userTitle">{xen:raw $_secondRow}</div>
   
    <xen:if is="{$thread.messageHtml}"><div>{xen:helper WidgetFramework_snippet, $thread.messageHtml, @wf_threads_snippetMaxLength}</div></xen:if>
</li>

Any help from anyone would be appreciated. Thanks!
 
That you so much, I can figure it out from here :D.
Also, would you not recommend disabling caching? I'm just curious as to why it is set to 5 mins? That seems very long. I would imagine most people would want their threads to appear instantly on their widget, so why would it be set to 300 seconds? Is the rule that the longer you set it to, the less strain it puts on your server? I wouldn't have thought this widget put any strain on a server as it is such a simple information fetch feature?
It will be a huge problem if you have enough traffic :D

Also, sorry to be a pain but in the template "wf_widget_threads_thread_sidebar" I found the avatar and disabled that, however I can't for the life of me see anything relating to username and time. I want to disable who is is posted by and what time, I am just looking to leave the thread title and the link to the thread, but this information doesn't seem to exist in my code ??

Code:
<li class="thread-{$thread.thread_id} thread-node-{$thread.node_id}">
    <xen:comment><xen:avatar user="$thread" size="s" img="true" /></xen:comment>

    <xen:if is="{$widget.options.display.show_prefix}">{xen:helper threadprefix, $thread}</xen:if>

    <a {xen:if '{$thread.title} != {xen:helper snippet, $thread.title, @wf_threads_titleMaxLength}', 'title="{$thread.title}" class="Tooltip"'}
        href="{xen:if '{$_threadLink}', {xen:raw $_threadLink}, {xen:link threads, $thread}}">
        {xen:helper snippet, $thread.title, @wf_threads_titleMaxLength}
    </a>

    <div class="userTitle">{xen:raw $_secondRow}</div>
  
    <xen:if is="{$thread.messageHtml}"><div>{xen:helper WidgetFramework_snippet, $thread.messageHtml, @wf_threads_snippetMaxLength}</div></xen:if>
</li>

Any help from anyone would be appreciated. Thanks!
Just remove this line

PHP:
  <div class="userTitle">{xen:raw $_secondRow}</div>
 
  • Like
Reactions: UKD
Fantastic, you are amazing. I tried that earlier but for some reason it didn't work, I just think my software was slow to update. Anyway, thanks. I'm going to set my time limit to 60 seconds, hopefully that will be ok, 5 mins just seems too much :P.
 
Have a question regarding the "Latest" widget. Same thing happens with the "New" widget as well but just wanted to focus on one.

So I have the widget configured to show a limit of 4 threads with thread cutoff days set at 7. Whenever I'm logged in, I always see 4. However, when I view the widget as a guest, I sometimes see less than 4 at varying times. Or better yet, sometimes the "Latest" tab doesn't even show.

My guess is that this is because some or all of the last 4 posts were posted in a forum where the guest doesn't have access to read the contents of the thread?

One thing to note is that guests do have "View threads by others" permission so they can go into the forum and see the thread titles/author/last poster and but they don't have "View thread content" permission so they can't actually read the posts.

Since the widget only shows the thread title and last poster, is there a way to show guests the latest updates to threads?

Hope I'm making sense! :)
 
Have a question regarding the "Latest" widget. Same thing happens with the "New" widget as well but just wanted to focus on one.

So I have the widget configured to show a limit of 4 threads with thread cutoff days set at 7. Whenever I'm logged in, I always see 4. However, when I view the widget as a guest, I sometimes see less than 4 at varying times. Or better yet, sometimes the "Latest" tab doesn't even show.

My guess is that this is because some or all of the last 4 posts were posted in a forum where the guest doesn't have access to read the contents of the thread?

One thing to note is that guests do have "View threads by others" permission so they can go into the forum and see the thread titles/author/last poster and but they don't have "View thread content" permission so they can't actually read the posts.

Since the widget only shows the thread title and last poster, is there a way to show guests the latest updates to threads?

Hope I'm making sense! :)
The permission is checked so it is not possible to show the threads with no viewOthers/viewContent permission. However, in future version the widget will fetch extra threads to make up for those got removed because of permissions.
 
The permission is checked so it is not possible to show the threads with no viewOthers/viewContent permission. However, in future version the widget will fetch extra threads to make up for those got removed because of permissions.
Ah gotcha. Just wanted to make sure there weren't any configuration I missed.

Thanks!
 
Back
Top Bottom