Job System by Olakunlevpn

Job System by Olakunlevpn 2.0.2

No permission to download
The word job can be changed to fit your needs. What I will be doing once it is released. Only issue that may come up, is some of the changes will have to be redone after an update is done. Depending what get edited that is. Take the Take This Job button. It has to be edited in a template and not a phrase. Maybe it is hiding on me. :)
On next release, i will make all the phrases customizable from the admin panel but the project name will remain the same. Thank you
 
I'm runnig Dragonbyte credits but i'm trying to make it work with USD like shown in the demo pics.
Just create a new USD currency from the Dragonbyte currency section and head back to the add job panel and select your new currency as job reward payment method
 
mayahn updated Job System by Olakunlevpn with a new update entry:

Update Highlights - Version 1.2.0 (Beta)

This Beta release adds critical features requested by users, enhancing functionality and customization options.

Major Additions

  • Decimal Credits: Admins can now credit fractional amounts (e.g., 0.10 or 0.85).
  • Trophy Rewards: Option to award trophies instead of money.
  • Pre-Approval Option: Jobs can require admin approval before access.
  • Approval Queue: Applications added to XenForo’s approval queue.
  • Notifications: Alerts for...

Read the rest of this update entry...
 
I like the addon. Still haven’t got a use case for it, but from what I see, you did a really great job. Also like your changelogs which are very detailed. Well done. Keep this up.

Thank U Reaction GIF by BROCKHAMPTON
 
Great update but I am getting an error message. This isn't happen with my admin account but with a 2nd account that is in another group. When I click to check my alerts, I get this:
Oops! We ran into some problems.
A server error occurred. Please try again later.
Admin error log is:
Code:
ErrorException: [E_WARNING] Undefined property: Olakunlevpn\JobSystem\Alert\ApplicationHandler::$user_id src/addons/Olakunlevpn/JobSystem/Alert/ApplicationHandler.php:23

    Generated by: fords8 Oct 27, 2024 at 11:12 PM

Stack trace

#0 src/addons/Olakunlevpn/JobSystem/Alert/ApplicationHandler.php(23): XF::handlePhpError(2, '[E_WARNING] Und...', '/home/*******/...', 23)
#1 src/XF/Entity/UserAlert.php(43): Olakunlevpn\JobSystem\Alert\ApplicationHandler->canViewContent(Object(Olakunlevpn\JobSystem\Entity\Application), NULL)
#2 src/addons/SV/AlertImprovements/XF/Finder/MarkReadAlertArrayCollection.php(20): XF\Entity\UserAlert->canView()
#3 [internal function]: SV\AlertImprovements\XF\Finder\MarkReadAlertArrayCollection->SV\AlertImprovements\XF\Finder\{closure}(Object(SV\AlertImprovements\XF\Entity\UserAlert))
#4 src/XF/Mvc/Entity/AbstractCollection.php(248): array_filter(Array, Object(Closure))
#5 src/addons/SV/AlertImprovements/XF/Finder/MarkReadAlertArrayCollection.php(19): XF\Mvc\Entity\AbstractCollection->filter(Object(Closure))
#6 src/XF/Pub/Controller/AccountController.php(1621): SV\AlertImprovements\XF\Finder\MarkReadAlertArrayCollection->filterViewable()
#7 src/addons/SV/AlertImprovements/XF/Pub/Controller/Account.php(566): XF\Pub\Controller\AccountController->actionAlertsPopup()
#8 src/XF/Mvc/Dispatcher.php(362): SV\AlertImprovements\XF\Pub\Controller\Account->actionAlertsPopup(Object(XF\Mvc\ParameterBag))
#9 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'AlertsPopup', Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Pub\Controller\Account), NULL)
#10 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserMentionsImprovements\XF\Pub\Controller\Account), NULL)
#11 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#12 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#13 src/XF.php(806): XF\App->run()
#14 index.php(23): XF::runApp('XF\\Pub\\App')
#15 {main}

Request state

array(4) {
  ["url"] => string(129) "/account/alerts-popup?_xfResponseType=json&_xfWithData=1&_xfRequestUri=%2F&_xfToken=1730085139%2Cabd8d4208288051766cca72da78d3cfe"
  ["referrer"] => string(25) "https://***********.net/"
  ["_GET"] => array(4) {
    ["_xfResponseType"] => string(4) "json"
    ["_xfWithData"] => string(1) "1"
    ["_xfRequestUri"] => string(1) "/"
    ["_xfToken"] => string(43) "1730085139,abd8d4208288051766cca72da78d3cfe"
  }
  ["_POST"] => array(0) {
  }
}

I will look into it more tomorrow if you need me too.

EDIT: Found this while looking at alerts.
1730122002642.webp

EDIT AGAIN: I moved the user to the super admin and the alerts works.
 
Last edited:
@mayahn another error I got. I think a guest tryed to sign up for a job. It took the apply. But I tryed to approve it, it gave me this error. Deleted it without issue. Maybe some user group permission should be added. Just a thought.

Code:
    TypeError: XF\Repository\UserAlertRepository::alertFromUser(): Argument #1 ($receiver) must be of type XF\Entity\User, null given, called in /home/********/*******/src/addons/Olakunlevpn/JobSystem/ApprovalQueue/Application.php on line 35 src/XF/Repository/UserAlertRepository.php:115

    Generated by: Unknown account Oct 28, 2024 at 8:51 AM

