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)

wi11ie1950 11-03-2004 02:23 AM

I did find that if you install the Store first then install Petz.. If you purchase glow or Coloured username from the Store.. It doesnt work. If you purchase them from Petz they work fine ????? I dont know about the other features in the store, i havent tried them.

Zachery 11-03-2004 03:02 PM

Quote:

Originally Posted by wi11ie1950
I did find that if you install the Store first then install Petz.. If you purchase glow or Coloured username from the Store.. It doesnt work. If you purchase them from Petz they work fine ????? I dont know about the other features in the store, i havent tried them.

We do not support uCS with Petz because they both accomplish the same thing. Sorry cant help you there.

Zachery 11-03-2004 03:02 PM

Quote:

Originally Posted by AuXiLiRY
Everytime, yes, everytime I install this hack, I get this error:



Which then leads to me seeing all of these:



It's all done right, so I don't know what to do. Any idea?

Stop using dreamweaver to edit your files ;) Start with fresh files and try again.

bi11i 11-03-2004 08:42 PM

I'm having this same error when a user tries to deny another to a forum. The name of the forum has a ' character in it. So if I remove the ' then it works just fine? Is there a way around this?
Quote:

Originally Posted by mariannet
I ran the standalone installer.
When donating and pressing the final confirmation button I get mySQL error if the donate text (reason) contains a ' character (ex. isn't).

*******
Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO utt_store_history
(historyid, userid, timestamp, actionid, action, normalcost, discount, tax, totalcost, touserid, touser, points, newtitle)
VALUES
(NULL, '1', '1095085856', '1', 'Doner GuldM?nter [MSGM]', '0', 'test'er', '0', '100.00', '1730', 'Bj?lken', '100', '')

mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'er', '0', '100.00', '1730', 'Bj?lken', '100', '')' at line 4

mysql error number: 1064
************

If I write without the ' (ex. isnt) then everything is fine.
There are no other errors with uShop and uCash.

I'm running vb ver. 3.0.3


bi11i 11-03-2004 08:49 PM

Quote:

Originally Posted by TosaInu
Hello,

I had the foreach() cookie error too and did edit includes/init.php

I used copy and paste and this is how it was pasted into the file:

HTML Code:

// ## <ucs> 'stylecache', 'utt_store_act' // ## </ucs>
update to

HTML Code:

// ## <ucs>
                        'stylecache',
                        'utt_store_act'
// ## </ucs>

I had a bit of trouble with copying text from the inline boxes in the readme. This may go wrong for others too?

I have vbookie installed so mine reads:
Code:

        // ## <ucs>
                                              'stylecache',
                                        'utt_store_act',
                                        'vbookiesettings'
                                // ## </ucs>

is this right, or should it read:
Code:

        // ## <ucs>
                                              'stylecache',
                                        'utt_store_act'
                                        'vbookiesettings'
                                // ## </ucs>

is there some other way i should be wording this in my includes\init.php?

Link14716 11-03-2004 08:56 PM

Quote:

Originally Posted by bi11i
I have vbookie installed so mine reads:
Code:

        // ## <ucs>
                                              'stylecache',
                                        'utt_store_act',
                                        'vbookiesettings'
                                // ## </ucs>

is this right, or should it read:
Code:

        // ## <ucs>
                                              'stylecache',
                                        'utt_store_act'
                                        'vbookiesettings'
                                // ## </ucs>

is there some other way i should be wording this in my includes\init.php?

EDIT: Didn't read the first part of your post.

The first one is correct. It needs the comma.

Link14716 11-03-2004 09:00 PM

Quote:

Originally Posted by wi11ie1950
I did find that if you install the Store first then install Petz.. If you purchase glow or Coloured username from the Store.. It doesnt work. If you purchase them from Petz they work fine ????? I dont know about the other features in the store, i havent tried them.

As far as I know Petz more or less made the musername function useless. If you have Petz installed, just disable the redundant actions in uShop.

Link14716 11-03-2004 09:03 PM

Quote:

Originally Posted by radicaledward
Alright, I have been working with uStore for along time now that I have writen a custom shop for adventchildren.net, and I have noticed two things that I was wondering if there was a fix for (or if I should just fix them myself):
- When discounts are totaled they don't seem to take into account discounts for additional usergroups
- The richest members list only takes into account what you have outside of the bank, not what's in it

Any idea if those have been fixed, or if I should do it myself (and if so post the code :D)

Also, the shop that we are using at adventchildren.net is mostly done, would people perhaps be interested in using it? I can post another thread with screen shots in it if you want.

The first is probably something I overlooked. The second is by design.

Link14716 11-03-2004 09:04 PM

Quote:

Originally Posted by yinyang
do i have to enable "custom user title" in usergroups in order for the "change other user title" to work?

right now it's set at no and uses the default ladder.

No.

&omganothercharacter;

Link14716 11-03-2004 09:06 PM

Quote:

Originally Posted by AuXiLiRY
Everytime, yes, everytime I install this hack, I get this error:



Which then leads to me seeing all of these:



It's all done right, so I don't know what to do. Any idea?

It obviously isn't done right then.

