The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBCredits - Ultimate Points System Details »» | |||||||||||||||||||||||||
vBCredits is the ultimate points system for your vBulletin!
Click here for the vB3.6 compatible version Yes, this also works for vB3.8! Thank you to everyone who voted us MOTM Features:
Just follow the directions carefully in the zip based on whether you are clean installing or upgrading Fully integrated with vBulletin and easily integrated with third party scripts: Many hacks allow you to specify a points system by entering the table and column for the points data. Use TABLE: user COLUMN: credits when integrating vBCredits with such hacks (note: you may need to include your table prefix with some hacks)! If you are unsure about integration - ask me! Why is this version not the gold version yet? vBCredits 1.4rc1 went through a long bugtesting process at the official site, and rc2 is largely bug free in its entirety. However, *it is missing most of the admin help and post/thread deletion actions are temporarily removed while I figure out how to fix them. Footnotes: Thank you for using vBCredits, I would be happy to hear your feedback and correct anything that comes up. For more tailored support, please indicate you have installed this hack, and if you like it you can nominate this for MOTM. Use of this free hack requires that you retain the copyright line at the bottom of the forum (PM me otherwise). If you do not agree with this, please do not use vBCredits - thank you for your understanding and support! Show Your Support
|
Comments |
#892
|
|||
|
|||
Quote:
I get some type of warning and the forum skin turned white minus the banner. Quote:
|
#893
|
|||
|
|||
edited: my IT guy rebooted it.
|
#894
|
||||
|
||||
Quote:
Quote:
You put 0 for the number of referrals per referral point. it needs to be 1 or higher - it is NOT the same as the referral award (it has to do with the additive referral bonus). once you fix that the error will go away and your style will fix itself. |
#895
|
|||
|
|||
Quote:
I'll check the database when the current drawing happens the end of this week. If it works, I'll finish add to the lottery output. Cheers. |
#896
|
||||
|
||||
Quote:
|
#897
|
|||
|
|||
Hi Dark!
We need to stop giving credits to users without activity for the past two years. Where would we add some PHP code like this: Code:
// 60 * 60 * 24 * 365 * 2 = 63072000 $twoyearsago = time() - 63072000; if ($userinfo[lastactivity] < $twoyearsago ) { exit; } Code:
<if condition="$userinfo[lastactivity] < (TIMENOW - 63072000)"> User has not logged in for 30 days exit or something </if> Thanks!! |
#898
|
|||
|
|||
OK, if we get it working, will let you know. Right now, we have a bug in the lottery code, but it was from another change we made, so we should know if this is working next weekend.
If it works, just follow the instructions in post 890 above. Cheers. |
#899
|
||||
|
||||
Quote:
or you can add that check to the includes/functions_credits.php award_credits function, and then the includes/cron/credits_daily.php file to change this query PHP Code:
|
#900
|
|||
|
|||
Quote:
I don't think we will move the users to another usergroup, because if they become active again, which they often do, then we have to move them back. That that would not work for us. So, I think I'll add the check to credits_daily.php as you suggested. I might add a new vB Option in the AdminCP for this instead of hardcoding our two year rule. Thanks again. |
#901
|
|||
|
|||
Hi Dark,
I looked at that line in credits_daily.php. Perhaps my post was not clear, or I am missing something, or simply am making a mistake. I want users who have been inactive for two years to receive no credit for anything (especially credit for having their old posts viewed, since we get a lot of traffic). Does this one line in credits_daily.php "do it all", in other words, it is the one line that adds user credits for post views, posts, etc.? Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits + CASE$pcsql ELSE 0 END WHERE credits_canearn = 1") Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits + CASE$cdtsql ELSE 0 END, credits_numrefs = credits_numrefs + CASE$refsql ELSE 0 END WHERE credits_canearn = 1 AND usergroupid IN (" . implode(', ', $goodug) . ")") Thanks! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|