[XFA] Like Or Reply To View Attachment - XF2

[XFA] Like Or Reply To View Attachment - XF2 [Paid] 1.2.0

No permission to buy (€10.00)

XFA

Well-known member
XFA submitted a new resource:

[XFA] Like Or Reply To View Attachment - XF2 - Blocks download of attachments until users have liked or replied to the post

Description

Blocks download of attachments until users have liked or replied to the post.

View attachment 181940

Features
  • Hide attachments thumbnail
  • Thumbnail replacement image url
  • Require like in order to view attachment (and/or) Require post reply in order to view attachment
  • Excluded forums
  • Excluded usergroups
  • Excluded extensions

Read more about this resource...
 

levi45

Member
Hi it’s should be compatible with xf2.1
If you have any issue on xf2.1 i will fix it

Regards
Hi I have set your addons like to download. After installing xf2.1 user likes post but you can't see attachment. It was OK with xf2. 0
 

spicer

Active member
Server error: Argument 2 passed to XF\Attachment\Post::canView() must be an instance of XF\Mvc\Entity\Entity, null given
When a user with no attachments clicks view their own attachments.

Code:
#0 [internal function]: XF\Attachment\Post->canView(Object(XFA\LikeReplyViewAttachment\XF\Entity\Attachment), NULL)
#1 src/XF/Template/Templater.php(999): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l2/s15/public/thattachplus_member_attachments.php(33): XF\Template\Templater->method(Object(Jazzaaf\xenAntiVirus\XF\Attachment\Post), 'canView', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XENTR\ExternalLink\XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thattachplus_me...', Array)
#5 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#6 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('ThemeHouse\\Atta...', 'public:thattach...', Array)
#7 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Atta...', 'public:thattach...', Array)
#8 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src/XF/App.php(2191): XF\Mvc\Dispatcher->run()
#12 src/XF.php(391): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
 

Fredxd

Well-known member
Server error: Argument 2 passed to XF\Attachment\Post::canView() must be an instance of XF\Mvc\Entity\Entity, null given
When a user with no attachments clicks view their own attachments.

Code:
#0 [internal function]: XF\Attachment\Post->canView(Object(XFA\LikeReplyViewAttachment\XF\Entity\Attachment), NULL)
#1 src/XF/Template/Templater.php(999): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l2/s15/public/thattachplus_member_attachments.php(33): XF\Template\Templater->method(Object(Jazzaaf\xenAntiVirus\XF\Attachment\Post), 'canView', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(XENTR\ExternalLink\XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thattachplus_me...', Array)
#5 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#6 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('ThemeHouse\\Atta...', 'public:thattach...', Array)
#7 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Atta...', 'public:thattach...', Array)
#8 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#11 src/XF/App.php(2191): XF\Mvc\Dispatcher->run()
#12 src/XF.php(391): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}

Hi please create a thread on our forum support
I am currently on holidays so i will check this when i will be back home
Regards
 
Top