[XenGenTr] Editor Notice

[XenGenTr] Editor Notice 1.1.0

No permission to download
We have a bug, on stock installation of Xenforo 2.0.2 your modification has an exception and causes Sticky Threads to not show up in the thread listing.

Code:
ErrorException: Template error: Template public:XenStickyKonu is unknown src/XF/Template/Templater.php:580

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', '/home/gh/...', 580, Array)
#1 src/XF/Template/Templater.php(580): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(535): XF\Template\Templater->getTemplateData('public', 'XenStickyKonu')
#3 src/XF/Template/Templater.php(1245): XF\Template\Templater->getTemplateCode('public', 'XenStickyKonu')
#4 src/XF/Template/Templater.php(1320): XF\Template\Templater->renderTemplate('XenStickyKonu', Array)
#5 internal_data/code_cache/templates/l1/s1/public/forum_view.php(277): XF\Template\Templater->includeTemplate('public:XenStick...', Array)
#6 src/XF/Template/Templater.php(1246): XF\Template\Templater->{closure}(Object(ThemeHouse\UIX\XF\Template\Templater), Array)
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_view', Array)
#8 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#9 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Forum\\View', 'public:forum_vi...', Array)
#10 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#13 src/XF.php(328): XF\App->run()
#14 index.php(13): XF::runApp('XF\\Pub\\App')
#15 {main}

array(4) {
  ["url"] => string(24) "/forums/hacking-help.18/"
  ["referrer"] => string(33) "https://MYWEBSITE.xyz/forums/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Hoping for a fix, I like this addon
 
This is weird I'm on a new install of XF2 and this addon installed perfectly without issue this time around, ignore previous post!
 
@eTiKeT™

I would like to use your plugin but when this one is enabled, I'm facing some issues as the one you can see here below:

1527878662559.webp

How do I solve this please?

Thx.
 
@eTiKeT™

I would like to use your plugin but when this one is enabled, I'm facing some issues as the one you can see here below:

View attachment 176950

How do I solve this please?

Thx.

also @eTiKeT™

The reason for this bug is because in this addon's "template_modifcations.xml"

you have this code:

XML:
<modification type="public" template="forum_view" modification_key="XenSticky_degisimi" execution_order="10" enabled="1" action="str_replace">
<find>
    <![CDATA[        <xf:if is="$stickyThreads is not empty">
                    <div class="structItemContainer-group structItemContainer-group--sticky">
                    <xf:foreach loop="$stickyThreads" value="$thread">
                    <xf:macro template="thread_list_macros" name="item" arg-thread="{$thread}" arg-forum="{$forum}" />
                    </xf:foreach>
                    </div>
                    <xf:ad position="forum_view_below_stickies" arg-forum="{$forum}" />
                    </xf:if>
    ]]>
</find>
        <replace>
<![CDATA[              0$
           <xf:include template="XenStickyKonu" />
          0$]]>
        </replace>
</modification>

It does a find and replace which includes the XenStickyKonu template which is not included in this addon. It is included in your other addon https://xenforo.com/community/resources/xengentr-xensticky-thread.5873/

Solution:
If you have both addons installed it works fine but if you only have this addon instaled you must, delete the code above and reinstall. Mind you, you must also update the hashes.json or just delete it and bypass the file health check for this addon. Tested working on my board.
 
Hi @eTiKeT™

I have this CSS issue when making new threads:

193545

In fact, this notice must be above the block and not inside the block.
I don't have this issue when using your second notice.

The issue is the same on the default style.

Regards,

PS: Thanks for this plugin!
 
Top Bottom