Where do you see that? Did it cause a problem?
@Sim would it be very hard to allow members to select which forums they receive the digest from?
In my MG EVs forum, people own one car and only want updates from the forum for that car.
So I tried the install again and the second time, it installed correctly without error.Server error log
- XF\PrintableException: Batch install error: Callback Hampel\WhatsNewDigest\Listener::nonTransactionalStopMap is invalid (error_invalid_method).
- src/XF/Mvc/Entity/Entity.php:1228
- Generated by: Stuart Wright
- Jan 14, 2025 at 8:39 AM
Stack trace
#0 src/XF/AddOn/DataType/CodeEventListener.php(73): XF\Mvc\Entity\Entity->save(true, false)
#1 src/XF/Job/AddOnData.php(110): XF\AddOn\DataType\CodeEventListener->importAddOnData('Hampel/WhatsNew...', Object(SimpleXMLElement), 0, 7.95886)
#2 src/XF/Job/AddOnInstallBatch.php(341): XF\Job\AddOnData->run(7.95886)
#3 src/XF/Job/AddOnInstallBatch.php(95): XF\Job\AddOnInstallBatch->stepData(Object(XF\Timer))
#4 src/XF/Job/Manager.php(260): XF\Job\AddOnInstallBatch->run(8)
#5 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#6 src/XF/Job/Manager.php(118): XF\Job\Manager->runJobEntry(Array, 8)
#7 src/XF/Admin/Controller/Tools.php(122): XF\Job\Manager->runByIds(Array, 8)
#8 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\Tools->actionRunJob(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Tools', 'RunJob', Object(XF\Mvc\RouteMatch), Object(Wutime\AdBlockTracker\XF\Admin\Controller\Tools), NULL)
#10 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(Wutime\AdBlockTracker\XF\Admin\Controller\Tools), NULL)
#11 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#13 src/XF.php(524): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}
Request state
array(4) {
["url"] => string(24) "/admin.php?tools/run-job"
["referrer"] => string(48) "https://www.avforums.com/admin.php?tools/run-job"
["_GET"] => array(1) {
["tools/run-job"] => string(0) ""
}
["_POST"] => array(3) {
["_xfRedirect"] => string(85) "https://www.avforums.com/admin.php?add-ons/install-from-archive-complete&batch_id=366"
["_xfToken"] => string(8) "********"
["only_ids"] => string(7) "9999470"
}
}
How is it looking?Yeah that would probably be useful on ZooChat as well.
I don't have time to build this functionality right now (focus is on getting ZooChat upgraded to XF 2.3!) - I'll put it on the todo list though.
How is it looking?
Could you create a premium version and charge for it? That would motivate you to build it and those admins who value it (like me) would be happy to pay.
/admin.php?tools/whatsnewdigest-test
, it shows the logo at the top. But when the actual digest gets sent out, it uses the text of the forum title instead of the logo.The home page of the forum. There's no problem with the URL. The logo image is public -- the code usesWhat is the actual URL that is being rendered in the emails in both cases?
publicLogoUrl
.whatsnewdigest_email
template is the culprit? 'board': '<a href="' . link('canonical:index') . '">' . $xf.options.boardTitle . '</a>'
'board':
part. For MAIL_CONTAINER
I changed: <td class="header" align="center" valign="top">
<a href="{{ link('canonical:index') }}">{$xf.options.boardTitle}</a>
</td>
<td class="summaryHeaderBar" align="center" valign="top">
<xf:if is="property('emailPublicLogoUrl')">
<a href="{{ link('canonical:index') }}"><img src="{{ base_url(property('emailPublicLogoUrl'), true) }}" alt="{$xf.options.boardTitle}" /></a>
<xf:elseif is="property('publicLogoUrl')" />
<a href="{{ link('canonical:index') }}"><img src="{{ base_url(property('publicLogoUrl'), true) }}" alt="{$xf.options.boardTitle}" width="{{ property('publicLogoWidth') ?: '' }}" height="{{ property('publicLogoHeight') ?: '' }}" class="{{ property('publicLogoUrl')|to_lower|substr(-4) == '.svg' ? 'logo-svg' : '' }}" /></a>
<xf:else />
<a href="{{ link('canonical:index') }}">{$xf.options.boardTitle}</a>
</xf:if>
</td>
I think this code in thewhatsnewdigest_email
template is the culprit?
Yes, that's what I'm talking about. The mod I'm trying to do changes that phrase to the forum logo. And that's what I think should be the default for this addon. It's the default for the Activity Summary.That's just generating the phrase that shows at the top of the email.
Your unsubscribe is broken and breaking the law
Sorry to be a bit blunt about this but I'm getting a bit fed up of constantly having to do this (And this isn't a me issue, I used to build plugins for XenForo so know how it works).
You keep sending me digest emails. I keep hitting unsubscribe. I also keep going to the account preferences page and opting out of all emails, yet a few weeks later I get another email, and sure enough its all been turned back on again.
Please either fix this, or just delete my account as I'm not using it enough to care about digest emails. It's in your interest to fix it given right now it's violating CAN-SPAM, GDPR & ePrivacy.
- bugfix: user preference field in AdminCP wasn't showing in XF 2.3 due to template modifications that no longer worked - this has been fixed
- bugfix: unsubscribe uses stopAllExcept by default in XF 2.3 - so we need to ensure we're stopping Whats New Digest if this is called instead of StopAll
- update test tool to allow sending test emails to a specific user - and handling no threads
Updated test tool now allows you to choose a user to receive a test email digest - which...
@Sim are you 100% sure that when people unsubscribe from the digest that they remain unsubscribed? I have an upset member threatening to complain to GDPR (in the UK) because they say that they unsubscribed several times but continued to receive them.
We use essential cookies to make this site work, and optional cookies to enhance your experience.