You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phplist restricts download of attachments to subscribers only
While this is technically true, it's because the whole reason for this plugin is that phpList completely ignores the notion of web archive. This is just a download button anyway, so could you:
Add a config option of viewbrowser_anonymous_attachments i.e. Allow anonymous attachments
Change if ($personalise && count($attachments = $this->dao->attachments($mid)) > 0) {
to if ((getConfig('viewbrowser_anonymous_attachments') || $personalise) && count($attachments = $this->dao->attachments($mid)) > 0) {
Change this part from <a href="./dl.php?id={$a['id']}&uid=$uid">$remotefile</a>
to something else that does support anonymous downloads.
?
I can assist with any of this, if you like. I know in #23 you've offered to ask phpList for more hooks, but while they should add generic hooks like in that ticket, there's no logic for them to add a dedicated hook just to specific commands from your plugin to disable their protection. I've asked them anyway, but meanwhile duplicating their dl.php and removing the protection might be a better option, again keep in mind it's just a downloader.
The text was updated successfully, but these errors were encountered:
If the attachment is genuinely public, then you can just put the file somewhere on your web site and include a link to that. There is no need to attach it to the phplist campaign. Or you can do both.
This plugin is just trying to fit-in with the way that phplist works, and I don't want to change this processing.
This ContentCreator.php section doesn't present attachments in anonymous mode because it states:
While this is technically true, it's because the whole reason for this plugin is that phpList completely ignores the notion of web archive. This is just a download button anyway, so could you:
viewbrowser_anonymous_attachments
i.e. Allow anonymous attachmentsif ($personalise && count($attachments = $this->dao->attachments($mid)) > 0) {
to
if ((getConfig('viewbrowser_anonymous_attachments') || $personalise) && count($attachments = $this->dao->attachments($mid)) > 0) {
<a href="./dl.php?id={$a['id']}&uid=$uid">$remotefile</a>
to something else that does support anonymous downloads.
?
I can assist with any of this, if you like. I know in #23 you've offered to ask phpList for more hooks, but while they should add generic hooks like in that ticket, there's no logic for them to add a dedicated hook just to specific commands from your plugin to disable their protection. I've asked them anyway, but meanwhile duplicating their dl.php and removing the protection might be a better option, again keep in mind it's just a downloader.
The text was updated successfully, but these errors were encountered: