PDA

View Full Version : Different Version of the Points Hack


Neo
03-02-2002, 10:00 PM
OK here it is. Its a smaller version I made of the points hack by shinraonline.com

Installing :

----
do this mysql query:
####

ALTER TABLE `user` ADD `points` MEDIUMINT(20) NOT NULL AFTER `password`;

####

once that is done you need to edit admin/functions.php

####

under :
----
if ($post[hascustomavatar] and $avatarenabled) {
$avatarurl="avatar.php?userid=$post[userid]& dateline=$post[avatardatelin
e]";
} else {
$avatarurl="";
}
}
----
add then save:
----
if ($post[usergroupid]==5 || $post[usergroupid]==6 || $post[usergroupid]==7) {
if (ismoderator($forumid)) {
$adminmodop = "<a href='mod/givepoints.php'>Give Points</a>";
} else {
$adminmodop = "";
}
}
----

####

now go into your postbit template and add right under $post[posts]
----
<br><u>Points:</u> $post[points]<br>
$adminmodop<br>

----

save it

####

then upload givepoints.php to your
mod dir and there you have it.

####

Small. Simple.

ReEdited File. 03/04/02

Admin
03-03-2002, 09:59 AM
Why are you only allowing mods to be given points?

Neo
03-03-2002, 10:07 AM
...|| $post[usergroupid]==6 || ...
^^^^^^^^^^^^
ADMIN ID

the reason I am posting this also, is because I am going to give people a break and have a small store... somewhat like shinra onlines one... but the only item will be a custom avatar.

Admin
03-03-2002, 10:10 AM
Shouldn't the code be like this?
if ($bbuserinfo['usergroupid']==5 || $bbuserinfo['usergroupid']==6 || $bbuserinfo['usergroupid']==7) {
$adminmodop = '<a href="mod/givepoints.php">Give Points</a>';
} else {
$adminmodop = '';
}
and place givepoints.php in the mod folder, because mods can't access the admin folder?

Neo
03-03-2002, 10:14 AM
errr... ahh i forgot about that didnt I.. I had it on my forums so only admins could use it... "good eye firefly"

sleepbirdcyp
03-03-2002, 11:05 AM
not working

Reciever Name: Admin
Gil Amount: 10

when i click the "Give Points" botton it gonna white page!

???

Neo
03-03-2002, 11:45 AM
Errr.... give me a few.... damn hack....