Stack trace

#0 src/addons/Olakunlevpn/JobSystem/ApprovalQueue/Application.php(35): XF\Repository\UserAlertRepository->alertFromUser(NULL, NULL, 'job_application', 3, 'approved')
#1 src/XF/ApprovalQueue/AbstractHandler.php(139): Olakunlevpn\JobSystem\ApprovalQueue\Application->actionApprove(Object(Olakunlevpn\JobSystem\Entity\Application))
#2 src/XF/Job/ApprovalQueueProcess.php(72): XF\ApprovalQueue\AbstractHandler->performAction('approve', Object(Olakunlevpn\JobSystem\Entity\Application))
#3 src/XF.php(907): XF\Job\ApprovalQueueProcess->XF\Job\{closure}()
#4 src/XF/Job/ApprovalQueueProcess.php(58): XF::asVisitor(Object(Andrew\ModeratorPanel\XF\Entity\User), Object(Closure))
#5 src/XF/Job/Manager.php(275): XF\Job\ApprovalQueueProcess->run(8)
#6 src/XF/Job/Manager.php(205): XF\Job\Manager->runJobInternal(Array, 8)
#7 src/XF/Job/Manager.php(121): XF\Job\Manager->runJobEntry(Array, 8)
#8 job.php(25): XF\Job\Manager->runByIds(Array, 8)
#9 {main}

Request state

array(4) {
  ["url"] => string(8) "/job.php"
  ["referrer"] => string(40) "https://************.net/approval-queue/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
Few things that would be nice to have sometime:

  • Permission based.
  • Select the ability to withdraw or not offer it at all and limit it to the credits. And thus by deselecting, the withdrawals disappear in the menu.
  • Offer the option to include .00 or not. Like for my purpose, it doesn't make sense to add 1.50, as it's always 1.
  • The ability to reward/give a job to a member who has already completed it outside the job system.
  • The ability to enable or disable the job in the job item list (ACP view)

That is all for now. I noticed a few phrases need some work (not a big deal). Thank you for offering this for free. This is truly a great and powerful add on with lots of possibilities and potential.
 
I noticed after a job is mark complete in admin under Submission Details, you can hit the approve submission button again, and it will reward the user for that job again. I did test it and it added the amount again.
 
I noticed after a job is mark complete in admin under Submission Details, you can hit the approve submission button again, and it will reward the user for that job again. I did test it and it added the amount again.
It also shows all attachments, not sure what's the purpose of that.

1730141555012.webp
 
Few things that would be nice to have sometime:

  • Permission based.
  • Select the ability to withdraw or not offer it at all and limit it to the credits. And thus by deselecting, the withdrawals disappear in the menu.
  • Offer the option to include .00 or not. Like for my purpose, it doesn't make sense to add 1.50, as it's always 1.
  • The ability to reward/give a job to a member who has already completed it outside the job system.
  • The ability to enable or disable the job in the job item list (ACP view)

That is all for now. I noticed a few phrases need some work (not a big deal). Thank you for offering this for free. This is truly a great and powerful add on with lots of possibilities and potential.
Would like to add:

  • A reordering possibility for the jobs.
  • A Rich text box instead of text or url on Job submission Type.
 
Few things that would be nice to have sometime:

  • Permission based.
  • Select the ability to withdraw or not offer it at all and limit it to the credits. And thus by deselecting, the withdrawals disappear in the menu.
  • Offer the option to include .00 or not. Like for my purpose, it doesn't make sense to add 1.50, as it's always 1.
  • The ability to reward/give a job to a member who has already completed it outside the job system.
  • The ability to enable or disable the job in the job item list (ACP view)

That is all for now. I noticed a few phrases need some work (not a big deal). Thank you for offering this for free. This is truly a great and powerful add on with lots of possibilities and potential.
You can turn on or off jobs from the job item list (ACP view)

Permission-based will be added subsequently not now, and I will fix other bugs in the next version, which will be released soon
 
Can you be more explicit on this
  • A reordering possibility for the jobs.
I wouldn't mind being able to change the order on the Available Jobs page and on the Manage Jobs page in the admin. But it isn't the end of the world if it can't happen right away.

Making a topic after a job is made would be alright too. Or allowing comments would be cool.
 
I wouldn't mind being able to change the order on the Available Jobs page and on the Manage Jobs page in the admin. But it isn't the end of the world if it can't happen right away.

Making a topic after a job is made would be alright too. Or allowing comments would be cool.
Ok, i get it; sorting jobs is achievable.

It would be best if you still edited jobs from the ACP

And you can manually create posts for a job. We don't want to deviate from the primary purpose of making the job system
 
mayahn updated Job System by Olakunlevpn with a new update entry:

2.0.1 (Beta)

This Beta release adds key user-requested features and fixes reported issues.
  • Bug Fixes: Resolved multiple issues, including preventing duplicate rewards on approved job submissions and other user-reported bugs for better stability.
  • Enable/Disable Feature: Admins can now toggle the Job System on or off via Admin CP options.
    Disable Withdrawals: Admins can now disable withdrawals entirely via Admin CP options
  • Maximum Withdrawal Limit: Maximum...

Read the rest of this update entry...
 
What a great and detailed update. Installed and testing. So far the errors I was getting are gone now.

EDIT: Max Completions isn't working. I set it to 2 and it lets 3 members do the job.
 
Last edited:
Back
Top Bottom