Referral Contests 2 by Siropu

Referral Contests 2 by Siropu [Paid] 2.2.14

No permission to buy (€29.99)
Siropu updated Referral Contests 2 by Siropu with a new update entry:

Improvements & Bug Fixes

The code has been cleaned up and important parts have been moved from the Listener to Entity and Repository.

Bugs Fixed
Fixed an issue with a potential error on user registration with referrer auto follow.
Referral link not applied on mobile devices to share buttons.
Referral link not applied to the post share copy link.
Issue with custom referrer thread and manual user approval where some code won't run as it should.

Read the rest of this update entry...
 
Good afternoon.
Can you tell me what may be the error when entering the profile?

Code:
ErrorException: [E_WARNING] Declaration of Siropu\ReferralSystem\XF\Pub\Controller\Account::actionReferralToolsPreview() should be compatible with Siropu\ReferralContests\XF\Pub\Controller\Account::actionReferralToolsPreview(XF\Mvc\ParameterBag $params) in src/addons/Siropu/ReferralSystem/XF/Pub/Controller/Account.php at line 63
XF::handlePhpError() in src/vendor/composer/ClassLoader.php at line 571
include() in src/vendor/composer/ClassLoader.php at line 571
Composer\Autoload\includeFile() in src/vendor/composer/ClassLoader.php at line 428
Composer\Autoload\ClassLoader->loadClass()
spl_autoload_call()
class_exists() in src/XF/Extension.php at line 174
XF\Extension->extendClass() in src/XF/App.php at line 2869
XF\App->extendClass() in src/XF/App.php at line 1604
XF\App->XF\{closure}() in src/XF/Container.php at line 234
XF\Container->create() in src/XF/App.php at line 2824
XF\App->controller() in src/XF/Mvc/Dispatcher.php at line 291
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2353
XF\App->run() in src/XF.php at line 524
XF::runApp() in index.php at line 20
 
Is there any SEO benefit for the Referral Contest links shared on other websites? Are the referral links dofollow?
When i disable the Referral Contests will the links still be active?
 
Got this error.

Server error log
Code:
    ErrorException: Template error: [E_USER_WARNING] Function siropu_invitation_message is unknown src/XF/Template/Templater.php:1106

    Generated by: Unknown account Oct 28, 2022 at 9:21 PM

Stack trace
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/weplaypro...', 1106)
#1 src/XF/Template/Templater.php(1106): trigger_error('Function siropu...', 512)
#2 internal_data/code_cache/templates/l1/s21/public/PAGE_CONTAINER.php(1337): XF\Template\Templater->func('siropu_invitati...', Array, true)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 src/XF/Pub/App.php(564): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#5 src/XF/App.php(2151): XF\Pub\App->renderPageHtml('
   

<div class=...', Array, Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#6 src/XF/Mvc/Dispatcher.php(404): XF\App->renderPage('
   

<div class=...', Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#8 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state
Code:
array(4) {
  ["url"] => string(45) "/community/500-we-play-pro-referral-contest.6"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Hello @Siropu.
It happen when I share something on Twitter, the share go with the referral.
Screenshot 2022-11-09 at 22-25-25 Compose new Tweet _ Twitter.webp
The thing is that, give me errors. I mean few different errors.

Code:
Server error log

    ErrorException: Template error: [E_USER_WARNING] Function siropu_invitation_message is unknown src/XF/Template/Templater.php:1106

    Generated by: Unknown account Nov 9, 2022 at 8:18 PM

Stack trace

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/weplaypro...', 1106)
#1 src/XF/Template/Templater.php(1106): trigger_error('Function siropu...', 512)
#2 internal_data/code_cache/templates/l1/s21/public/PAGE_CONTAINER.php(1474): XF\Template\Templater->func('siropu_invitati...', Array, true)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 src/XF/Pub/App.php(564): XF\Template\Templater->renderTemplate('PAGE_CONTAINER', Array)
#5 src/XF/App.php(2151): XF\Pub\App->renderPageHtml('
    

<div class=...', Array, Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#6 src/XF/Mvc/Dispatcher.php(404): XF\App->renderPage('
    

<div class=...', Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#8 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#9 src/XF.php(524): XF\App->run()
#10 index.php(20): XF::runApp('XF\\Pub\\App')
#11 {main}

Request state

array(4) {
  ["url"] => string(47) "/threads/request-a-game-we-give-it-to-you-for-f"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Server error log
Code:
    ErrorException: Template error: [E_USER_WARNING] Method canViewDbtechCredits is not callable on the given object (XF\Entity\User) src/XF/Template/Templater.php:1186

    Generated by: Unknown account Nov 9, 2022 at 8:18 PM

Stack trace
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/weplaypro...', 1186)
#1 src/XF/Template/Templater.php(1186): trigger_error('Method canViewD...', 512)
#2 internal_data/code_cache/navigation_cache.php(548): XF\Template\Templater->method(Object(XF\Entity\User), 'canViewDbtechCr...', Array)
#3 src/XF/Template/Templater.php(7626): XF\Pub\App->{closure}(Object(XF\Template\Templater), 'forums', Array)
#4 src/XF/Pub/App.php(577): XF\Template\Templater->renderNavigationClosure(Object(Closure), 'forums', Array)
#5 src/XF/Pub/App.php(528): XF\Pub\App->getNavigation(Array, 'forums')
#6 src/XF/App.php(2151): XF\Pub\App->renderPageHtml('
    

<div class=...', Array, Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#7 src/XF/Mvc/Dispatcher.php(404): XF\App->renderPage('
    

<div class=...', Object(XF\Mvc\Reply\Error), Object(XF\Mvc\Renderer\Html))
#8 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\Error), 'html')
#9 src/XF/App.php(2353): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

Request state
Code:
array(4) {
  ["url"] => string(47) "/threads/request-a-game-we-give-it-to-you-for-f"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Got this error.
Try re-building add-on data. The error is not a bug in my add-on. Somehow the template function which is added via XF's code event listeners, is not applied when you get that error.

As for the last error, is not from my add-on.
 
Try re-building add-on data. The error is not a bug in my add-on. Somehow the template function which is added via XF's code event listeners, is not applied when you get that error.

As for the last error, is not from my add-on.
I did that and I try to share something and it go still with the referral; link at the end.
 
Currently, in case of a tie, the referrer with the older registration date will get ordered first.
I will make some changes in the next release to split prizes.
 
Hi - I have 2 people that have made 1 referral each. When I click on Top Referrers it states that there are none.

Little help with this?
 
Any way to turn off the NavBar link "Referral Contests" while I don't have an active contest running?
 
Top Bottom