Thanks for confirming this as it literally almost drove me nuts why it didn't want to work on our boards. Would be fantastic if this can be fixed in a future release.Using the "all" position may cause issue with server performance. This is a known problem and I will try to fix it in future versions. In the meantime, please consider more specific positions.
<div class="userTitle">
posted in <a href="{xen:link 'forums', {xen:array 'node_id={$thread.node_id}', 'title={$thread.forum_title}'}}">[{$thread.forum_title}]</a></div>
There is no "forum_title" included so you can't do this for now. But I will consider it in the next version.Is is somehow possible to add a link with the forum name instead of the username, in the Recent threads widget?
I think the origin forum of a thread would be more usefull than the posting username which I have already added to the avatar title instead.
I have tried the following:
but the link does not point to the seo friendly url and the forum name just dont show at all.Code:<div class="userTitle"> posted in <a href="{xen:link 'forums', {xen:array 'node_id={$thread.node_id}', 'title={$thread.forum_title}'}}">[{$thread.forum_title}]</a></div>
Any ideas?
It's very simple. You should create a file in the xenforo/library and name it "CallbackClass.php", the content should beHey,
i can't really figure out how that php callback widget is supposed to work. I want the widget to include a php file so the stuff out of that is displayed there. I would be glad if someone could explain in detail what exactly i have to do there to make it work.
<?php
class CallbackClass {
public static function callback(array $widget, $positionCode, array $params, XenForo_Template_Abstract $renderTemplateObject) {
return 'this is some custom html';
}
}
Can you take screenshot of the widget list page and the widget page for "Clear Sidebar" widget? Thank you.I am trying to add widgets to a page node, and I managed to do it using "pagenode_container" and expression "$page['node_id'] == xx". However, the Clear Sidebar widget does not remove visitors panel. If I remove the expression, it even adds it to the others. I thought this was fixed ages ago?
That said, it seems hiding visitor panel does not work at all on my forum.
Addons:
Donation Manager 1.0.1
Nodes As Tabs 1.1.3
Post Message Regex Replacer 1.0.0
Registration Form Timer 2.0
Tapatalk 1.5.0
Top Users 1.1.3
WF - XenAtendo Upcoming Events 1.0.1
Widget for Donation Manager 1
XFA - BBCode for tabs 1.0.3
[8wayRun.Com] XenAtendo (Events) 1.4.8
[8wayRun.Com] XenPorta (Portal) 1.5.5
[bd] Widget Framework 2.1.1
[Tinhte] Attach Image Optimization 2.2.9
<xen:include template="sidebar_visitor_panel" />
<xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
Nice find!Hello, I managed to fix it myself. It turned out the page_container was customized in version 1.1.0, but did not show up in the outdated template screen...
I compared the reverted template with the old one, and the only diffrence in the sidebar section was that the 1.1.0 version had this line:
instead of this one:Code:<xen:include template="sidebar_visitor_panel" />
Code:<xen:if is="!{$noVisitorPanel}"><xen:include template="sidebar_visitor_panel" /></xen:if>
Did the change, and now it works perfectly
An exception occurred: Undefined index: xenOptions in /var/www/vhosts/site.com/httpdocs/forum/library/WidgetFramework/WidgetRenderer/ShareThisPage.php on line 19
XenForo_Application::handlePhpError() in WidgetFramework/WidgetRenderer/ShareThisPage.php at line 19
WidgetFramework_WidgetRenderer_ShareThisPage->_render() in WidgetFramework/WidgetRenderer.php at line 421
WidgetFramework_WidgetRenderer->render() in WidgetFramework/Core.php at line 254
WidgetFramework_Core->_renderWidgetsFor() in WidgetFramework/Core.php at line 195
WidgetFramework_Core->renderWidgetsFor() in WidgetFramework/Listener.php at line 30
WidgetFramework_Listener::template_post_render()
call_user_func_array() in XenForo/CodeEvent.php at line 54
XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 195
XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
XenForo_Template_Public->render() in RotatingAds/Listener.php at line 40
RotatingAds_Listener::template_post_render()
call_user_func_array() in XenForo/CodeEvent.php at line 54
XenForo_CodeEvent::fire() in XenForo/Template/Abstract.php at line 195
XenForo_Template_Abstract->render() in XenForo/Template/Public.php at line 110
XenForo_Template_Public->render() in XenForo/ViewRenderer/HtmlPublic.php at line 119
XenForo_ViewRenderer_HtmlPublic->renderContainer() in XenForo/FrontController.php at line 565
XenForo_FrontController->renderView() in XenForo/FrontController.php at line 156
XenForo_FrontController->run() in /var/www/vhosts/site.com/httpdocs/forum/index.php at line 13
<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>
We use essential cookies to make this site work, and optional cookies to enhance your experience.