PDA

View Full Version : Theif Mod


MajorFm.com
07 Jan 2005, 00:37
Can it be set so you can't steal from a particuler usergroup?

Link14716
07 Jan 2005, 01:28
Not yet, but it is set up on my dev board, and will be in the next major release.

MajorFm.com
07 Jan 2005, 15:07
look forward to this...

fly
11 Jan 2005, 17:47
I added that to my board with a file edit. Is it cool to post what I did?

Zachery
11 Jan 2005, 18:05
You are more than welcome to share your mdos / addons :)

fly
11 Jan 2005, 18:40
Okay, here's what I did to prevent theives from stealing from mods/admins. Never posted anything I hacked up, so hopefully this is the right format...

In /uttstore/action.theif.php find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



REPLACE it with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



ADD underneath:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Change the message to whatever you want, the script doesn't really ban them for that. I just thought it was funny.

This will prevent anyone from stealing from mods or admins.

docvader
11 Jan 2005, 19:07
Doesn't work. But I like the idea.

fly
11 Jan 2005, 19:16
Doesn't work. But I like the idea.
OH! I think I know what I forgot. Hang on...

edit: Should be fixed now. I did this a while ago and forgot exactly what I had done...

MajorFm.com
11 Jan 2005, 21:24
can you set this to usergroups to? instead of just mods and admin?

Link14716
11 Jan 2005, 21:24
OH! I think I know what I forgot. Hang on...

edit: Should be fixed now. I did this a while ago and forgot exactly what I had done...
This will be in 0.96 actually whenever it is released. I'll be an option for Thief and Change Other User's Custom Title.

fly
11 Jan 2005, 21:56
can you set this to usergroups to? instead of just mods and admin?
Yeah, just follow the format in that IF statement...

Add another: || $thefted[usergroupid]==????????

MajorFm.com
11 Jan 2005, 22:10
Great, thank you for shareing this!

Lionel
29 Apr 2005, 18:04
Thanks. I automatically give 200 points to new users and they are being ripped off. Can it also be made that you cannot steal from anyone with less than 10 posts?

fly
29 Apr 2005, 18:44
Thanks. I automatically give 200 points to new users and they are being ripped off. Can it also be made that you cannot steal from anyone with less than 10 posts?
Yeah, that should be pretty easy to do. I'll try to remember to look at it after work, unless someone else posts it before that.

fly
02 May 2005, 20:10
Thanks. I automatically give 200 points to new users and they are being ripped off. Can it also be made that you cannot steal from anyone with less than 10 posts?
This hack assumes that you haven't installed the code I posted above...

In action.thief.php find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



REPLACE with:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


Add under:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Lemme know if you also used the code I posted earlier in this thread and I'll adjust it...

btw, I can't test this right now, but the code is simple. It should work without issue.

Lionel
03 May 2005, 04:15
Thanks. This is how I did it earlier.


$thefted = $DB_site->query_first("SELECT userid, usergroupid, username, ".$vboptions['uttpoints_pointsfield']." AS points FROM ".TABLE_PREFIX."user WHERE posts > 0 AND ".$field."='".addslashes($data)."'");
if (!isset($thefted['userid'])) {
$message = "User does not exist <br />or, You may not steal from users with less than 10 posts.";
uttstore_print_end_message($message);
}

fly
03 May 2005, 13:16
:cool: