View Full Version : The Itemshop v5 (Original)
proxyMX
07-26-2002, 06:27 PM
I am just a bit angry with you comming on here and accusing me of a crime that you are guilty of yourself
Anyways on a lighter tone, with all the advanced features, this hack should be better than ever. I cant wait for the new edition of itemshop that will be released soon, go great with my Trek RP. Now all i need is a decent usergroup specific rank hack, that would be tops for all concerned
Ninth Dimension
07-31-2002, 12:41 PM
just a quick (and possably silly question) but if I use a difrent script to award the points to users, will the donate features still work?
it's just that i'm trying to encourage people to post more new topics, so i'd like to give them 10 points for a new topic, and 5 for a reply. (can anyone suggest a good script I can use for this?)
cheers all
proxyMX
07-31-2002, 02:59 PM
I can suggest the Shinra Points hack, Itemshop was designed to work in unison with this hack if you read the readme
Link14716
07-31-2002, 10:21 PM
you could also use it with Lesane's Store hack, although it'd be a bit more than you need. To use points in unison there, undo newreply and nwthread.php changes, install store hack, then change all instances of 'userfield' in itemshop.php to 'user' and then change the points field to 'storep' and use the Store's admin capabilities to do that :-D
Installed fine - no probs was quite easy as well and i already had lesanes store installed so i followed the guide to get it working with this and Bingo it worked.
I had prob of only one icon in postbit and Bingo the post above by link14716 worked a dream so all in all a succesful night.
Cheers guys for all help - without the feedback must admit i would never ov suzzed the postbit prob out .
Apok2002
08-05-2002, 01:18 AM
1) How can I change the interest rate for the Bank, from 10% to 5%?
2) Also, I've read the past 10 or so pages, EVERY post about gifs not showing up for custom or added catagories. On my site, I've added my own personal itemshop (thru buying it).
I've also ran into some of the troubles mentioned to get those custom icons installed...and none of the fixes work completely. Link's copy/paste fix helped out a bit...but all I was able to get from it, was the white "P" gif (no item.gif) to show for items in the new catagory. I tried using the same gifs that are used by the default items...it STILL shows as a white "P".
But I didn't see it noted (w/i the past 10 or so pages of posts here)....that there may be a catagory id error. If it IS mentioned, forgive me, I overlooked it...but thought I was very careful about searching for it as people tend to get upset at those who don't look more carefully. :)
Anyway, here is my observation: In the admincp...my new personal (and thus far, the ONLY) catagory (shop) is catid=4. But when you are in the actual Itemshop...and hover over that link to GET to my shop, and all of it's items, it says catid=0.
I would imagine that a lot of the issues are coming from this very thing. Anyone else noticed this? Anyone have a fix for it?
Again, my apologies if this IS already brought up...I just don't see it anywhere here yet. Oh, I don't know if it matters...but I use it with Lesane's Store Hack. Works great other than the issue #2 above. :)
weallgoboing
08-08-2002, 01:14 PM
I admit it...I'm as thick as pig poo and twice as smelly...
Where is
postbit template
--------------------------
##### add this next to your points link:
<a href="#" onclick="javascript:window.open('itemshop.php?action=donate&user=$post[userid]', '', 'toolbar=no,scrollbars=no,resizable=no,width=300,h eight=50');">Donate</a>
##### add this where you want your items to appear:
$post[items]
--------------------------
put.....filename?
We don't all see the world in 1's and 0's :D
DarkDraco07
08-08-2002, 11:25 PM
since people are helping people now i have 2 question and they are important!!!!!!!!!!!!!
WHEN PEOPLE BUY THEIR OWN ITEMS THEZY DO NOT LOSE MONEY!!!!!!!!!! MEANING THEY CAN MAKE 99999999$ ITEM AND BUY IT FROM THEMSELVES MAKING THEM RICH!!!!!!!!!!
and the other is the interest rate asked above
BloodThirsty229
08-09-2002, 08:45 PM
Invalid SQL: SELECT storep FROM userfield WHERE userid=1
mysql error: Unknown column 'storep' in 'field list'
mysql error number: 1054
What does this mean?
I know I installed everything correctly, and if I refresh the page it posts the message. Does the same thing for the new reply and new thread
BloodThirsty229
08-09-2002, 09:07 PM
wait nevermind... now gives someone a point everytime they refresh the page
this thing adds ton of querys to threads....
BloodThirsty229
08-09-2002, 09:35 PM
I saw something in this thread early on how to fix the problem when you refresh it gives a user points... but when I tried to fix it the problem just got worse, did I do something wrong? :\
Apok2002
08-09-2002, 10:05 PM
Well...there are a lot of complaints about this itemshop...and there is never any support for it.
Is there a better itemshop out there that IS supported by it's author?
DestyNova
08-09-2002, 10:53 PM
Originally posted by Apok2002
Well...there are a lot of complaints about this itemshop...and there is never any support for it.
Is there a better itemshop out there that IS supported by it's author?
Support? I m not sure but there will be new itemshop by Neo (to my understanding from his post at request forum) So that s why I refuse to use this hack since it is mess hack and I prefer to use Neo hack =)
Originally posted by Apok2002
Well...there are a lot of complaints about this itemshop...and there is never any support for it.
Is there a better itemshop out there that IS supported by it's author?
complaints? yes many, honestly im getting sick of all this bickering over this hack. it needs alot of work done to it. now im not sayin its not a good hack or idea. but something that adds 400+ querys to long topics (the normal count for me was 29) i dont think people sould be using it without knowing, and its installed on many a board.
DarkDraco07
08-10-2002, 04:13 AM
Originally posted by Apok2002
Well...there are a lot of complaints about this itemshop...and there is never any support for it.
Is there a better itemshop out there that IS supported by it's author?
the author of this hack didnt even make this hack. atleast thats what he said
Apok2002
08-10-2002, 05:29 AM
but something that adds 400+ querys to long topics (the normal count for me was 29) i dont think people sould be using it without knowing, and its installed on many a board
How do you find out how many querys a hack adds?
WARNING!!!: This will over load your querys run and migth cause your board to run slower. This is cause by the items being put in the postbit. You can take those out and have a faster thread load. But if you do not want to have a large query do not install this.
Nothing personal, but I have seen alot of people have this problem.
[D]Vincent
08-12-2002, 08:34 AM
Let's hope yours won't have an overload O_O
[D]Vincent
08-12-2002, 08:54 AM
Vincent]Great :D
clouds_kid
08-14-2002, 10:15 PM
Ok I have a question about it. Is there a way I could make multiple shops? Like one for armor, weapons and that? I'm not to great with php and that's what it is...
Originally posted by Neo
WARNING!!!: This will over load your querys run and migth cause your board to run slower. This is cause by the items being put in the postbit. You can take those out and have a faster thread load. But if you do not want to have a large query do not install this.
Nothing personal, but I have seen alot of people have this problem.
also and more importanly your host may boot you if you have to many querys.
[D]Vincent
08-15-2002, 05:28 AM
That makes me want to not make my stats on my hack work with the itemshop -_-
LOD-squa
08-18-2002, 04:18 AM
Installed I like it.
LOD-squa
08-18-2002, 04:47 AM
I have a question how can I get the money on postbit?
LOD-squa
08-18-2002, 04:36 PM
anyone?
g-force2k2
08-18-2002, 04:41 PM
heh... Neo is correct about the huge server load... for every post on the showthread it creates 11 extra queries... no joke ;) the more you have the more queries you run... so if you're running five items chances are you're running an extra 18 queries per post >_O
btw gohanssj2...
in the postbit put this code where you want...
Gil: $post[field5]
that should do the trick...
g-force2k2
LOD-squa
08-18-2002, 04:43 PM
umm do I need ot have any other hacks installed for this to work?
g-force2k2
08-18-2002, 04:44 PM
nope... but make sure you create a userprofilefield... with the correct info or run the queries...
g-force2k2
Ninth Dimension
08-18-2002, 04:52 PM
Originally posted by g-force2k2
heh... Neo is correct about the huge server load... for every post on the showthread it creates 11 extra queries... no joke ;) the more you have the more queries you run... so if you're running five items chances are you're running an extra 18 queries per post >_OIs there anyway in which this can be reduced? or maybe a way of having a pop-up for the accessories rather than having them all listed in the postbit?
LOD-squa
08-18-2002, 04:53 PM
ok Thanks It worked ^_^
LOD-squa
08-18-2002, 04:57 PM
another question is there a way mods can give money by clicking gil?
g-force2k2
08-18-2002, 04:59 PM
yes dh both are possible... and gohanssj2 you'd have to make a mod to the hack...
g-force2k2
LOD-squa
08-18-2002, 05:08 PM
I got the hack up and running another questions also(sorry) when I donate gil and go to the item shop I get thanks for donating is there a way to fix that?
Ninth Dimension
08-18-2002, 05:13 PM
are you saying that directly after donating some gill, you click to goto the shop and get the message on the screen insted of the shop? sounds to me like your browser is just displaying some cashe, what happens if you hit refresh?
LOD-squa
08-18-2002, 05:18 PM
Yeah but when I refresh it shows up the shop.
Ninth Dimension
08-18-2002, 05:22 PM
I could be wrong, but I think it's nothing more than your browser casching.
ask some of your members if they get the same problem.
LOD-squa
08-18-2002, 05:27 PM
they don't get it.
Ninth Dimension
08-18-2002, 05:39 PM
well, I did send a reply to this via email, but i guess it did not work, so here is my reply:
Sorry to say this then, but I think it's only you with the problem :)
Try checking your cascheing options on your browser (I would explain how, only I don't know myself :))
LOD-squa
08-18-2002, 05:41 PM
could it be my cookies?
Ninth Dimension
08-18-2002, 05:48 PM
I'm not going to say that it's not your cookies, but I doubt that it is.
this (so far as I can see) is why it's happening.
You are donating to someone, once you have finished donating, your get the thank you message, which is being generated by from the itemshop.php file, you are then going to the itemshop.php file, which your browser is not updating because it thinks it's the same page you want displayed, but it's not.
I hope that makes sence? it does to me :)
Ninth Dimension
08-18-2002, 05:50 PM
I might have a fix for you, in all your links to the itemshop, change them to
itemshop.php?s=$session[sessionhash]&random=random
this should fix it for you.
LOD-squa
08-18-2002, 06:22 PM
I don't get you lol.
clouds_kid
08-18-2002, 07:15 PM
I logged out and logged back in....
LOD-squa
08-18-2002, 11:12 PM
nope didn't work. but another question is there a way I can let users have more than 3 items?
LOD-squa
08-18-2002, 11:17 PM
never mind I found out.
clouds_kid
08-19-2002, 03:19 AM
way to many quieries for me to be running....
Regit
08-20-2002, 03:00 AM
hey , i add this hack and have 5xx query every time reading the topic , normally it just have 5x query , why it so much mySQL resource .. is it will reduce my performance ???
any idea to reduce the query time ?
clouds_kid
08-20-2002, 03:10 PM
How do you delete the templates that were added. They came up green like they were originally there...
g-force2k2
08-20-2002, 03:13 PM
yeah clouds_kid you have to delete them manually (mysql) but i think the itemshop came with an uninstaller if you look at the installer hope that helps...
g-force2k2
clouds_kid
08-20-2002, 04:32 PM
Well the thing is. I tried installing the itemshop which added the templates, but I didin't install anything else. So would that help any?
Colon33
08-21-2002, 06:46 AM
Ok, i installed this hack on my board. Everything went great. The shop works great. But when someones goes into there profile and edits something in there profile ALL THERE Money dissappears from the item shop. Can someone help me? HELP ANGRY MEMBERS :)
Colon33
08-21-2002, 09:30 AM
Please Help anyone?!?!
Gohan
08-26-2002, 11:17 AM
I install it hack and without problem (my vbb version 2.2.6)
Great job, Vivi!
Alchemyst
08-27-2002, 08:41 PM
I installed this hack without problem on 2 boards, so yea me likes, but just a few questions
Is there a way to "give" people specialized Items?
And is there a way to restock a Cathegory?
and I have a problem with Bank interest, it appears if u want it you cant add anything to the sum for 24 hours, is there a way to fix this?
Thanks.
Alch
Alcatraz
08-31-2002, 05:41 PM
Help me anyone my vb Version is 2.2.7 after can. and I can't get it to install :ermm: :cry: anybody can help me at aim : Firstalcatraz or here.
OR
IS there anything I need to get is there other hacks I need or anything it's not modfing the other files is there a cetain chmod or somthing?
Ninth Dimension
08-31-2002, 07:51 PM
Sorry to say this then, but I think it's only you with the problem :)
Try checking your cascheing options on your browser (I would explain
how, only I don't know myself :))
Alcatraz
08-31-2002, 07:53 PM
I knew it THANKS! If you wouldn't of helped me with that I would have been sad :banana: :( But now I'm happy and it works! Thanks Vivi!!!!!!!!!!!!!!!!!!!! :glasses: :banana:
Alcatraz
09-01-2002, 05:11 AM
Hey Vivi are you upgrading it to 5.4 and able to work on vbb 2.2.7 because I've installed it 5 times while installing vbb 2.2.7 to make sure nothing went wrong one I can't see anything in the threads I don't get money and I can't buy anything. Please say it's so Vivi :(
nm all done. :bandit: :rambo:
Angelus1753
09-02-2002, 02:36 PM
I've installed it on 2.2.7 and it works fine. Items can be bought fine etc etc.
What I'd like to know is, if it can be integrated with a HP/MP point hack?
Anyways, great hack :D
VirtualMind
09-03-2002, 09:20 AM
hello!
i've finished installing itemshop in vb 2.2.7 but i get an error when i click "donate"
http://forum.thefingertips.com/showthread.php?postid=1#
Database error in vBulletin 2.2.7:
Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'
mysql error number: 1054
Date: Tuesday 03rd of September 2002 06:20:05 AM
Script: http://forum.thefingertips.com//itemshop.php?action=donate&user=1
Referer:
what could this be?
VirtualMind
09-03-2002, 10:02 AM
Forget it!
i've fixed.
:)
Dark Shogun
09-05-2002, 02:11 AM
Just installed it on VB 2.2.7 and it works perfectly but the templates don't show up in the Templates section in the admincp.
Dark Shogun
VirtualMind
09-05-2002, 04:46 PM
I'm making a website of a music band and we are going to put in the store some t-shirts, albums, singles, etc.
So... this may sound lazy but:
[list=a]
How do i know that a member of the forum has bought an item?
Is it possible to send an email to the admin when someone buys an item?
... this may sound lazy but.. how can i alter the stock of an item. i only get 5 quantities per item.
When i sell an item why doesn't the stock upgrades?
[/list=a]
http://forum.thefingertips.com/itemshop.php
:)
FFMania
09-05-2002, 05:18 PM
He is no longer offering support for this hack...I guess you have to figure things out yerself.
a) The Sold Column is there for reason ;)
b) Possible, but it is not included in the hack.
c) I believe it is possible....the option is in the admin panel.
d) It should upgrade...
VirtualMind
09-05-2002, 05:28 PM
a) yes i know its there... but i dont know who bought the item
b) if only i could know who bought the item
c) if its possible... i dont know where...
d) it doesnt upgrade....
:/
VirtualMind
09-05-2002, 05:49 PM
Ok... i can do the changes im myphpadmin
but tell me something.
when i buy 2 products... they appear listed or the older item gets erased by the new one?
Dark Shogun
09-05-2002, 11:35 PM
Is there a way to change the amount of interest a person gets from 10 at say 4%?
Dark Shogun
GaleForce
09-06-2002, 02:43 AM
My Admin CP was not edited, whats up with that?
Royston
09-07-2002, 06:27 PM
Originally posted by Colon33
Ok, i installed this hack on my board. Everything went great. The shop works great. But when someones goes into there profile and edits something in there profile ALL THERE Money dissappears from the item shop. Can someone help me? HELP ANGRY MEMBERS :)
Indeed, Im having the same problem, Anyone have any ideas?
GaleForce
09-09-2002, 01:55 AM
How can I specify an amount of a certian item for sale?
Colon33
09-09-2002, 07:45 AM
I am having a BUG here that i need help fixing guys'. When i deleted a category lets say i deleted category #5 in the itemshop and want to add another one..when i add a new category it displays add category #5. Ok no problem there. But when i want to add ITEMS it wants to add items into category #6. Those links keep climbing in numbers and dont match the number of actual categories. I have tried entering a manual URL pointing to CAT #5 but still doesnt add the items i want. Any help? :)
Also how can i display MORE than 5 images? I currently own 6 items but it only displays 5.
GaleForce
09-09-2002, 08:00 PM
up
GaleForce
09-09-2002, 08:00 PM
up
GaleForce
09-09-2002, 08:00 PM
up
GaleForce
09-09-2002, 08:04 PM
lol whoops... hit submit too many times... SORRY :(
GaleForce
09-10-2002, 02:18 AM
How can you set the quantity of an item?
QiQme
09-11-2002, 11:03 AM
Hi,
Installed this hack and works great.
Is it possible to show the credits/points in the postbit template ?
If yes, how can i do this ?
Regards Michel Vermaat
NuclioN
09-11-2002, 03:43 PM
I can't understand why you are writing "works great" while this is generating hundreds of query's in the "showthread"
Or i am missing an update that is solving this problem, or some members here don't look at the query's. I will uninstall this if there's no solution for it. :(
Grealm
09-11-2002, 08:28 PM
btw, how to uninstall this hack?
Gohan
09-11-2002, 09:11 PM
step back of tutorial those hack ;) or you was make a backup before make add to vb?
azork
09-17-2002, 12:39 PM
Originally posted by Apok2002
1) How can I change the interest rate for the Bank, from 10% to 5%?
in itemshop.php find at the beginning:
$bankval=floor($bankval*(pow(1.1,$presenttime)));
the interest rate is definied by this number: 1.1
if you want 5% write 1.05
if you want 2% xrite 1.02
if you want 25% write 1.25
etc...
dirtymerc
09-18-2002, 03:46 AM
Whats the code to add what you have bought into your postbit??
Learner29
09-21-2002, 04:04 AM
Merjawy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I don't know if this works for everyone or not.. but I have managed to make
two admin folders.. one is old like vB2.0.0 or something like that.. and
when I need to check passwords I use that side making show command line to
show password in config is there and set to 2. and I was able to see the
passwords both ways.. crypted and also have seen the plain text on vB2.2.6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
now that is interesting.....
how did you do that ?? could you please tell with some more details ???
QiQme
09-21-2002, 11:29 AM
Originally posted by QiQme
Hi,
Installed this hack and works great.
Is it possible to show the credits/points in the postbit template ?
If yes, how can i do this ?
Regards Michel Vermaat
Nobody ??
Okay, I hope this wasn't already asked... is it possible to allow access to certain items based upon values from the user info, such as a custom field? I'm running a board for multiple different games, where the job classes are related to what game they play, and their ranks are affected accordingly.
However, these games are of drastically different natures. One occurs in a fantasy setting while the next is modern warfare, and another 2 are sci-fi futuristic. I'd like to have users be able to gain only equipment appropriate to their setting, so that there won't be a fantasy elf with a rocket launcher, or an alien conquerer fighting with Sword and shield.
Any ideas?
Riddel
09-22-2002, 05:49 PM
Originally posted by azork
in itemshop.php find at the beginning:
$bankval=floor($bankval*(pow(1.1,$presenttime)));
the interest rate is definied by this number: 1.1
if you want 5% write 1.05
if you want 2% xrite 1.02
if you want 25% write 1.25
etc...
why is an exponential funtion? so what if I want to take away people's money in the bank, like a .9 or something? i think something weird happened when i tried to do that.
Ninth Dimension
09-22-2002, 06:13 PM
Riddel, I don't know the answer to your question, but i'm curious as to why you would want to take peoples money away from them for using the bank? If you done this, no one would use the bank!!! :)
Riddel
09-22-2002, 06:17 PM
because there is a huge inflation... and so i decided the stock market should crash for a day
leah_zero
09-25-2002, 08:56 AM
*LAUGHS*
That's priceless. Riddel, you're great.
SONOFSAM
09-27-2002, 04:33 AM
Im hoping someone might be helping, because im sure viv isnt giving an y more support on this. Im getting a database error when a user trys to donate. i have this on 2 of my other forums and have no problems what so ever. I have un-installed and re-installed hoping it would fix 4 times with no success!
heres there error im getting:
http://www.clanbrats.com/forums/forums/itemshop.php[/url]
Referer: http://www.clanbrats.com/forums/itemshop.php?action=donate&user=7
i know nothing about PHP....but looking at the error, looks like there is a problem with the $iddonate somehow. the userid doesnt look like its coming up right.
also, where the script URL is...i dont know how or why it has forums twice in the URL...could that cause the problem?
please offer any help or ideas how to fix :(
SONOFSAM
09-28-2002, 04:01 PM
please anyone have an idea??
Kurayami
10-07-2002, 07:33 AM
Originally posted by alwaysweb
can some one tell me how:
when a user buys a personal shop ...and add items how can i get images to be displayed...i tried doing it in the admin cp but it wont work or show...any ideas?
*Sigh* I'm having the same problem. Heh, I haven't had as much luck with hacks as I would like...
Edit: I just tried the fix posted earlier in the thread, and it still doesn't work. =/
thenickwinder
10-11-2002, 05:28 PM
Nevermind all of that
I think I got it to work fine
^_^
thanks a lot, a great hack
supersimon
10-12-2002, 04:25 AM
Database error in vBulletin 2.2.7:
Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'
mysql error number: 1054
Date: Saturday 12th of October 2002 01:20:34 AM
Script: http://www.liquidflo.com/rap/rap/itemshop.php
Referer:
the fields are rite i dunno whats wrong installed many haks before so i knwo what iam doing but ia dunno what this is ?
can someoen help (this happens when i try to go to teh item shop which would be www.liquidflo.com/rap/itemshop.php)
GaleForce
10-20-2002, 11:02 PM
Hmmm, this was working all good for me, until recently when my members stopped earning interest. Is there a reason why they aren't getting their interest in the bank anymore?
girlzclan
10-22-2002, 12:06 AM
this happens everytime i try to donate, iv'e installed this hack on 4 different forums and im getting the same thing everytime :(
Database error in vBulletin 2.2.8:
Invalid SQL: SELECT field5 FROM userfield WHERE userid=Array
mysql error: Unknown column 'Array' in 'where clause'
mysql error number: 1054
Date: Monday 21st of October 2002 09:06:06 PM
Script: http://www.girlzclan.com/forums/forums/itemshop.php
Referer: http://www.girlzclan.com/forums/itemshop.php?action=donate&user=11
Jacko
10-22-2002, 01:20 PM
is it possible to show your points on the postbit??
hypedave
10-22-2002, 04:23 PM
Originally posted by Jacko
is it possible to show your points on the postbit??
##### add this where you want your points to appear:<br>
$points[points]
Jacko
10-22-2002, 05:43 PM
i tried that but i get nothing there.. same with the items.
Jacko
10-22-2002, 05:55 PM
ok i fixed the items not showing on the postbit.. but i still can get my points to show up..
Frank-kun
10-26-2002, 06:18 PM
Hello everyone,
Well, this one's been a much-traveled hack. I installed this on version 2.2.8, even knowing there were problems, because I wanted to see if I could find out some way of helping with a couple of the problems - this is a very cool hack and I hate to see it go to waste.
One of the main concerns appears to be the query load. Because of the way the hack works, even with Link's fix, there is an insane amount of queries -per post- to process the display of items.
Vivi actually saw that this was a problem and posted a fix wayyy back in the early pages of the thread. However, the fix missed a step, and I wasn't able to properly get a good display going without the load until recently.
Basically, I applied Vivi's fix, and included the one step he missed when he first posted it. I believe this should help on the server load and reduce the queries to nil.
Since I have limited experience with php and mySQL, try this out at your own risk. Be sure to backup the files you're hacking.
1. showthread.php edits (do this step TWICE since there are two instances in the code)
In showthread.php, find the following:
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
replace it with:
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,items_user.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
find:
LEFT JOIN userfield ON userfield.userid=user.userid
add this BELOW:
LEFT JOIN items_user ON items_user.userid=user.userid
2. admin/functions.php edits
find the original hack of functions.php for the item shop, as instructed by the installer. It should be something like this (link's fix is similar-looking):
global $DB_site;
$nr=1;
while ($nr <= 50) {
$catstuff=$DB_site->query_first("SELECT * FROM items_cats WHERE id=$nr");
$its=$DB_site->query("SELECT * FROM items WHERE cat=$nr ORDER BY name $asds");
if(sizeof($catstuff)==16) {
if($catstuff[type]==1) {
$uid=$DB_site->query_first("SELECT item0,points0,description0,icon0,itid0 FROM items_user WHERE userid=$post[userid]");
if($uid[0]!='No Item') {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$uid[4]\"><img src=\"https://vborg.vbsupport.ru/greentek/itemshop/prs.gif\" border=\"0\"></a> ";
} else {
$post[items] .= "<img src=\"https://vborg.vbsupport.ru/greentek/itemshop/No Item.gif\" border=\"0\"> ";
}
} else {
$uid=$DB_site->query_first("SELECT item$nr,points$nr,description$nr,icon$nr,itid$nr FROM items_user WHERE userid=$post[userid]");
if($uid[0]!='No Item') {
if(empty($uid[3])) {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$uid[4]\"><img src=\"https://vborg.vbsupport.ru/greentek/itemshop/$uid[0].gif\" border=\"0\"></a> ";
} else {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$uid[4]\"><img src=\"https://vborg.vbsupport.ru/greentek/itemshop/$uid[3].gif\" border=\"0\"></a> ";
}
} else {
$post[items] .= "<img src=\"https://vborg.vbsupport.ru/greentek/itemshop/No Item.gif\" border=\"0\"> ";
}
}
} else {
break;
}
$nr++;
}
replace it with:
if($post[item0]!='No Item') {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[itid0]\"><img src=\"https://vborg.vbsupport.ru/greentek/itemshop/prs.gif\" border=\"0\"></a> ";
} else {
$post[items] .= "<img src=\"https://vborg.vbsupport.ru/greentek/itemshop/No Item.gif\" border=\"0\"> ";
}
$nr=1;
while ($nr <= 3) {
$xc="item$nr";
if($post[$xc]!='No Item') {
$xvv = "item$nr";
$xv = "itid$nr";
$xvvv = "icon$nr";
if(empty($post[$xvvv])) {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"https://vborg.vbsupport.ru/greentek/itemshop/$post[$xvv].gif\" border=\"0\"></a> ";
} else {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"https://vborg.vbsupport.ru/greentek/itemshop/$post[$xvvv].gif\" border=\"0\"></a> ";
}
} else {
$post[items] .= "<img src=\"https://vborg.vbsupport.ru/greentek/itemshop/No Item.gif\" border=\"0\"> ";
}
$nr++;
}
(NOTE: be sure to change https://vborg.vbsupport.ru/greentek to imagesfolder, i.e. the word "imagesfolder" enclosed in curly braces, when you cut and paste this!)
You should now have a less bloated bunch of code to process the images and items for each poster in a thread. As an added bonus, since the items_user is now LEFT JOIN'd to the $post array, you can individually call items by fieldname in the array. I do this because I don't like to see icons, but names. It varies depending on your categories and such, but if you use
$post[item1]
When editing your postbit, you should get the text name for the item in that category in your postbit, if you want a different one, try [item2], [item3], etc.
I hope this works and that it helps some of you out. :)
Jacko
10-27-2002, 11:58 PM
is it possible to show the users items in a seperate page with no other PHP at all???
will use a button then to pop up a window displaying the items...
any help would be appreciated...
and wont this lower the amount of query loads on the showthread????
and if this can go into a new page what can i delete of the old hacked php code to gt rid or reduce the query load??
all thanks :)
mewgood
10-28-2002, 10:14 PM
can anyone make an add on to this hack
like when a memner is opening a store, he can upload mini images his self which will put beside the item he wants it to be.
mewgood
10-29-2002, 05:34 AM
anyone?
Jacko
10-29-2002, 08:20 AM
i think this thread is dead mate... try posting a new topic??
Jacko
10-29-2002, 08:37 PM
can i not mod this hack so that all the users items can be viewable in a pop up page??
if anyone can please tell me,
Thanx
LOD-squa
11-05-2002, 11:46 PM
question how can I reset the money on the bank?
Ninth Dimension
11-05-2002, 11:52 PM
Originally posted by Jacko
can i not mod this hack so that all the users items can be viewable in a pop up page??
if anyone can please tell me,
Thanx Do you mean insted of the postbit??? I'm sure that this can be done, but would require some coding of your own, unless you can somehow grab the function that generates the items and use it in a diffrent file for the pop-up.
so basicly, in theory, yes, but it would need some work on your behalf.
Ninth Dimension
11-05-2002, 11:53 PM
Originally posted by gohanssj2
question how can I reset the money on the bank? what do you mean by this? in any case it should be nothing more than a simple SQL query string :)
LOD-squa
11-06-2002, 01:16 AM
I know but what's the code? I don't know it >_<
Ninth Dimension
11-06-2002, 02:18 AM
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 :))
NuclioN
11-06-2002, 01:24 PM
Frank, your fix reduces the query's and that's great but it seems to bring back the nasty 1064 error in the postbit.
LOD-squa
11-06-2002, 08:44 PM
well the bank has money(gil) and I want to get the banks money up to 0 how can I do that?
Ninth Dimension
11-06-2002, 10:06 PM
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.
mewgood
11-10-2002, 01:31 AM
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.
ULTIMATESSJ
11-21-2002, 04:06 PM
Originally posted by rake
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.
excuse the n00b question, but would this still work if i tried to use the store hack points for the itemshop
Alchemyst
11-21-2002, 09:52 PM
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....
Jitway
11-22-2002, 12:29 AM
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?
ULTIMATESSJ
11-23-2002, 05:18 PM
Originally posted by Jitway1
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.
use an ftp program and get rid of the name, so the ending file is called
.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....
Jitway
11-23-2002, 05:41 PM
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:
Bitsys
11-23-2002, 06:09 PM
Comment out the following code, assuming you used rake's fix above:
global $totalcats;
for ($i = 1; $i <= $totalcats[0]; $i++) {
if($post['item$i']!='No Item') {
if(empty($post['icon$i'])) {
$itemid = "itid$i";
$iconid = "icon$i";
$itemname = "item$i";
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$itemid]\"><img src=\"{ imagesfolder}/itemshop/$post[$iconid].gif\" border=\"0\"></a> ";
} else {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$itemid]\"><img src=\"{ imagesfolder}/itemshop/$post[$itemname].gif\" border=\"0\"></a> ";
}
} else {
$post[items] .= "<img src=\"{ imagesfolder}/itemshop/No Item.gif\" border=\"0\"> ";
}
}
To comment, just put the characters " /* " in front of it and the characters " */ " at the end of it (without the quotes, of course).
Now, once the above is commented out, put the following code below it:
global $totalcats;
$nr=1;
$count=1;
while ($count <= $totalcats[0]) {
$xc="item$nr";
$xv = "itid$nr";
if(!isset($post[$xv])) {
$nr++;
continue;
}
if($post[$xc]!='No Item' AND isset($post[$xc])) {
$xvv = "item$nr";
$xv = "itid$nr";
$xvvv = "icon$nr";
if(empty($post[$xvvv])) {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"{ imagesfolder}/itemshop/$post[$xvv].gif\" border=\"0\"></a> ";
} else {
$post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"{ imagesfolder}/itemshop/$post[$xvvv].gif\" border=\"0\"></a> ";
}
} else {
//$post[items] .= "<img src=\"{ imagesfolder}/itemshop/No Item.gif\" border=\"0\"> ";
}
$nr++;
$count++;
}
Don't forget to remove the space from { imagesfolder} (there are several instances of it). The space is there so that vBulletin.org doens't replace it with it's own url.
Also, if you remove the " // " from the line
//$post[items] .= "<img src=\"{ imagesfolder}/itemshop/No Item.gif\" border=\"0\"> ";
then it will try to display the No Item grahpic. I commented this out on my board because it added extra space that was not necessary.
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.
Jitway
11-23-2002, 09:09 PM
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: .
Mijae
11-25-2002, 01:26 AM
Originally posted by girlzclan
this happens everytime i try to donate, iv'e installed this hack on 4 different forums and im getting the same thing everytime :(
Database error in vBulletin 2.2.8:
Invalid SQL: SELECT field5 FROM userfield WHERE userid=Array
mysql error: Unknown column 'Array' in 'where clause'
mysql error number: 1054
Date: Monday 21st of October 2002 09:06:06 PM
Script: http://www.girlzclan.com/forums/forums/itemshop.php
Referer: http://www.girlzclan.com/forums/itemshop.php?action=donate&user=11
same with me, anyone help?
Mijae
11-25-2002, 02:58 PM
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
Bitsys
11-25-2002, 09:19 PM
Originally posted by v0id
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
How many items are in your inventory? Also, what are the item names and IDs?
Mijae
11-26-2002, 12:02 AM
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?
Bitsys
11-26-2002, 12:21 PM
Sorry, I wasn't very clear with my question. What I meant was, which items has your RPG character bought from the itemshop?
Mijae
11-27-2002, 12:19 AM
Lightning Staff
Diamond Gloves
Ore
Bitsys
12-02-2002, 06:32 PM
My mistake. I accidentally had you comment out the line
global $totalcats;
Just add
global $totalcats;
above my code, as seen in my edited post above. That should fix it.
Mijae
12-02-2002, 06:51 PM
One more problem, now it doesnt show "Ore" or anything from the 3rd category.
Bitsys
12-02-2002, 08:08 PM
Originally posted by v0id
One more problem, now it doesnt show "Ore" or anything from the 3rd category.
That is caused by a typo from the original installation of the Itemshop. The field name in the table `items_user` says "Item3" when it should say "item3" with a lower case "i". An easy way to fix this is to go into phpmyadmin and manually change the field name to make it lowercase. If you don't have phpmyadmin, and you don't know how to change it with a database query, then let me know.
Mijae
12-02-2002, 08:11 PM
I have phpMyAdmin, but I dont know the query string.
Bitsys
12-02-2002, 08:25 PM
In phpmyadmin v2.2.2, here is the manual way of changing the field name:
Click on your vBulletin Database so that the list of tables drops down.
Click on the table called `items_user`
In the far left column, look for a field called "Item3". Click on the "Change" link across from this field. It should bring you to a screen that lets you change the name of the field.
Change the name of the field from "Item3" to "item3".
Click "Save". The field name should now be correct.
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:
ALTER TABLE `items_user` CHANGE `Item3` `item3` CHAR(250) DEFAULT 'No Item' NOT NULL
One of those two methods should work.
Mijae
12-02-2002, 08:28 PM
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 >_<
Bitsys
12-02-2002, 09:03 PM
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. :(
tdphillipsjr
12-04-2002, 03:48 PM
Invalid SQL: SELECT field5 FROM userfield WHERE userid=Array
Looks like you declared an array and didn't give it any values. Whatever variable your using (userid = '$myarray'), you're probably not defining an index for it to look at.
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.
Mijae
12-04-2002, 09:54 PM
Database error in vBulletin 2.2.6:
Invalid SQL: SELECT field5 FROM userfield WHERE userid=Array
mysql error: Unknown column 'Array' in 'where clause'
mysql error number: 1054
Date: Wednesday 04th of December 2002 04:57:07 PM
Script: http://www.invoid.net/forum/forum/itemshop.php
Referer: http://www.invoid.net/forum/itemshop.php?action=donate
if($action==donate && isset($user)) {
if ($bbuserinfo['userid']==0) {
eval("dooutput(\"".gettemplate("error_notreg")."\");");
} else {
if($user == $bbuserinfo[userid]) {
eval("dooutput(\"".gettemplate("itemshop_donate-self")."\");");
exit;
} else {
if($points > 0) {
eval("dooutput(\"".gettemplate("itemshop_donate")."\");");
exit;
} else {
eval("dooutput(\"".gettemplate("itemshop_donate-error")."\");");
exit;
}
}
}
}
if (isset($iddonate)) {
if($points >= $amount) {
$dpointss=$DB_site->query_first("SELECT $pointfield FROM userfield WHERE userid=$iddonate");
$dpoints = (int) $dpointss[$pointfield];
$donated = ($dpoints + $amount);
$substr = ($points - $amount);
$DB_site->query("UPDATE userfield SET $pointfield='$donated' WHERE userid=$iddonate");
$DB_site->query("UPDATE userfield SET $pointfield='$substr' WHERE userid=$bbuserinfo[userid]");
eval("dooutput(\"".gettemplate("itemshop_donate-thanks")."\");");
exit;
} else {
eval("dooutput(\"".gettemplate("itemshop_donate-more")."\");");
exit;
}
}
Something has to be wrong there, but since I am a newbie I have no idea what it can be.
tdphillipsjr
12-05-2002, 03:07 AM
is $iddonate set somewhere in this file? That looks to be the problem in the query.
Mijae
12-05-2002, 07:51 AM
Nope, thats the only part.
tdphillipsjr
12-05-2002, 02:50 PM
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?
Bitsys
12-05-2002, 07:31 PM
tdphillipsjr, here is the view source on my forums:
<input type="hidden" name="iddonate" value="23">
Here is the code from the itemshop_donate template that corresponds to the above code:
<input type="hidden" name="iddonate" value="$user">
As you can see, "iddonate" comes from yet another variable. Here is the code from postbit that sets the "$user" variable:
<a href="#" onclick="javascript:window.open('itemshop.php?action=donate&user=$post[userid]', '', 'toolbar=no,scrollbars=no,resizable=no,width=200,h eight=50');">Donate</a>
I am not having the "Array" problem on my forum with any of the above code, and that's why I don't know how to solve the problem. Let me know if you figure it out for v0id! :cool:
Mijae
12-05-2002, 08:39 PM
{htmldoctype}
<html>
<head>
$metarefresh
<title>$bbtitle - Itemshop</title>
$headinclude
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td valign="middle" align="center">
<form action="$PHP_SELF" method=post>
<input type="hidden" name="iddonate" value="$user">
<input type="text" class="bginput" name="amount" value="0">
<input type="submit" class="bginput" value="Donate!"></form></td>
</tr>
</table>
that is my itemshop_donate template, looks fine to me.
Mijae
12-05-2002, 08:41 PM
Oh, I did a view source and I have this:
<input type="hidden" name="iddonate" value="Array">
tdphillipsjr
12-05-2002, 11:55 PM
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]
Mijae
12-06-2002, 08:44 AM
Doesnt matter where I enter the ID, I even typed the url manually, I still get "Array"
Davey
12-06-2002, 02:55 PM
Originally posted by ender
FYI, I integrated this hack to work with the Store Hack by Lesane by finding all instances of userfield in itemshop.php and replacing it with user. Then in the admin panel change the field name to storep.
Perhaps you could help.
I dunno what I done wrong, but the bank doesn't work with Lesane's Store hack 2.0.
I'm using vBulletin version 2.2.9, PHP version 4.2.3 and MySQL version 4.0.0-alpha.
I installed in this order:
Store hack 2.0.
Itemshop 5.
itemshop.php integrated with store.
My userid is 1, but when I donate (through AdminCP) to 'Bank' (userid 3), no money is *actually* donated.
Here is a screenshot of the bank with 'Bank' having no money:
[ender]: Have you got any suggestions that will solve this?
Or anyone for that matter who can help.
Thanks.
Dave.
Davey
12-06-2002, 03:10 PM
And it works for userid 1 (me).
The screenshot above is of it not working with userid 3 'Bank'.
Here's a screenshot of it working for me:
I cannot understand what's going on.
Now it's getting confusing. I thought I installed it fine.
Dave.
tdphillipsjr
12-06-2002, 05:35 PM
Make sure that this:
$postbits .= getpostbit($post);
Is in your showthread.php file, somewhere beneath this big, ugly query... not directly under it, but under it.
$posts=$DB_site->query("
SELECT
post.*,post.username AS postusername,post.ipaddress AS ip,user.*,userfield.*,".iif($forum[allowicons],'icon.title as icontitle,icon.iconpath,','')."
attachment.attachmentid,attachment.filename,attach ment.visible AS attachmentvisible,attachment.counter
".iif($avatarenabled,",avatar.avatarpath,NOT ISNULL(customavatar.avatardata) AS hascustomavatar,customavatar.dateline AS avatardateline","")."
FROM post
".iif($forum[allowicons],'LEFT JOIN icon ON icon.iconid=post.iconid','')."
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
".iif ($avatarenabled,"LEFT JOIN avatar ON avatar.avatarid=user.avatarid
LEFT JOIN customavatar ON customavatar.userid=user.userid","")."
LEFT JOIN attachment ON attachment.attachmentid=post.attachmentid
WHERE $postids
ORDER BY dateline $postorder
");
If it's not, that's probably the problem. If it is then try this... go to your admin/functions folder.
!!!!BACK IT UP BEFORE MAKING ANY CHANGED!!!!
right after this line
if ($post[userid]!=0) {
Put in this
$posterid = $post['userid'];
After that, go to the template in question and replace:
<a href="#" onclick="java script:window.open('itemshop.php?action=donate&user=$post[userid]', '', 'toolbar=no,scrollbars=no,resizable=no,width=200,h eight=50');">Donate</a>
with
<a href="#" onclick="java script:window.open('itemshop.php?action=donate&user=$posterid', '', 'toolbar=no,scrollbars=no,resizable=no,width=200,h eight=50');">Donate</a>
Just make sure you back things up in case something bad happens.
Davey
12-06-2002, 06:50 PM
That did nothing at all.
I logged in as 'Bank'. I had '1000000000'.
I then deposited it ALL and it was the same:
User Stats
Points: 0
Bank Deposit:
Dave.
Ember
12-06-2002, 07:23 PM
I dont know wether to install this hack or not, there seem to be a lot of errors there!
Mijae
12-06-2002, 10:16 PM
Didnt work for me either :P
Ember
12-08-2002, 06:18 PM
Didnt work for me, I got loads of errors....
Shame though, looks like a good hack! http://forums.camwars.net can anyone help?
Ember
12-08-2002, 06:20 PM
Nevermind, i uninstalled it.... not worth the trouble i dont think!
user360
12-14-2002, 10:09 PM
could anyone get this working
neolithic
12-19-2002, 04:43 AM
NT
I got this email twice
Database error in vBulletin 2.2.9:
Invalid SQL: SELECT * FROM items WHERE itemid=
mysql error: You have an error in your SQL syntax near '' at line 1
mysql error number: 1064
Date: Thursday 26th of December 2002 01:56:24 PM
Script: http://eternalgamers.com/forums//forums/itemshop.php?action=view&id=
Referer: http://eternalgamers.com/forums/showthread.php?s=&postid=274
Any help here?
alanvo
01-17-2003, 05:37 PM
I got this in when I try creating a new thread...
Unknown column 'storep' in 'field list'
alanvo
01-21-2003, 01:37 AM
I have more than one style on my site...and when i install, only the default style got new templates added...how can i add it to my other styles?
alanvo
01-23-2003, 05:13 PM
bump....
Mrpolish
01-26-2003, 06:57 PM
Is there any way to not give gold per post in a selected forum (like spam) ?
Blitz King
02-09-2003, 12:57 PM
Originally posted by alanvo
I have more than one style on my site...and when i install, only the default style got new templates added...how can i add it to my other styles?
Ok. To solve this you go into your AdminCP and go to styles. Then go to the one you want to set to use the itemshop templates, and click on 'Properties'. Then where it says 'Template Set', set it to Default and it should work.
Xyphen
03-07-2003, 11:20 PM
Nice hack, I use it with the Battle System.
Jitway
03-08-2003, 03:15 AM
Originally posted by v0id
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
$metarefresh
<title>$bbtitle - Itemshop</title>
$headinclude
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td valign="middle" align="center">
<form action="$PHP_SELF" method=post>
<input type="hidden" name="iddonate" value="$user">
<input type="text" class="bginput" name="amount" value="0">
<input type="submit" class="bginput" value="Donate!"></form></td>
</tr>
</table>
that is my itemshop_donate template, looks fine to me.
Ok for all those with the donate problem I changed <input type="hidden" name="iddonate" value="$user"> to <input type="hidden" name="iddonate" value="userid "> and it works great now. Go figure! :laugh:
archangelsk
03-24-2003, 05:42 PM
don't do rake's update. he changes a part in showthread.php, which has nothing to do with the hack.
Kiss72dbz
03-28-2003, 09:36 PM
Umm how would I post items individually...Like If I wanted to post weapons only or accessories only...
trafix
03-28-2003, 11:21 PM
can this be installed with store hack or is it worth installing with the store?
i cant see that i need this hack.
Holidazed
04-10-2003, 02:05 AM
Can somebody PLEASE export your items, items_cats, items_options & items_user tables in your database. The hack here has no items in it and I am confused as to how to add them. It would be much easier to import the tables from a already populated items list.
PLEASE??
kevinnguyen
04-15-2003, 06:12 PM
y the items that i bought doesnt appear in the postbit even though i added $post[items] in the postbit template?
help please
kevinnguyen
04-15-2003, 06:26 PM
Custom Items Bug
The above by myself shows how to do it. However, ive found if you delete ANY of the categories then create a new one in place of em, the items DO NOT show up. So what to do is simply delete all the items in each category, and then replace them with your own custom items. Then if you require any more categories you can add em on, but you cannot delete any of the orginial four, it mucks it up.
thanx man *thumbs up*
Jakor Sevel
04-20-2003, 01:10 AM
can anyone tell me if there's a addon for vivi's itemshop that has it so that it doesnt' just show the picture of the item in the postbit, but says the weapon name and the picture? Thanks to anyone who can point me in the right direction.
Sylvus
04-22-2003, 04:25 PM
After fixing the query issues, removing the donate and custom shops, lowering the bank %, it's a nice little addition. After getting around the "select field5" error, it's been running well enough.
I'm working on a modification that will list shops within the Item Shop. So instead of seeing all items on one page, you'll see links to Weapon Shop, Armor Shop, Potion Dealer, etc. Within you can purchase your equipment.
Had to add new items as well. Pulled in all items from Baldur's Gate, Baldur's Gate 2, Icewind Dale and Icewind Dale 2 for purchasing.
Those FF items just don't cut it. :)
Syl...
03-24-03 at 07:42 PM archangelsk said this in Post #419 (https://vborg.vbsupport.ru/showthread.php?postid=372592#post372592)
don't do rake's update. he changes a part in showthread.php, which has nothing to do with the hack.
Are you willing to bet? It has everything to do with the itemshop. ;)
Zelda-King
04-26-2003, 03:52 PM
The withdrawing function could use some work, like being able to withdraw all (when you have 1000s of points) and the ability to specify how much you're putting in or taking out. Also, we should be able to buy more than one item.
Sylvus
04-27-2003, 01:07 AM
How can one go about showing a users number of posts in the Itemshop template?
$post[posts] shows nothing.
Shouldn't any variable work in any template?
Syl...
$bbuserinfo[posts] is the variable. ;)
Zelda-King
04-29-2003, 02:08 PM
Oh yeah, we could do with the ability to edit the interest rate for the bank.
Ryoku
05-03-2003, 11:00 PM
Man! this is a awsome script, the best itemshop script eva. I just install it and cant believe how easy it was. Most of the work are done for u in the install file. There only a couple stuff that needed to be added to somefile.
I rate this script 10/10 ;) .
BTW i didnt use the itemshop point system. I use points system . Both work perfectly together. There are addon for points system and u can use itemshop with points system. So it awsome.
Nice job! on the hack.
ps - On the next one can u add a bank :banana:
Zelda-King
05-04-2003, 11:17 AM
Hmm, could it be set so people could add their own custom icons for their custom stores? It's just tedious having to submit images for an administrator to upload to the server. Especially when the demand for custom shops is quite high.
EDIT: I can't even add icons for personal shops myself! I upload the images, put the name in the admin cp, and nothing... though the regular shop works fine. Is it supposed to be like this? Just people're asking.
Ryoku
05-04-2003, 11:24 AM
o i didnt see the banks was already included in the itemshop.
Sylvus
05-04-2003, 02:39 PM
Thanks Rake for your help here and on the Official VB site :)
Syl...
Sylvus
05-06-2003, 02:33 AM
Update:
Modified the Item Shop to support 3rd Edition Dungeons and Dragons rather than Final Fantasy stuff.
Includes:
3rd Edition Experience Tables
Gold distributed as you gain each level based on the 3rd Edition Character Creator released by WoTC. (Ie, Level 1 character receives 100gp to buy items, 2nd level 900gp, etc). No more gold for each post, although you can still do this if you want.
A member receives 10xp per day registered times 10 for a total of 100xp per day.
Any post made is added to this experience total.
3rd Edition Exp table:
1st Level - 0 xp - 100gp
2nd level - 1000xp (10 days registered) - 900gp
3rd level - 3000xp (30 days registered) - 2700gp
4th level - 6000xp (60 days registered) - 5400gp
5th level - 10000xp (100 days registered) - 9000gp
and so forth.
The longer a member has been part of your site, the more experience they will have, the higher level they will be and the more gold they will get to purchase items.
I made some changes because giving gold per post is asking for spam so it was modified to give gold based on how long you've been part of the forum.
This is my first hack, so I have yet to receive permission from the author of the Item Shop and # of Days Registered author regarding these modifications and if I can release it as a hack/addition.
Not sure if anyone would be interested, as it seems many are Final Fantasy fans.
Syl...
Is this compatible with vB 2.3 even if it's for vB 2.2.5?
Zelda-King
05-10-2003, 11:31 AM
I feel it's best to warn people that this hack increased the number of queries on the showthread page from about 35 to 150.
Sylvus
05-10-2003, 08:19 PM
Did you install the original Item Shop Zelda-King? There are posts made (pages 14 or 15) that will cut these queries out and drop their number.
On another note, how do you find out how many queries a page is generating?
Syl...
gmarik
05-18-2003, 02:46 PM
05-06-03 at 05:37 PM Reno said this in Post #437 (https://vborg.vbsupport.ru/showthread.php?postid=392190#post392190)
Is this compatible with vB 2.3 even if it's for vB 2.2.5?
Is it?
Marco
GaleForce
06-13-2003, 01:09 PM
Anyone know why a user can't have more than 32762 points?
Steve W.
06-16-2003, 04:44 PM
Is there a way to use text instead of images? Cause it's hard to try and make a load of little 30x30 boxes with musical instruments shrunk down to that size... it just looks cheesy.
If you could use text that displays the item name instead of a picture, I could then put that in the users signatures so it showed up just beneath their siggys.
All I need to do presumably is find the template that displays the items, and instead of showing the iamg,e just show the item name. Can this be done?
Poison Fly
06-21-2003, 05:03 AM
This is the first time that I have installed an item shop hack.
I have an interesting problem. During the installation steps I am told to:
7. Still in the admin cp, select 'itemshop' > 'edit options' from the side menu. Be sure the field here corresponds to the one you added above!
But that option in the side menu is not there. I do not see any item shop links in my user cp either. The donate link works, but I'm not redirected to a thread. I have all the templates there, though. I'm sure this is related with a query problem? (No, I'm not sure.)
@_@
Poison Fly
06-21-2003, 05:25 AM
*bump* The seventh step was taken care of, but I can't see any link to any store anywhere, and that 'non-redirect' script when clicking on the donate button is weird.
kaotic
07-05-2003, 09:31 PM
What query should I run in order to purchase an item? Does anybody know?
GaleForce
07-28-2003, 01:24 AM
06-13-03 at 03:09 PM GaleForce said this in Post #441 (https://vborg.vbsupport.ru/showthread.php?postid=408515#post408515)
Anyone know why a user can't have more than 32762 points?
There is an error, if you donate negative ammounts, you actual steal from them. Anyone know how to fix this? I did this, but it didn't work:
if($ammount < 0 ) {
eval("dooutput(\"".gettemplate("itemshop_negative")."\");");
exit;
after this:
eval("dooutput(\"".gettemplate("itemshop_donate-error")."\");");
exit;
} else {
could someone tell me what i did wrong in fixing this?
EDIT: here it is, i fixed it. Everyone add this:
if($ammount < -1 ) {
eval("dooutput(\"".gettemplate("itemshop_negative")."\");");
exit;
}
After this:
if (isset($iddonate)) {
if($points >= $amount) {
Create a new template called itemshop_negative. Put this in it:
You cannot donate a negative ammount!
Yuber
08-04-2003, 02:20 AM
Will there be an itemshop hack for vB3?
Kaelon
08-04-2003, 03:54 PM
I feel it's best to warn people that this hack increased the number of queries on the showthread page from about 35 to 150.
I'm guessing that there's really no easy way to optimize this, is there?
Legendary Kid
08-04-2003, 06:03 PM
Yes, the itemshop works with 2.3.0.
Posted By: Kaelon
I'm guessing that there's really no easy way to optimize this, is there?
The store hack runs less query's.
03-07-03 at 10:15 PM Jitway1 said this in Post #418 (https://vborg.vbsupport.ru/showthread.php?postid=362635#post362635)
Ok for all those with the donate problem I changed <input type="hidden" name="iddonate" value="$user"> to <input type="hidden" name="iddonate" value="userid "> and it works great now. Go figure! :laugh:
I was having the problem with the donate as well ... I applyied this change here and now what happpens is it not only donates to the user I am donating to but to everyone on the forum ... and not only the amount I am donating the amoutn I have plus the amount donated so lets say I have 5000 and donate 500 everyone on the forum gets 5500 o.O any ideas on how to fix this?
Kid1412x
08-28-2003, 02:40 AM
thanx for sharing
Lechuong
08-28-2003, 04:23 AM
i am hacking RPG ,but myfile showthread.php in error
can U give me ? thz thz
my email: daoquoctruong@yahoo.com
tnguy3n
09-06-2003, 06:38 AM
dang!! this hack sounds cool, but I got a database error when installed it.
Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'
and here's structure of my userfield table ...
userid int(10) unsigned NOT NULL default '0',
field1 char(250) NOT NULL default '',
field2 char(250) NOT NULL default '',
field3 char(250) NOT NULL default '',
field4 char(250) NOT NULL default '',
What is field5 then?? I guess I could manually inject it to the userfield table if I knew what it is.
does anyone have this hack to work with vb 2.3.2??
[BA]Techie
10-04-2003, 02:51 PM
For some reason my members' points will not rise correctly. Half of their points do but some of the other members have 0 and have posted like 20 times. Its supposed to give them 10 points per post but it's not doing it's job. Any suggestions?
brownafroduck
10-15-2003, 08:42 AM
I searched the thread, but I didn't find any questions about this anywhere... :/
When you delete a post, it doesn't delete the points that you get for the post. How can I change this?
lasto
11-01-2003, 06:35 AM
does this hack still use a lot of queries or has it been fixed ??
and last but not least does this mean i cant install this if i have the stroe hack installed ?????
VirtualHogwarts
11-29-2003, 02:03 PM
There are a couple things I would like to add/remove with this hack, I have a BRAND NEW clean nothing edited in vB 2.3.3 and I want to install this hack for a Harry Potter Virtrual Hogwarts board.
Here are some changes I want ...
I don't want users to be able to sell their items.
I don't want users to be able to have personal stores.
I was wondering if there is a way to make a bank hack with this?
Virtual Hogwarts
DuffMan
12-01-2003, 09:42 PM
VirtualHogwarts, an easy way to get rid of the sell items and personal stores areas is just to comment out or delete the links in the templates. It won't stop someone who knows how the hack works, but for general users it'll work fine.
I'm trying to find a way to send a PM to both an admin and the buyer when an item is sold with the name of the buyer, date + time of purchase, and the name and category name of the items (the actual text not the id numbers). Does anyone know how to do this? Thanks.
asianboi
05-04-2005, 04:23 PM
does this hack work with v3.07?
danrak
06-06-2005, 04:08 PM
nice work Vivi,
may i suggest to you, to combine this with secure downloads script (http://www.shackrats-hideout.com/sdownload/index.php?catid=48) , so users can download files using their points, and upload files and get points.
cheers, :)
I would suggest staying away from that script. There is no support, the admin hasn't been online since mid March. Just a horrible "product".
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.