Added embed feature where you can embed the widget as an iframe outside XenForo. The option appears in the right corner of the widget.
Fixed an issue with iframe embed where links do not open.
Added two new widget options for more control:
- Display last poster username
- Display last poster date
Siropu updated Recent Posts 2 by Siropu with a new update entry:
Improvements
Read the rest of this update entry...
Via css:Is it possible to somehow disable this feature?
.srp-embedCode
{
display: none;
}
Is the widget enabled for guests?Also the embedded link does not work, it produces a blank page.
It only applies to the widget.anywhere in the code to force recent posts to load latest post after click?
Technically that is still a widget but in expanded mode on our Whats new page right? Anyhow, is there a way to edit the code to always link to last post even when expanded?It only applies to the widget.
I was referring to the Recent Posts add-on widget. It has nothing to do with the "whats new" widget.Technically that is still a widget but in expanded mode on our Whats new page right?
Which code?is there a way to edit the code to always link to last post even when expanded?
I was referring to the Recent Posts add-on widget. It has nothing to do with the "whats new" widget.
Which code?
I think I might have provided this code change before not sure but I can add an option for it in the widget settings. Will do that in the next release, tomorrow.I am guessing there is a way to edit the code to do so?
Also the embedded link does not work, it produces a blank page.
Yes, the widget is enabled for guests, but even as admin the embedded link does not work.Is the widget enabled for guests?
InvalidArgumentException: Template public:siropu_recent_posts_embed error: No widget defined with a widget_key of siropu_recent_posts
src/XF/SubContainer/Widget.php:80
#0 src/XF/Container.php(234): XF\SubContainer\Widget->XF\SubContainer\{closure}('siropu_recent_p...', Array, Object(XF\Container))
#1 src/XF/SubContainer/Widget.php(142): XF\Container->create('widget', 'siropu_recent_p...', Array)
#2 src/XF/Template/Templater.php(1972): XF\SubContainer\Widget->widget('siropu_recent_p...', Array)
#3 internal_data/code_cache/templates/l3/s27/public/siropu_recent_posts_embed.php(21): XF\Template\Templater->renderWidget('siropu_recent_p...', Array, Array)
#4 src/XF/Template/Templater.php(1654): XF\Template\Templater->{closure}(Object(MaZ\AUN\XF\Template\Templater), Array, NULL)
#5 src/addons/MaZ/AUN/XF/Template/Templater.php(39): XF\Template\Templater->renderTemplate('siropu_recent_p...', Array, true, NULL)
#6 src/XF/Template/Template.php(24): MaZ\AUN\XF\Template\Templater->renderTemplate('public:siropu_r...', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('Siropu\\RecentPo...', 'public:siropu_r...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2487): XF\Mvc\Dispatcher->run()
#13 src/XF.php(524): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
array(4) {
["url"] => string(19) "/recent-posts/embed"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/recent-posts/embed"] => string(0) ""
}
["_POST"] => array(0) {
}
}
The problem is that the embed page is calling the original widget name directly and yours is named differently. Since the XF template syntax doesn't allow variables for names, this can be only be fixed by changing the code manually which I will add support for.Yes, the widget is enabled for guests, but even as admin the embedded link does not work.
We use essential cookies to make this site work, and optional cookies to enhance your experience.