*
of 3
Next | Last
   All Buggers   My Buggers Bugs Features Help  
 #12 » Quarterly display has zero goal
 Date Open: May 02, 2008 08:06:07 Last Update: May 06, 2008 23:50:26 Bugger Off: May 02, 2008 11:42:25 
 Description: If I show my treasury on monthly, then it shows the goals ($26.50 per month)
If I show it on quarterly, then it shows the goal as $0.00. I don't know why..
 Request: Bug
 Application: Mod
 Mod: Treasury
 Version: 2.09
 Solution: Confirmed - silly coding error present in all versions as well as the block.

If you're comfortable editing a file,
For BoardDirectory/Sources/Treasury.php file - approx. line 208 find
for($i=$start; $i<=$end; $i++) {
and replace with
for ($i=$start; $i<=($start+$end-1); $i++) {

For DonationBlock.php, approx. line 67 find
for ($i=$startb; $i<=$endb; $i++) {
replace with
for ($i=$startb; $i<=($startb+$endb-1); $i++) {
 Bugger From:Thelic
 Debugger:Resourcez
 DiscussIt Forum: Treasury
 DiscussIt Topic: Quarterly display has zero goal
 Status: Done
 Priority High
 Topic Replies:
 Resourcez
 May 02, 2008
 09:36:03
Confirmed - thanks for using Bugger  :)

I'm not sure what has happened there, yet, possibly something I've introduced with changes to events.  I shall investigate.

Quite perplexing - monthly, half-yearly and yearly all work okay.
 Resourcez
 May 02, 2008
 11:38:40
Turns out it was a silly coding error by me that's been there right from the start and only reveals itself when you hit the second quarter of the year.  Applies to all versions as well as the block.

If you're comfortable editing a file,
For BoardDirectory/Sources/Treasury.php file - approx. line 208, find
Code: [Select]
for($i=$start; $i<=$end; $i++) {and replace with
Code: [Select]
for ($i=$start; $i<=($start+$end-1); $i++) {
For DonationBlock.php, approx. line 67, find
Code: [Select]
for ($i=$startb; $i<=$endb; $i++) {replace with
Code: [Select]
for ($i=$startb; $i<=($startb+$endb-1); $i++) {
 Thelic
 May 02, 2008
 12:27:04
Excellent - No problem with editing files, i've had to learn PhP and edit and/or rewrite sections of mods to get them to work with my other mods before, hehe. 

For me, in the treasury.php, it was line 421, at the very end.

It works perfectly.  Now it shows the quarterly goal, which is much more useful because we pay for things quarterly.  Thanks, Resourcez!
47 buggers listed, 31 buggered off, 16 declined, 0 on hold.
© 2007 - 2017  Bugger! by Resourcez

Please Support Us!

Something for Here
Donate with PayPal!
December Goal: $40.00
Due Date: Dec 31
Total Receipts: $0.00
Below Goal: $40.00
Site Currency: USD
 0%

Content