Recent content by viktor_kovtun

  1. V

    XF 2.0 User Upgrades & Monetization

    Hi, Is it possible to get payment page url with given id of 'user', 'user upgrade', 'payment profile' so if there is one payment profile called 'paypal' and one 'user upgrade' called 'Pro User'. then I want to get payment page url programmatically, which is the same when you click this...
  2. V

    XF 2.0 Thread Edit Modal Customize

    I extended setupThreadEdit method from 'XF\Api\Controller\Thread' but when I edit Thread it doesn't trigger my extended method.
  3. V

    XF 2.0 Thread Edit Modal Customize

    I need to customize Edit Thread Modal. It is no problem to make template modification and db alteration. But I am stuck which event listener should I use to make this new value stored in xf_thread table. Which method this form is going to be submitted? I am PHP developer but very new to...
  4. V

    Get root path (or path to data dir) from application?

    I tried to var_dump(XenForo_Application::getInstance()->getRootDir() . '/data' ); in my addon method. but it gives me error.
  5. V

    XF 2.0 Path image

    Hi, Chris I included all image in my addon directory src/addons/ForumStatusIcon/_files/images and now I want to load that image in controller method, but I am not sure how to determine the path of the image. I tried like following. <img src =...
  6. V

    XF 2.0 Template error when creating add-ons via documentation

    I created Demo\Portal\_output\templates\public\demo_portal_view.html I checked every code piece dozens of times. But the portal page keeps showing me Template errors Template public:demo_portal_view: Template public:demo_portal_view is unknown (src\XF\Template\Templater.php:611) Can you...
  7. V

    XF 2.0 debug: best practices for displaying variables (console log, file system or xf_admin_log for crons ...)

    I wrote \XF::dump($featuredThread); to my add-on service function but I got error in console. 'PHP: <script> Sfdump = window.Sfdump || (function (doc) { var refStyle = doc.createElement('style'), rxEsc = '
  8. V

    Comprehensive Developer Documentation for Xenforo 2.0

    Actually, when I go to https://xf2demo.xenforo.com/dev-docs/, It need me to enter credential. Can you help me with this?
Top Bottom