Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
The Itemshop v5 (Original) Details »»
The Itemshop v5 (Original)
Version: 1.00, by Vivi Ornitier Vivi Ornitier is offline
Developer Last Online: Mar 2008 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 04-29-2002 Last Update: Never Installs: 102
 
No support by the author.

Again, I'm posting this for a friend. He is the original itemshop creator. (see this thread):

Let's start with the beginning. You may wonder why this thread has the word original in its name. Well, there are too many itemshops out there. So here's a short version of the itemshop history:
  1. First of all, afterlab had the idea of an itemshop, which he also did, but it was pure text. People would have to talk to him to buy items, and he would have to manually substract the points.
  2. Then, as a member of ffr, i started talking about how easy and convenient it would be to have an automated itemshop. People just click on the link, and the item is added, points substracted. Later that day, i did the very first version of the itemshop. Nothing big, just a buy function. The items were stored in an array.
  3. I had released my itemshop on vb.org and afterlab was pretty unsatisfied that i hadn't given him any credit for the original idea. Actually i didn't even consider the itemshop a hack, it was more of a joke, something i had made for fun. I had no idea it would become so popular.
  4. 2 days later, version 4: This one had error pages, improved buy and sell function. I was planning a database powered itemshop, with admin cp interface.
  5. afterlab then pretty much copied my code 3 times, and released his first version "with item categories". It felt pretty unfair, while i was struggling to do something way more advanced, he was getting all the credit for something that was still 85% mine.
  6. then my computer broke, just as I was working on the admin cp of my database version. I was also planning to do the battle system hack.
  7. in the meantime, about one week later, afterlab released his itemshop 3 i think, database powered.
  8. couple of weeks later afterlab started all the battle system stuff.
  9. about 2 months after my computer crashed, it got finally fixed, and i began to work to complete my own itemshop.
  10. So well, here it is.
nice story, isn't it?

here's a quick list of features:

