Resource icon

[bd] Widget Framework 2.6.6

No permission to download
Hi. I'm implementing a feature where member avatars will be unvisible to guests not registered with the forum. I sorted it out in the forum section. Now I'm working with the widgets since there a small avatars there as well.
Looks good. But you may want to wait for a while for the cache to refresh itself. (Or you can turn on debug mode to completely disable caching).
 
Looks good. But you may want to wait for a while for the cache to refresh itself. (Or you can turn on debug mode to completely disable caching).
Thanks for the info! What are the intervals for the cache? How long do I have to wait before I can see the result of a modification?
 
What about this piece of code? Here you are creating a link for the person who has created a certain post:

PHP:
<div class="userTitle">{xen:phrase wf_x_replied, 'user=<a href="{xen:link 'members', $thread}">{$thread.username}</a>'} <xen:datetime time="{$thread.last_post_date}" /></div>
 
I thought I was going to be able to use...

PHP:
<xen:if is="!{xen:helper ismemberof, $visitor, 2} AND {xen:helper ismemberof, $thread.user_id, 11}">

...to verify that the person watching the widget avatar is 1) not a member. In the last condition i want to verify wether the avatar showing up in the widget belongs to a member who has a premium account. If the account is premium the avatar won't show up and vice versa. For this to work I need the userID of the member who has created the thread/post. I thought I could $thread.user_id. But ismemberof function gives me the following error when I use it:

Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, integer given in /xxx/community/library/XenForo/Template/Helper/Core.php, line 1153
 
I thought I was going to be able to use...

PHP:
<xen:if is="!{xen:helper ismemberof, $visitor, 2} AND {xen:helper ismemberof, $thread.user_id, 11}">

...to verify that the person watching the widget avatar is 1) not a member. In the last condition i want to verify wether the avatar showing up in the widget belongs to a member who has a premium account. If the account is premium the avatar won't show up and vice versa. For this to work I need the userID of the member who has created the thread/post. I thought I could $thread.user_id. But ismemberof function gives me the following error when I use it:
Still don't understand what you are trying to do. And ismemberof requires an array but {$thread.user_id} is an integer. You can use {$thread} but it doesn't always have the user group info. For further assistant on this specific issue, please start a conversation with me. Thank you.
 
I wouldn't minda countdown, except I'd rather not have to install another 2 add-ons that aren't going to serve any other purpose, other than to show a countdown. The only other one I'd like is a status update widget...
This is possible but using js and template of jaxel to reuse resources? I do not.

Salud2
 
I don't know whats possible and what's not. All I know is for a widget, I'd rather not have to install two more add-ons.
 
  • Like
Reactions: DRE
Looks like you have too many widgets (from the beginning, not currently) and the add-on didn't clean the cache properly -> the cache contains a lot of expired data -> it grows larger than the 16MB limit. If you can, go to MySQL management console/phpMyAdmin and delete the row in xf_data_registry with data_key = 'wf_cache_1'. Or you can send your site info via Conversation, I will come and see.

This is happening again. Why isn't this being cleared?
 
That may explain why the cache is too large. It simply needs more space than the backend can provide (max 16MB). Normally a cache entry is small but the Widget try to merge cache for the same combination id into one cache entry (so it only needs to query one cache entry for each page request). In order to prevent this, please start a conversation with me with your site details. I will have to look around to find a solution.
 
Can someone explain to me why avatars in the "recent post" widget is visible when I'm logged out but not when I'm logged in? :confused:
 
Back
Top Bottom