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 04-13-2004 01:18 AM

Quote:

Originally Posted by vhoang
how to add a link to shop/point next to say "User CP" ?

It's there by default if you edited the navbar template like it said.

vhoang 04-13-2004 01:21 AM

Quote:

Originally Posted by Link14716
It's there by default if you edited the navbar template like it said.

My bad, i missed that, got it now, thanks!!!

Link14716 04-13-2004 01:22 AM

Quote:

Originally Posted by vhoang
My bad, i missed that, got it now, thanks!!!

If a lot of the links are pointing to uttstore.php - tell me, did you use the HTL?

vhoang 04-13-2004 01:23 AM

One last question, what is the difference between postbit and postbit legacy users?

Link14716 04-13-2004 01:24 AM

Quote:

Originally Posted by vhoang
One last question, what is the difference between postbit and postbit legacy users?

postbit is what is used by default - postbit_legacy is used if you enable the Legacy Postbit (userinfo on the left) in the vB Settings.

ENZcom 04-13-2004 01:30 AM

My users don't appear to be getting points after posting? Everything is enabled.

Also, every action says "out of stock" even though they're clearly not.

dstruct2k 04-13-2004 01:31 AM

Squall -- Big bugs... I managed around them all though. I suggest making sure the HTL actually MAKES the actions table before it tried to store data in it... Or at least make sure it's got the whole TABLE_PREFIX right... because running the HTL, it tried to insert data into a non-existant table.... Might be that some of the code is/isn't using TABLE_PREFIX though, because as I've learned recently, I'm one of the lucky few using a prefix. :)

Also: A mass replace in all templates of "uttstore.php" to "ushop.php" was needed. Might wanna fix that for 1.0. :)

dstruct2k 04-13-2004 01:32 AM

Quote:

Originally Posted by ENZcom
My users don't appear to be getting points after posting? Everything is enabled.

Also, every action says "out of stock" even though they're clearly not.

1. Go to one of your forums and add a "1" into the 3 boxes for forum store setting stuff.

2. Go to the action admin page and click "Update".

vhoang 04-13-2004 01:32 AM

Oh ic, very clear, thanks! I think my installation in the test forum is working great, now im going to install it on the real one. Thanks a lot u all.

Link14716 04-13-2004 01:32 AM

Quote:

Originally Posted by ENZcom
My users don't appear to be getting points after posting? Everything is enabled.

Also, every action says "out of stock" even though they're clearly not.

Read the first post.

Link14716 04-13-2004 01:33 AM

Quote:

Originally Posted by dstruct2k
Squall -- Big bugs... I managed around them all though. I suggest making sure the HTL actually MAKES the actions table before it tried to store data in it... Or at least make sure it's got the whole TABLE_PREFIX right... because running the HTL, it tried to insert data into a non-existant table.... Might be that some of the code is/isn't using TABLE_PREFIX though, because as I've learned recently, I'm one of the lucky few using a prefix. :)

Also: A mass replace in all templates of "uttstore.php" to "ushop.php" was needed. Might wanna fix that for 1.0. :)

I'm going to take out the HTL install as it seems to have more problems than its worth and the standalone installer is working just fine now.

vhoang 04-13-2004 01:38 AM

Can changing "points" to be "dollars" be done easily or no? I do want "points" to actually represent a currency. Thanks.

vhoang 04-13-2004 01:44 AM

When not logged in, we are supposed to get "No action found" for all action related to Shop/Bank right?

Zachery 04-13-2004 01:47 AM

The out of stock thing is an else setting, i forgot to add an extra setting in, it will be fixed for the next release

Link14716 04-13-2004 01:50 AM

Quote:

Originally Posted by vhoang
Can changing "points" to be "dollars" be done easily or no? I do want "points" to actually represent a currency. Thanks.

That will be a setting in 1.00, but a simple replacement variable should be able to take care of it. (You can add replacement variables in the replacement variable manager under the style manager in the admincp).

vhoang 04-13-2004 01:50 AM

Can we add items into the Shop so users can use their points to buy them?

Link14716 04-13-2004 01:50 AM

Quote:

Originally Posted by vhoang
When not logged in, we are supposed to get "No action found" for all action related to Shop/Bank right?

As a guest is not allowed to preform any actions, they are not shown. And since none are shown, that error appears.

Link14716 04-13-2004 01:51 AM

Quote:

Originally Posted by vhoang
Can we add items into the Shop so users can use their points to buy them?

