message_macros
template, find something that looks like userExtras
and place the following code there:<xf:if is="{{ property('CMTV_Badges_show_in_message') }}">
<xf:css src="CMTV_Badges_featured_badges.less" />
<xf:macro name="featured_badges" template="CMTV_Badges_featured_badges_macros"
arg-location="message" arg-user="{$user}" />
</xf:if>
Confirmed working on XF 2.2!
@FaustVasea I did not test this addon on UIX TH, but I believe you need to gomessage_macros
template, find something that looks likeuserExtras
and place the following code there:
HTML:<xf:if is="{{ property('CMTV_Badges_show_in_message') }}"> <xf:css src="CMTV_Badges_featured_badges.less" /> <xf:macro name="featured_badges" template="CMTV_Badges_featured_badges_macros" arg-location="message" arg-user="{$user}" /> </xf:if>
This might still workWhere about?
A got this 2 lines:
<xf:if is="{{ property('uix_collapseExtraInfo')}}">
<div class="thThreads__message-userExtras">
</xf:if>
<div class="message-userExtras">
Did anyone found how to disable the emails?Is there a way to remove the emails altogether?
#0 [internal function]: XF\Template\Templater->handleTemplateError()
#1 src/XF/Template/Templater.php(984): trigger_error()
#2 internal_data/code_cache/templates/l2/s2/public/CMTV_Badges_featured_badges_macros.php(16): XF\Template\Templater->method()
#3 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}()
#4 internal_data/code_cache/templates/l2/s2/public/message_macros.php(200): XF\Template\Templater->callMacro()
#5 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}()
#6 internal_data/code_cache/templates/l2/s2/public/post_macros.php(27): XF\Template\Templater->callMacro()
#7 src/XF/Template/Templater.php(701): XF\Template\Templater->{closure}()
#8 internal_data/code_cache/templates/l2/s2/public/thread_view.php(536): XF\Template\Templater->callMacro()
#9 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}()
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate()
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView()
#13 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView()
#14 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply()
#15 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render()
#16 src/XF/App.php(2191): XF\Mvc\Dispatcher->run()
#17 src/XF.php(391): XF\App->run()
#18 index.php(20): XF::runApp()
#19 {main}
We're having troubles in getting the system to automatically give people their badges when usergroup criteria is met. Sometimes it works fine, other times it just won't give them the badge at all.
We've also been totally unable to remove badges from people once they've been awarded. The system won't do it automatically when their usergroups no longer match the requirements set for the badge, and no badge moderation functions are available on user's profile pages at all.
Anyone else having either of these issues?
ErrorException: [E_WARNING] file_put_contents(/home/x/public_html/internal_data/code_cache/templates/l1/s0/public/helper_js_global.php): failed to open stream: Permission denied in src/vendor/league/flysystem/src/Adapter/Local.php at line 199
XF::handlePhpError()
file_put_contents() in src/vendor/league/flysystem/src/Adapter/Local.php at line 199
League\Flysystem\Adapter\Local->update() in src/vendor/league/flysystem/src/Filesystem.php at line 99
League\Flysystem\Filesystem->put()
call_user_func_array() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 431
League\Flysystem\EventableFilesystem\EventableFilesystem->callFilesystemMethod() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 395
League\Flysystem\EventableFilesystem\EventableFilesystem->delegateMethodCall() in src/vendor/league/flysystem-eventable-filesystem/src/EventableFilesystem.php at line 57
League\Flysystem\EventableFilesystem\EventableFilesystem->put() in src/vendor/league/flysystem/src/MountManager.php at line 597
League\Flysystem\MountManager->put() in src/XF/Util/File.php at line 197
XF\Util\File::writeToAbstractedPath() in src/XF/Service/Template/Compile.php at line 146
XF\Service\Template\Compile->writeCompiled() in src/XF/Service/Template/Compile.php at line 43
XF\Service\Template\Compile->recompile() in src/XF/Entity/Template.php at line 433
XF\Entity\Template->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1266
XF\Mvc\Entity\Entity->save() in src/XF/Entity/TemplateModification.php at line 95
XF\Entity\TemplateModification->reparseModification() in src/XF/Entity/TemplateModification.php at line 145
XF\Entity\TemplateModification->_postSave() in src/XF/Mvc/Entity/Entity.php at line 1266
XF\Mvc\Entity\Entity->save() in src/XF/AddOn/DataType/TemplateModification.php at line 79
XF\AddOn\DataType\TemplateModification->importAddOnData() in src/XF/Job/AddOnData.php at line 110
XF\Job\AddOnData->run() in src/XF/Job/Manager.php at line 258
XF\Job\Manager->runJobInternal() in src/XF/Job/Manager.php at line 200
XF\Job\Manager->runJobEntry() in src/XF/Job/Manager.php at line 116
XF\Job\Manager->runByIds() in src/XF/Admin/Controller/Tools.php at line 120
XF\Admin\Controller\Tools->actionRunJob() in src/XF/Mvc/Dispatcher.php at line 350
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 257
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 113
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 55
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2300
XF\App->run() in src/XF.php at line 465
XF::runApp() in admin.php at line 13
$params = [
'user' => $user,
'reason' => $reason,
'badge' => $this->finder(C::__('Badge'))->whereId($badgeId)->fetchOne()
];
/* COMMENT THIS
$this->app()->mailer()->newMail()
->setToUser($user)
->setTemplate(C::_('badge_award'), $params)
->queue();
*/
$user->fastUpdate('cmtv_badges_badge_count', $user->cmtv_badges_badge_count + 1);
We use essential cookies to make this site work, and optional cookies to enhance your experience.