View Full Version : Major Additions - vBCredits - Ultimate Points System
Pages :
[
1]
2
3
4
5
6
7
8
Darkwaltz4
07-10-2007, 10:00 PM
vBCredits is the ultimate points system for your vBulletin!
Click here for the vB3.7 compatible version (https://vborg.vbsupport.ru/showthread.php?t=172399)
Thank you to everyone who voted us MOTM :)
Features:
Earning Credits
Twenty-Four Actions Eligible for Awards
Induction
Registration, Promotion, Subscription, etc
Referral
Paycheck
Definable Time Period
Activity
Definable Qualification
Birthday
Grant Reputation
Can Integrate with Rep Power
Receive Reputation
Can Multiply Reputation Points
Infraction
Can Multiply Infraction Points
New Thread
Rate Thread
Can Multiply Rating
Posting
Own Thread Posting
Post Size
Multiply Against Chars or Words
Can Strip BB Code Prior
Definable Maximum
Your Thread Viewed
Can Disable Guest Views
Your Thread Rated
Your Thread Replied
Your Profile Viewed
Poll Creation
Poll Vote
Upload Attachment
Sending PM
Calendar Event
Profile Picture
Profile Fields
Can Multiply Number of Fields
Can Set Minimum Fields
Decimal Settings for Credits and Percentages
Protocol for Negative Balances
Award Recalculation when Action Changes
Award Negation Multiplier
When Action Revoked Such As Post Deletion
Forum Overrides
Twelve Eligible Actions by Usergroup
ACP Tool to Configure Multiple at Once
Earning in Forums Can be Turned Off
Displaying Credits
Everybody, Private, Nobody
Usergroup Permission to See All Private Amounts
Displays by Global, Usergroup, Forum
Lock Usergroups from Entire System
AJAX Navbar Amount Refresh
Display / Order by Savings, Checking, or Both
Richest User Listing
Can Exclude Usergroups From Listing
Display Credits in Memberlist
Extensive Referral System
Validate by Time, Posts, and Reputation
Referee Credit Incentive
Number of Referrals per Referral Point
Maximum Referral Points
Referral Points Multiplied Against Additive Referral Bonus
ARB Increases ALL Other Action Award Amounts
Post Award System
AJAX Through Thread or Profile
Can Spend From Central Board Account
Filled from Taxes, Fees, etc
Daily, User, Thread Limits
Can Disallow Negative Awards
Disable by Usergroup, Forum
Moderate by Usergroup, Forum
Can Publicly Display Awards in Thread
Transaction Log
Displays All Donations, Awards, Payments, Winnings, etc
Can be Split into Pages
Usergroup Permission to View All Users' Logs
Specify Transaction Alerts via PM
Comments and Reasons Allow BB Code
Donations
Support for Comments and Anonymous
Time Based User Limits
Donation Fee
Fee Handling Protocol
Moderate / Cancel Donations
Drawings
Unlimited Concurrent Drawings
Raffle / Lottery Types
Static / Raising Jackpots
Per Drawing Ticket Cost
Maximum Active Tickets
Minimum / Maximum Tickets Sold for Drawings
Recurring Drawings
Usergroup Discounts
Configurable Title and Date
Exclude Usergroups
Optional Winner PHP
Allow Lottery Number Picking
Tax on Winnings
Archive Time Limit for Completed Drawings
Retry Period for Ineligible Drawings
Savings Accounts
Validate Access by Time, Posts, and Reputation
Minimum Balance for Interest
Bank Transfer Fee
Pending Deposits
Early Withdrawal Fee
Interest Intervals
Maximum Savings per Usergroup
Configurable Usergroup Interest Rates
Moderate Deposits
Loans
Moderate Loans
Maximum Total Loans and Amounts
Minimum Loan Amount
Minimum Payment by Due Date
Late Payment Fee
Automatic Recurring Payments
Accountability Rating for Loan Repayment
Good and Bad Rating Thresholds
Lock Spending Ability if Below Bad Rating
Transfer Usergroups when Threshold Passed
Reward or Punish Users with New Rates and Abilities
Administrative Utilities
Mass Usergroup Updater
Select Template Usergroup to Copy Settings
Select Multiple Target Usergroups
Configure All Usergroup Settings and Awards
Mass Credit Updater
Retroactively Award Users Based on Settings
Can be Used to Award Static Amounts to All Users
Can be Used to Reset Entire Usergroups
Pick and Choose Usergroups and Awards to Calculate
Modify User Accounts by Criteria
First Search for Users Using Familiar Options
Can Search by Savings and Checking Amounts
Can Alter Resulting Users' Amounts Directly
Can Apply Easy-to-Use Custom Defined Formula
Use Simple Math, Numbers, and Variables
Days Registered
Post Count
Reputation
Infraction Points
Checking and Savings Amounts
Overall Quality
Everything is Easily Disabled / Unlimited
Will Not Alter Environment for vB or Other Hacks
Fully Phrased
Complete Admin Help*
WOL Locations
Includes Hooks
Unique Plugin Optimization
Uses Bitfields and Datastore
Maintains Sessions
Includes TMS Support
No File Edits and much more!
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. 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!
rjmjr69
07-10-2007, 10:05 PM
Sweet work. Would be nice to integrate with VbPlaza
Darkwaltz4
07-10-2007, 10:08 PM
I'm not sure about vbplaza but ill look into it, I thought it had its own points system, which would make it difficult to have it use this one without modification of vbplaza
Vegetrunks
07-10-2007, 10:14 PM
Oh oh! Is it compatible with future Triad³?
Darkwaltz4
07-10-2007, 10:20 PM
yes, in fact i just posted in the tt thread that vbcredits will be the default setting for Triad? :) so install this on your boards now so your users will have some points to use when Triad? is released! :-p
Deepdog009
07-10-2007, 11:18 PM
Darkwaltz4 can U uplink some screenshots...?;)
Pc 1203
07-10-2007, 11:29 PM
Looks great. :D
// Pc Clicks Install
subnet_rx
07-10-2007, 11:35 PM
This looks like exactly what I've been waiting on. I'd love to know if it integrates with vBookie. Also, if it takes making this a paid addon to make sure it works with future versions of vB and gets updated, please do it. I know my community has felt sort of empty without a cash system to use.
I'd also suggest adding a lottery. It seems like a simple addition, but many members on my board love putting money into the pool everyday to see if they win.
I'm also not sure if it has this feature, but a donate feature would be great, so that richer members could give money to poorer ones.
Darkwaltz4
07-10-2007, 11:38 PM
:-p theres little use for screenshots, but ill see about adding some tomorrow if its that important...
also, ill look into the integration with vbookie. does it have an option to use an existing points hack?
edit:
i downloaded vbookie, ill put together instructions for integration tonight and post them tomorrow.
lottery/bank would be a good idea, but for the shop thing :)
donation of points is already included in this version :)
okay...apparently no vbplaza. if anyone has a copy to give me, please email me it and ill be able to take a look
Thanks very much for this great hack.
Just installed and receive this error.
Parse error: syntax error, unexpected ':' in /home/auctions/public_html/forum/includes/class_dm_user.php on line 1429
Any help will be appreciated.
Thanks
Darkwaltz4
07-10-2007, 11:59 PM
Ah, I think I forgot to highlight a row in the instructions
what you did was copy the next part for find: and then replace:
to fix, find:
//obsolete
Ah, I think I forgot to highlight a row in the instructions
what you did was copy the next part for find: and then replace:
So I should replace $this->set_registration_defaults();
with
the ADD BELOW: code?
Thanks for responding so fast!!
Darkwaltz4
07-11-2007, 12:07 AM
Sorry about the mixup, I converted my notes about file edits to the
Find:
====
stuff, and i missed highlighting that particular part.
if possible, you might want to start over with a fresh class_dm_user.php file and reapply the file edits to it. Basically, you have to undo the addition you made, and redo it correctly (which is what the previous posts instructions have you do.)
Anyway, I updated the download with the proper highlighting in the instructions file so this shouldnt happen again :-p
That's why it's always wise to backup!
I'll reinstall sir. Thanks for your outstanding support!
Worked like a charm!
I am sorry if I missed something but where do the members view or otherwise see their credits?
Thanks again-:up:
Darkwaltz4
07-11-2007, 12:20 AM
:) let me know how it goes, if you want me to fix up the file for you, check your PMs
instruction file problem, again this has been clarified in the download, so it doesnt look like the ADD BELOW block from the selection above it anymore.
:) let me know how it goes, if you want me to fix up the file for you, check your PMs
instruction file problem, again this has been clarified in the download, so it doesnt look like the ADD BELOW block from the selection above it anymore.
Thanks very much for your unbelievable support sir! :up:
Darkwaltz4
07-11-2007, 12:25 AM
Users can see their credits in their postbits and profiles if you have set the option to yes in the vBulletin Options screen under vBCredits Global Settings.
If you have altered your postbits or profiles and would like to include the credits, the variables are $vbphrase['credits'] for the word, and for the value is $post['credits'] for posts, $userinfo['credits'] for profiles, and $vbulletin->userinfo['credits'] for the currently logged in user ($bbuserinfo['credits'] for templates).
Also, in the usercp is a link to Manage Credits under subscriptions, which links to credits.php, which also displays the number of credits and is also where the donation portion of the script is.
Edit: :D no problem asw, I want this to work for you as much as you do.
Users can see their credits in their postbits and profiles if you have set the option to yes in the vBulletin Options screen under vBCredits Global Settings.
If you have altered your postbits or profiles and would like to include the credits, the variables are $vbphrase['credits'] for the word, and for the value is $post['credits'] for posts, $userinfo['credits'] for profiles, and $vbulletin->userinfo['credits'] for the currently logged in user ($bbuserinfo['credits'] for templates).
Also, in the usercp is a link to Manage Credits under subscriptions, which links to credits.php, which also displays the number of credits and is also where the donation portion of the script is.
Edit: :D no problem asw, I want this to work for you as much as you do.
Well,
Most of that went over my head but I did manage to locate the area and took a screenshot.
http://www.auctionsitewatch.com/images/credits.gif
Thanks again very much sir. :up:
Darkwaltz4
07-11-2007, 12:39 AM
The automatic template edits are for the default vbulletin style. I will be making screenshots tonight, and maybe adding in more linking :-p
If you have edited postbits, to make it display, put this in the postbit template:
$vbphrase[credits]: $post[credits]
for profiles, put this in the memberinfo template
$vbphrase[credits]: $userinfo[credits]
Comes out as, for example
Credits: 100
To display your own credits to yourself in any template, use $bbuserinfo[credits]
jasculs
07-11-2007, 12:45 AM
Do you have the ability to reset points if you need to?
OS Master
07-11-2007, 12:49 AM
Thanks for the mod. It's the best since vBux/vBplaza. I have it installed and I'll let you know if I come across anything.
Darkwaltz4
07-11-2007, 12:51 AM
you can manually edit anyone's points in the user manager in the ACP
you can also set everyone to 0 by using the tool at the bottom of the update counters screen. Just select all usergroups but dont select any award types, then make sure "Add credits to existing totals instead of starting over?" is on No. This effectively sets everyone to 0 :-p
Of course, selecting the types will reset everyone to what they should be, regardless of donations, purchases, spending, etc. (I recommend this be run once the usergroup settings are decided and you have just finished installing.)
DS MrSinister
07-11-2007, 01:23 AM
Thanks Bro.. going to install now.. Now looking forward to triple triad..
Keep up the good work!
chuchukuttie
07-11-2007, 01:37 AM
Awesome, looks great! Thank you.
AzzidReign
07-11-2007, 01:41 AM
Wow, this looks promising! Waiting to see how this develops as well as vbplaza since that is supposedly 80+% done.
Shazz
07-11-2007, 01:44 AM
This looks really good :)
jasculs
07-11-2007, 01:55 AM
Installed
I will play around with it. It would be nice to have a feature where I can calculate how many points/credits people received during a specified time frame.
Also a section where users can see who has the most points on a separate page.
subnet_rx
07-11-2007, 02:22 AM
Are you sure you have to do file edits? If I'm correct, vbPlaza, uCash, and iCash all did not require file edits.
FreshFroot
07-11-2007, 02:26 AM
great addon! Will try it out :D
Skyline_GT
07-11-2007, 02:33 AM
It would be nice to let staff to have the ability to give members extra credits if staff believe their posts are useful. Like on the top right of the postbit, it will show how many points have been given to the author of that post.
Vesica
07-11-2007, 03:10 AM
I don't know if it is just me and my bad luck with plugins, but for some reason, I installed it and it shows credits in the post bit, but I can not edit the credits or manage them anywhere.
Hornstar
07-11-2007, 03:28 AM
Nice work, will keep an eye on this one for sure.
reteep
07-11-2007, 10:30 AM
Great idea!
I'd plan to use this system for something like that:
To honor posts in a thread - in fact that's possible with the reputation system, too, but I need seperated credits. As far as I read through here that's possible with this hack? You just have to implent some kind of button with a postback like "honor this post!" and the script is managing the points?
Cheers!
Mecho
07-11-2007, 12:22 PM
That would be great if u add Screenshot or any live demo . sounds really good and useful to make users so active :D
Jibba Jabbas
07-11-2007, 01:26 PM
Sounds like a brilliant hack, awaiting instructions on vbookies :D
Vic123
07-11-2007, 01:52 PM
Is it compatible to ishop? Does it have an importer for icash money (otherwise all users would lose their hard earned icash money)?
If you will really develope a shop, please ensure that it has the feature that users can spend their credits purchasing real items (e.g. videogames, merchandise, etc) with form for address, email to admin with addressdata and so on. This feature has very often been requested for ishop, vbplaza and the other shopsystems.
bye
Vic
Capricia
07-11-2007, 01:59 PM
Hi there :wave:
I've just installed this hack and it looks great, I have both my postbit as well as my postbit legacy mod. and i can't for the love of god get the credits to show up in my postbit, any ideas? help?
DS MrSinister
07-11-2007, 03:55 PM
Hi there :wave:
I've just installed this hack and it looks great, I have both my postbit as well as my postbit legacy mod. and i can't for the love of god get the credits to show up in my postbit, any ideas? help?
Yes
https://vborg.vbsupport.ru/showpost.php?p=1288027&postcount=20
thank u very nice
excellent :up:
Install
Capricia
07-11-2007, 05:18 PM
Yes i saw that one, but i'm far from being a coder, I need to know how to fit that in the postbit, I have various custom fields in my postbit and i want the credit field to fit in between them, or under them, i've toyed around using those codes but i got all these errors that's why i'm asking.
Darkwaltz4
07-11-2007, 08:01 PM
hi everyone, im back, i have an update for all of you too :)
as well as the vbookie plugin, and screenshots
projectego
07-11-2007, 08:02 PM
* projectego clicks install :)
Darkwaltz4
07-11-2007, 08:33 PM
Okay, from everyone's feedback, I will put together a post award type of system.
I will look into some converters for icash and ishop, provided they still exist on vBulletin.org, I know a bunch of them have been abandoned and removed.... If anyone can email me a copy of these hacks I can work on conversions faster (next best thing would be phpmyadmin access to your databases...)
Also, I am still putting together what a companion shop would include, however a full-blown project purchasing system (like what vbulletin and others use for real online sales) is in the works, but will most likely not be a free hack due to the size and complexity. This is meant for using in other hacks such as vBookie (confirmed) and some other things I will release later.
Look back tomorrow for the update :) (Dont forget to update to today's v1.1 for the time being!)
Edit: Legacy or the new postbits should still show credits, as well as custom styles provided they still contain the $template_hook variable. If that is not there then the plugin cannot insert it into your postbit, and it will have to be added manually. Same goes for any custom profile edits. The instructions for manual inserts to both of them are located in this post. (https://vborg.vbsupport.ru/showpost.php?p=1288027&postcount=20)
kylek
07-11-2007, 09:59 PM
Two feature suggestions:
It would be great if it could be tied into ibproarcade for game play costs, jackpot, etc.
Also some type of a bank system where members could receive interest on their credits.
Its nice to see a new points system that is made for 3.6.7. Thanks!!
Darkwaltz4
07-11-2007, 10:13 PM
I downloaded a bunch of hacks to check for integration and ill post the results and instructions tomorrow.
AzzidReign
07-11-2007, 10:57 PM
I'm loving the progress here! Do you have an estimate as to how much your store will cost? And in the store, could people purchase points/credits with real money? If not, I'd like to request that feature.
OS Master
07-11-2007, 11:32 PM
I have just installed version 1.1, and I love it! Hope this mod develops even more. Thanks a bunch!
jasculs
07-12-2007, 01:53 AM
The updates are nice...What if you don't use the memberlist and it is inactive. Is there anyway that you can see who has the most credits then. Like a who has the most credits page or top credit statistics?
Darkwaltz4
07-12-2007, 02:17 AM
Well, I figured it went perfect with the memberlist, and seeing the top lowest credit owners is kind of pointless (since legions will have 0), which means just top 10 or so.
If you can come up with more statistics other than top 10 Ill think of something standalone.
I am going to go offline and work on the next version in about a half hour, and the next update should be in about 18 hours :-p stay tuned!
everyone submit your ideas and be on the lookout for things not working.
AzzidReign
07-12-2007, 03:44 AM
Some of these have already been mentioned, others not, but I thought I'd put it here since I suggested it in nexialys's thread when he was making a point system:
1) Allow people to buy the points/cash via paypal.
2) Allow people to cash out on their points/cash via paypal: set a rate via acp- every 1000 points = 1 dollar or whatever you want.
3) Allow people to donate/transfer points to other members on the site (which you've already done)
4) Integrate this with the Thanks System (e.g. receive a Thanks, get a Point) and maybe groan system (lose a point...can be abused, so IDK)
5) When a member has received so many points, they are "promoted" to another usergroup.
6) Have an option for the points/credits to expire. Such as, after x months of inactivity on the site, start having a deduction in points (which is set via ACP). Sort of like old gift cards that you would buy from circuit city. If you have it for 1 year, you start losing 5 bucks off the card after every month until all the money is gone.
Like I said, I know I already mentioned about buying points, but cashing in on points would be great because it would be nice to give back to my community if they work hard :P
I know I'm prolly asking a ton, so I'm sorry. I know you PM'ed me about the paid version, but I'm willing to pay more depending on how much the paid version is, if these options are put into place.
PixelFx
07-12-2007, 04:49 AM
An additional note, Dark and I have a support section setup for all hacks we're working on, which I'll be able to do an extra line of support should people be interested. He and I are still putting things together, so feedback here on on our site, would be greatly appeciated :D Example: vBCredits, Attechment Limiter, Triad3, vbTopSites, vBTracker etc :D
PixelFX Scripts (http://www.pixelfxstudios.ca/forum/forumdisplay.php?f=36)
I've been very busy scuba diving the last 3 days so haven't been able to get in till now... ;)
Some of the ideas john and I have been kicking around, would be things like making it possible to do systems or models like, say rappelz online etc, through your site, if you ran gaming servers and other. The skys the limits for what john and I can make between us other than time. but thats normal :D
aceofspades
07-12-2007, 10:19 AM
Wub Wub Wub you rock dude. Installed.
Edit: One question though, id like to change the maths involved in displaying the end point result in the member list, postbit etc. Where should i be looking if i wanted to do that, the product?
subnet_rx
07-12-2007, 02:54 PM
Some of these have already been mentioned, others not, but I thought I'd put it here since I suggested it in nexialys's thread when he was making a point system:
1) Allow people to buy the points/cash via paypal.
2) Allow people to cash out on their points/cash via paypal: set a rate via acp- every 1000 points = 1 dollar or whatever you want.
3) Allow people to donate/transfer points to other members on the site (which you've already done)
4) Integrate this with the Thanks System (e.g. receive a Thanks, get a Point) and maybe groan system (lose a point...can be abused, so IDK)
5) When a member has received so many points, they are "promoted" to another usergroup.
6) Have an option for the points/credits to expire. Such as, after x months of inactivity on the site, start having a deduction in points (which is set via ACP). Sort of like old gift cards that you would buy from circuit city. If you have it for 1 year, you start losing 5 bucks off the card after every month until all the money is gone.
Like I said, I know I already mentioned about buying points, but cashing in on points would be great because it would be nice to give back to my community if they work hard :P
I know I'm prolly asking a ton, so I'm sorry. I know you PM'ed me about the paid version, but I'm willing to pay more depending on how much the paid version is, if these options are put into place.
Hmm, I don't think you should be able to cash out points and convert them to money. That could create spam problems for a board, not to mention that if you combine this with the vBookie hack, it could be illegal. As far as the paypal for points, maybe that could be done through one of the many paypal hacks available here.
I'd like to thank Darkwaltz for getting the vbookie plugin done. I like how this is progressing.
Splinter77
07-12-2007, 03:27 PM
please help-me after Import il Product
I have read to the perfection the file Modifications.txt
We apologise for any inconvenience.
Database error
Database error in vBulletin 3.6.7:
Invalid SQL:
ALTER TABLE `user` ADD `credits` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0';
MySQL Error : Duplicate column name 'credits'
Error Number : 1060
Date : Thursday, July 12th 2007 @ 06:15:03 PM
Script : http://www.xbox-inf.org/forum/admincp/plugin.php?do=productimport
Referrer : http://www.xbox-inf.org/forum/admincp/plugin.php?do=productadd
IP Address : x.x.x.x.
Username : ...........
Classname : vb_database
help-me :(
Darkwaltz4
07-12-2007, 04:20 PM
There has been an error confirmed with the fresh install, i have a fix, and I'll update it, but it is just a holdover until i get the new version ready to my liking to call it updated.
IF YOU HAVE EXPERIENCED THE ABOVE ERROR, DOWNLOAD THE ATTACHMENT AGAIN AND IMPORT THE PRODUCT AGAIN (you dont have to do anything else if you followed those directions earlier)
This should have only happened to users who fresh installed 1.1 (not upgraded from 1.0)
Splinter77
07-12-2007, 04:33 PM
ok aspect fix yours.
But between how much time I must wait for?
Darkwaltz4
07-12-2007, 04:47 PM
I updated the 1.1 code with the fix, you can download it now. what I meant was I won't put up 1.2 until I'm done with it :-p
Some of these have already been mentioned, others not, but I thought I'd put it here since I suggested it in nexialys's thread when he was making a point system:
1) Allow people to buy the points/cash via paypal.
2) Allow people to cash out on their points/cash via paypal: set a rate via acp- every 1000 points = 1 dollar or whatever you want.
3) Allow people to donate/transfer points to other members on the site (which you've already done)
4) Integrate this with the Thanks System (e.g. receive a Thanks, get a Point) and maybe groan system (lose a point...can be abused, so IDK)
5) When a member has received so many points, they are "promoted" to another usergroup.
6) Have an option for the points/credits to expire. Such as, after x months of inactivity on the site, start having a deduction in points (which is set via ACP). Sort of like old gift cards that you would buy from circuit city. If you have it for 1 year, you start losing 5 bucks off the card after every month until all the money is gone.
Discussion of paid addons out in the open at vborg is against the rules so I cant really say anything here, but I can in PM (or email) :)
cashing out sounds really exploitable, although it could work if you were stringent about where and what points you granted (so an actvity credit would be difficult to spam)
I still have to look into what kind of addons I could make with hacks that dont already allow integration (let alone even use a) points system. I was looking into the arcades, but I need some ideas of what roles the points should play. same thing with the thank you hack.
Your last two - will consider.
Wub Wub Wub you rock dude. Installed.
Edit: One question though, id like to change the maths involved in displaying the end point result in the member list, postbit etc. Where should i be looking if i wanted to do that, the product?
New version 1.2 there are some new features with that which I will announce with the release later., and includes a plugin which you can edit to change any display things.
Gottcha
07-12-2007, 05:17 PM
Need Help ... installed ...did the file edits and the template edits and imported the product ... new install .... still not seeing the credits on my site
www.coralforum.com
any help is appreciated.
aceofspades
07-12-2007, 05:36 PM
Crap. Tried to post a message in quick reply and got an error. Tried to post a message in full editor and got this DB error:
Database error in vBulletin 3.6.6:
Invalid SQL:
UPDATE user SET
credits = credits + ,
posts = posts + 1,
usertitle = 'Administrator',
lastpost = 1184265257,
lastpostid = 9
WHERE userid = 1;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
posts = posts + 1,
usertitle = 'Administrator',
lastpost = 1184265257,
' at line 2
Error Number : 1064
Date : Thursday, July 12th 2007 @ 07:34:17 PM
Script : xxx/newreply.php?do=postreply&t=2
Referrer : xxx/newreply.php?do=newreply&noquote=1&p=7
IP Address : xxx
Username : xxx
Classname : vb_database
On top of that i tried to rebuild the points so that the users had points based on what they did before i installed the product, but even after updating the counters they still all displayed 0.
Splinter77
07-12-2007, 05:37 PM
thakyou man ;)
Darkwaltz4
07-12-2007, 06:34 PM
Gottcha, did you get an error when you imported the product?
There was an error with fresh installs which was corrected in the download (you need to download the new version and upload the product again).
aceofspades, still trying to see whats wrong with yours, did you perhaps forget to import the product file?
Splinter, how is your fix going? Edit: okay good I see it is working :) But it is not showing up in your postbit, so you will have to add it manually if you would like. see this post. (https://vborg.vbsupport.ru/showpost.php?p=1288027&postcount=20)
aceofspades
07-12-2007, 06:46 PM
Heh no i def got the product on there.
vBCredits 1.1 An integrated points system by Darkwaltz4 [blackwaltz4@msn.com] that enables users to gain credits six different ways and can be utilized by third party applications. Contact for information on paypal and subscription addons, or branding removal.
The messages are getting posted despite the database error, but the points are a stuck at 0. Is there anything i can try? I can pm you a link to my board if it will help.
Gottcha
07-12-2007, 06:55 PM
Gottcha, did you get an error when you imported the product?
There was an error with fresh installs which was corrected in the download (you need to download the new version and upload the product again).
yes ... i didn get an original sql error and the read that the new download fixed it ... i redownloaded and installed with no success
PixelFx
07-12-2007, 07:25 PM
I'm testing it on our official site in a moment.. see if I can reproduce any issues your having,
Darkwaltz4
07-12-2007, 07:26 PM
okay, capricia's problem has been resolved :)
Gottcha
check your vBCredits global settings, make sure 'Display credits publicly' is set to yes.
aceofspades
Uninstall the credits product (not the file edits) and then Import the product file from the top post.
alessai
07-12-2007, 07:39 PM
same error with aceofspades for 1.0 ill try to install the other one 1.1 >>> itried it in the localhost
put please please i need the top 10 feature (Important)
Darkwaltz4
07-12-2007, 07:41 PM
alessai
did you get the error with a clean install of 1.1 or when overwriting 1.0?
also for now you can display credits in the memberlist, and order by them, to display Top as much as you want :)
alessai
07-12-2007, 07:44 PM
:) didnt install 1.1 yet... i got the error when itried to install 1.0... ill try 1.1 now and i hope it works fine
aceofspades
07-12-2007, 09:14 PM
I was using the updated 1.1 product file, which i tried uninstalling, redownloading and reinstalling anyway. This is the database error it gives:
Database error in vBulletin 3.6.6:
Invalid SQL:
UPDATE user SET
credits = credits + ,
posts = posts + 1,
usertitle = 'Administrator',
lastpost = 1184278263,
lastpostid = 15
WHERE userid = 1;
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '
posts = posts + 1,
usertitle = 'Administrator',
lastpost = 1184278263,
' at line 2
Error Number : 1064
Date : Thursday, July 12th 2007 @ 11:11:03 PM
Script : xxxxxxxxx/newreply.php?do=postreply&t=2
Referrer : xxxxxxx/newreply.php?do=newreply&noquote=1&p=14
IP Address : xxxxxx
Username : xxxx
Classname : vb_database
I just tried doing the file edits again but i get the same result :(. Does the database error not give any clues about the cause of the problem?
Darkwaltz4
07-12-2007, 09:19 PM
It indicates that there was an error that was displayed when you installed/upgraded, and the value in the post/thread award amount is null. (not there)
I can look at your forum for what the problem was, can you talk on any kind of messenger, and grant me temporary admin access?
jags2ooo
07-12-2007, 10:11 PM
hm mmi don't understand, Okay you get credits, What do you do with those credits?
Darkwaltz4
07-12-2007, 10:19 PM
Currently there is nothing I have released which used my credits system, but I will in the near future.
Until then, this hack is compatible with many other third party scripts, and I am posting specific instructions for them as I find them :)
================================================== ===
As for aceofspades and alessai
to fix the problem, you MUST go through each and every usergroup and at least hit submit on the settings to build the usergroup cache. I will try to add something to automatically do this in the new version so it doesnt happen again, until then, you have to do this step to fix the error.
wilburshere
07-12-2007, 10:36 PM
hi im getting this error when posting a new thread any ideas on fixing this ??
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/xxxxx/public_html/test/includes/class_dm_user.php on line 110
but when i check the forum the post/thread is now there
alessai
07-12-2007, 11:01 PM
problem solved :) thanx
also for now you can display credits in the memberlist, and order by them, to display Top as much as you want
how can i display it in the memberlist (it doesnt show up currently)
Darkwaltz4
07-12-2007, 11:05 PM
i have identified the function to automatically build the usergroup cache on install, and it will be included in 1.2 for convenience :)
wilburshere, this sounds like an improperly performed class_dm_threadpost.php file. If possible, you may want to start with a fresh version and apply the file edits again. If this doesnt work, please PM me and we will work on it together.
to display in the memberlist, go to the global options and select "Display in memberlist"
I also notice a lot of people are missing key $template_hook variables inside their templates. Without them I cant add things via plugin, and they have to be done manually. The default vbulletin style includes them, but I guess custom style makers leave them out.
wilburshere
07-12-2007, 11:29 PM
ok i will give it a whirl
its only on my test forum atm
incurable
07-13-2007, 05:22 AM
I don't know if it is just me and my bad luck with plugins, but for some reason, I installed it and it shows credits in the post bit, but I can not edit the credits or manage them anywhere.
i think i have the same problem like you... :(
Darkwaltz4
07-13-2007, 06:32 AM
You can edit the credits via the admincp, and you can donate them, but USING them requires third party hacks for the time being.
i am almost done with v1.2 :) its a huge update and youll forgive me to the time its taking.
sunrise2006
07-13-2007, 12:08 PM
Thanks, it's great mod, I wistful from a long time for such this.
sunrise2006
07-13-2007, 03:16 PM
I think if use the below code in postbit & MEMBERINFO template instead of that is exists now for this product, it's will be better.
postbit & posbit_legacy:
<if condition="$post['credits']"><div>$vbphrase[credits]: $post[credits] (<a href="credits.php?u=$post[userid]">$vbphrase[donate]</a>)</div></if>
MEMBERINFO:
<if condition="$post['credits']"><div class="fieldset"><div style="padding:$stylevar[formspacer]px">$vbphrase[credits]</a>: <strong>$userinfo[credits]</strong> (<a href="credits.php?u=$userinfo[userid]">$vbphrase[donate]</a>)</div></div></if>
You cant put the follow codes on apposite place that you think.
Note: If you want to use these, in first you must to inactive the Display Credits in Postbit and Display Credits in Profile plug-ins from Plug-In Manager.
alessai
07-13-2007, 04:44 PM
every thing works with me fine but it seems that it doesnt display anything in the memberlist (done every thing template change, files changes, and activate it from the global option)
Darkwaltz4
07-13-2007, 04:56 PM
if they are not showing up in your templates it means the style you are using neglected to use the $template_hooks. I am thinking I should just abolish using them via plugins since nobody seems to retain them, but seems like such a waste....
anyway, you may use the template edits by sunrise2006, but modify them a little bit so they obey your settings, put them where you want them to appear in the following:
postbit / postbit_legacy
<if condition="$vbulletin->options['credits_public']"><div>$vbphrase[credits]: $post[credits] (<a href="credits.php?u=$post[userid]">$vbphrase[donate]</a>)</div></if>
MEMBERINFO
<if condition="$vbulletin->options['credits_public']"><div class="fieldset"><div style="padding:$stylevar[formspacer]px">$vbphrase[credits]</a>: <strong>$userinfo[credits]</strong> (<a href="credits.php?u=$userinfo[userid]">$vbphrase[donate]</a>)</div></div></if>
baghdad4ever
07-13-2007, 05:17 PM
what is the benefit of credit points??
in other way where the members use this earned points ?????
Darkwaltz4
07-13-2007, 05:21 PM
I've said this before throughout the thread and at the top post:
This hack does not come with its own use for the points, but does integrate with hacks that use points. I am also planning a companion shop type system for this hack, but need more ideas. Also, I am looking into building addons for third party hacks to infuse the use of points, but again I am still taking ideas.
As of this post there is confirmed integration with vBookie and the ICash line, and I am going to include an ICash converter in the next release. There may be more hacks, so please show me them and I can find out if and how to integrate with them if it is not obvious.
Fearlessninja
07-13-2007, 06:26 PM
A donation log will be nice, so that you know who you received credits from?
Darkwaltz4
07-13-2007, 06:27 PM
SHHHHHHHHHHHHHHHHHHHHHHHHHHHH
thats a surprise >.> it might already be done
EDIT: still adding one more surprise to 1.2 besides this one then ill release it....
AzzidReign
07-13-2007, 07:33 PM
if they are not showing up in your templates it means the style you are using neglected to use the $template_hooks. I am thinking I should just abolish using them via plugins since nobody seems to retain them, but seems like such a waste....
I keep my template hooks :) Just thought you should know that someone actually keeps em :P
jahshaka
07-13-2007, 11:49 PM
hi,
awesome mod and well needed!
any big differences in the install process for 1.2 ? I was going to install this today but i can wait a few more days... then again if it may take you a while longer and the upgrade is simple i can star with whats here now.
PixelFx
07-14-2007, 12:19 AM
I have our offical support forums setup for this script here, as a side note... >>>> (http://www.pixelfxstudios.ca/forum/forumdisplay.php?f=41)
we'll be updating links in v1.2, but doing our best to support this script on vbulletin.org and our main site. Also I hope to get some shots of our other vbcredit systems, and scripts as well like triad3 for those intersted, in the near future :D
Darkwaltz4
07-14-2007, 02:00 AM
actually as it is turning out the upgrade process should be pretty painless, only like 1 or 2 extra file edits if you are already using 1.1
bollie
07-14-2007, 09:00 AM
I can see somewhere a list, how many points members have ?
Vegetrunks
07-14-2007, 12:38 PM
Donation done!
Good work Darkwalz :)
Darkwaltz4
07-14-2007, 02:34 PM
you can see how many points members have on the memberlist or on the postbits and profiles if you have set the public option to yes and your style has $template_hook variables. If not, you have to add in the lines which is explained a couple times throughout the thread.
njoker555
07-14-2007, 03:00 PM
any way to give points per character? that would be a lot more convenient
thanks for the mod, the first cashmod that actually worked without giving me any other problems :D << clicks install
edit: having some issues - on my template, Silver & Red - the point count isnt showing in their posts - but in the default one it shows but its kinda messed up, how can i fix that? - the link is www.gamers-forum.com if u want to see it
bollie
07-14-2007, 03:13 PM
you can see how many points members have on the memberlist or on the postbits and profiles if you have set the public option to yes and your style has $template_hook variables. If not, you have to add in the lines which is explained a couple times throughout the thread.
i use https://vborg.vbsupport.ru/showthread.php?t=148045
njoker555
07-14-2007, 03:46 PM
i thought i was able to alter the amount of GFP for the person via admincp and viewing their profile there, but im not seeing an option for that :/
Darkwaltz4
07-14-2007, 04:07 PM
The 1.2 instructions will contain manual instructions for adding in missing template stuff, until then use that post.
you can edit the amount of credits in the user editor in the ACP (provided you made the admincp/user.php edit as per the instructions)
I am considering a per-character thing for each post, except it is extremely exploitable, even in principle. feel free to discuss.
subnet_rx
07-14-2007, 08:10 PM
The whole thing is exploitable really unless governed by someone. You can spam posts, new threads, and sign up bogus referrals to get money. I usually give 1 cent per post character, and already say that it's a violation to post full articles, texts, or other copyrighted content.
Also, when you delete your post or thread, does this take the money back?
Darkwaltz4
07-14-2007, 08:46 PM
1.2 includes settable delete options (so you could even punish usergroups if something they posted was deleted :-p)
these options are somewhat difficult because there are multiple areas where delete occurs. for instance, do i fire it when a post is soft or hard deleted? what if a soft delete is undeleted? do i give it back? plus there are areas where post management is done en masse, such as with inline moderation, which skips the datamanagers entirely... so, the bottom line, just means more file modifications for you all to perform when installing :D
I say per-character is even harder because i have to deal with people editing their posts and bbcode tags and such. so i think if i implement it it will only be for when you first post, but then someone can copy/paste a huge block of text, and then edit it to something normal when they are done >.> like i said, its particularly easy to exploit per-character.
sorry for the wait on 1.2, there are a whole host of major additions to it which i think will please everyone.
Fearlessninja
07-14-2007, 09:40 PM
SHHHHHHHHHHHHHHHHHHHHHHHHHHHH
thats a surprise >.> it might already be done
EDIT: still adding one more surprise to 1.2 besides this one then ill release it....
Haha, my bad, sorry, good work!
EvilKitty
07-14-2007, 09:58 PM
I'll give this a look once 1.2 is released.
Darkwaltz4
07-14-2007, 10:04 PM
perhaps you guys want to hit install so you get the update email i send out? :-p
njoker555
07-14-2007, 11:02 PM
The 1.2 instructions will contain manual instructions for adding in missing template stuff, until then use that post.
you can edit the amount of credits in the user editor in the ACP (provided you made the admincp/user.php edit as per the instructions)
I am considering a per-character thing for each post, except it is extremely exploitable, even in principle. feel free to discuss.
yea i did edit the user.php file but i dont see anywhere regarding that :/ im about to go check again to see that its there for sure and see what happens.
looking forward to 1.2 instructions and the characters per post inst extremely needed for me, if it is "extremely" exploitable
Darkwaltz4
07-14-2007, 11:32 PM
in the ACP user editor contains the credits for each use, you can edit them there.
ill add in per character then, hope to have it out by tonight
DeMiNe0
07-14-2007, 11:37 PM
Installed even though i haven't installed this yet. I can't wait for the update. Awsome job. Im not sure if there is a way to do this yet, but can you make, it so that you can assign a usergroup to give and take points?
Darkwaltz4
07-14-2007, 11:38 PM
give and take via what manner? in 1.1 whoever can edit users via the control panel can edit, but in 1.2 there is a setting for this to allow it via the posts.
DeMiNe0
07-14-2007, 11:41 PM
I would really like it via posts, as i would like my moderators to be able to give and take points as well, and not just admins.
Edit: any idea when you'll be releasing 1.2? Should i install it now, then upgrade?
njoker555
07-15-2007, 12:10 AM
i got it now im stupid, i uploaded the changed user.php in the main folder, so the old one was stil in the admin cp lol, i see it now, thanks :D
still waiting for the 1.2 to help me fix in my other tempaltes :) thanks!
subnet_rx
07-15-2007, 12:46 AM
1.2 includes settable delete options (so you could even punish usergroups if something they posted was deleted :-p)
these options are somewhat difficult because there are multiple areas where delete occurs. for instance, do i fire it when a post is soft or hard deleted? what if a soft delete is undeleted? do i give it back? plus there are areas where post management is done en masse, such as with inline moderation, which skips the datamanagers entirely... so, the bottom line, just means more file modifications for you all to perform when installing :D
I say per-character is even harder because i have to deal with people editing their posts and bbcode tags and such. so i think if i implement it it will only be for when you first post, but then someone can copy/paste a huge block of text, and then edit it to something normal when they are done >.> like i said, its particularly easy to exploit per-character.
sorry for the wait on 1.2, there are a whole host of major additions to it which i think will please everyone.
Catch it on the soft deletes for sure. If moderation is being performed on enough posts that it would significantly affect a user's credit balance, then they may need some infraction points. As far as per character, that's not that important to me personally.
Darkwaltz4
07-15-2007, 01:45 AM
ETA for 1.2 is tonight :) not sure about exact number of hours though
EDIT: innocent whistling
fizzleboink
07-15-2007, 03:05 AM
Looking forward to that 1.2 release. :)
I will install this hack tomorrow if everything looks ok. I will be integrating iShop as well. If I run into any problems I'll let you guys know.
PixelFx
07-15-2007, 06:35 AM
with everything he's adding should have users drooling, not to mention addon scripts we're working on :D
Darkwaltz4
07-15-2007, 12:24 PM
New version 1.2!
BUGFIXES
- Manage Credits Link on Forumhome
- Fresh Install Bug from 1.1
- Automatic Usercache Rebuild
UPGRADES
- Manage Credits Link Now Displays Your Credits
- Negatives and Fractions Allowed for Everything (Can't donate negative though)
- Base Amount for Mass Updater
- Deleting / Unapproving Posts / Threads can remove Credits!
NEW CREDIT GAINING METHODS
- Credits Per Character In Posts
-- Amount Updates Upon Post Edit!
-- Also Available for use with Mass Updater
-- Includes option to strip BB Code
TRANSACTION LOG
- View what you Donate and Receive
- Optional PM Alert
- Usergroup permission to Post anonymously (and view anonymous postings!)
- Usergroup permission to View Other's Transaction Logs
- Also included to retroactively apply Transactions from the log using the Mass Updater
- Comments with all Transactions that support BB Code
- Paginated
AWARD CREDITS TO POSTS WITH AJAX
- Similar to the Reputation System
- Allows Ability to Add or Detract from User Via AJAX on the Postbit
- Also uses Transaction Log, PM Alert, Anonymous Posting, Comments
CONVERT ICASH TO VBCREDITS
- Included in the complementary folder
Hope everyone likes this :D
John "Darkwaltz4" Jakubowski
Gottcha
07-15-2007, 01:03 PM
working beautifully ... great job and cant wait for future addons
OS Master
07-15-2007, 02:33 PM
Notified of 1.2. Installing and I will notify you of any bugs...
DeMiNe0
07-15-2007, 02:33 PM
Works REALLY well!!
Is there a way to have a PM sent when Points are awarded or taken from a user as well from the postbit?
And am i able to put the postbit ajax Take/Give points link in the users profile as well?
fizzleboink
07-15-2007, 03:56 PM
Installed on 3.6.7 and it works great. Integrates with IShop no problem too.
Darkwaltz4
07-15-2007, 04:51 PM
Actually it is not meant for use on the profiles, but I might look into it for future versions.
Glad everyone is happy with it :)
DeMiNe0
07-15-2007, 05:15 PM
Hmmm. i have that set up, and it doesn't seem to be sending PM's.
Also, do you have AIM/MSN? I'm working on an addon to credits.php to make a way to give/take points from the member profile, and would like some help on it. I'm pretty beginner when it comes to php. I've got somthing going, but im having a problem getting ID's i think.
Edit: Ok, my mistake :). The PM does go through, but you are not notified of the PM and does not display that you have new PM's. Could be an odd caching problem on my end though. I'm gona check out your PM code. I'm assuming your using the DM for PM sending?
DeMiNe0
07-15-2007, 05:23 PM
Well i'm more or less trying to figure out a way to give points to a user without actually having to reward a post. I have users who don't post on the site, but do alot of other really helpful things for us, that i would like to give points to. Then they can buy items that represent actual items in a game through the shop.
DeMiNe0
07-15-2007, 05:33 PM
BTW, You could try using this code in place of your current PM code. I replaced it in my credits.php and it seems to notify me now.
$dsender = $db->query_first("SELECT userid, username FROM " . TABLE_PREFIX . "user WHERE userid = " . $vbulletin->options['credits_pmid']);
$pmdm =& datamanager_init('PM', $vbulletin, ERRTYPE_ARRAY);
$pmdm->set('fromuserid', $dsender['userid']);
$pmdm->set('fromusername', $dsender['username']);
$pmdm->set_info('receipt', false);
$pmdm->set_info('savecopy', false);
$pmdm->overridequota = true; // Force pm send even if recipient's mailbox is full
$pmdm->set('title', $vbphrase['credits_pm_post_subject']);
$pmdm->set('message', construct_phrase($vbphrase['credits_pm_post_body'], $userinfo['username'], vb_number_format(( $vbulletin->GPC['dir'] == 'pos' ? 1 : -1 ) * $vbulletin->GPC['amount'], $vbulletin->options['credits_decimals']), $vbphrase['credits'], ( $vbulletin->GPC['anonymous'] ? $vbphrase['anonymous'] : $vbulletin->userinfo['username'] ), fetch_censored_text($vbulletin->GPC['reason']), $vbphrase['credits_log']));
$pmdm->set('dateline', TIMENOW);
$pmdm->set('allowsmilie', true);
$pmdm->set_recipients($userinfo['username'], $permissions);
$pmdm->save();
Darkwaltz4
07-15-2007, 06:01 PM
Well what you basically did was stick in quotaoverride, which indicates the reason you didnt get any PMs -- the userid you specified to send the alert PMs must have run out of room. I wanted to kind of obey that but I guess it wouldnt hurt to change it to that.
Also, in the usercp you can edit user credits directly in the user editor.
You might have some trouble with adding it to the profile because the control for it is tied to the posts. Like I said I will look into it for the next release.
DeMiNe0
07-15-2007, 06:04 PM
Problem is, i have moderators who can't access that, that i would like to be able to be able to have them give points to users who don't post often.
Darkwaltz4
07-15-2007, 06:06 PM
For the time being you could grant your moderators large amounts of credits which they could then go and donate to the other users?
cheat-master30
07-15-2007, 06:17 PM
For some reason, the donate part does not work. The gaining of credits via posts, activity, etc works fine though. Any fix to that?
cheat-master30
07-15-2007, 06:18 PM
Fixed when I uploaded the new version of the donating page...
Darkwaltz4
07-15-2007, 06:20 PM
:D glad to help!
DeMiNe0
07-15-2007, 06:20 PM
Then the problem is, they can't take credits away :P Thats a really important part of this addon im trying to develop.
Let me give you a better image of what im doing. I run a 300 person World of Warcraft Guild. Instead of using a convential DKP(A type of points system many games use). I'm trying to make my own Point system.
Users are rewarded for signing up on the website, referring other members, posting ect. But points are also given and taken based on what these players do in game. For example, if they do something helpful, a moderator will give them points. If the member does somthing bad (like harrass a member, or miss an event) they take points away. I'm the only person who has admincp access, and too many point edits need to be made when I am not on.
I'm basicly trying to make credits.php?p=POSTID work like credits.php?u=USERID. I made a new if statement to add the ?u in. Doesn't need any ajax or anything. I've allready started working on it, but i've ran into a few problems, with points not being updated, and ID variables not being passed.
sunrise2006
07-15-2007, 07:21 PM
Wow, Thanks for this update, it's very good, peradventure when I browse this mod to offer some possibilities such as "earn per character" and "PM alert when received point from anyone" that I see the new version is released and I very happed.
I will go to translate it to Persian and update on my board.
Milad
07-15-2007, 07:22 PM
If I install it, will it calculate the credits based on previous posts threads etc?
Darkwaltz4
07-15-2007, 07:23 PM
Yes, use the tool at the bottom of the update counters screen.
cheat-master30
07-15-2007, 07:24 PM
If I install it, will it calculate the credits based on previous posts threads etc?
You can update it to do that in the Admin CP I think. Otherwise my credits total on my forum without enhancement would not currently be 186,971 when I just implemented it today.
moonray
07-16-2007, 12:01 AM
Hi,
Everything is working great and I love this hack. I have even disabled the built in reputation system in favor of this.
However, after upgrading to v1.2, I get this error when I delete a thread:
Database error in vBulletin 3.6.7:
Invalid SQL:
UPDATE vb_user SET
credits = CASE WHEN userid IN (0,1) THEN credits + -2.285
, posts = CASE WHEN userid IN (0,1) AND posts > 1 THEN posts - 1
ELSE 0 END
WHERE userid IN (0,1);
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' posts = CASE WHEN userid IN (0,1) AND posts > 1 THEN posts - 1
ELSE 0 END
' at line 3
Error Number : 1064
I have only changed the credits awarded for each action (+2 for thread, +0.03 per character of post and - for thread deletion). Even with the default credits value, when a thread is deleted, the author gets to keep the 'credits per character', or am I mistaken?
That may be reason for this, but I appreciate any help with this.
Thank you!
Darkwaltz4
07-16-2007, 12:03 AM
no, credits per character is also taken into account, but i will check whats up with that error :)
yingzhou
07-16-2007, 12:09 AM
I have this error when I delete a thread:
Database error in vBulletin 3.6.7:
Invalid SQL:
UPDATE user SET
credits = CASE WHEN userid IN (0,1) THEN credits + -6.8
WHEN userid IN (0,3) THEN credits + -16.5
, posts = CASE WHEN userid IN (0,1,3) AND posts > 1 THEN posts - 1
ELSE 0 END
WHERE userid IN (0,1,3);
MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' posts = CASE WHEN userid IN (0,1,3) AND posts > 1 THEN posts - 1
ELSE 0 END
' at line 4
Error Number : 1064
Date : Sunday, July 15th 2007 @ 06:07:37 PM
Script : http://pltho.net/forum/inlinemod.php?do=dodeletethreads&threadids=46,47,43,45,44
Referrer : http://pltho.net/forum/inlinemod.php?forumid=31
IP Address : 61.163.92.190
Username : yingzhou
Classname : vb_database
Darkwaltz4
07-16-2007, 12:27 AM
Everyone using 1.2, please make this set of edits:
in functions_databuild.php, find all of the following (appears three times):
//obsolete
This will fix the deletion queries, sorry about that.
Updated the first post and the download.
Also, yes when posts/threads get deleted it detracts the character credit as well as applying the Deletion Post/Thread credit (typically negative). Also, when undeleting the perchar credit is returned and the posting credit is applied again.
aycan555
07-16-2007, 02:00 AM
Thank you verry verry much for this mod i was realy need this mod :)
Please could you integrate this with the vissionscripts hidemod? when users recieve thanks gets credits? also can you do it like this:
hiden content here
to view the content users need to pay 20 credit? to pay the credit there will be link like thank you buttons says: Sen 20 credit to user...
Can we do like this?
Thank you verrry much... I was really looking this mod for months...
Darkwaltz4
07-16-2007, 02:05 AM
glad you like it :)
good news:
version 1.3 is under way, and with it - plugin hooks :)
whats that mean? addons for this and other hacks, such as infusing credits with scripts that dont normally use credits, such as the hidemod above.
if you are just getting here and you have NOT patched your 1.2, please do the edit on this post (https://vborg.vbsupport.ru/showpost.php?p=1292325&postcount=137). Please note that if you just downloaded the hack within 2 hours ago, you dont need to patch anything, its already been fixed.
EDIT:
I have created a new converter for vbbux to vbcredits! It is located in the complementary/converters/ folder. Upload vbbuxplaza_to_vbcredits.php to your admincp and run it. It requires the newest versions of both hacks and allows the option to use both the onhand and bank credits.
I am looking at converters for other points systems as well as integratable hacks (I am looking at the arcade systems right now) which should be out before 1.3
yingzhou
07-16-2007, 10:56 AM
Thank you for the fix. My forum is on the way. Thanks.
I think we should have some option in the ACP like: Admin donate to someone, Reset all the credit, the Bank ...
moonray
07-16-2007, 12:20 PM
no, credits per character is also taken into account, but i will check whats up with that error :)
Thank you Darkwaltz, I appreciate your support on this. I have made the modification suggested and all looks fine now :)
jasculs
07-16-2007, 03:21 PM
The points per character has already been an awesome idea. I am running a contest that is based on points and they can only get points by posting a thread or by how many characters they post. It actually helps them to make better quality posts because usually the more someone writes the more thought they put into it.
Thanks
I nominated this for mod of the month
alessai
07-16-2007, 11:04 PM
hiden content here
to view the content users need to pay 20 credit? to pay the credit there will be link like thank you buttons says: Sen 20 credit to user...
great idea
AzzidReign
07-17-2007, 12:12 AM
Maybe a way to integrate the points in with this as well:
https://vborg.vbsupport.ru/showthread.php?t=150751
Everytime someone "diggs" your topic, you get so many points.
Same goes for the Thanks hack. Receiving thanks = getting points and maybe even giving x number of thanks you get so many points...yes, it can be abused I guess, but I'm trying to encourage my users to start thanking...so idk.
It would be great if it could be tied into ibproarcade for game play costs, jackpot, etc.I am looking forward to it for this, and will keep an eye out for when it's done. Looks great!
AzzidReign
07-17-2007, 02:01 AM
I hate to say this but, I couldn't get this to show up in the postbit. All other spots show up. Yes, I have the proper hook in the postbit...the posbit is pretty much the default postbit with very little code change to it.
Even the default skin doesn't have the credits showing up in the postbit. Here's a link to a thread on the default skin:
Here (http://www.layeredgfx.com/forums/layered-gfx-announcements/1983-cash-point-credit-system-installed.html?styleid=1#post15036)
Darkwaltz4
07-17-2007, 02:09 AM
My guess is you have some overlapping plugins going on.
If this is the case, I can help configure them so everyone plays nice :-p
DS MrSinister
07-17-2007, 02:11 AM
I hate to say this but, I couldn't get this to show up in the postbit. All other spots show up. Yes, I have the proper hook in the postbit...the posbit is pretty much the default postbit with very little code change to it.
Even the default skin doesn't have the credits showing up in the postbit. Here's a link to a thread on the default skin:
Here (http://www.layeredgfx.com/forums/layered-gfx-announcements/1983-cash-point-credit-system-installed.html?styleid=1#post15036)
Its the thank you hack Template Hook Fix for vb 3.6.7.. if you disable it will show up.. Something i just figure out my self.. Not sure how to fix it so i can have both running..
Darkwaltz4
07-17-2007, 02:14 AM
the postbit plugin uses the template hook variable -- the only one which doesnt reset when it moves to the next postbit, so it stacks............
let me try something, be right back with a fix for both of you.
AzzidReign
07-17-2007, 02:17 AM
Thanks Darkwalktz4!
Atwal
07-17-2007, 02:50 AM
this hack is great u should try to get a feature added to it
the thank you hack would be fantastic with this like u get a certain amount of credits for each thank you button instead of the reputation thing that it currently has
AzzidReign
07-17-2007, 02:54 AM
Couldn't get it to work Dark :( You can view that link again to see it doesn't work on default.
Darkwaltz4
07-17-2007, 04:55 AM
Okay, I downloaded and installed the Thank You Hack. The problem is the patch, which unfortunately will be there until 3.6.8, so, to fix (this is confirmed to work :))
//obsolete
v1.3 will have this update in it. also, this will work on boards without the thankyou hack, and without the thankyou hack's patch either (so it can only be a positive fix) will also work when vb upgrades, but will probably get all the extra ceaning code out
rainyleaves
07-17-2007, 06:15 AM
Awesome mod!!!
Thanks :)
carlt
07-17-2007, 09:02 AM
Dark,
Thanks for the mod. I know it will be a big help on my forum.
I had a few minor issues after the install and was hoping for some help:)
Just to give you an idea on a 1-10 scale my coding is at about 2 and one of the points might be because I am grading myself:D
The questions I have:
Where do I go to change the credit settings?
How can I get the credits to show in the postbit(I noticed the post but not sure how/where to insert just want it below the post count)?
Not able to sort by credits in memberlist, how can I fix that?
Again thanks for the mod and any help you can give on it.
DeMiNe0
07-17-2007, 12:26 PM
Is 1.3 going to have the ability to reward points via profile? (Or atleast another way to award points other then posts and admincp?) The guys who actually pay for the board are making me install the broken vbplaza because there moderators can't give and take points to users who dont post. Help me!! I don't wanna switch lol! :P
I've been trying to figure out how to copy the entire block of code that controls the giving/taking a points based on the user who owns the postid that is passed in the URL, so that it uses a userid that is passed in the URL instead, but i've failed so far.
All i really need to do is be able to use something like credits.php?u=USERID to reward points.
AzzidReign
07-17-2007, 03:36 PM
Okay, I downloaded and installed the Thank You Hack. The problem is the patch, which unfortunately will be there until 3.6.8, so, to fix (this is confirmed to work :))
Edit the "Display Credits in Postbit" plugin
Change Hook Location to: postbit_display_start
Change execution order to: 100
Change code to this:
if ($this->registry->options['credits_public'])
{
$credits_this = array($post['postid'], $post['userid'], vb_number_format($post['credits'], $this->registry->options['credits_decimals']));
//clear out postbit if it contains this again. other hacks can take care of their own stuff themselves.
$template_hook['postbit_userinfo_right'] = str_replace('<div><a href="credits.php?u=' . $GLOBALS['credits_last'][1] . '">' . $vbphrase['credits'] . '</a>: <span id="cdt_' . $GLOBALS['credits_last'][0] . '_' . $GLOBALS['credits_last'][1] . '">' . $GLOBALS['credits_last'][2] . '</span></div>', '', $template_hook['postbit_userinfo_right']) . '<div><a href="credits.php?u=' . $credits_this[1] . '">' . $vbphrase['credits'] . '</a>: <span id="cdt_' . $credits_this[0] . '_' . $credits_this[1] . '">' . $credits_this[2] . '</span></div>';
$GLOBALS['credits_last'] = $credits_this;
}
v1.3 will have this update in it. also, this will work on boards without the thankyou hack, and without the thankyou hack's patch either (so it can only be a positive fix) will also work when vb upgrades, but will probably get all the extra ceaning code out
Works great! Thanks!
Darkwaltz4
07-17-2007, 04:08 PM
Dark,
Thanks for the mod. I know it will be a big help on my forum.
I had a few minor issues after the install and was hoping for some help:)
Just to give you an idea on a 1-10 scale my coding is at about 2 and one of the points might be because I am grading myself:D
The questions I have:
Where do I go to change the credit settings?
How can I get the credits to show in the postbit(I noticed the post but not sure how/where to insert just want it below the post count)?
Not able to sort by credits in memberlist, how can I fix that?
Again thanks for the mod and any help you can give on it.
In the usergroup editor.
If they are not showing up in the postbit, first follow the footnote directions in the Instructions.txt file, and then the patch I just posted.
Do they appear in the memberlist, but not sort by them? Did you edit the memberlist file per the instructions?
Is 1.3 going to have the ability to reward points via profile? (Or atleast another way to award points other then posts and admincp?) The guys who actually pay for the board are making me install the broken vbplaza because there moderators can't give and take points to users who dont post. Help me!! I don't wanna switch lol! :P
I've been trying to figure out how to copy the entire block of code that controls the giving/taking a points based on the user who owns the postid that is passed in the URL, so that it uses a userid that is passed in the URL instead, but i've failed so far.
All i really need to do is be able to use something like credits.php?u=USERID to reward points.
I will see what I can get you patchwise, check back soon. You really dont want vbplaza (at least in the current state it is in). I have it installed for testing purposes, and it doesnt use the vb cleaning methods, which is why it was removed for XSS vulnerability
Works great! Thanks!
:D what about you, DS MrSinister?
Also, now that I have the Thank You Hack installed, I went ahead and made a Thank You Hack addon. Will post it in a bit along with other things.
Darkwaltz4
07-17-2007, 06:24 PM
Here I have a converter for Nexia Points, and an addon for the Post Thank You Hack!
To use, upload the nexia_to_vbcredits.php to the admincp folder and run it
and import the product product-credits_post_thanks.php, and youre done!
this post will be deleted in v1.3, and these files will be located in their respective folders in the main file. (just wanted to get these out before 1.3)
look for more addons soon. still working on the arcades. btw, i have like 3 different points systems and two arcades running :-p kinda funny.
//note, files removed and placed into main download
5, 8
cheat-master30
07-17-2007, 06:30 PM
When you mean the arcades, does that mean basically integration with IB Pro Arcade and credits for high scores/tournament winning/etc? Because if so I certainly want that feature.
Darkwaltz4
07-17-2007, 06:37 PM
yes, putting together ibproarcade and v3 arcade integrations :)
PixelFx
07-17-2007, 07:09 PM
awesome work john :D
carlt
07-17-2007, 07:18 PM
In the usergroup editor.
If they are not showing up in the postbit, first follow the footnote directions in the Instructions.txt file, and then the patch I just posted.
Do they appear in the memberlist, but not sort by them? Did you edit the memberlist file per the instructions?
Found the settings in usergroups, thank you for the help.
The credits do show up in the memberlist, it just does not allow for sorting by credits. When I click on credits it sorts by username for some reason. I checked the memberlist template changes and they look fine. I will now look at the files.
Postbit edits I am still a bit confused on will look at the code some more before inserting as I don't want to mess anything up.
DS MrSinister
07-17-2007, 10:09 PM
:D what about you, DS MrSinister?
Works Great sir, thanks you so much..
Fearlessninja
07-17-2007, 11:03 PM
Now a shop add-on is what this is missing and you could beat the legendary VBPlaza!
cheat-master30
07-17-2007, 11:10 PM
Now a shop add-on is what this is missing and you could beat the legendary VBPlaza!
This works fine with other shop modifications like Ishop. So a shop modification probably is not needed.
Darkwaltz4
07-18-2007, 01:40 AM
Beating vbplaza is kind of my ultimate goal :)
1.3 will include more features seen in other points hacks, except better :-p
oldfan
07-18-2007, 05:32 AM
How could my users use their credits to gain access to special/vip forums?
thanks
carlt
07-18-2007, 07:58 AM
Found the settings in usergroups, thank you for the help.
The credits do show up in the memberlist, it just does not allow for sorting by credits. When I click on credits it sorts by username for some reason. I checked the memberlist template changes and they look fine. I will now look at the files.
Postbit edits I am still a bit confused on will look at the code some more before inserting as I don't want to mess anything up.
Fixed the memberlist. I made a mistake in the memberlist.php file mod.. It was a bonehead error.
I had:
case 'posts':
$sqlsort = 'user.credits';
break;
Instead of:
case 'credits':
$sqlsort = 'user.credits';
break;
Living up to my 2 rating:D...Now the fun part trying to fix my postbit.
Skyline_GT
07-18-2007, 10:20 AM
Great Mod, I am going to try this.
DeMiNe0
07-18-2007, 01:08 PM
Awsome thanks!! BTW... I really like this hack. Where can i donate too? You really deserve it. The support on this hack has been absolutely great.
I will see what I can get you patchwise, check back soon. You really dont want vbplaza (at least in the current state it is in). I have it installed for testing purposes, and it doesnt use the vb cleaning methods, which is why it was removed for XSS vulnerability
jasculs
07-18-2007, 02:13 PM
Anyway to integrate this mod with Inferno Quiz found here:
https://vborg.vbsupport.ru/showthread.php?t=83130
SVTCobraLTD
07-18-2007, 05:33 PM
After installing this, when I got to post I get this error....
Fatal error: Class declarations may not be nested in /homepages/44/d156178506/htdocs/pennmustangs.com/forums/includes/class_dm_threadpost.php on line 589
SVT
Darkwaltz4
07-18-2007, 05:42 PM
I dont see where this is coming from, and a first from all the people who have apparently installed it. That line is a little bit past the edit, at least on what I have.
If you can, try to start over with a fresh file and apply the change to it again, keep in mind it is a replace section, not an add.
If this persists, talk to me in PM, I can get you a working copy through a chat program.
Ba$im
07-18-2007, 06:58 PM
Unable to add cookies, header already sent.
File: /***********/vb/includes/functions.php
Line: 1
:(
thanks in advance
Darkwaltz4
07-18-2007, 07:22 PM
Again, another first issue. There is only one file edit to functions.php, make sure you did it properly (replace, not add the line)
On an unrelated note:
New Addon for Inferno Quiz
Specify award for submitting a quiz which is used by the forum
Specify cost to take the quiz, and prize for the quiz - with option to vary it against the score :)
Includes admin help and phrasing of course (even though the quiz hack does not)
//note, file removed and placed into main download
1
Rodimus
07-18-2007, 07:30 PM
I don't know if someone has asked for this, but is it possible to enable the credit system to work ONLY in certain forums?
Darkwaltz4
07-18-2007, 07:33 PM
right now, you can specify the credit system to not work in places where post count is disabled.
1.3 will include a per-forum system better than those before it.
Ba$im
07-18-2007, 07:45 PM
i fix it now thanks
but when I go to manage setting from cpanel
all what I see this
Publicly Display Credits
This toggles whether or not to display the credits in the postbits or profiles.
1
Award Credit Where Posts Not Counted
Allow credit to still be earned for new threads and posts in a forum which has been designated to not increase post count.
1
Definition of Active
This defines what the user has to do to qualify for the activity credit each day.
Just log in
Do something
Post
Show Credits on Memberlist
Display credits as a field in the memberlist?
ا
1
Number of Displayed Decimal Points
Users can be awarded partial points, but this controls how much of the fraction is displayed.
1
Number of Records Displayed in the Transaction Log
The transaction log shows movements of credits based on time.
1
Transaction PM Alert User ID
When users receive credits, they will be sent a PM alert from this userid. To not send any alerts, use 0.
1
Strip BB Code From Posts Before Char Count?
This applies to [QUOTE], [URL], [IMG] etc. When awarding per character you probably don't want non-original characters to be awarded.
then from where I can see this
Features:
* Earn Credits 7 Different Ways Based on Usergroup
o Induction (registration, promotion, subscription, etc)
o Referrals
o Daily Standard
o Daily Activity (logging in, posting, etc)
o Creating a New Thread
o Creating a New Post
o Number of Characters in Post
+ Amount Updates Upon Post Edit!
+ Option to strip BB Code first
* Mass Updater
o Retroactively Award Users based on current settings
o Set everyone to the same level
o Reset everyone to zero
* Transaction Log
o Privately List All Donated and Received
o Permission to Send Anonymously
o Optional Transaction Alert PM
o Comments that support BB Code
o Ordered by latest received and over multiple pages
o Permission to view others' Transaction Logs for moderation
* AJAX Credits Award via Postbit
o Add or Remove Credits right on the postbit!
o Supports Anonymous, Comments, Transaction Log and PM Alert
* Extras
o Display and Order By Credits on Memberlist
o Credits stored as DOUBLE, can be negative or fractional!
o Set specific number of decimals to display
o Display Your Credits in the Navbar
* Third Party Integration
o vBookie - Select custom cash/points in your vBookie settings, and import the complementary/integrations/product-credits_bookie.xml product file (requires latest versions of vBookie and vBCredits)
o ICash / IBank / IShop - Set 'money row' to 'credits'
o [AJAX] Post Thank You Hack - Import the complementary/integrations/product-credits_post_thanks.xml product file (located here) (requires latest versions of Post Thank You Hack and vBCredits)
o Inferno Quiz - Import the product-credits_quiz.xml located in the zip file Quiz Integration, and apply the edits in the instructions. (located here)
o Use TABLE: user COLUMN: credits
o More Coming Soon!
* Convert From Other Points Hacks
o ICash - import complementary/converters/product-credits_icash.xml
o vbBux / vbPlaza - upload complementary/converters/vbbuxplaza_to_vbcredits.php to your admincp and run it
o Nexia's Points System - upload complementary/converters/nexia_to_vbcredits.php (located here) to your admincp and run it
o More Coming Soon!
* Quality
o Fully Phrased
o Complete Admin Help
o WOL Location
o Supports $template_hooks
also I use P3tz it’s as I think easy to integrate it with vbcredit
just need to know
Points Table
The table that contains the points field. (Advanced Only)
1
Points Field
The field that contains the points. Please view the readme if you are unsure of this setting
can u tel me about table plz?
another thing if u don’t mind
I want show credit below user private message
on log in of user
how I do that?
thanks very much
Darkwaltz4
07-18-2007, 07:48 PM
The points table is: user
The points column is: credits
i will install the pets hack and check if theres anything else you should know, and add it to the list of verified hacks :)
im not sure what you mean by where you want to display. It should already display in the navbar under quick links. if nothing seems to be appearing, read the footnotes in instruction text.
EDIT
These settings are confirmed. Added to the first post :)
kartik786
07-18-2007, 08:14 PM
does this work with 3.6.4 ? :)
Ba$im
07-18-2007, 08:18 PM
thanks for fast support
what I mean like this forum
https://vborg.vbsupport.ru/attachment.php?attachmentid=67185&stc=1&d=1184793399
also now I meet problem
If I add new post or reply
the direct page look like this
https://vborg.vbsupport.ru/attachment.php?attachmentid=67186&stc=1&d=1184793399
thanks :up:
oldfan
07-18-2007, 08:26 PM
How could my users use their credits to gain access to special/vip forums?
thanks
Ba$im
07-18-2007, 09:05 PM
oh whats wrong with this coockiz
when I go to add new thread this what i get
Unable to add cookies, header already sent.
File: /************/includes/class_dm_threadpost.php
Line: 1
what this mean plz
Brandon Sheley
07-18-2007, 09:21 PM
Sounds interesting :)
lrmzx9
07-18-2007, 09:52 PM
The mod is installed and working properly. Now, how do I integrate this with a "shop" system where users can use their points to add/change things on the forum? Maybe earn enough to get free stuff? Someone show me some direction please :D
Darkwaltz4
07-18-2007, 09:58 PM
does this work with 3.6.4 ? :)
I dont know, I use 3.6.7, but I wouldnt doubt it. If you try it and it works, please let me know :)
How could my users use their credits to gain access to special/vip forums?
thanks
there is no function for this yet, but look for it in the shop hack that i am working on :)
thanks for fast support
what I mean like this forum
https://vborg.vbsupport.ru/attachment.php?attachmentid=67185&stc=1&d=1184793399
also now I meet problem
If I add new post or reply
the direct page look like this
https://vborg.vbsupport.ru/attachment.php?attachmentid=67186&stc=1&d=1184793399
thanks :up:
oh what?s wrong with this coockiz
when I go to add new thread this what i get
Unable to add cookies, header already sent.
File: /************/includes/class_dm_threadpost.php
Line: 1
what this mean plz
I am not sure what the problem is for those two things, but if you would talk to me via PM we can arrange something via a chat program, and I can check your forums and files for what could be causing it.
The mod is installed and working properly. Now, how do I integrate this with a "shop" system where users can use their points to add/change things on the forum? Maybe earn enough to get free stuff? Someone show me some direction please :D
I am working on a shop hack, but it is not ready yet. In the meantime, you can use this with IShop, check the first post for links.
also, I have a new converter for Gold! to vBCredits. this attachment will be included in the next release and removed from this post then.
//note file removed and placed into main download
1
Fearlessninja
07-18-2007, 10:54 PM
This works fine with other shop modifications like Ishop. So a shop modification probably is not needed.
Thats not what I mean.... Sorrry for not being specific. I mean features that were in the shop of VBPlaza....like User Title Change....Username Change.....ect.
cheat-master30
07-18-2007, 11:05 PM
Oh. Then I'm with you, I want those features as well.
Darkwaltz4
07-19-2007, 12:15 AM
my shop system will have what all of the itemshops have and more :) still putting it together, sorry....
New Addon for Living Avatars
Living Avatars really does not allow much room for points integration, but using these instructions you can use your vbcredits instead :)
//note file removed and placed into main download
4
Chase
07-19-2007, 12:38 AM
Darkwaltz...
You're getting me excited with this points system! I have been waiting for something like this!
-- Can you maybe give us an idea about how long it will be until you release the shop? I don't want to install iShop then have to uninstall it.
Chase
07-19-2007, 12:39 AM
And by the way...
Keep up the GREAT work!
I'm really wanting integration with the ipbarcade, any idea on time frame at all? Are we talking weeks or months?
Darkwaltz4
07-19-2007, 01:16 AM
Hopefully days or less, the issue with ibproarcade is that most of it unlocks when you use vbbux/plaza, NOT anything else............so would require editing :-/
jasculs
07-19-2007, 01:51 AM
Darkwaltz4,
The first part of the Inferno Quiz integration calls for:
File: quiz.php
================================
FIND:
--------------------------------
$bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());
--------------------------------
REPLACE WITH:
--------------------------------
if ($vbulletin->userinfo['credits'] < $Quiz['credit_cost'])
{
eval(standard_error(fetch_error('credits_quiz_note nough', vb_number_format($Quiz['credit_cost'], $vbulletin->options['credits_decimals']), $vbphrase['credits'])));
}
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET credits = credits - " . $Quiz['credit_cost'] . " WHERE userid = " . $vbulletin->userinfo['userid']);
The code I need to find in quiz.php shows up twice. Should I replace it twice?
Darkwaltz4
07-19-2007, 01:56 AM
I just checked, it only appears once for me in the quiz.php file. I used the version from the thread (2.2).
Also, good thing you showed me that, the command should be ADD BELOW NOT REPLACE WITH....so be sure to just add. updating the attachment
jasculs
07-19-2007, 02:13 AM
I just checked, it only appears once for me in the quiz.php file. I used the version from the thread (2.2).
Also, good thing you showed me that, the command should be ADD BELOW NOT REPLACE WITH....so be sure to just add. updating the attachment
That's weired because when I do a (Control F) to find that code it finds it twice.
In admin_quiz.php I also find this code twice using the find function in notepad:
$DB->query("delete from ".TABLE_PREFIX."quiz_submissions where sid='{$sub['sid']}'");
oldfan
07-19-2007, 02:17 AM
Sounds great, thanks
PixelFx
07-19-2007, 02:24 AM
That's weired because when I do a (Control F) to find that code it finds it twice.
In admin_quiz.php I also find this code twice using the find function in notepad:
$DB->query("delete from ".TABLE_PREFIX."quiz_submissions where sid='{$sub['sid']}'");
thats cause he's doing Dream Weaver cs3 .. which allows for full block search and replace vs line by line editing, which most of us are used to...
;)
Both of us haven't slept much the last few days :P
jasculs
07-19-2007, 02:32 AM
Well...I just added the code below each line I found anyway and it seems to be working just fine...Thanks again
jasculs
07-19-2007, 02:39 AM
Hey PixelFX...this is kind of off topic...but what arcade are you using for your website...did you change the layout of it? Also is your website using vbadvanced too? I like your simple layout.
Darkwaltz4
07-19-2007, 02:53 AM
jasculs:
the number of tabs and spaces in front of both lines of code differenciates them :-/
i suggest you start with fresh files and apply the changes again, this time also include the whitespace in your find/replace :-p then it should only appear once each (which is important when applying the extra lines!)
EvilKitty
07-19-2007, 05:43 AM
Hey PixelFX...this is kind of off topic...but what arcade are you using for your website...did you change the layout of it? Also is your website using vbadvanced too? I like your simple layout.
I was kind of more curious about the 'activity and time on board' thing he's got going in the postbit. :p
That said, i've downloaded this, but i'll probably wait on installing until there's a store attached to it.
PixelFx
07-19-2007, 06:10 AM
Hey PixelFX...this is kind of off topic...but what arcade are you using for your website...did you change the layout of it? Also is your website using vbadvanced too? I like your simple layout.
I'm using vb367 branded, cmps 3.0 rc1 branded license, v3arcade, activity hack and oh about 1000 hours of tweaking :P, our new vbcredits test site has cleaned up version of my style :D
glad you like it..
back on track... as for vBCredits Darks been slaving day in and out to get this script up to part, the new item shop when its done should blow peoples minds over time :P
LukeFX
07-19-2007, 09:07 AM
Your support for other mods is un matched. I mean LivingAvatars was requested yesterday and although you spent most of the day working on the quiz intergration I was amazed to find you still intergrated LA in the same day!
MOTM, Installed & defo going to be donating some dollar this weekend!
Some more details on the Shop would be cool, how long is it off from being finished? I might wait for it rather than install iShop.
FatalBreeze
07-19-2007, 11:10 AM
Great Hack!
Just one thing, i want to go give my moderators a monthly paycheck, something like 30 credits. How can i give an entire usergroup 30 credits? I tried doing that using the update counters plugin you added, but it only substracts 30 credits instead of adding them. any solution? thanks :)
Interesting Hack, I like it :)
here is my suggestion:
- display user rank by credits according to forums groups (design, coding, marekting) - this will give a decent way to recognize user's favorit topic and knowleadge
Thanks, keep up the good work :)
Nice! :)
Didn't bother to use vbplaza, due to its security and IMO limited options. This one sounds way better. Definitly installing and nominating this hack.
giovannicosta
07-19-2007, 04:19 PM
Marked as installed but not installed as there are too many file modifications instead of templates, try and get this to be fixed automatically by uploading patched files already, thanks!
Darkwaltz4
07-19-2007, 04:32 PM
Thanks everyone, Im glad you all like it :D
Great Hack!
Just one thing, i want to go give my moderators a monthly paycheck, something like 30 credits. How can i give an entire usergroup 30 credits? I tried doing that using the update counters plugin you added, but it only substracts 30 credits instead of adding them. any solution? thanks :)
Using the appropriate credits tool under update counters, fill it out like this:
Pick the usergroups in question, dont check any of the award types
Number of credits to use as the base of additions: amount you want to add to them all
Add credits to existing totals instead of starting over? : yes
Perform all of the transactions for each user recorded in the transaction log? : no
This effectively mass-adds an arbitrary amount to the selected usergroups. Alternatively, you could split the weekly paycheck by 7 and set it as the daily credit to that usergroup. i might add in a day counter or something :-/
Marked as installed but not installed as there are too many file modifications instead of templates, try and get this to be fixed automatically by uploading patched files already, thanks!
i think you mean plugins, and i somewhat agree. the new version is stripping out as many file edits as i can, but some I will leave as they cover a lot more ground than the plugins (such as the ones in functions_databuild.php) why? they get called a million times from different places, such as the admincp, inline moderation, editpost, all kinds of stuff, and to edit it in the main function works out much better and consistently. I dont believe I am allowed by vborg to upload entire files, and it would become obsolete in subsequent vb upgrades, and would not be properly marked with your vb license number. But thank you for clicking install so I can keep you updated when it is "fixed up a bit" :)
Rodimus
07-19-2007, 08:09 PM
right now, you can specify the credit system to not work in places where post count is disabled.
1.3 will include a per-forum system better than those before it.
Thank you for your quick response. Do you have an idea when 1.3 will be available?
Darkwaltz4
07-19-2007, 08:27 PM
probably another day or so. i spent yesterday making addons :-p
I haven't even installed this yet but have to say how impressed i am by you :) I've never seen a better coder yet!!
PixelFx
07-19-2007, 10:28 PM
I've been working with dark for a few years now, he's awesome coder :D, everything this boy is working on is top quality! I'm just trying to keep up :P
phpnewbie
07-20-2007, 07:40 AM
i don't know if it works with my custom style. You said in the instructions:
MISSING TEMPLATE DISPLAYS? vBCredits complies with the $template_hook system, your custom style might not...
So how can i solve it?
Do credits NOT display in the profile when the option for publicly displayed credits is on? Do the following:
Edit the template MEMBERINFO, and add this where you want them to appear: $template_hook[memberinfo_foruminfo]
Do credits NOT display in the navbar under the quick links menu? Do the following:
Edit the template navbar, and add this where you want them to appear: $template_hook[navbar_quick_links_menu_pos3]
Does the manage credits link NOT display at the bottom of the usercp? Do the following:
Edit the template USERCP_SHELL, and add this at the end of the link cells: $template_hook[usercp_navbar_bottom]
Seem it does not work in with my case.
I can see it in the Member's list but in the post, member profile or usercp, i can't.
SVTCobraLTD
07-20-2007, 10:38 AM
After installing this, when I got to post I get this error....
SVT
Forgot to upload the main file to the forums directory.
SVT
Darkwaltz4
07-20-2007, 12:38 PM
phpnewbie:
did you edit the templates in those instructions and it still doesnt show up? apply the postbit fix in the top post, and check your public display settings. if still having trouble, PM me.
svtcobraltd:
glad to see you figured it out after all :D
alessai
07-21-2007, 10:42 AM
:) i was thinking it will be nice if when some1 thanx a person he gets a creidt....
(not the one who clicked thanks, the poster)
:D and please when you add any other ways to get credit make it defualt value 0
:rolleyes: i have to many groups to change :p
Darkwaltz4
07-21-2007, 01:20 PM
thats already been made :)
check the first post for the post thanks addon.
FatalBreeze
07-21-2007, 06:33 PM
You forgot something.
you have built in the postbit a link to donate credits, but its only working on the postbit in posts, and not on private messages. I'm talking about the "Display Credits In Postbit" plugin in the showthread_postbit_create hook, and you should add one in the private_showpm_start hook.
adc-arab
07-21-2007, 07:21 PM
Great mod awesome thats what i really need ^^ can u add ibProArcade as Third Party too that would be awesome thx alot
Chase
07-21-2007, 08:03 PM
Once you release the shop I plan on installing the points system!
I hope you release it very soon!
Darkwaltz4
07-21-2007, 08:32 PM
I am still working on a shop and ibproarcade integrations :)
one of my announcements regards the shop.
if you think the points system is good now, wait til 1.3 :-p if you thought 1.2 is a big update, 1.3 is over twice as big, and begins to beat vbplaza.
speaking of vbplaza, you can also use vbplaza while you are waiting for a shop, just set the points table to user and the column as credits. just disable the vbbux gaining methods so you dont get doubles, or use the vbbuxplaza converter on the first page.
i will be sure to fix the postbit for PMs.
cheat-master30
07-21-2007, 09:11 PM
I am still working on a shop and ibproarcade integrations :)
one of my announcements regards the shop.
if you think the points system is good now, wait til 1.3 :-p if you thought 1.2 is a big update, 1.3 is over twice as big, and begins to beat vbplaza.
speaking of vbplaza, you can also use vbplaza while you are waiting for a shop, just set the points table to user and the column as credits. just disable the vbbux gaining methods so you dont get doubles, or use the vbbsuxplaza converter on the first page.
i will be sure to fix the postbit for PMs.
^Not really recommended, vbplaza had many security exploits, regardless of the point system used with it.
PixelFx
07-21-2007, 09:32 PM
once you see what john has been working on for new shop and credits... .. well lots of fun .. lol don't want to be to criptic he and I have a lot on the go. :D
Chase
07-21-2007, 10:45 PM
Is the release of the shop in the range of days or weeks?
Darkwaltz4
07-21-2007, 10:53 PM
Days (at most a week id say to get the initial version out). More information will be announced with the release of 1.3 regarding the shop
alessai
07-22-2007, 12:33 AM
if you think the points system is good now, wait til 1.3 :-p if you thought 1.2 is a big update, 1.3 is over twice as big, and begins to beat vbplaza.
.
Darkwaltz4 if thats true ill be happy to translate the system into Arabic :D
PinkDaisy
07-22-2007, 11:47 AM
I can't wait to see the final to get this up and running on our site! :D
GekkoPixie
07-22-2007, 12:28 PM
I'm dying to see how this works... It's Sunday!!! *waits so she can install*
Chase
07-22-2007, 02:57 PM
I'm dying to see how this works... It's Sunday!!! *waits so she can install*
Me too!
|Jordan|
07-22-2007, 06:47 PM
It's erm ... sunday today. What time on sunday (in your timezone) will it be ready?
It was Sunday here yesterday and i was waiting all day forgetting the time zone difference LOL
txspaderz
07-22-2007, 07:22 PM
Yea, I can't wait for this release.... *so excited*
kylek
07-22-2007, 07:38 PM
Well icash just was just removed as the vb.org staff announced that "This modification (ICASH) contains security vulnerabilities, and you are hereby advised to unintall this modification until such time that the author provides a fix.
-- vBorg Staff"
So thats now two in a row for me, first vbplaza then iCash. Thank the great coder Gods that we have this new points system being worked on and supported by Darkwaltz4.
Waiting patiently also so I can dump icash and install this.
Thanks!!!!
Darkwaltz4
07-22-2007, 08:03 PM
o.o oh wow, really didnt see this coming...
well, there are converters for 5 other points hacks, including ICash.
theres still 8 hours in today, making sure everything I have to annouce is top notch :)
also, I have been extra careful with security from the start, so you can be sure this hack will be around for a long time :)
Stay tuned everyone, watch your email for my update message :-p
txspaderz
07-22-2007, 08:09 PM
Ohhhh yea! I can't wait...
Giggity Giggity
Kingzor
07-22-2007, 08:11 PM
Yea, looks like ill be moving over to this but the file edits are really going to make me hold out and see if I can't figure out where the hell an exploit is in Icash and just fix it...theres like 4 simple plugins to where I can see no sploit... If anyone has any information on this drop me a pm please.
Darkwaltz4
07-22-2007, 08:13 PM
1.3 ditches most of the file edits :) in fact, I am investigating further before I update to see if I can get rid of all them. I also am including template edits for those using TMS (and just instructions for those who arent)
|Jordan|
07-22-2007, 08:18 PM
What about sql injection? Does your hack protect against that?
Here's a good open source sql injection notification script that you could use:
Darkwaltz4
07-22-2007, 08:34 PM
Yes, ALL input from every location is throughly cleaned before it is ever displayed or put into the database. Most of it uses the built-in cleaning capabilities of vbulletin (which is what they are there for, and many times a hack that was removed due to exploitations is because they failed to do this).
This protects it even from remotely created and executed mock pages designed to evade many frontend validations such as html attributes and javascript. #1 rule for security is never trust anything that you output, always validate it again on the side you have control over :) No variable is used unless my script was the one to define it in the same scope.
Kingzor
07-22-2007, 09:06 PM
...and many times a hack that was removed due to exploitations is because they failed to do this)
Seems to be the reason that Icash has been removed, further investigation revealed that stock Icash contains a donate file which doesn't properly clean variables ;/
Chase
07-22-2007, 09:11 PM
I'm no php coder but darkwaltz... you're makin a believer out of me. You really seem to know what your doing.
PixelFx
07-22-2007, 11:22 PM
He's almost GOD Like ;)
TR?PST?R
07-23-2007, 01:45 AM
Hmm what about integrating a hide-hack and having it where you can set how many credits they have to have or give to you for the hidden content to become unhidden?
Darkwaltz4
07-23-2007, 02:20 AM
that is a feature for the shop addon, which i will be adding
im almost done guys :) this update is enormous and more than doubles the power of 1.2. im making everything perfect and seamless and bugtesting right now
also happy to report the plugins are being ported successfully, should hopefully be no file edits to make.
as of this post, you may all remove the file edits to all files EXCEPT functions_databuild.php. the rest are gone. will update in short time. promise! :)
Will ibparcade use be available soon?
jasculs
07-23-2007, 04:19 AM
Patience is a virtue
|Jordan|
07-23-2007, 04:21 AM
Oh man the waiting is killing me. I've never been this excited for a vb modification before.
Dark, did you get my pm?
Darkwaltz4
07-23-2007, 04:26 AM
sorry this is taking a little long.
i have it down to 3 file edits left in functions_databuild.php. they are for undelete_thread, approve_thread, and delete_thread. as plugins they have to appear in like 7 different places... now you know why i initially used file edits :)
but all for the sake of quality. thanks for your patience everyone.
arcade addons are still not ready, focusing on 1.3 right now :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.