Referral Contests 2 by Siropu

Referral Contests 2 by Siropu [Paid] 2.2.14

No permission to buy (€29.99)
@Siropu Does this Server error log from your add-on?

Code:
InvalidArgumentException: Condition must be array if only 1 argument is provided src/XF/Mvc/Entity/Finder.php:185

Generated by: Unknown account Sep 14, 2018 at 3:47 AM

Stack trace

#0 src/XF/Mvc/Entity/Finder.php(118): XF\Mvc\Entity\Finder->buildCondition('is_supper_admin')
#1 src/addons/Siropu/ReferralContests/Listener.php(279): XF\Mvc\Entity\Finder->where('is_supper_admin')
#2 [internal function]: Siropu\ReferralContests\Listener::userEntityPostSave(Object(Datio\AllowedEmails\XF\Entity\User))
#3 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#4 src/XF.php(562): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\User')
#5 src/XF/Mvc/Entity/Entity.php(1165): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\User')
#6 src/XF/Service/User/Registration.php(279): XF\Mvc\Entity\Entity->save()
#7 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\User\Registration->_save()
#8 src/XF/Pub/Controller/Register.php(414): XF\Service\User\Registration->save()
#9 src/addons/AddonFlare/PaidRegistrations/XF/Pub/Controller/Register.php(121): XF\Pub\Controller\Register->actionRegister()
#10 src/XF/Mvc/Dispatcher.php(249): AddonFlare\PaidRegistrations\XF\Pub\Controller\Register->actionRegister(Object(XF\Mvc\ParameterBag))
#11 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'Register', 'json', Object(XF\Mvc\ParameterBag), '', Object(AddonFlare\PaidRegistrations\XF\Pub\Controller\Register), NULL)
#12 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#13 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#14 src/XF.php(329): XF\App->run()
#15 index.php(13): XF::runApp('XF\\Pub\\App')
#16 {main}

Request state