Did you run the installer? It needs to be ran before you edit the files.

bi11i 11-03-2004 09:26 PM

thanks.

i wish i could figure out why i can't use the ' character. it gives me a 1064 sql error whenever an action is executed that has a ' in the post or thread or username...

Quote:

Originally Posted by Link14716
EDIT: Didn't read the first part of your post.

The first one is correct. It needs the comma.


Link14716 11-03-2004 10:50 PM

Quote:

Originally Posted by bi11i
thanks.

i wish i could figure out why i can't use the ' character. it gives me a 1064 sql error whenever an action is executed that has a ' in the post or thread or username...

Post the MySQL errors and where you got them. They should have been fixed a long time ago (before the official 0.93 release, actually).

bi11i 11-03-2004 11:36 PM

Quote:

Originally Posted by Link14716
Post the MySQL errors and where you got them. They should have been fixed a long time ago (before the official 0.93 release, actually).

Code:

Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO utt_store_history
                                        (historyid, userid, timestamp, actionid, action, normalcost, discount, tax, totalcost, touserid, touser, points, newtitle)
                                        VALUES
                                        (NULL, '10', '1099519682', '17', 'Deny&nbsp;Forum&nbsp;Access', '5000', '2', '15', '5635', '4', 'Wolfman', '0', 'Al Gore's Top 10 Links')
                                       
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near 's Top 10 Links')' at line 4

mysql error number: 1064


it's because of the ' character in the name of one of my forums. a user tried to deny another user access to a forum that had a ' in the name....

Link14716 11-03-2004 11:41 PM

Is that the only place a ' error occurs?

Either way, fix it by changing this (in uttstore/action.denyforumaccess.php):
PHP Code:

    uttstore_add_history($action['actionid'], $action['cost'], $userdiscount$action['tax'], $totalcost$_REQUEST['userid'], '0'$forum['title']); 

To this:
PHP Code:

    uttstore_add_history($action['actionid'], $action['cost'], $userdiscount$action['tax'], $totalcost$_REQUEST['userid'], '0'addslashes($forum['title'])); 

EDIT: Fixed all instances of this locally. The fixes will be in the next release.

bigM 11-03-2004 11:44 PM

I have successfully installed your hack. But there is one problem. If somebody wants to do any action, he will get this error:

Quote:

User does not exist.
What should I do? Can somebody tell me, what's wrong?

vB: 3.0.3

bi11i 11-03-2004 11:46 PM

yes, the only place, actually.

thanks, i'll check out the fix!
Quote:

Originally Posted by Link14716
Is that the only place a ' error occurs?

Either way, fix it by changing this (in uttstore/action.denyforumaccess.php):
PHP Code:

    uttstore_add_history($action['actionid'], $action['cost'], $userdiscount$action['tax'], $totalcost$_REQUEST['userid'], '0'$forum['title']); 

To this:
PHP Code:

    uttstore_add_history($action['actionid'], $action['cost'], $userdiscount$action['tax'], $totalcost$_REQUEST['userid'], '0'addslashes($forum['title'])); 

EDIT: Fixed all instances of this locally. The fixes will be in the next release.


Link14716 11-03-2004 11:47 PM

Quote:

Originally Posted by bigM
I have successfully installed your hack. But there is one problem. If somebody wants to do any action, he will get this error:



What should I do? Can somebody tell me, what's wrong?

vB: 3.0.3

That error can only occur in places where you are doing something relating to another user (donate, change other user's title) and means exactly what it says: the username specified does not exist.

bigM 11-04-2004 12:05 AM

Yes, that's right. I get this error everytime, when I want to use the action "Donate". The username(s) are correct. So what's wrong?

Link14716 11-04-2004 12:32 AM

If the usernames are correct, it should work fine.

bigM 11-04-2004 12:51 AM

No, it doesn't. I can give you a test account to my forum and then you can test it by yourself, okay?

Link14716 11-04-2004 12:53 AM

Send me an instant message if possible. My contact details are in my profile.

cashpath 11-04-2004 12:58 AM

Hello I originally installed this back at .93

I just upgraded to the new files tonight... back when I had .93 I disabled the bank system because I was getting complaints of money disapearing. I tried turning it back on now and was going to test it admin only for a while and when I try to deposit points it tells me I cannot deposit a non positive amount--- any ideas?

bigM 11-04-2004 01:06 AM

Thank you very much for your help! Really nice work!

I have click on install ;)

Link14716 11-04-2004 01:11 AM

Quote:

Originally Posted by cashpath
Hello I originally installed this back at .93

I just upgraded to the new files tonight... back when I had .93 I disabled the bank system because I was getting complaints of money disapearing. I tried turning it back on now and was going to test it admin only for a while and when I try to deposit points it tells me I cannot deposit a non positive amount--- any ideas?

Shouldn't happen unless you try to enter some negative amount (or 0).

cashpath 11-04-2004 01:32 AM

I know :) So I go to bank it says

Welcome to the bank. It appears you haven't deposited any points into the bank, so here's your shot at investing some hard-earned points! You currently have 28600.31 points in your pocket.

I click on deposit points

