XenForo [OzzModz] Reaction to Vote 2.0.1 Patch Level 2 Null Download

File Size: KB

Download Count:

File Update Date:

You can free [OzzModz] Reaction to Vote


2.0.1 Patch Level 2 download the source from the button above

Automatic upvote/downvote for suggestions & answers to questions on given or taken reaction (depending on reaction type - positive = upvote, negative = downvote)
With AJAX vote block updating.

ONLY FOR XF 2.2!




1605008336035-webp.239447



You can easily add support for your votable content by implementing PB\ReactionToVote\Entity\ReactionToVoteInterface

PHP:
/**
* Represents Votable entity for current reacted content
* return $this if your votable content is the same to reacted entity or return parent relation with ContentVote if not
*
* Eg: reacted Post entity has a ContentVoteTrait implementation that relates to Thread on suggestion forum types
* @return \XF\Mvc\Entity\Entity
*/
public function getReactionToVoteContent();

/**
* Returns true if reaction to vote action is supported
* @return bool
*/
public function isReactionToVoteSupported(): bool;


Config options can be extended in PB\ReactionControl\Repository\Repo::getSupportedContentTypes()

Eg:

PHP:
public function getSupportedContentTypes()
{
   $contentTypes = parent::getSupportedContentTypes();

   $contentTypes['My/AwesomeAddon'] => [
         'my_content_type1' => ['title' => XF::phrase('my_content_type1')],
         'my_content_type2' => ['title' => XF::phrase('my_content_type2')]
      ]
   ];
   return $contentTypes;
}
 
Back
Top