Database driven
Full Template Set (everything that is outputted is generted through templates)
Infinite items categories and items
Items and category descriptions
Stock (idea by Crono)
Detailed items/categories/shops stats (number of sold items, profit)
All the item and category adding/editing/deleting and option editing is done through the cp.
Special icon column for different item display possibilities
!!!! Personal Shops !!! (members can create their own shops and sell items. You can specify how much it costs through the cp. while each category has it's own slot, all the personal shops work under one slot. That means, you can only have one item from all the personal shops)
An own donation system included

what it adds:

The itemshop adds 4 tables to the vbulletin database:
  • [items] - This is where all the items are stored
  • [items_cats] - This is where all the categories are stored
  • [items_options] - This is where the configuration data is stored
  • [items_user] - This is where all the user stuff and items he bought, are stored

26 templates to the main template set:
  • itemshop
  • itemshop_buypers
  • itemshop_delpers
  • itemshop_donate
  • itemshop_donate-error
  • itemshop_donate-more
  • itemshop_donate-self
  • itemshop_donate-thanks
  • itemshop_error-nosell
  • itemshop_error-noshop
  • itemshop_info
  • itemshop_its
  • itemshop_itsbits
  • itemshop_own
  • itemshop_pers
  • itemshop_persform
  • itemshop_personal
  • itemshop_pheader
  • itemshop_redir-del
  • itemshop_redir-edit
  • itemshop_redir-sell
  • itemshop_redir-thanks
  • itemshop_tablebottom
  • itemshop_tablemiddle
  • itemshop_tabletop
  • itemshop_view
Like i said, anything there is to edit can be edited through templates

File and Template Modifications:
there are 4 file modifications, but only one of them is neccessary.
and one template modification: postbit, wherever you want the donation link to be.
important!!!!: remember to change your points field and remove any old itemshop templates!!!

Installation method
First of all, be sure to back up your database!! This is a fairly large hack. Adds a lot of stuff to the database.

the installation is done through the install script install_itemshop.php. It will guide you through 5 easy steps.
the only manual edits you'll have to do are the ones above, file and template edits.

Included Files

readme.htm - general information
root/itemshop.php - main itemshop file
admin/itemadmin.php - itemshop admin interface
admin/install_itemshop.php - itemshop installation file
images/itemshop - itemshop image file. This is where you will have to upload all coresponding graphics.

Contact Information
mail: gheghe@rnc.ro
aim: MewtwoAlx

If you wish to colaborate with me in continuing this hack or to add item descriptions for further versions please contact me.
This hack can easily be used not only for rpg boards.. As an example: you add computer categories: cpu, hdd, monitor etc, replace points with $ and let people on your forum build themselves a computer!


I've already got a list of stuff i gotta update in the next version, but if there's any request feel free to ask.
The shop is 100% functional, but i want to improve stuff, make it more efficient.


[And please, before releasing any new mod/edit/version to this hack ask for permission] - If you agree to that condition you are allowed to freely use and distribute the zip below, as long asthe copyright and author information remains intact.
By not agreeing, you are not allowed to use this hack, nor will you get any support.

- Thank you! That was just to prevent my hours hard work on the itemshop to be stolen

Whoa, that was a lot of typing! I hope you like it! Attached file below.


screenshots attached:
https://vborg.vbsupport.ru/showthrea...268#post246268

https://vborg.vbsupport.ru/showthrea...277#post246277


*** update
all bugs reported by Kaelon are fixed.
i've also added some extra stuff:
ascending or descending order
postbit edit: well, for the postbit, i couldn't just put the imgs, cause all the items of the same type have the same image. so i put the image and a link to a separate item info page.
1 new template required for the item info page.
added remove feature in installation script. ( note: it will simply drop the tables and remove the templates).
75% faster!!! and less stress on your server
***

***
new update: bank hack integrated!!!
***

***

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #212  
Old 07-08-2002, 10:33 AM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by proxyMX
It seems that no one has any feasable solution to the problem so many of us are having. What frustrates me is when people make hacks, dont think em through properly and just release him, and obviously the Itemshop 5 has been a problematic release. Perhaps some more testing wouldnt have harmed anyone? And if anyone know how to fix this problem, im sure alot of us would be gratefull.
In the Postbit where you place
PHP Code:
$post [items
Why wont it work?
I don't damn care if you like my hack or don't. Wanna know why i stopped giving support for this? Cause you people are VERY ANNOYING! Yes, you can't read 3 lines of instructions, then run ahead and complain that the hack sucks. Most errors you report are caused by incorrect installation and/or other hacks. I have tested it, and it works perfectly for me. YOU PEOPLE ARE LAZY. I don't expect you to read all the posts in this thread (which could actually solve your problem), but AT LEAST have the decency of properly reading the installation instructions.

FINAL POSTBIT FIX:
since i did a join on the items_user table, you can use any field in that table as $post[whatever].
Reply With Quote
  #213  
Old 07-09-2002, 11:37 PM
Brianna Brianna is offline
 
Join Date: Mar 2002
Location: home
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Vivi Ornitier


I don't damn care if you like my hack or don't. Wanna know why i stopped giving support for this? Cause you people are VERY ANNOYING! Yes, you can't read 3 lines of instructions, then run ahead and complain that the hack sucks. Most errors you report are caused by incorrect installation and/or other hacks. I have tested it, and it works perfectly for me. YOU PEOPLE ARE LAZY. I don't expect you to read all the posts in this thread (which could actually solve your problem), but AT LEAST have the decency of properly reading the installation instructions.

FINAL POSTBIT FIX:
since i did a join on the items_user table, you can use any field in that table as $post[whatever].
What version was this that you tested it on? I have version 2.2.5 and it works fine, other than the interest not incrementing, which isn't a big deal, but this problem I had with the template system being messed up happened at another person's forums as well.

I followed it step by step... Now I do have other hacks; but everything was fine until I installed this one: could the problem be a mixture of this hack and another that might clash with eachother?

Of course, I do not mind if you do not help me out here; I read through every post in this thread before posting my problem (knowing my idiocity I could have overlooked it being mentioned, but as far as I know I did not see it), anyways yes it was quite annoying, and I can understand your frustration completely...
Reply With Quote
  #214  
Old 07-11-2002, 12:54 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm....

Can anyone help me?

When I make a new catagory, it won't show up in the postbit. I have tried to edit the functions.php part, but to no avail. Can anyone post how to show all of the items you have in the postbit?
Reply With Quote
  #215  
Old 07-11-2002, 04:00 AM
dadymac dadymac is offline
 
Join Date: Nov 2001
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just wanted to say i have this hack installed along with 15 or so other hacks, even integrated this with lesanes, and i didnt have to do one single extra thing other than the instructions.

great hack, sorry you have to deal with comments like we all see here.
Reply With Quote
  #216  
Old 07-12-2002, 02:07 AM
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did the same as you, but the issue comes when yu add a new catagory and buy an item. The item that you buy in the new catagory doesn't show up in the postbit, but the other 4 do.
Reply With Quote
  #217  
Old 07-12-2002, 02:12 AM
E's Avatar
E E is offline
 
Join Date: Mar 2002
Location: Fieldale Virginia
Posts: 421
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

blah i made my own version of this... where items actually do things.... and u can have up to 3 weapons and 3 armour...
Reply With Quote
  #218  
Old 07-12-2002, 04:55 AM
xxskullxx xxskullxx is offline
 
Join Date: Jun 2002
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this hack installed on my (2.2.6) site without any problems whatsoever. It installed fine along side of alot of different hacks. I think Vivi did a great job.

Cheers!
Reply With Quote
  #219  
Old 07-13-2002, 02:42 AM
GamerNext GamerNext is offline
 
Join Date: Jul 2002
Location: Ohio
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having all my problems with the field thing and putting it in post bit.

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

Date: Friday 12th of July 2002 11:37:05 PM
Script: http://www.gamernext.com/boards/boards/newreply.php
Referer: http://www.gamernext.com/boards/newr...y&threadid=293

I have no idea what to do and it's all to do with the field number.
Reply With Quote
  #220  
Old 07-13-2002, 02:59 PM
Grealm Grealm is offline
 
Join Date: Jun 2002
Location: Cali
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i heard this hack have a bug if u buy ur personal shop..?
Reply With Quote
  #221  
Old 07-13-2002, 03:53 PM
Vivi Ornitier's Avatar
Vivi Ornitier Vivi Ornitier is offline
 
Join Date: Nov 2001
Location: Black Mage Village
Posts: 442
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by GamerNext
I'm having all my problems with the field thing and putting it in post bit.

Database error in vBulletin 2.2.6:

Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

Date: Friday 12th of July 2002 11:37:05 PM
Script: http://www.gamernext.com/boards/boards/newreply.php
Referer: http://www.gamernext.com/boards/newr...y&threadid=293

I have no idea what to do and it's all to do with the field number.
now this is what i'm talking about. read through the instructions.
the "add a new userfield" part.

Quote:
I did the same as you, but the issue comes when yu add a new catagory and buy an item. The item that you buy in the new catagory doesn't show up in the postbit, but the other 4 do.
read my post above.

Quote:
What version was this that you tested it on? I have version 2.2.5 and it works fine, other than the interest not incrementing, which isn't a big deal, but this problem I had with the template system being messed up happened at another person's forums as well.

I followed it step by step... Now I do have other hacks; but everything was fine until I installed this one: could the problem be a mixture of this hack and another that might clash with eachother?

Of course, I do not mind if you do not help me out here; I read through every post in this thread before posting my problem (knowing my idiocity I could have overlooked it being mentioned, but as far as I know I did not see it), anyways yes it was quite annoying, and I can understand your frustration completely...
if everyone on this board would be like you.....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:22 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.09769 seconds
  • Memory Usage 2,326KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete