Recent content by Earl

  1. Earl

    multiple human verification types

    Please provide a way to force the captcha type. Please give a chance to developers to override the global captcha setting So they can do something like this: <xf:captcharow type="recaptcha" label="{{ phrase('verification') }}" hint="{{ phrase('required') }}"/> <xf:captcharow type='qna'...
  2. Earl

    XF 2.1 How to access style id from template? $xf.style.id does'nt work

    Thank you for giving very informative response. I found how to access it with the help of your reply ($xf.style.style_id).
  3. Earl

    XF 2.1 How to access style id from template? $xf.style.id does'nt work

    {{ dump($xf) }} shows this: {{ dump($xf.style) }} shows this: but {{ dump($xf.style.id) }} shows null: I'm confused o_O
  4. Earl

    XF 2.1 How to override a property?

    Aaah! I found that code isn't working It seems like the __construct(Manager $em, array $criteria = null) method doesn't get executed before the the filterCriteria(array $criteria, $relation = null) method in abstractSearcher.php (See this debug screenshot) this works: protected...
  5. Earl

    XF 2.1 Help required on how to overwrite / overload a function of another addon

    I also strongly recommend you to follow @TickTackk 's advice, then again did you try adding a code event listener? Create Listener.php in your addon root public static function {\XF\Mvc\Entity\Entity $entity}{ } then Admincp -> Development -> Code event listeners -> Select Entity post save...
  6. Earl

    XF 2.1 Help required on how to overwrite / overload a function of another addon

    Take a look at that _postSave block in that third-party add-on, and find what's it doing there. check If it tries to set new values or do something related to that third party addon, if you notice anything like that, you add if {} block and use those 3rd party activities to test if you're in the...
  7. Earl

    XF 2.1 How to override a property?

    Thank you for that @Chris D
  8. Earl

    XF 2.1 How to override a property?

    You can extend a class and override its methods by having the same name then call it's parent method with this line return parent:methodName(); but how do you override a property? I have this code namespace Earl\AddOn\XF\Searcher; class User extends XFCP_User { protected $allowedRelations...
  9. Earl

    XF 2.1 Help required on how to overwrite / overload a function of another addon

    I suggest you to test this with xdebug. Add a break point to parent::_postSave(); and keep hitting F7 and see how the code get executes.
  10. Earl

    Use machine learning to detect reaction abusers?

    That ratio only only calculates for received reactions, but not given reactions, so it wouldn't work right?
  11. Earl

    Use machine learning to detect reaction abusers?

    Is this user criteria comes with Content Ratings+ by @Xon add-on? I already have installed and running [TH] Reactions Plus add-on by @ThemeHouse which also support blacklisting reactions with user criteria like this: I only have user reaction score of at least X and user reaction score to...
  12. Earl

    XF 2.1 QnA Captcha & Invisible Recaptcha both at the same time

    Is there a way to get it working by adding double <xf:captcha force="true" /> lines using a template mod to registration form? If it's possible, then how to force silent recaptcha when the default captcha is QnA?
  13. Earl

    XF 2.1 Batch user state update

    Is there a way to batch update user state? Example: from Valid to Awaiting email confirmation
  14. Earl

    XF 2.2 Approval queue is only processing one item

    Found what was wrong. I had LogModeratorAction on approval handler with action name longer than 25 characters. It has to be shorter. Now its working perfectly :)
  15. Earl

    XF 2.2 Approval queue is only processing one item

    After selecting actions for multiple approval items, and hitting the save button, It's suppose to execute actions on all approval items, but in this case, it's only approving one single item in the list. I have to repeat the process again and again until the approval list get cleared. XDebug...
Top