What, like an itemshop? No.

Vivi Ornitier 04-13-2004 01:55 AM

link: you can't use a mass replace of templates beacuse if you replace points with gil, it'll rpelace all the variables that had "points" in them to "gil" and therefore screw everything up. Like my top 5 richest isn't showing up and everything else that formerly had a points variable is no longer showing up.

Also, everything in the store is out of stock, even though i filled their quantity to 100. However, I can buy it from the drop down in the navbar, hope to get a quick fix for this.

James Collins 04-13-2004 01:55 AM

Quote:

Originally Posted by Link14716
What, like an itemshop? No.

A pity - but I understand if you dont want to/cant with the release :)

All working fine so far in test - here goes for proper :D

Link14716 04-13-2004 01:56 AM

Quote:

Originally Posted by Vivi Ornitier
link: you can't use a mass replace of templates beacuse if you replace points with gil, it'll rpelace all the variables that had "points" in them to "gil" and therefore screw everything up. Like my top 5 richest isn't showing up and everything else that formerly had a points variable is no longer showing up.

I said a replacement variable, not a find/replace throughout all templates.

vhoang 04-13-2004 01:57 AM

Quote:

Originally Posted by Link14716
That will be a setting in 1.00, but a simple replacement variable should be able to take care of it. (You can add replacement variables in the replacement variable manager under the style manager in the admincp).

I did try this, it works, but then i cant deposit any amount into the bank. When i deposit, i type in a positive amount such as 10 and the error is "You may not deposit a non-positive amount!"

Then i delete the replacement variable and the deposit action works again.

Link14716 04-13-2004 01:57 AM

Quote:

Originally Posted by James Collins
A pity - but I understand if you dont want to/cant with the release :)

All working fine so far in test - here goes for proper :D

It's not meant to be an itemshop. It could be an addon, but not in the near future. ;)

Vivi Ornitier 04-13-2004 01:58 AM

oh, ++++ lol. I was wonderin about that too, i thought i had to do that instead of find/replace. oh well, i'll just go re-replace gil with points and add a replacement.

Link14716 04-13-2004 01:58 AM

Quote:

Originally Posted by vhoang
I did try this, it works, but then i cant deposit any amount into the bank. When i deposit, i type in a positive amount such as 10 and the error is "You may not deposit a non-positive amount!"

Then i delete the replacement variable and the deposit action works again.

Well, then I guess a replacement variable won't work. Either way, it will be a variable in 1.00.

Link14716 04-13-2004 02:00 AM

Quote:

Originally Posted by Vivi Ornitier
oh, ++++ lol. I was wonderin about that too, i thought i had to do that instead of find/replace. oh well, i'll just go re-replace gil with points and add a replacement.

vhoang is right here, that won't work either. Sorry. :)

You can do it the "hard" way, though. It shouldn't take too many template edits. Or wait a few days/weeks for 1..00. ;)

vhoang 04-13-2004 02:00 AM

Quote:

Originally Posted by Link14716
Well, then I guess a replacement variable won't work. Either way, it will be a variable in 1.00.

Thanks though for the replacement variable info. Im happy with the release, of course 1.0 would be such an improvement i suppose.

Vivi Ornitier 04-13-2004 02:02 AM

damn lol, hopefully that'll be added soon.

Also, where is the arcade file? I enable the arcade pass and i can still play in the arcade lol

Link14716 04-13-2004 02:03 AM

it's a seperate hack. It was released in the Beta Releases forum a while ago.

Vivi Ornitier 04-13-2004 02:06 AM

no i mean to integrate the arcade with the shop. I can't find the arcadepass file in the /uttstore folder. the action.arcadepass doesn't exist in the folder.

Besides all of that, it's working perfectly, i just hope the thing to change the name of points will come soon.

Link14716 04-13-2004 02:07 AM

Quote:

Originally Posted by Vivi Ornitier
no i mean to integrate the arcade with the shop. I can't find the arcadepass file in the /uttstore folder

The arcade pass hack is a seperate hack, which I released in the beta releases forum a while ago.

dstruct2k 04-13-2004 02:09 AM

Alright, bug found in template conditionals (Zak... :p)


IN TEMPLATE "uttstore_main_actionbits":
Find:
Code:

        <td class="thead"><span style="float: right;"><if condition="$points >= $cost && $action['quantity'] != 0"><a style="text-decoration: none;" href="ushop.php?do=a&aid=$action[actionid]">[ Buy ]</a><else /> Out of Stock </if></span>Cost: $cost - <a href="ushop.php?do=actionhistory&aid=$action[actionid]">Recent Purchases?</a></td>
