![]() |
Quote:
|
I know but what's the code? I don't know it >_<
|
you still have not answered my question, what do you mean reset the money? are you talking about bring everyones credits back down to zero? do you mean change the interest rate?? what?
you tell me this and i'll do my best to give you ans answer (out of the kindness of my heart :)) |
Frank, your fix reduces the query's and that's great but it seems to bring back the nasty 1064 error in the postbit.
|
well the bank has money(gil) and I want to get the banks money up to 0 how can I do that?
|
i'm really sorry but i'm sure that the bank does not have any money of it's own - if someone tries to sell something back to the system, they get money generated for them, but not from a specific source.
I've looked in the database and can't find anything like this, but I might be wrong. |
how do I reset the money in the bank?
|
I never thought i would ever update the itemshop again, but here it is. This update fixes the problem with the huge amounts of queries the itemshop produces. Items are now correctly displayed in the postbit. Estimated Installation Time: 3 minutes.
|
Quote:
|
Bah, having trouble with the itemshop, apparently it won't get peoples points up (and I did everything the same.. grr) in version my updated 2.2.9, yes all the settings are correct....
|
Ok I got a couple questions.
First how do I show my points in the postbit template and second I get a red x for the items and I have no items but the url is this http://www.jitway.com/forums/images/itemshop/.gif and by reading the hack it should be prg.gif or No Item.gif since I have no items. |
Yea, same thing happens to me. The red X's. Could someone help out?
|
Quote:
.gif it works with WS_FTP and should work with others, as long as your not using the browser for FTP Uploading |
No, that's not the problem. The problem is that there is no filename. There is just .gif as the file name....
|
I used a ftp program flashfxp to be exact and as stated above the file names are uploaded correctly but the url for the item is showing up as just .gif and since there is no file just called .gif you get a red x. By reading the hack in the admin functions.php the file should be either prg.gif or No Item.gif if you have no items and not just .gif. So that is the problem. Does anyone have a suggested fix? :banana:
|
Comment out the following code, assuming you used rake's fix above:
PHP Code:
Now, once the above is commented out, put the following code below it: PHP Code:
Also, if you remove the " // " from the line PHP Code:
This works on my server, but it may or may not work on yours. If it doesn't work, then just delete the code you inserted and remove the comment tags from rake's fix and you will be back to square one. |
Thanks for the help it worked...or at least it got rid of the red x's...won't know if it really works till I buy some items :cool: .
|
Quote:
|
Also, the fix above to reduce queries doesnt work, neither your fix of the fix. I dont get red X, nothing shows up. When I view the source code it says img src=No Item.gif
|
Quote:
|
http://www.invoid.net/forum/itemshop.php
Everything is default from the install file. I'd say, 50 items total? Also, does anyone know how to solve Post #378? Can anyone send me the install file they used so I can compare? Or an older version to admin@invoid.net? |
Sorry, I wasn't very clear with my question. What I meant was, which items has your RPG character bought from the itemshop?
|
Lightning Staff
Diamond Gloves Ore |
My mistake. I accidentally had you comment out the line
PHP Code:
PHP Code:
|
One more problem, now it doesnt show "Ore" or anything from the 3rd category.
|
Quote:
|
I have phpMyAdmin, but I dont know the query string.
|
In phpmyadmin v2.2.2, here is the manual way of changing the field name:
If you are running a different version, or can't figure it out, then here is another way to change it: In your vBulletin database, run the following query: Code:
ALTER TABLE `items_user` CHANGE `Item3` `item3` CHAR(250) DEFAULT 'No Item' NOT NULL |
Works perfectly. Thanks a lot! Since you seem to be familiar with this stuff, do you know why I get this when donating?
Invalid SQL: SELECT field5 FROM userfield WHERE userid=Array mysql error: Unknown column 'Array' in 'where clause' mysql error number: 1054 Its the only bug I have on the board >_< |
Sorry, but I can't help ya on that one. I have never had that error before, nor have any of my members. I looked over the files, and there wasn't anything that looked out of place. :ermm:
Sorry. :( |
Quote:
Try, before that query doing something like: $temp = $arrayname[userid] where $arrayname is the name of the array that is being returned by mysql_fetch_array() and replacing your query with: SELECT field5 FROM userfield WHERE userid = '$temp' Just a quick guess without actually seeing any of the files. |
Code:
Database error in vBulletin 2.2.6: PHP Code:
|
is $iddonate set somewhere in this file? That looks to be the problem in the query.
|
Nope, thats the only part.
|
Void, on the form where you enter the donations... the one where there's a text field to enter how much you are donating and a submit botton that says "Donate!"
Do a view source on that. There shoudl be a hidden field in the form that looks like <input type="hidden" name="iddonate" value="something"> Can you tell me what the Value is? |
tdphillipsjr, here is the view source on my forums:
Code:
<input type="hidden" name="iddonate" value="23"> Code:
<input type="hidden" name="iddonate" value="$user"> Code:
<a href="#" onclick="javascript:window.open('itemshop.php?action=donate&user=$post[userid]', '', 'toolbar=no,scrollbars=no,resizable=no,width=200,height=50');">Donate</a> |
Code:
{htmldoctype} |
Oh, I did a view source and I have this:
Code:
<input type="hidden" name="iddonate" value="Array"> |
OK, we are tracking it down. The value in your view source should be a digit, as in the code chunk bitsys posted.
which means the problem is further back in the postbit code. $post[userid] is not being set correctly. When it pops open the window, $post[userid] should have a userid, and instead it's still returning it's object... which means it never gets the userid it's supposed to. window.open('itemshop.php?action=donate&user=$post[userid] |
Doesnt matter where I enter the ID, I even typed the url manually, I still get "Array"
|
All times are GMT. The time now is 09:44 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|