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 - JRSofty

Pages: [1] 2 3
1
Items / Re: Personal Interest Rates Item Available.
« on: August 01, 2007, 09:54:03 pm »
You just have to be careful for three items:

1. Any new members joined since the script has run will change the outcome by removing an extra % per user extra.

2. If a member has added money to their account would have extra money removed.

3. Honestly since the increase was a % of a lower number and the now starting numbers will be higher then more money would be removed. For example if someone had 500 credits and after the script ran they now have 1000 credits. 1% of 1000  > 1% of 500.

So you would need to find some way to split up the % to remove versus the number of times the original script ran (or the total number of members at the time of the cronjob).

OR

If all this math is too much for you (it almost is for me) I would suggest that you find who has the most money. Do a rule of thumb and remove that % from everyone. Some may end up with more than they originally had and some may end up with less but at least it would be a bit fair.

2
Items / Re: Personal Interest Rates Item Available.
« on: August 01, 2007, 05:39:35 pm »
You fell victim to this bug

http://www.daniel15.com/forum/index.php/topic,732.msg5848.html#msg5848

Just follow the replacement changes there and you will see that problem go away.

I have not yet updated the files to fix this in the actual download yet :blush: sorry been real busy with life right now.

3
Items / Re: Personal Interest Rates Item Available.
« on: August 01, 2007, 05:08:06 pm »
I had no choice my host upgraded the servers and I don't get to say anything :(

Oh well PHP4 is ending soon anyway.

I've been thinking of creating a CRON mod for SMF for people who don't know how or can't use cronjobs.

Still working out the planning for it but it might help lots of people especially those that use SMFShop.

4
Items / Re: Personal Interest Rates Item Available.
« on: July 31, 2007, 09:19:51 pm »
 ::) I thought I caught all that.

thanks for the info I'll get it fixed with the rest of the bugs for that project  O0

BTW

Is anyone having problems with the script and CRONJOB?

I'm just wondering because my host says it's my code and not their CRONTAB (what they call Cronjobs) service that is the problem.

Their excuse is that if I can call the script via the browser and it works but they call it from shell and it doesn't then it is my script's fault. Although the script was running just fine until they upgraded us from PHP4 to PHP5.

5
Items / Re: Personal Interest Rates Item Available.
« on: July 31, 2007, 06:49:14 pm »
Love the avatar ;)

Actually that is what should happen in theory but honestly I've not tested it.

6
Items / Re: Personal Interest Rates Item Available.
« on: July 19, 2007, 04:37:03 pm »
Honestly I was seeing some strange interest issues on my forum as well. I just didn't know it was this causing it ;) and didn't have time to really look for it as I have tons of other projects under way as well.

7
Items / Re: Personal Interest Rates Item Available.
« on: July 19, 2007, 01:37:39 pm »
Forgot to mention that is suppose to be in the DoInterest.php file.

8
Items / Re: Personal Interest Rates Item Available.
« on: July 19, 2007, 01:35:31 pm »
Sorry Edited my original post.

Look above for the fix.

9
Items / Re: Personal Interest Rates Item Available.
« on: July 19, 2007, 01:28:56 pm »
Hi Sc2 I'm on it. I'll have an answer for you within a day or so (hopefully).

[EDIT]

Good catch and I'm surprised I didn't catch this bug before.

Find
Code: [Select]
db_query("UPDATE {$db_prefix}members
  SET moneyBank = moneyBank + (moneyBank*{$interest_rate})", __FILE__, __LINE__);

Replace with:
Code: [Select]
db_query("UPDATE {$db_prefix}members
  SET moneyBank = moneyBank + (moneyBank*{$interest_rate}) WHERE ID_MEMBER = {$row['ID_MEMBER']}", __FILE__, __LINE__);

I forgot to put in the WHERE statement. so basically for each user people got extra interest. ;)

I'll be issuing a new version in the near future.

10
Modifications / Re: Mod: Bad Spelling Tax
« on: July 11, 2007, 10:35:56 pm »
I love it. I might actually implement something like that on my own site.

I really get ticked off by people who enter comments using SMS/IM type spelling.

I figure if someone is going to take the time to post on a forum they should at least make it so people can understand them :D

11
Requested additions / Re: Bounties.. and coding guide
« on: July 11, 2007, 10:32:07 pm »
Yep that sounds pretty confusing.

Are you planning that the release of the money to the assassin is decided upon by the originator of the contract? I don't think there is really a good automated way to handle something like this.

12
Items / Re: Personal Interest Rates Item Available.
« on: May 16, 2007, 09:07:12 pm »
I'm still working on the troubleshooting pages and I'm just back from vacation so it may be some time before they are ready.

If the CronJob is not working and interest isn't being calculated then the Mod won't work either.

13
Items / Re: Personal Interest Rates Item Available.
« on: April 28, 2007, 06:27:30 pm »
Hmm

Hadn't thought of that.

The idea is that your members can build up a higher interest rate, I had not intended any way for a way to lower it.

If you really really want to lower it and you have access to the database you can change the column in the smf_members table, other than that it is impossible.

I will take it as an idea for an enhancement on the next version.

14
Coding / Re: Several Modification Ideas
« on: April 10, 2007, 03:44:30 pm »
I personally think the copy/paste method works well. I tried using a package making software and was not happy with it at all. It wouldn't open an old package that it had already created, among other things.

Currently I do everything in my programming Text editor and I'm happy with that.

15
General SMFShop Discussion / Re: problem in item/steal.php
« on: April 03, 2007, 06:02:04 pm »
Wow at EDIT 2: when should we expect to see this? I'll need to know to update the items that I've created ;)

Pages: [1] 2 3