Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - spearfish

Pages: [1]
1
Requested additions / Re: SMFShop for 2.0 Beta?
« on: May 22, 2008, 06:18:04 am »
not AFAIK.  and dan's pretty busy.

2
Items / Re: Item Request: add a word/phrase to the board censor...
« on: May 20, 2008, 10:14:01 am »
Alright alright alright

I'll *consider* this ;-)

~~~

Okay, I thought about it; and came to the conclusion that it would be very, very open for abuse.  Maybe if I hammer out some security measures I'll do it; but it's near the bottom of my docket.

3
Items / New Item: Steal Logged In Time
« on: May 20, 2008, 09:50:19 am »
Huh, I already posted this here but it didn't seem to register.  Got deleted or something....

Anyways, this mod allows you to steal logged in time from another user.

And to see it in action; you can go here:
http://www.stupidforumtricks.com/forum/index.php?action=shop
(Need to register first though)

Although posting in this topic should get you help soon.

Thanks,
-Spear

4
Items / Re: Item request: Decrease Karma
« on: May 19, 2008, 10:46:19 am »
Hmm.... seems nice and simple.  If you have any knowledge of a text editor + ftp program....

Edit /Sources/shop/items/IncreaseKarma.php

Change:

Code: [Select]
class item_IncreaseKarma extends itemTemplateto
Code: [Select]
class item_DecreaseKarma extends itemTemplate
and....

Code: [Select]
db_query("

UPDATE {$db_prefix}members

SET karmaGood = karmaGood + {$item_info[1]}

WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__);

return 'Successfully increased your Karma by ' . $item_info[1] . '!';

to

Code: [Select]
db_query("

UPDATE {$db_prefix}members

SET karmaBad = karmaBad + {$item_info[1]}

WHERE ID_MEMBER = {$ID_MEMBER}", __FILE__, __LINE__);

return 'Successfully decreased your Karma by ' . $item_info[1] . '!';

~~~

Then save that as DecreseKarma.php and upload it to where all the other items live.  I'm not going to bother to make a package for this because there's probably not that great of a demand.... Sorry.

5
Requested additions / Re: Many Requests!
« on: May 19, 2008, 10:38:53 am »
1. Sounds insanely difficult - probably would have to be some wizardry with both cron and AJAX
2. Similar to the insurance item....

6
Requested additions / Re: Member Fight!
« on: May 19, 2008, 10:36:07 am »
Yes....

The way I see it is that you could either:
1. Go by total posts matched against a predefined constant (e.g., 500 posts means a 5.00% chance of success)
2. Have the % chance be the user's % of the total posts.... or twice their percent, whatever.  Might be slow to process though if you have a lot of members....

7
Requested additions / Re: Property market.
« on: May 19, 2008, 10:30:19 am »
Interesting.... I'm free right now and considering what to start on.... I'll think about it.

8
Items / Re: New items: Red Balls
« on: May 19, 2008, 08:25:34 am »
Should be easy enough.... replace "posts" with "money" or something like that.

9
Items / Re: Item Request : Sell my Soul
« on: May 19, 2008, 07:18:47 am »
Old post.... I know.  But I took this idea and made it reality.

http://www.stupidforumtricks.com/forum/index.php?topic=3

10
Items / Re: destory inventory item
« on: May 19, 2008, 05:16:27 am »
Hmm... looks about right.

I noticed one problem.

The "class displayMessage" part should be changed to something like "class destroyStuff".

That's because the class declaration has to match the filename (e.g., HelloMyNameIsFred.php would need to have "class HelloMyNameIsFred extends.... at the top")

Other than that pretty good; just watch out it'll clear the whole inventory.

11
Items / New Item - Steal Logged In Time
« on: May 19, 2008, 05:13:00 am »
Hi guys,
My first mod, item, or anything really!

This is, quite simple, an item that allows you to steal logged in time from another user.

Features:
  • Allows forum admin to set % chance of a successful steal
  • Allows forum admin to set the amount of time stolen
  • Takes karma away from robber - this amount is determined by the forum admin when setting up the item
  • Can be a different amount of karma lost for both successful and failed steals (and by setting this to zero, you can eliminate the loss of karma)
  • Sends PM to the victim

Release notes:
~No image included, but I like to pair the IronDevil.gif image with this
~Will not allow a user's time to go below zero
~NOT a SMF package.  You must FTP in the file

To install the item; FTP it into the directory where your items live.
Assuming that your SMF directory is example.com/smf; the script needs to go into example.com/smf/Sources/shop/items where it will stay happily ever after.

Current version is 1.0

Thanks,
Spear

~~~
I should be checking back here often.  There's also a release topic on my newborn website here.
If something is urgent; that might be a good place to post / look for known bugs.


12
Items / Re: Send PM to a specific member
« on: May 19, 2008, 05:06:45 am »
Sounds a lot like the egg item.  You should check that out.

Pages: [1]