View Full Version : Get Points by Posting (Points Add-On)
Iguacu
03-09-2002, 10:00 PM
This hack adds to Shinra Points hack by PalmeroftheTurks. I take no credit for his great hack. You do need it installed for mine, though.Mine adds to the field you used for that hack for each post or new reply. You can have different values for new threads and new replies. I was originally told that someone had already posted this, but after receiving quite a few IMs and PMs I am reposting it.
So anyways, tweak it if you want, I'm a PHP newbie and it's my first hack.
Tested on:
2.2.4
2.2.1
I don't see any reason why it shouldn't work on any other vB above 2.0
Psychdrone
03-10-2002, 02:40 AM
WTF, dude this has been released twice, maybe even more then I know of
next I am gonna release it
sheshh
Iguacu
03-10-2002, 03:18 AM
sorry I didnt know
as I said, if it was released, a mod should delete it
so please delete this thread
Floris
03-10-2002, 08:18 AM
Bummer, because the other stuff had too many features and this was a more simple one, one I was looking for maybe .. pff.
Iguacu
03-11-2002, 12:37 AM
if anyone wants the hack IM me at iguacu3948 ...
Elanor
03-20-2002, 12:13 AM
Hooray! I love you, man! Uh, I mean, I love the hack XD
Thanks for sending. It works wonderfull.
Psychdrone: Uh, sorry guy, but are you talking about the /same/ points hack? I searched the whole board, but couldn't find it. Could please post a link to the specific threads?
nice hack, where can i find it?
where is the other hack or can someone post this one please?
Iguacu
03-28-2002, 05:05 PM
im reposting it, after getting a lot of IMs about it...
Austin Dea
03-30-2002, 12:08 AM
Bah, took it outta that sill rtf format. (with his permission...I don't know why he did that...)
Iguacu
03-30-2002, 12:15 AM
sorry, i have a mac, and i could only save the TextEdit file as RTF. download his. thnx austin for posting that
BigJohnson
03-30-2002, 02:00 AM
nice hack but they dont work with the quick thread and quick reply's is there someway u can make them work with it
Iguacu
03-30-2002, 03:28 AM
i've been working on that... and i havent found a solution yet:(
if anyone knows of a way, please tell me!
or just post your revised version:p
Velocd
04-01-2002, 03:23 AM
Yes, I have been wondering this for awhile to since I got the hack from Iguacu. Somebody please make it so quick reply and quick thread give you points :)
Austin Dea
04-02-2002, 01:55 AM
ok, I don't know about quick thread, but i fixed the quick reply box...but I have another problem...when someone edits a post, it adds too....i have no idea how to fix that, and i don't think it was because of what i did...
anyways....
Find in root/showthread:if (!$getperms['canviewothers'] and $thread['postuserid']!=$bbuserinfo['userid']) {
show_nopermission();
}
Add under it
// start gil
$pointfield="field5"; // set this to the point field you used for the points hack
$giladd=3; // set this to the amount of gil you want a user to receive per newthread
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if ($gil='') {
$gil=0;
}else {
$postgil = ($gilamt + $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");
}
with your values set, etc...
That fixes the quick reply box problem, but I don't know why it adds when you edit too...
Austin Dea
04-03-2002, 02:43 AM
Ok, undo what I said above if you did it, cuz now when you refresh a page, it adds on, and when you re-visit a thread you've posted in, it adds 15(in my case, 3x the reg amount)
So, take out [php]// start gil
$pointfield="field5"; // set this to the point field you used for the points hack
$giladd=3; // set this to the amount of gil you want a user to receive per newthread
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if ($gil='') {
$gil=0;
}else {
$postgil = ($gilamt + $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");
}
[\php From your showthread.php.
Austin Dea
04-03-2002, 02:43 AM
Ok, undo what I said above if you did it, cuz now when you refresh a page, it adds on, and when you re-visit a thread you've posted in, it adds 15(in my case, 3x the reg amount)
So, take out // start gil
$pointfield="field5"; // set this to the point field you used for the points hack
$giladd=3; // set this to the amount of gil you want a user to receive per newthread
$gilstr=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid='$bbuserinfo[userid]'");
$gil=$gilstr[$pointfield];
$gilamt=$gilstr[$pointfield];
if ($gil='') {
$gil=0;
}else {
$postgil = ($gilamt + $giladd);
$DB_site->query("UPDATE userfield SET field5='$postgil' WHERE userid='$bbuserinfo[userid]'");
}
From your showthread.php.
Iguacu
04-03-2002, 03:05 AM
you could have used
if ($HTTP_POST_VARS['action']!=="editpost") {
but yeah, the reload thing is a problem... as i said, i'm new to PHP, ill try to learn more and find a solution...
Vivi Ornitier
04-03-2002, 03:17 AM
Guys, it's so much easier than all that crap you posted. All you have to do is add 2 lines of code, 1 to reply.php and newthread.php
I can give you the code if you want.
Scrub
04-03-2002, 03:19 AM
LMAO. :D
ExAvIoUr
04-03-2002, 09:14 AM
hey man i get this error
Parse error: parse error in /home/virtual/site4/fst/var/www/html/forums/newreply.php on line 450
????
i have followed the instructions carefully..
ExAvIoUr
04-03-2002, 09:14 AM
and on line 450 there is '?>'
the closing of the entire php..
ok... did u deleete all the slashes the file made... download the second attachment not the first
Vivi Ornitier
04-03-2002, 12:41 PM
Ok, then I will give you the code:
Find this in newreply.php:
$DB_site->query("UPDATE user SET
".iif ($foruminfo[countposts],"posts=posts+1,","")."
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
And place this underneath it:
$DB_site->query("UPDATE userfield SET
fieldX=fieldX+? WHERE userid='$bbuserinfo[userid]'");
Just change the X to the appropriate number, and the ? to the amount you want added.
For newthread.php, just find the same thing and place that under it, also.
Velocd
04-03-2002, 04:16 PM
Sweeet, I'm about to try. But does this code totally replace the original hack, or just fixes the quick reply problem?
UPDATE!
There is still the problem of editing your post that gives you points, when it shouldn't.
Oh great Vivi please save us!
Vivi Ornitier
04-03-2002, 08:42 PM
Hmm, I never knew that it had that problem. I'll have to look at the code and see it it's possible to fix that error.
Hmm, I just edited one of my posts at a board that uses that hack, and it didn't add any points for the edit...
Velocd
04-03-2002, 11:20 PM
hmmm, thats odd its not doing if for me either. I could have sworn it added points when I did it earlier..strange.
Hey Vivi, I have one last request for you if this is all possible. Could you make it so every time you level up (this is using the HP/MP/EXP hack now) the amount of points you get per reply/thread increases?
Say at level 8 you get 6 points per reply/thread. Level 9 you get 7. Lvl 10 you get 8. etc. Ofcourse these values can be changed.
:p
Iguacu
04-04-2002, 03:06 AM
if ur having that problem just use:
if ($HTTP_POST_VARS['action']!=="editpost")
{
vivi's hack here
}
Shroomboy
04-09-2002, 09:36 AM
Vivi... iposted that exact same hack... and it wasn't mine... you dont have the right to use it as yours.. and yesit was posted on your name... b/c i was on that name when i ran my VBB illegally... man you like taking credit for things you didn't do...
along with your illegal VBB... yea 1 person is suppose to be using that account and he can't make VBB hacks... I knowhim... so you are usin your VBB illegally...
Vivi Ornitier
04-09-2002, 12:56 PM
I didn't write it and I'm not getting credit for it. I was posting it for other people. My friend actually wrote that for his board, and he gave it to me. I never said I wrote it, but that's how easy it is.
Shroomboy, what is your problem?
Dark Odin
04-24-2002, 11:28 PM
Just a small request. Can anyone write up something so that a user starts with so many points. Like, I want all new members to start with 75 gil. Anyone know how to do this?
Iguacu
04-29-2002, 06:39 PM
set it as the default in phpMyAdmin
Dark Odin
04-29-2002, 07:11 PM
I don't have phpMyadmin. Can anyone tell me the query to run?
Iguacu
05-06-2002, 08:27 PM
err... i dont know:( sorry
pootie4u
05-07-2002, 03:49 AM
:cry: .... it wont work for me...
MrBojangle1
12-11-2002, 01:34 PM
how do u get it to work with quick reply?!
MrBojangle1
12-11-2002, 02:11 PM
it only works with the regular reply, i need it so it works with the quick reply also
MrBojangle1
12-11-2002, 03:14 PM
*bump*
MrBojangle1
12-11-2002, 07:35 PM
sum1 plz! help!!
NexDog
12-12-2002, 01:40 AM
Solution was in the first page wasn't it?
MrBojangle1
12-12-2002, 01:46 AM
no he said not to do it.... and it didnt work for me
MrBojangle1
12-12-2002, 07:08 PM
*bump* Someone plz help!
gwhooooey
05-02-2003, 04:55 AM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=52437" target="_blank">https://vborg.vbsupport.ru/showt...threadid=52437</a>
...would anyone be able to do something like that?
superman
06-09-2003, 02:14 AM
Has anyone tried this on 2.3.0? I tried, and I couldn't get it to work. if you know any modifications that need to be made... lemme know ;)
superman
06-10-2003, 04:31 PM
works fine now, it does work on 2.3.0 ;)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.