The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
The Itemshop v5 (Original) Details »» | |||||||||||||||||||||||||
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:
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:
26 templates to the main template set:
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
|
Comments |
#42
|
||||
|
||||
I know that controls overall stock, but I want to change the stock for each particular item, to make some items rarer than others.
|
#43
|
||||
|
||||
Here is what it looks like on my site, my members love it, they say a great addition
|
#44
|
||||
|
||||
Looks pretty good, hilariously looking images for your items.
If anyone could help me, I'd praise you and plug your site at my forums. What I need is: To fix personal shops to only resell their items. To be able to buy multiple items in a category. |
#45
|
|||
|
|||
To fix the negative donation replace your ###Donate### section in itemshop.php with this. FYI, this also penalizes anyone who tries to enter a negative amount 10 points.
Replace the ### Donate ### section with this in itemshop.php. Code:
// ###################### 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($amount < 1) { eval("dooutput(\"".gettemplate("itemshop_donate-less")."\");"); $penalty = ($points - 10); $DB_site->query("UPDATE userfield SET $pointfield='$penalty' WHERE userid=$bbuserinfo[userid]"); exit; } 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; } } Code:
<!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"> <smallfont>You are trying to donate a negative amount! Stealing is not allowed! You have been penalized $10.</smallfont></td> </tr> </table> |
#46
|
||||
|
||||
the bank is already there. no future project. it's working.
|
#47
|
||||
|
||||
very nice...and you don't mind if I modify it, right
|
#48
|
|||
|
|||
Vivi, you need to update the installion script to delete the bank templates.
|
#49
|
||||
|
||||
Sounds like it's all working good, but does anyone have any suggestions for my problems?
Is the bank useful, besides getting everyone richer? Also, What changes do I have to do to go from Itemshop 5.0 to 5.2? |
#50
|
|||
|
|||
You just need to upload the new files.
Vivi: It's possible to permanently mess up the personal shop system. If you buy a personal shop, then delete that shop, then buy a personal shop again it will not work because the ids are auto_incremented. I'm not good at coding so it's a little hard for me to understand the layout of the system but my guess would be that the display mechanism is working on an increment method as well and when it sees: 1,2,3,5 it will only display 1,2,3 because it missed 4 and stopped prematurely. My guess would be that if one person deletes their shop after a few people make stead it will stop displaying everyone. |
#51
|
||||
|
||||
Vivi, One more thing, and nice hack, the thing is how can It display members Items on Postbit, like the old Itemshops??
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|