array(4) {
  ["url"] => string(18) "/register/register"
  ["referrer"] => string(46) "/register/?accountType=1"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(18) {
    ["username"] => string(0) ""
    ["a3fdecfe8ed753ca2eb1408e5cb8d87448ff19bb"] => string(9) "Jibon2323"
    ["1dfc0479cae09caa2b2d86e0925b7c6a1f2843ba"] => string(21) ""
    ["0f28c94cbee16c833faa7f98f662d88120bab511"] => string(8) "********"
    ["dob_month"] => string(1) "4"
    ["dob_day"] => string(1) "4"
    ["dob_year"] => string(4) "1992"
    ["location"] => string(6) "Uttara"
    ["custom_fields"] => array(2) {
      ["gender"] => string(6) "female"
      ["siropu_referrer"] => string(8) "Subash89"
    }
    ["g-recaptcha-response"] => string(292) "03AL4dnxpKypzzAS9exCC6VHoEVJO4CLC5unnLowFwFVY19bjgwDtqIrjGigVffjrJQu5jidb_QJGs96-MGDmrgu7XGcLDlKV9gf6uK_Kbd15U8PgGUso064nQhIpwtDP85hY3ejES89cnx1NwDqSujDQqZevRV2cma-53NxF8SfCM358qssGhYNJW4YuARP2N-QLsX_o6CPi1aVyNA5e9P_wSaLEPmpqDi-9mgtzhjenRXnlpswXnu4vJ3lvXQ2OR5WcgN089g8A7wxZJQcmO-PgJNtg4A1ke_Q"
    ["email_choice"] => string(1) "1"
    ["accept"] => string(1) "1"
    ["reg_key"] => string(16) "4dyJOZy3vL1bMaaC"
    ["3cfa39a39ffefe4dbed1e8e6d342d9cb4574c1d0"] => string(10) "Asia/Dhaka"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(24) "/register/?accountType=1"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
Siropu updated Referral Contests 2 by Siropu with a new update entry:

Improvements & Bug Fixes

Added user option (permission based) to create invitations manually.
Added "Invitations per month" user group permission.
Users with unconfirmed accounts won't count as referrals until they confirm their account.
When creating invitations as admin for a different user, that user will get an alert about it.

Bugs Fixed
Integration issue with DB Tech Credits latest version.
Issue with sending invitations in some situations.
Issue with sending admin alerts when a referred user required...

Read the rest of this update entry...
 
@Siropu Please add support Referrer fields are not editable in /account/account-details, ones entered this fields UN-editable. Only can fill-up Referrer fields in new registration and make cannot re-edit after registration complete.
 
After sending an invitation for some reason I keep being redirected to /account/invitations/sent instead of account/invitations/list. Although the link appears to be correct in the template. I have reverted all changes to templates but still encounter the same problem.
 
The redirect is done via PHP where the issue is. Please re-download the latest version, I've made a change.
 
@Siropu Does this Server error log from your add-on?

Code:
LogicException: Template public:alert_user_siropu_new_referral error: Attempted to set 'dbtech_shop_purchase' while a save was pending without forceSet src/XF/Mvc/Entity/Entity.php:532

Generated by: Unknown account Oct 5, 2018 at 4:08 AM

Stack trace

#0 src/XF/Mvc/Entity/Entity.php(510): XF\Mvc\Entity\Entity->set('dbtech_shop_pur...', Array)
#1 src/addons/DBTech/Shop/Helper/Purchase.php(38): XF\Mvc\Entity\Entity->offsetSet('dbtech_shop_pur...', Array)
#2 src/addons/DBTech/Shop/XF/Template/Templater.php(123): DBTech\Shop\Helper\Purchase::verifyPurchases(Object(Datio\AllowedEmails\XF\Entity\User))
#3 src/addons/DBTech/Shop/XF/Template/Templater.php(83): DBTech\Shop\XF\Template\Templater->getUserNameStyle(Object(Datio\AllowedEmails\XF\Entity\User))
#4 src/addons/ForoAgency/ColoredUsername/XF/Template/Templater.php(14): DBTech\Shop\XF\Template\Templater->fnUsernameLink(Object(DBTech\UserTagging\XF\Template\Templater), true, Object(Datio\AllowedEmails\XF\Entity\User), false, Array)
#5 [internal function]: ForoAgency\ColoredUsername\XF\Template\Templater->fnUsernameLink(Object(DBTech\UserTagging\XF\Template\Templater), true, Object(Datio\AllowedEmails\XF\Entity\User), false, Array)
#6 src/XF/Template/Templater.php(881): call_user_func_array(Array, Array)
#7 internal_data/code_cache/templates/l1/s0/public/alert_user_siropu_new_referral.php(6): XF\Template\Templater->fn('username_link', Array, true)
#8 src/XF/Template/Templater.php(1250): XF\Template\Templater->{closure}(Object(DBTech\UserTagging\XF\Template\Templater), Array)
#9 src/addons/AddonsLab/LinkChecker/XF/Template/Templater.php(89): XF\Template\Templater->renderTemplate('alert_user_siro...', Array, true)
#10 src/XF/Alert/AbstractHandler.php(67): AddonsLab\LinkChecker\XF\Template\Templater->renderTemplate('public:alert_us...', Array)
#11 src/XF/Entity/UserAlert.php(69): XF\Alert\AbstractHandler->render(Object(NF\Discord\XF\Entity\UserAlert))
#12 src/addons/NF/Discord/XF/Entity/UserAlert.php(31): XF\Entity\UserAlert->render()
#13 src/XF/Mvc/Entity/Entity.php(1159): NF\Discord\XF\Entity\UserAlert->_postSave()
#14 src/XF/Repository/UserAlert.php(116): XF\Mvc\Entity\Entity->save()
#15 src/XF/Repository/UserAlert.php(87): XF\Repository\UserAlert->insertAlert(1, 2945, 'XdRAK', 'user', 2945, 'siropu_new_refe...', Array)
#16 src/addons/Siropu/ReferralContests/Listener.php(436): XF\Repository\UserAlert->alert(Object(Datio\AllowedEmails\XF\Entity\User), 2945, 'XdRAK', 'user', 2945, 'siropu_new_refe...')
#17 src/addons/Siropu/ReferralContests/Listener.php(239): Siropu\ReferralContests\Listener::alertReferrerAndReset(Object(Datio\AllowedEmails\XF\Entity\User), Object(Datio\AllowedEmails\XF\Entity\User), 'siropu_new_refe...')
#18 [internal function]: Siropu\ReferralContests\Listener::userEntityPostSave(Object(Datio\AllowedEmails\XF\Entity\User))
#19 src/XF/Extension.php(50): call_user_func_array(Array, Array)
#20 src/XF.php(562): XF\Extension->fire('entity_post_sav...', Array, 'XF\\Entity\\User')
#21 src/XF/Mvc/Entity/Entity.php(1165): XF::fire('entity_post_sav...', Array, 'XF\\Entity\\User')
#22 src/XF/Service/User/Registration.php(279): XF\Mvc\Entity\Entity->save()
#23 src/XF/Service/ValidateAndSavableTrait.php(40): XF\Service\User\Registration->_save()
#24 src/XF/Pub/Controller/Register.php(302): XF\Service\User\Registration->save()
#25 src/XF/Mvc/Dispatcher.php(249): XF\Pub\Controller\Register->actionConnectedAccountRegister(Object(XF\Mvc\ParameterBag))
#26 src/XF/Mvc/Dispatcher.php(88): XF\Mvc\Dispatcher->dispatchClass('XF:Register', 'ConnectedAccoun...', 'json', Object(XF\Mvc\ParameterBag), '', Object(AddonFlare\PaidRegistrations\XF\Pub\Controller\Register), NULL)
#27 src/XF/Mvc/Dispatcher.php(41): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#28 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#29 src/XF.php(329): XF\App->run()
#30 index.php(13): XF::runApp('XF\\Pub\\App')
#31 {main}

Request state

array(4) {
  ["url"] => string(44) "/register/connected-accounts/google/register"
  ["referrer"] => string(58) "/register/connected-accounts/google/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(14) {
    ["username"] => string(5) "XdRAK"
    ["dob_month"] => string(1) "5"
    ["dob_day"] => string(2) "17"
    ["dob_year"] => string(4) "1995"
    ["location"] => string(5) "dHAKA"
    ["custom_fields"] => array(2) {
      ["gender"] => string(4) "male"
      ["siropu_referrer"] => string(10) "nirjonmela"
    }
    ["email_choice"] => string(1) "1"
    ["accept"] => string(1) "1"
    ["_xfRedirect"] => string(1) "/"
    ["timezone"] => string(10) "Asia/Dhaka"
    ["_xfToken"] => string(8) "********"
    ["_xfRequestUri"] => string(36) "/register/connected-accounts/google/"
    ["_xfWithData"] => string(1) "1"
    ["_xfResponseType"] => string(4) "json"
  }
}
 
You can change that from the "Referrer" custom user field general options. Uncheck "Editable only once".
 
this add-on looks awesome and siropu is an awesome developer!! i have his ads manager add-on its is amazing!!

looking forward to purchasing this add-on in the future because i read in the description " "Integrates with DBTech Credits add-on"
im looking for a credits add-on to purchase in the future as well for xf2

.
.
 
Reasonable pricing, especially for the renewal. I will be researching a little bit more and I might buy it.
EDIT: I have a question, Is it possible to detect click frauds, because I am thinking if its possible to pay to people to refer new members?
 
Last edited:
Is it possible to detect click frauds, because I am thinking if its possible to pay to people to refer new members?
When a referral with an IP uses by a different member is registered, admins will get an alert about it. That's the only option available. If you are doing contests, you can set a minimum posts required for referrals to discourage fraud.
 
Top Bottom