Version: 1.00, by Deaths
Developer Last Online: Mar 2009
Version: 3.0.7
Rating:
Released: 03-28-2005
Last Update: 04-04-2005
Installs: 32
No support by the author.
Requested by some people, so here it is!
Basicly the name says it, its an addon for tnguy3n's hack "Download Credit System".
There was a small typo in the install file, if you downloaded before 4-5-2005, please redownload, and redo the edits to attachment.php and newattachment.php!
The install file contains all the info you need.
how can i make it so that when i get a new registered user he automatically gets 45 points in his account with out me having to give him points so he can download stuff. that would be an excellent add on for me. cause now i have to give each one points and its a hassle. thanks deaths your the man!
i really need a bump to this request. who can help me out?
This can easily be done using phpMyAdmin.
Go to your forums DB, edit the "user" table, and find the "uttpoints" row.
Edit it, and set the 'default' field to whatever you want (40 in your case).
If you want to do this for the Credit system, just edit the 'credits' row
This can easily be done using phpMyAdmin.
Go to your forums DB, edit the "user" table, and find the "uttpoints" row.
Edit it, and set the 'default' field to whatever you want (40 in your case).
If you want to do this for the Credit system, just edit the 'credits' row
ok i will try this right now and edit this post when it works. thanks deaths your the man!
yup it worked like a charm. i tested it and everything. thanks deaths!
Great hack! I was wondering if it'd be possible to give the points the attatchment costs to the uploader of the file. So if 10 people download a 10pt attatchment, the uploader would receive 100 pts. I think that would be a great addition.
Also, does the credits received per attatchment option work? If so, mine does not work and I have no idea why.
That has been requested before, but unfortunately I'm not the person to ask this to .
I simply coded this addon to make it work with uCash, if you want that addition you'll need to ask in the actuall hack's thread (https://vborg.vbsupport.ru/showthread.php?t=78953).
EDIT: Don't have a clue why that is... is anyone having this problem?
Just checked it over again and everything seems fine...Help please!
Also, not sure if it's meant to be this way or not, but when a user posts a thread or reply, he will get points from the uCash hack, and also points from the credit system hack.
Great hack! I was wondering if it'd be possible to give the points the attatchment costs to the uploader of the file. So if 10 people download a 10pt attatchment, the uploader would receive 100 pts. I think that would be a great addition.
Also, does the credits received per attatchment option work? If so, mine does not work and I have no idea why.
Dark Visor did it for me. Here is the code, with his blessings.
In attachment.php replace entire block of
Quote:
// Begin Download Credit System
...
// End Download Credit System
with:
Quote:
// Begin Download Credit System
if($vboptions['credit_mode'])
{
// quick for exceptional groups not restricted by this credit system
if(in_array($attachmentinfo['forumid'], explode(',', $vboptions['credit_sysapplied'])))
{
$usercredits = $bbuserinfo['uttpoints'];
$cost = $vboptions['credit_cost'];
if($usercredits < $vboptions['credit_cost'])
{
eval(print_standard_error('error_notenuffcredits') );
}
else
{
$DB_site->query_first("UPDATE " . TABLE_PREFIX . "user SET uttpoints=uttpoints-$cost WHERE userid = $bbuserinfo[userid]");
$DB_site->query_first("UPDATE " . TABLE_PREFIX . "user SET uttpoints=uttpoints+$cost WHERE userid = $attachmentinfo[userid]");
}
}
}
// End Download Credit System
There is also a conditional to put in postbit to let people know that they are 'paying' x points to user for downloading.
<if condition="$show[creditrequired]==1 AND $vboptions[credit_mode]==1">
<div align="center" style="font-size: 8pt">
<b><br /><br />Note: By downloading attachments from this forum, you automatically pay $vboptions[credit_cost] points to the attachment owner.</b>
</div>
</if>
-------------------------------------------
Add a credit_sysapplied setting into this hack's setting group. This is a plain text field. In it, input forum IDs of the forums you want this add-on to work in.
-------------------------------------------