vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   Store hack question (https://vborg.vbsupport.ru/showthread.php?t=92185)

tarantulas 07-14-2005 06:44 PM

Store hack question
 
Hi people,

I've installed store hack with vB2. Now, I upgraded to vB3 and store hack is no longer working.

Can I use your script to so-called upgrade the store hack? Will this script use the point from database of the old store hack?

Please give me some advice if anyone has it. I'd be really appreciate it.

tarantulas

Link14716 07-14-2005 06:49 PM

Once installed, run these two queries:
[sql]ALTER TABLE user DROP uttpoints;
ALTER TABLE user CHANGE `storep` `uttpoints` DECIMAL(20, 2) NOT NULL;[/sql]

tarantulas 07-14-2005 07:35 PM

Hi Links, thanks for the reply.

um, I just installed the uShop and found out that I can specify the field used for point. so I change the field from uttponts to storep. :) easier than expected.

Link14716 07-14-2005 07:45 PM

Quote:

Originally Posted by tarantulas
Hi Links, thanks for the reply.

um, I just installed the uShop and found out that I can specify the field used for point. so I change the field from uttponts to storep. :) easier than expected.

The only problem to that is the storep field doesn't support decimal numbers. Any amount that isn't an integer (like 0.25) is rounded to the nearest integer (same example means it rounds down to 0).

tarantulas 07-14-2005 08:17 PM

Quote:

Originally Posted by Link14716
The only problem to that is the storep field doesn't support decimal numbers. Any amount that isn't an integer (like 0.25) is rounded to the nearest integer (same example means it rounds down to 0).

ic. now, i changed to what you said.

well, another question.. how do I change the word "Points" to my own currency?

store hack allowed user to set it in admin panel..

bigcurt 07-14-2005 09:00 PM

I could be very wrong so dont 100% take it from me..just try and see if it works :P I think it is these 2 phrases

I know its a phrase that does it, but I couldnt remember which..but then found these

ucs_points
ucs_points_lower

Link14716 07-14-2005 09:09 PM

Quote:

Originally Posted by bigcurt
I could be very wrong so dont 100% take it from me..just try and see if it works :P I think it is these 2 phrases

I know its a phrase that does it, but I couldnt remember which..but then found these

ucs_points
ucs_points_lower

Those are the correct phrases. :)

bigcurt 07-14-2005 09:17 PM

Nice, there is a first..I love being rite :)

tarantulas 07-14-2005 10:14 PM

Quote:

Originally Posted by Link14716
Those are the correct phrases. :)

i changed the phrases in "phrase" table of MySQL database, but it didn't change the display in the forum.

weird..



:speechless: it works now after I edited it in the admin..


it's weird that when I used SQL to edit it directly to the table, it didn't show up correctly..

bigcurt 07-14-2005 11:06 PM

Try in admin CP? Its working fine for me.


All times are GMT. The time now is 08:59 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.01665 seconds
  • Memory Usage 1,731KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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