Status
Not open for further replies.
The way credits are awarded now (through events), it is way too server intensive to apply in bulk via cron to unknown amounts of users. How many did you have?
 
Only our paid subscriber usergroup members are set to receive paychecks and we have ~75 of those.
 
Last edited:
Checking in again.

I was wondering if we were the only ones who've reported these kinds of problems with the system and if so could an uninstall/re-install could potentially help?
 
I'll have Darkwaltz4 post an update in here for you, I know he's having a tough time tracking it down since it's so sporadic and random - it's not occuring on all servers or even all users so finding the problem is extremely difficult - sorry for how long it's taking.
 
Thanks Cosmic, I understand it's probably pretty frustrating thank you for the quick heads up.

Just to add even more fun randomness, it paid my personal account (Miranda) 3 times last night :D It wasn't catching up any missed ones either, it pays my account pretty consistently. When Darkwaltz4 checks in maybe he could say whether or not an uninstall/re-install could potentially help.

---------- Post added 6th December 2011 at 08:50 ---------- Previous post was 23rd October 2011 at 08:03 ----------

It is still randomly skipping active members and still randomly awarding my own account 3 paychecks. To make it worse, when it triple pays me, the number of credits in my wallet is hundreds more than it should be even counting the duplicate paychecks.

We run a for pay site where each credit is $1 US, so we are potentially losing quite a bit of money if it is paying our members hundreds of credits and I have no way of tracking that down. We're at the point where we are starting to look around for other credit mods.
 
Paychecks Not working correctly

It is very frustrating trying to get the paycheck system to work correctly. Out of 75 members only 11 people have gotten their pay checks. One member received 11 pay checks in 2 minute. I have been testing the system for about 3 weeks with different settings and can not get it to hand out pay checks consistently.

Update. It just gave another member 5,121,000 2000 at a time. He has not logged in for a long time. This is my settings. I only want to give pay checks and awards moving forward. I still have not received my paycheck.
Screenshot at 2012-01-23 19:27:18.webp
 
Last edited:
Well a member just go 4000000 in paychecks I have still not received 1. It seems to be totally random and working correctly. If my paychecks cant be worked out I would like to please have my money back.
 
As soon as Darkwaltz4 has a moment he will answer the post and should be able to get it worked out for you.
 
Alright guys, I have brought you together into this thread so I can keep you updated on what I am doing for this.

In short, I am making a cron to handle the paycheck/activity awards that should get sent out on a regular basis en masse, instead of relying on users logging in to process any that get missed.

The original method relied on the lastactivity timestamps being set by vbulletin to gauge the last time the user was online in order to determine if a payment threshold passed since the last time. It also was able to back-pay multiple thresholds. It seems this timestamp is less maintained as I expected, and relying on it has caused it to get missed by some users, for reasons I havent been able to figure out. I have spent many hours trying to track this without any luck.

I dont like this option because 1) it is bad for large amounts of users and 2) it makes things more complicated as theres now two options to choose from, and admins now have to make an ill-informed choice about it.

Anyway, stay tuned - I will post some files and instructions for you both in this thread in a little while.
 
This is slightly long, but it will be automatic when its part of the next update, and you guys are helping me test it.

We will assume you are testing paychecks for now (though activity and birthday events are covered here too - give those a try if you want).

1) Make sure you have a paycheck event configured to some amount and enabled for some group of people you can easily verify - preferably more than just yourself.
2) In the Action Specific Configuration for Paycheck (or Activity) Interval - put 1. This means daily. You can change it to whatever you want after we are done testing so we don't have to wait around as much for feedback.

3) Edit (forum)/dbtech/credits/credits_vbulletin.php and find:

PHP:
        VBCREDITS::display('navbar', $vbulletin->userinfo, $template_hook);

        if ($vbulletin->userinfo['userid'])

replace with

PHP:
        VBCREDITS::display('navbar', $vbulletin->userinfo, $template_hook);

        if ($vbulletin->userinfo['userid'] AND false)

4) Upload the attached View attachment credits_daily.php file to (forum)/dbtech/credits/

5) Go to admincp > Scheduled Tasks > Add New Scheduled Task, and fill out the following (leave the other fields at their defaults):
Code:
Varname: credits_daily
Title: vBCredits II Deluxe - Daily Actions
Description: Small sites can enable this to issue paycheck, activity, and birthday actions for all users simultaneously.
Hour: 0
Minute: 0 - - - - -
Filename: ./dbtech/credits/credits_daily.php
Product: vBCredits II Deluxe

6) After midnight tonight, all users from step 1 should have gotten what you set for them. Please report back with confirmation.
Note: I actually added a toggle for using the old or new methods, but that will be in the official update later.
 
Thanks for your time I will Give it a go tonight. I will keep you posted.

---------- Post added 1st February 2012 at 00:48 ---------- Previous post was 28th January 2012 at 04:57 ----------

Looks like this did the trick. The only issue I found was it only works with Credits. I tried it with VBshop currency and it gave the paychecks to both currencies at the same time. I will continue my testing thanks.
 
Darkwaltz -

I had not checked back on this thread since you last posted and I missed you put out this update. Thank you for the fix and Monday morning I will implement and test, I'll get back with you!

---------- Post added 25th March 2012 at 13:20 ---------- Previous post was 24th March 2012 at 07:12 ----------

Ok, I implemented the code change, uploaded the page and created the scheduled task yesterday. I did not change my interval from 7 to 1 however, as the paychecks were set to go out last night anyway.

This morning 23 of our 49 members were given paychecks.

I manually ran the task after checking thinking perhaps it would run through those who did not get one, instead it paid again 16 of the original 23 but none of the ones who missed one.
 
So after a couple weeks with the above coding implementing, it seems to be working flawlessly for birthdays but not paychecks.
 
Can you show me a screenshot of your current paycheck event? It runs through every user. If its able to work on birthdays, then it must have attempted to do paychecks but the event didn't handle it.
 
paycheck.webp

Here it is. Two weeks ago I merged one credit into the other (I had two set up in VbCredits and merged one into the other) and it hasn't sent out a paycheck at all since then, even though it is sending out birthdays.
 
Status
Not open for further replies.

Legacy vBCredits II Deluxe

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
845
Customer rating
0.00 star(s) 0 ratings
Back
Top