vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - IBank - Simple, Flexible, Integratible bankin system for any cash system! (https://vborg.vbsupport.ru/showthread.php?t=122729)

nix 12-10-2006 06:35 PM

I'm having members complaining that the bank is stealing money away from the. I looked through it and can't find anything wrong with it. Any ideas? Using it with vbookie if that helps.

davidw 12-10-2006 06:59 PM

Is it for members who have 1,000 points/$/whatever or more and then they are down to 1-10 points/$/whatever?

nix 12-10-2006 07:01 PM

Yea.

davidw 12-10-2006 07:14 PM

Curious, what version of PHP are you running? The same thing is happening to me? I'm running 5.1.2 and I am curious to see if it is a PHP issue.

nix 12-10-2006 07:20 PM

4.4.3

This is just one example.

Quote:

it says i only have $1.01 in the bank when last night had $1005

davidw 12-10-2006 07:26 PM

I rewrote a bunch of the code to try to fix that issue, which I don't see how it even exists in the first place. However, I am going to work on add a cron job and have it handle the interest and that may fix the problem (crosses fingers).

nix 12-10-2006 07:30 PM

I can't remember if I downloaded the zip you posted or the main zip file. Are they both the same?

Kat-Sybermoms 12-11-2006 05:09 PM

It looks like we are having the same problem. What is the fix?

nix 12-11-2006 05:42 PM

Also if a user has more then $1000 in the bank they only get .01 for interest.

davidw 12-11-2006 06:00 PM

don't know yet

Blaine0002 12-11-2006 06:23 PM

Thanks for your continued help on this product, i have had my hands tied together by other modifications :) (plus im terrible at crons)

chkdgate 12-12-2006 06:54 AM

Blaine, you ever thought about marrying both IBank and ICash as one product?

Blaine0002 12-13-2006 06:16 PM

I prefer them individual, that way you can use only one if need be.

GSPFAN 12-15-2006 11:47 PM

any updates for this product?

GSPFAN 12-16-2006 01:19 AM

Quote:

Originally Posted by chkdgate (Post 1048067)
Blaine, I finally got IBank to work. The problem was that I wasn't linking ibank.php to my navbar. The only issue now is that it doesn't show up in my admincp menu. It's clickable and functionable but not visible. The other part is that I see on your setup you have it to where the interest incriments in a specific time but my option is only for 24 hours (1 day). Is this right?

*installed*


Anyone know how to link ibank.php to the navbar?

TYorke 12-17-2006 06:33 AM

Though I do have this one working on my forums, it would be helpful if the instructions were a little more clearer as to what exactly is this "money row"

I had to look in my SQL database that this row was "vbookie_cash" for my system (vbookie)

Kat-Sybermoms 12-18-2006 10:13 PM

Quote:

Originally Posted by GSPFAN (Post 1139515)
Anyone know how to link ibank.php to the navbar?

You edit the nav template. I believe the instructions are somewhere in this thread, because I figured it out thanks to the instructions here, and I am seriously new at installing hacks.

chkdgate 12-20-2006 05:06 AM

Quote:

Originally Posted by GSPFAN (Post 1139515)
Anyone know how to link ibank.php to the navbar?

Find this in your navbar template:
PHP Code:

<div align="center">
    <
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    <
tr align="center">
        <if 
condition="$show['member']">
            <
td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
        </if>
        <if 
condition="$show['registerbutton']">
            <
td class="vbmenu_control"><a href="register.php$session[sessionurl_q]rel="nofollow">$vbphrase[register]</a></td>
        </if> 

Add this code below it:
PHP Code:

<td class="vbmenu_control"><a href="http://www.yoursite.com/forums/ibank.php">IBank</a></td

The url is where your IBank.php file is resting. For those users who are running cmps, I would recommend you place it in your "site navigation" module like I have it here. I used to have it in my navbar but then it started to get cluttered. Plus, I didn't want to use double navbars anyways.

Note: This is just a basic location that will appear to the right of your User CP link that's first in line by default. Depending on your taste, you can place this anywhere you wish.

MoMan 12-23-2006 05:46 AM

To get the interest to work for amounts above 1000, simply delete this around line 60:

PHP Code:

$bankmoney number_format($bankmoney,2); 

Turns out that this also fixes the depost/withdrawl >1000 bug :) I'm not a PHP guru, but this worked for me...

Blaine, ibank is a great script, but you really should update the release with this fix.

davidw 12-23-2006 11:08 AM

Quote:

Originally Posted by MoMan (Post 1143840)
To get the interest to work for amounts above 1000, simply delete this around line 60:

PHP Code:

$bankmoney number_format($bankmoney,2); 

Turns out that this also fixes the depost/withdrawl >1000 bug :) I'm not a PHP guru, but this worked for me...

Blaine, ibank is a great script, but you really should update the release with this fix.