It says how much I put in 1000

It then says Total Cost: 1000.00 Are you sure you want to perform this action?

But up above that where it says cost it still shows 0

I click confirm and it says

vBulletin Message
You may not deposit a non-positive amount!

cashpath 11-04-2004 02:31 AM

Sorry for the double post... Donating doesn't work either it says the same non-positive amount thing.. so there must have been some error in the upgrade process what shoudl I do?

Link14716 11-04-2004 02:35 AM

I think I might know what is wrong, actually.

Revert all of your uCS templates. (They all start with uttstore). There were important changes made to it from 0.93 to 0.95.

cashpath 11-04-2004 02:39 AM

Ok so I shoudl click on the template and then click revert? (Sorry I'm still new to this) the revert button is greyed even when I click on the template and highlight it. What is it reverting to exactly?

Link14716 11-04-2004 02:41 AM

It would be reverthing to the new templates.

If you can't revert any of them at all, then I don't know what the problem is, but I'm sure a few needs reverting.

cashpath 11-04-2004 02:41 AM

Ok sorry again for the double post (there is a hack to fix double posts ;) ) J/k I see there was one red template I don't remember editing it but I reverted it and WALLAH its fixed thanks!!

Link14716 11-04-2004 02:44 AM

Well, my post seperated yours. ;)

Glad it's fixed.

mystery250 11-10-2004 01:57 AM

Having one problem...

Warning: Invalid argument supplied for foreach() in /home/discpmjt/public_html/ushop.php on line 151


In Ushop.php.

Could anyone help?

Need this resolved asap.

I use Vbulletin 3.0.3


Also, getting the no actions message when I go to Ushop. Please clarify what to do with his instructions:

Quote:

IF YOU ARE HAVING FOREACH ERRORS IN GLOBAL.PHP OR NO ACTION ERRORS:
First, remove the second global.php edit. Then run ushop.php?rebuildds=1. Then put the edit back in adns ee if that works. If it doesn't work, answer the questions above, if it does, post saying that and let me know in the post if you used the HTL or standalone installer. This will help me diagnose the problem as to whether it is a user error or an error on one of the installers. Thank you.
I do not understand this, partially due to the typos, and partially do not know what it means by "Run" ushop rebuild, nor am I sure if he used the correct spelling, or typoed. Whomever can, please revise this for me.

venomx 11-10-2004 02:27 AM

If I dont visit my site for a few days then go and visit the shop I get a foreach error.. a refresh fixes it... any ideas?

Link14716 11-10-2004 02:36 AM

Quote:

Originally Posted by venomx
If I dont visit my site for a few days then go and visit the shop I get a foreach error.. a refresh fixes it... any ideas?

I can confirm that, the problem is I can't find what is causing it.

Link14716 11-10-2004 02:37 AM

Quote:

Originally Posted by mystery250
Having one problem...

Warning: Invalid argument supplied for foreach() in /home/discpmjt/public_html/ushop.php on line 151


In Ushop.php.

Could anyone help?

Need this resolved asap.

I use Vbulletin 3.0.3


Also, getting the no actions message when I go to Ushop. Please clarify what to do with his instructions:



I do not understand this, partially due to the typos, and partially do not know what it means by "Run" ushop rebuild, nor am I sure if he used the correct spelling, or typoed. Whomever can, please revise this for me.

Did you run the installer and do the file (and template) edits in readme.html?

mystery250 11-10-2004 02:59 AM

Yes, I did run the installer, and I did do the file and template edits, as specified in the readme file.

mystery250 11-10-2004 03:01 AM

As I am still getting the errors for the shop, as the "No actions found", could you clarifly:

Quote:

IF YOU ARE HAVING FOREACH ERRORS IN GLOBAL.PHP OR NO ACTION ERRORS:
First, remove the second global.php edit. Then run ushop.php?rebuildds=1. Then put the edit back in adns ee if that works. If it doesn't work, answer the questions above, if it does, post saying that and let me know in the post if you used the HTL or standalone installer. This will help me diagnose the problem as to whether it is a user error or an error on one of the installers. Thank you.
I cannot tell what he means.

Also, would whatever he means, fix that no actions error?

Sweet Evil 11-10-2004 03:36 AM

I can not find:
PHP Code:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td

In my nav template, anyone got some ideas?

Link14716 11-10-2004 04:39 AM

Quote:

Originally Posted by mystery250
As I am still getting the errors for the shop, as the "No actions found", could you clarifly:



I cannot tell what he means.

Also, would whatever he means, fix that no actions error?

That is mostly about people early on with foreach errors in global.php.

Do the actions appear in the admin cp? If not, I'd suspect you missed an init.php edit, if they do appear there, you probably missed the global.php edit.

Link14716 11-10-2004 04:40 AM

Quote:

Originally Posted by Sweet Evil
I can not find:
PHP Code:

<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td

In my nav template, anyone got some ideas?

$vbphrase[calendar] is there, isn't it? Just find it and add the code after the line containing it.


All times are GMT. The time now is 05:25 AM.

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.04001 seconds
  • Memory Usage 1,879KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_html_printable
  • (6)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