How can I fix it ?Change avatar by a thumbnail image (demo: http://www.tinhte.vn/)
View attachment 43316
- Requires use Widget Framework
- Upload to (overwrite) file Threads.php the / library / WidgetFramework / WidgetRenderer /
- Open template wf_widget_threads replace the whole code with:
Code:<style> .xp-thread-top .clear{ clear:both; } .xp-thread-bottom .xp-left{ float:left; } .xp-thread-bottom .xp-right a{ font-size: 15px; } .sidebar .avatarList .avatar img { width:60px; height:60px; } </style> <xen:if hascontent="true"> <div class="avatarList"> <ul> <xen:contentcheck> <xen:foreach loop="$new" value="$thread"> <li> <div class="xp-thread-bottom"> <div class="xp-left"> <xen:if is="{$thread.attachment}"> <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip"> <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" /> </a> <xen:else /> <xen:avatar user="$thread" size="m" img="true" /> </xen:if> </div> <div class="xp-right"> <xen:include template="wf_widget_threads_thread_title"> <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set> </xen:include> <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'} <xen:datetime time="{$thread.post_date}" /></div> </div> </div> </li> </xen:foreach> <xen:foreach loop="$recent" value="$thread"> <li> <div class="xp-thread-bottom"> <div class="xp-left"> <xen:if is="{$thread.attachment}"> <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip"> <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" /> </a> <xen:else /> <xen:avatar user="$thread" size="m" img="true" /> </xen:if> </div> <div class="xp-right"> <xen:include template="wf_widget_threads_thread_title"> <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set> <xen:set var="$_threadLink">{xen:if '{$visitor.user_id} > 0', {xen:link threads/unread, $thread}, {xen:link posts, {xen:array 'post_id={$thread.last_post_id}'}}}</xen:set> </xen:include> <div class="userTitle">{xen:phrase wf_x_replied, 'user={$thread.username}'} <xen:datetime time="{$thread.last_post_date}" /></div> </div> </div> </li> </xen:foreach> <xen:foreach loop="$popular" value="$thread"> <li> <div class="xp-thread-bottom"> <div class="xp-left"> <xen:if is="{$thread.attachment}"> <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip"> <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" /> </a> <xen:else /> <xen:avatar user="$thread" size="m" img="true" /> </xen:if> </div> <div class="xp-right"> <xen:include template="wf_widget_threads_thread_title"> <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set> </xen:include> <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'} <xen:datetime time="{$thread.post_date}" /></div> </div> </div> </li> </xen:foreach> <xen:foreach loop="$mostReplied" value="$thread"> <li> <div class="xp-thread-bottom"> <div class="xp-left"> <xen:if is="{$thread.attachment}"> <a href="{xen:link threads, $thread}" class="avatar class="Tooltip"> <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" /> </a> <xen:else /> <xen:avatar user="$thread" size="m" img="true" /> </xen:if> </div> <div class="xp-right"> <xen:include template="wf_widget_threads_thread_title"> <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set> </xen:include> <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'}, {xen:phrase replies}: {xen:number $thread.reply_count}</div> </div> </div> </li> </xen:foreach> <xen:foreach loop="$mostLiked" value="$thread"> <li> <div class="xp-thread-bottom"> <div class="xp-left"> <xen:if is="{$thread.attachment}"> <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip"> <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" /> </a> <xen:else /> <xen:avatar user="$thread" size="m" img="true" /> </xen:if> </div> <div class="xp-right"> <xen:include template="wf_widget_threads_thread_title"> <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set> </xen:include> <div class="userTitle"> {xen:phrase wf_x_posted, 'user=<a href="{xen:link 'members', {$thread}}">{$thread.username}</a>'}, {xen:phrase likes}: <a href="{xen:link 'posts/likes', {xen:array 'post_id={$thread.first_post_id}'}}" class="OverlayTrigger">{xen:number $thread.first_post_likes}</a> </div> </div> </div> </li> </xen:foreach> <xen:foreach loop="$polls" value="$thread"> <li> <div class="xp-thread-bottom"> <div class="xp-left"> <xen:if is="{$thread.attachment}"> <a href="{xen:link threads, $thread}" class="avatar" class="Tooltip"> <img src="{$thread.attachment}" alt="{$thread.title}" title="{$thread.title}" /> </a> <xen:else /> <xen:avatar user="$thread" size="m" img="true" /> </xen:if> </div> <div class="xp-right"> <xen:include template="wf_widget_threads_thread_title"> <xen:set var="$_showPrefix">{$widget.options.display.show_prefix}</xen:set> </xen:include> <div class="userTitle">{xen:phrase wf_x_posted, 'user={$thread.username}'} <xen:datetime time="{$thread.post_date}" /></div> </div> </div> </li> </xen:foreach> </xen:contentcheck> </ul> </div> </xen:if>
But error
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 311050473 bytes) in /home/hoihoavietnamnn/public_html/library/WidgetFramework/WidgetRenderer/Threads.php on line 252
Help me!
Your custom script is too complicated and causing issue. I suggest not to use it. Otherwise, you need to contact the script's author.How can I fix it ?
There is no support for thumbnail for thread with XenForo 1.1.4, you need an add-on for that. I only provide limited support for third-party add-ons, sorry.you can help me change avatar -> thumbnail when Select the renderer = thread
View attachment 43526
Thanks.
My Xenforo 1.1.3. Thanks XfrocksThere is no support for thumbnail for thread with XenForo 1.1.4, you need an add-on for that. I only provide limited support for third-party add-ons, sorry.
Change logs:
- Minor improvements
- Fixed bug redirected threads show up twice
- Fixed bug for Share This Page renderer
- Fixed bug empty widget container
- Fixed issues with "all" position
- Added template params for hook positions
- Added separated debug option (add to config.php: `$config['wfDebug'] = true;`)
- Added new options to Online Users renderer: show people you follow; show rich usernames
- Added support for XFRM: new renderer Resources (4 modes: new, updated,...
xfrocks updated [bd] Widget Framework with a new update entry:
v2.2 now supports XenForo Resource Manager!
Read the rest of this update entry...
So gay! *run away*I love you more than I can say.
You need to add "No homo" after that sentence to prevent things like xfrocks may sayI love you more than I can say.
As usual. Upload overwriting the files. Then upgrade in AdminCP using the xml file.how do I properly upgrade this Add-on to its latest version ?
Many thanks!
Could you please consider adding this? I saw latest threads widgets not coming from widget framework that supported this and I don't want to mix stand-alone widgets with widget framework.Another thing, can you please add a read/unread indicator to the li elements? I tried {xen:if $forum.hasNew, 'unread'} but it doesn't work in the widget.
Sorry the indicator cannot be cached so it's not included in this addon. It's okie to use 3rd party renderer. Some of them are very goodCould you please consider adding this? I saw latest threads widgets not coming from widget framework that supported this and I don't want to mix stand-alone widgets with widget framework.
Sorry, what do you mean?Well, here goes the point of a frameworkToo bad.
This version supports one new renderer for resources. Other renderers may be added. About the particular case in your linked thread, yes, maybe.are you planning to extend this Add-on to be also used for the RM ?
e.g.: something like this:
http://xenforo.com/community/threads/how-to-increase-the-number-of-authors-in-the-rm-sidebar.47829/
We use essential cookies to make this site work, and optional cookies to enhance your experience.