![]() |
User Points System
What does this script do?
This script is a very simple and easy to use system for giving or deducting arbitrary points from a given user. Its the vb3 edition of the popular vb2 hack found here It also easy to set this up to give users points through PM's, Journals (if you have one), or just about anything that can pull in custom profile fields. Why is this in beta? I really dont think anyone will have an issue with this hack as we've been using this for months already but we had to variabilize a few things so the possibility exists. There is also one extra query per page for an uncached template. I just dont understand how thats done in vb3 and havent had time to really look into it. :( What are the differences between this and the vb2 version? The vb3 version doesnt have the mass user gil update feature but it has an easier interface to give or take points from the postbit. Since points can be given very quickly from the postbit, our mods stopped using the mass updater and there just wasnt a need on our part to port it over. Whats the difference between this and upoints hack? User preferance mostly... I think this points hack offers a simpler way of manually giving or taking points which some people prefer. Others simply need a points hack without the complexity of having a store. One thing I will note in advance is that this points hack does not give points automatically for people creating or replying to threads. Its just not something our site needed. However it can work with those options in the ustore. Can this work with the ustore? Thankfully Link coded the store to be able to take advantage of the different user points systems that would be released. If you have this ustore / upoints hack installed, go to the UTT points settings and under the ucash settings use the following: Points Table: userfield Points Field: field x (where x is the custom field you will be creating). You will need to alter some of the template changes but from what I've seen, you should be able to get the added benifit of getting points for new threads, replies, etc. Will this work with vbPetz? I havent installed vbpetz yet so I have no clue how well this would intergrate with thier system. And thats about all I can think of right now. Screen shots below: The first shows the box you enter the points in, hit enter or click the coin to submit and you get a pop up box confirmation. If you reload the page, you'll see the second post which shows the users points (gil) updated and the points (gil) paid on that specific post. The logic is that reloading a page sux and its easier to click the okay button on a javascript box. Its not bad at all. ^^ |
Im not sure what chmod to '777' means.
|
IT means right click on the folder or file in your FTP program, and choose CHMOD, then change it to 777
|
so for this hack, do you get points from postin or do mods j ust give points.
|
Is it possible to see how many total points the members in a usergroup have?
|
At the moment, no - though it should be a simple query to find out.
|
Hmm
might me a nice feature to add to future versions. Im pretty inexperienced with query stuff, any chance of more detailed instructions?
Anyway, nice hack. /me clicks install |
I have uploaded the gillog.txt file and right clicked on it and have no idea how im supposed to change something to 777. Is the 777 in the file or what. Im not expierenced at this and really have no clue.
|
Any chance in hiring you to install this?
|
What FTP program are you using? If your using WS-FTP or CuteFTP, you can right click in the file and under properties check off the boxes for read / write / execute under Owner, Group, World. If you still have a problem, let me know and I will help you through it.
(my aim is thetomblack... I'll be on for antoher hour or two) |
installs anyway to change wut it says from gil's to something else like points or anything
|
I just wanted to say thanks to Reeve of shinra for all the help. Reeve really helped out this newbie and I now have a working points system! Thanks again!
:) ChrisBaktis clicks install |
NexVision: when you create the new custom field, name it whatever you want.
When you do your template edits, simply put Points: $post[fieldx] where x is the new field # and points is the name you want. The only thing at this point thats harded coded is the pop up box confirming the points you gave and the little box that shows how many points were paid on that post -- both of which are only viewable to admins or mods and can be changed in the template you need to add. |
Quote:
|
If you really wanna be trick, you can add this on to Erwins warning and ban system.
https://vborg.vbsupport.ru/showthrea...875#post505875 You'll need to reverse Erwins code so that a user is banned on negative points rather than positive though ;) |
Good Stuff..
But I really want this to make it like a user must pay a certain number of points before they can download attachments? Like buy the attachment using points. |
Skyline: You want to post this as a request for a ushop intergration... otherwise you'll have to take a look at the existing attachment hacks to see if you can add a code in to deduct points upon download (should be simple enough I image)
|
I suck at coding:(
|
Do you plan to store the points each user has in the database as a new field in the table user?
Would be a good alternative to the textfile. ;) |
No, the text file is just a record of what admin / mod gave points to a user.
The users points are stored in a custom profile field - which offers a lot of diversity and efficiency as to where its displayed. |
Couple things I noticed that maybe you can help on:
1) The first time I go to give points it asks me to login (even if I am logged in already) - when I do it takes me to the gilupdate.php page which is blank - I then have to go back and back to the first page and re-add the points 2)When I add points I get the Gil Paid box but nothing shows until I refresh the page - is there a way for me to make it so the page refreshes when I hit 'Ok' on the Gils Paid box? 3) If I add poings in the PM section they do not save to the database - only when I do it from a post - can this be fixed? 4) Last how can I change the gil paid box to say 'Rusty Soaps Paid' instead of 'Gils Paid'? Thanks for the support |
1. I havent experienced that so I am not sure what it would be. Techincally speaking, I dont think the script alone would cause that but I will think on it.
2. Loading, or reloading, a page takes more server resources. The small pop up box was more effecient. It may not techinically matter, but we were trying to keep this simple and efficent -- technically, you would know if you gave points to someone in that thread and if you opened the thread later on, you would see that you - or someone else - awarded points to that person for that post. (I hope that makes sense, I am a bit tired). I guess if you REALLY wanted it, I could dig up the old code that refreshed the page upon giving points. 3. I should have an update for that soon. Not sure how soon yet but its something planned as we would like to use that feature as well. 4. A) On step 4, find this and replace the words gil paid with your choice. PHP Code:
Gil paid: $post[gilpaid] Again, change Gil Paid: to whatever you want (leave $post[gilpaid] alone) |
Thank you....On step 3 I thought it was supposed to work - im glad that it is not something I did wrong...thanks for the help
|
This hack looks interesting... quick question:
Is the gil paid on individual posts stored somewhere, so the amount of gil given a user for a particular post would be reflected on the post itself? I'm thinking that if so, I could use it to filter posts based on their gil value. Thanks! |
Yes, the points given for a particular post are stored in a new field in the post table.
If I gave you five points for your post, any mod or admin viewing the thread would see that five points were given. This is not your total points however, the total points you have are stored in a vb custom field. Out of curosity, what kind of post filtering were you lookinig to do? |
I'll PM my response so as not to derail your thread any more.
|
I'm looking for a point system that has a little more to it, as oppossed to just a few points awarded by mods, I'm looking for a full on point system with point store. Fully editable etc...
|
Check out the upoints / ustore hack. Its more robust in that it can award points based on posts, replies, etc, ... its just something I have need of.
|
thanks I'll look for/into it.
|
Quote:
|
*confused*
Is this a Points System, or some form of addon for an existing Points System? |
Kall. Its its own points system but you can use it as an add on for the ustore / upoint system and probably a few other hacks. We give out the points manually so this just made it simpler... its something we were using that we figured a few people might need or want.
|
Question for you.
I want to add 2 different kind of points to a members account - one for buying things in our shop and one for contest points. Is it possible install this twice so I can add 2 differnent points to members accounts? |
Yeah. The simple way would be to install the hack a second time but change a the file name and template thats called.
Here's the start but I need to look over the php file itself to see what variables need to be changed. * In step 2 change the name of gillog.txt to gillog2.txt * In step 3 rename gilupdate.php to gilupdate2.php * In step 5 add this instead: PHP Code:
PHP Code:
step 10: ALTER TABLE `post` ADD `gilpaid2` TINYINT DEFAULT '0' NOT NULL ; |
Thank you - works great!
|
wait.. so is this working on 3.03?
|
works fine on vb3.0.3.
|
awesome hack, thanks reeve :)
|
A modification question.
Is there a way to place the update fields for this on another page such as the Profile page, or a custom drop box in each post? Here is why I ask. For our forum we used to have the similar hack by Palmer ofShinra when we ran vb2.3.5, we loved it. We had adapted it to six different fields for keeping track of tournaments and special titles. To make it accessable to Staff Members and Admins I didn't install the controls to the postbit, and gave the appropriate URLs to those that needed it so people wouldn't make unauthorized changes. I like how this version logs and can be set to specific groups, but with six fields, that's six white boxes with coins in every post. No offence, but that is ugly if your an admin and you see that many boxes. So far I haven't had much luck getting a working control into the Profile page, and my associate is still trying to get a drop box to work as well. The only other option that comes to mind is to place this on one skin not used by those that need the controls and then they switch to it when needed. |
There is an addon for the upoints hack that lets you do mass updates for users in the same format as the old vb2 points hack which may suit you better. I will check on adding this to the profile page though.
|
All times are GMT. The time now is 04:47 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|