Replace with:
Code:

        <td class="thead"><span style="float: right;"><if condition="$points >= $cost && $action['quantity'] != 0"><a style="text-decoration: none;" href="ushop.php?do=a&aid=$action[actionid]">[ Buy ]</a><else /><if condition="$points >= $cost"> Out of Stock <else /> Insufficient Funds! </if></if></span>Cost: $cost - <a href="ushop.php?do=actionhistory&aid=$action[actionid]">Recent Purchases?</a></td>
:D

dstruct2k 04-13-2004 02:10 AM

Oh, and link to Arcade Pass Hack:
https://vborg.vbsupport.ru/showthread.php?t=62059

Zachery 04-13-2004 02:28 AM

Quote:

Originally Posted by dstruct2k
Alright, bug found in template conditionals (Zak... :p)


IN TEMPLATE "uttstore_main_actionbits":
Find:
Code:

        <td class="thead"><span style="float: right;"><if condition="$points >= $cost && $action['quantity'] != 0"><a style="text-decoration: none;" href="ushop.php?do=a&aid=$action[actionid]">[ Buy ]</a><else /> Out of Stock </if></span>Cost: $cost - <a href="ushop.php?do=actionhistory&aid=$action[actionid]">Recent Purchases?</a></td>
Replace with:
Code:

        <td class="thead"><span style="float: right;"><if condition="$points >= $cost && $action['quantity'] != 0"><a style="text-decoration: none;" href="ushop.php?do=a&aid=$action[actionid]">[ Buy ]</a><else /><if condition="$points >= $cost"> Out of Stock <else /> Insufficient Funds! </if></if></span>Cost: $cost - <a href="ushop.php?do=actionhistory&aid=$action[actionid]">Recent Purchases?</a></td>
:D

ALready have it on my bug tracker :) but thanks

vhoang 04-13-2004 02:34 AM

Quote:

Originally Posted by Zachery
ALready have it on my bug tracker :) but thanks

So u did upgrade the first post's attachment to reflect this?

Link14716 04-13-2004 02:38 AM

No.

Reeve of shinra 04-13-2004 03:15 AM

EDIT: Problem fixed

Cause: My PhP Editor. (sorry for wasting your time).


Support Question:
- Stand Alone Install on vb3 gold. No hacks except HTL

I installed the file edits, and when I try to log into the admincp I recieve the following error message:

Quote:

Parse error: parse error in /home/nytalk/domains/nytalk.net/public_html/board/includes/functions.php on line 1873

Fatal error: Call to undefined function: exec_nocache_headers() in /home/nytalk/domains/nytalk.net/public_html/board/admincp/global.php on line 37
PHP Code:

Line 1873
        $debughtml 
.= " (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')=== false'?''?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')=== false'?''?','&amp;') . "explain=1\">Explain</a>)<br />\n"

[php]
Second error message / global php file line 37

PHP Code:

require_once('./includes/functions.php'); 

I thought I may have made a mistake so I redid the file edit, no luck.

Link14716 04-13-2004 03:16 AM

Quote:

Originally Posted by Reeve of shinra
Support Question:
- Stand Alone Install on vb3 gold. No hacks except HTL

I installed the file edits, and when I try to log into the admincp I recieve the following error message:



PHP Code:

Line 1873
        $debughtml 
.= " (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')=== false'?''?','&amp;') . "tempusage=1\">Template Usage</a>) (<a href=\"" htmlspecialchars_uni(SCRIPTPATH) . iif(strpos(SCRIPTPATH'?''?')=== false'?''?','&amp;') . "explain=1\">Explain</a>)<br />\n"

[php]
Second error message / global php file line 37

PHP Code:

require_once('./includes/functions.php'); 

I thought I may have made a mistake so I redid the file edit, no luck.

And vB version is? I see no reason why that would be happening.

EDIT: Whoops, didn't noticed you said vB3 Gold. Either way, that shouldn't happen. Post the edit here (and a few lines above and below) and maybe I can find the problem.

ENZcom 04-13-2004 03:29 AM

Where do I control permissions of who sees the store?

Only the admins & mods can view the store, everyone else gets 'no actions found.'

Link14716 04-13-2004 03:31 AM

It's a per-action setting.


All times are GMT. The time now is 11:01 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.02263 seconds
  • Memory Usage 1,857KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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