vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   uCash & uShop old support and thank you thread (https://vborg.vbsupport.ru/showthread.php?t=73736)

Link14716 06-27-2004 05:41 PM

Quote:

Originally Posted by House_of_Crazed
Hm, I'm starting to wonder if I'm being ingored on purpose.

And FYI - Your license hash thingy on GeekyDesigns isn't working. I verified myself last night, then checked this morning, still don't have access. O_o

HoC

You are not being ignored on purpose. And I checked in the admincp and you are marked as Licensed.

Quote:

Originally Posted by House_of_Crazed
Couple questions :)

1. I see in ushop.php the $points variable, however, it only takes in account for the money the users has out from the bank. What I want to do is to change it to take in account for the money that users also has in the bank. What should I change it to?

2. What is the variable that you are using for how much money the user has in the bank? I looked in the database and saw all those weird numbers in the bankdata row in the user table. I am assuming you are also using $bankdata as the variable for how much money is in the bank for the user.

3. You are aware that the database is showing more than 2 numbers after the decimal in the bank / money on hand.

4. For this, I will use A & B's. Assume those 2 are 2 different people. A has $50 on hand. If A tries to steal $100 from B, and FAILS. He will lose that amount of money, and his money on hand becomes a negative number and A will be denied access to the bank. However, A does have money in the bank, he should be able to go into the bank anyway.

HoC

1. It'd be a simple change to everywhere $points is defined, but the code below just makes a new variable - $bankmoney. $points shouldn't include what is in the bank, otherwise it'll cause weirdness all over the store. Feel free to store $points + $bankmoney in a new variable though.
PHP Code:

$bankdata unserialize($bbuserinfo['uttstore_bankdata']);
$bankmoney $bankdata['amount']; 

2. The above code should answer your question. uttstore_bankdata is a serialized array.

3. Yes, I am away of that. Not a bug in itself, but it can cause some. I'll probably round it off in future releases.

4. That shouldn't happen, as it should prevent users to steal more money then they have. But I am making 0 just mean to not check to see if they have enough money at all in the next release anyways, just incase someone does go into negatives (although they shouldn't, I've seen it happen).

House_of_Crazed 06-27-2004 05:58 PM

Quote:

Originally Posted by Link14716
You are not being ignored on purpose. And I checked in the admincp and you are marked as Licensed.

Oh, that's odd. Well, when I verified myself, I gave myself like 2 or 3 hours to give you guys time for whatever verification system you used, lol, to verify me. And I still could not post a thread or reply. *shrugs*

And reason why I said being ignored on purpose is because I posted this like a few days ago and I've seen you guys reply to other posts. *shrugs* I just don't like being ignored :) Don't take offense

Quote:

1. It'd be a simple change to everywhere $points is defined, but the code below just makes a new variable - $bankmoney. $points shouldn't include what is in the bank, otherwise it'll cause weirdness all over the store. Feel free to store $points + $bankmoney in a new variable though.
PHP Code:

$bankdata unserialize($bbuserinfo['uttstore_bankdata']);
$bankmoney $bankdata['amount']; 

2. The above code should answer your question. uttstore_bankdata is a serialized array.
Yea, it does, I'll give this a try.

Quote:

3. Yes, I am away of that. Not a bug in itself, but it can cause some. I'll probably round it off in future releases.
Excellent :) I'm asking because my users came to me complaining that they cannot deposit all their money (i.e., 140.30), it would tell them that they do not have enough money.

Quote:

4. That shouldn't happen, as it should prevent users to steal more money then they have. But I am making 0 just mean to not check to see if they have enough money at all in the next release anyways, just incase someone does go into negatives (although they shouldn't, I've seen it happen).
Yea, I've been sitting here trying to figure out the code, but I'll let you do it, LOL since you are more inimiate with the shop code, not I.

Thanks! :)

HoC

Zachery 06-27-2004 06:23 PM

Quote:

Originally Posted by House_of_Crazed
Oh, that's odd. Well, when I verified myself, I gave myself like 2 or 3 hours to give you guys time for whatever verification system you used, lol, to verify me. And I still could not post a thread or reply. *shrugs*

And reason why I said being ignored on purpose is because I posted this like a few days ago and I've seen you guys reply to other posts. *shrugs* I just don't like being ignored :) Don't take offense



Yea, it does, I'll give this a try.



Excellent :) I'm asking because my users came to me complaining that they cannot deposit all their money (i.e., 140.30), it would tell them that they do not have enough money.



Yea, I've been sitting here trying to figure out the code, but I'll let you do it, LOL since you are more inimiate with the shop code, not I.

Thanks! :)

HoC

Are you still having the problems? we both checked and my test licensed user is not having any problems.

If you have the time could you drop me a pm if your still having troubles

hichew 06-27-2004 06:53 PM

can i see the working hack on someone forums ?

b4ne 06-27-2004 07:05 PM

Just to let ya know works all fine, I was lucky and had a virgin forum so I just reinstalled forum completly and made a new install of the hack.

Its fecking sweeeet :)

Thanks to all of you who made this hack working

Zachery 06-27-2004 07:32 PM

Quote:

Originally Posted by hichew
can i see the working hack on someone forums ?

I dont think we have any offical demo sites.

However,
I wanted to announce toe veryone that the license system is now completly working :D i fixed that one little bug :d

Cold Steel 06-29-2004 01:28 AM

/me installs.

Awesome - thanks!

For anyone who's wondering, Lesane's Storehack used "storep" as the table for points.

y2krazy 06-29-2004 01:44 AM

Quote:

Originally Posted by Zachery
I dont think we have any offical demo sites.

However,
I wanted to announce toe veryone that the license system is now completly working :D i fixed that one little bug :d

Well, if you'd like a "demo", without the "demo", you can check out my forums:

http://forums.wickedart.org/

Also, what is this licensing that you speak of?

:confused:

-y2k-

Cold Steel 06-29-2004 02:01 AM

In my postbit, $points doesn't show anything.

I used the standalone installer on 3.0.1.

I'm using the storep table from Lesane's storehack, if that makes a difference.

Zachery 06-29-2004 02:04 AM

Quote:

Originally Posted by Cold Steel
In my postbit, $points doesn't show anything.

I used the standalone installer on 3.0.1.

I'm using the storep table from Lesane's storehack, if that makes a difference.

It shouldnt, did you do the edits to functions showthread and showthread (if there are any)


All times are GMT. The time now is 09:12 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.02847 seconds
  • Memory Usage 1,762KB
  • 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
  • (2)bbcode_php_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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