The Arcive of vBulletin Modifications Site. |
|
Points Hack v1.0 With Donate Details »»
|
|||||||||||||||||||||||||
What does it do?
You can donate money to someone and moderator or admin can give money You must run 2 query's and add 6 templates Functions The functions are: Give Points to someone Users can donate Bugs There are no bugs Screenshot You'll see the screenshot on the next post Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Screenshot:
|
|
#3
|
||||
|
||||
|
Why does a points hack need a donate option?
|
|
#4
|
||||
|
||||
|
Code:
<a href="moderator.php?s=$session[sessionhash]&action=points&userid=$userinfo[userid]" target=_blank> Hmm..... suspicious.... ![]() EDIT: Code:
$field = "field5";
require("./global.php");
|
|
#5
|
||||
|
||||
|
I was just about to post that Link14716.
2 files missinIm not exactly a wizard at PHP, but I know mistakes when i see one. And there isnt anything related to moderator.php
|
|
#6
|
||||
|
||||
|
Let me see how identical this and shinra points are.....
Shinra: Code:
$perms=getpermissions();
if (!$perms[ismoderator] and !$ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]")) {
echo "<p>You do not have permission to do this!</p>";
exit;
}
Code:
$perms = getpermissions();
if (!$perms[ismoderator] and !$ismod = $DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]"))
{
echo "<p>You have no permission to do this</p>";
exit;
}
Code:
if ($HTTP_POST_VARS['action']=="dopoints") {
$userpointstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid=$userid");
$pointstr = (int) $userpointstr[$pointfield];
$userpoint = 0 + $pointstr;
$pointamt = 0 + $amount;
if ($pointamt==0) {
$DB_site->query("UPDATE userfield SET $pointfield='$amount' WHERE userid=$userid");
echo "The point field for $username has been set to $amount successfully.<p><p><font size=+1>You can now close this window.</font><br>";
} else {
$pointstr = ($userpoint + $pointamt);
$DB_site->query("UPDATE userfield SET $pointfield='$pointstr' WHERE userid=$userid");
echo "$username has been given $amount Points successfully.<p><p><font size=+1>You can now close this window.</font><br>";
}
}
Code:
if ($HTTP_POST_VARS['action'] == "addpoints")
{
$upoints = $DB_site->query_first("SELECT $field FROM userfield WHERE userid=$userid");
$pointsereg = (int) $upoints[$field];
$usrpoint = 0 + $pointsereg;
$pointamt = 0 + $pointsgiven;
$pointsereg = ($usrpoint + $pointamt);
$DB_site->query("UPDATE userfield SET $field = '$pointsereg' WHERE userid = $userid");
echo "You have given $username $pointsgiven Points successfully.<p><br>";
}
|
|
#7
|
|||
|
|||
|
I have only included the shinra's points hack and those querys are for the donate function because when i put it in a variabel it gave parse error and the 2 files those where missing was a mistake of me i was trying to make a installation for the templates but it gave a parse error too
|
|
#8
|
||||
|
||||
|
Why do this? There's already two hacks like this. The Shinra one already has a donate add-on and the Gold one I converted all the current add-ons for it to use. THis is very pointless.
|
|
#9
|
||||
|
||||
|
Word up, DVincent.. :rambo: *kills hack*
|
|
#10
|
||||
|
||||
|
easy to avoid parse errors, add a semi-colon or a } somewhere.
*Furtherly kills hack.* |
![]() |
|
|