That's weird that it would fix the bug, but if it does, great. I will test this out myself.

davidw 12-24-2006 12:36 PM

I couldn't get that to fix it for me - not on the version I'm running. In fact, after changing that, whenever I deposit 1000 into the bank, I don't actually deposit anything, yet my bankmoney goes up by 1.

Here's the one I'm using with the similar fix made.

Edit: leaving it uncommented out does the same thing.

MoMan 12-24-2006 08:19 PM

Heh, deposits don't work for me using your script. Strage...

Also, are there any fixes around for the interest payments? They really need to use crop :alien:

Edit: my version is attached. Note that I renamed it to bank.php :)

brownafroduck 12-28-2006 05:58 AM

I am experiencing the same thing that christianb is experiencing.

Other than that, thanks so much for this. Exactly what I was looking for down to the last line of code. :)

Mark Smith 01-01-2007 05:46 PM

Anything above 1,000 doesn't deposit. The Max I can deposit is 999.99
Anyone got a code which could add the users 'money' into MEMBERINFO?

shrek1609 01-04-2007 11:41 AM

I have a bit of a problem with this... when members deposit money into the bank after a few days it steals the points...

Now i use the icash points system and the points they can exchange for mobile phone accessories out of my web shop...

Well i don't mind one bit their points get stolen but the members aren't too happy :lol:

Any help would be appreciated :D

thanks

kev :D

Blaine0002 01-04-2007 06:21 PM

points in total? or points just in the bank.

shrek1609 01-04-2007 06:40 PM

Quote:

Originally Posted by Blaine0002 (Post 1150778)
points in total? or points just in the bank.

Its just the points in the bank...

thanks

kev :D

brownafroduck 01-04-2007 08:18 PM

I have had a few users that are experiencing the same thing. Someone just lost a couple thousand points from the bank. Additionally, I am still having issues with the 999 deposit. I don't know if these things are somehow related, but it seems that when users deposit over 999 points in the bank, this event is related to their points disappearing. Perhaps it is just coincidence.

Blaine0002 01-05-2007 12:27 AM

just one more question, do they loose the money when they gain intrest or when they deposit the money.

brownafroduck 01-05-2007 05:41 AM

Not sure... I'm still collecting clues about this entire thing. I don't think that it is when they deposit the money. Because a few of the members have said that they deposited the money, then the following day it was gone, I am going to assume that it is when the time rolls around for interest that the issue arises. But this is all based on assumption. I myself have not experienced issues with the bank, though there was one incidence of disappearance of my own money when I first set it up. I just blamed that on my faulty operation of the bank, though.

eNforce 01-05-2007 06:14 AM

Nice little mod.

Is it possible to transfer everyones vbux deposited points to the ibank ?

Blaine0002 01-05-2007 05:57 PM

Im sure this can easily be achieved by running a simple query, but sadly i am at school right now, so i can not look into it.

I will also look at the code that gives interest once i get home, probably just a faulty number somewhere.

Actually I have a lan party tonight, ill see what i can do during class :lol:

Blaine0002 01-05-2007 06:21 PM

updated, removed alot of unnessary stuff. try now.

brownafroduck 01-05-2007 06:37 PM

Thanks sooo much. :) I'll try it this later tonight or this weekend, depending on when I get around to it, and I'll let you know how it goes.

al7bar 01-08-2007 02:02 AM

how do we upgrade ?
I had an earlier version .

Do I just import that it

Will it loose money from members accounts by doing this ?

Blaine0002 01-08-2007 02:45 AM

nope.

nothing will be lost.

davidw 01-08-2007 05:24 PM

I got a fix :)

This fixes the 1000 point bank issue and should some others as well. I've successfully tested this a few times and it works.

Blaine0002 01-08-2007 05:40 PM

thanks! what was the problem?

davidw 01-08-2007 06:03 PM

It had to do with the interest - it was double compounded - the way it was set up, I could deposit or withdraw the money that was there - but it would display 1/1000th the amount
4.03 would actually represent 4030.00 for example. I could withdraw 1000, and it would withdraw it, but it would only add 1, and by the same token, I could deposit 1000 back but it would only take off 1 (because of the double compound).

I fixed the deposit and withdraw configurations so that it would be strict on that; if you had 4.03 in the bank, you could only take 4.03 - and then fixed the double compounding.

My next idea on this is to work a cron job to automatically handle the interest rather than the way it is set up now. It takes a refresh on the screen to recalculate it and will sometimes display things such as -14 days. A cron job should fix this. Just have the interest based on the difference between the deposit time and when the cron is run.

Blaine0002 01-08-2007 06:06 PM

Thanks for your help.
Yes i do agree with you on the cron, but that would need to run only about every 10 minutes.


All times are GMT. The time now is 09:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01286 seconds
  • Memory Usage 1,828KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete