Version: 1.00, by Vivi Ornitier
Developer Last Online: Mar 2008
Version: 2.2.x
Rating:
Released: 02-16-2002
Last Update: Never
Installs: 10
Is in Beta Stage
No support by the author.
Hehe. I put this little thing together. It's nothing fancy, but it does it's job.
It works together with the points hack. Your items and the cost (in points) are kept in an array inside itemshop.php. You'll have to edit the file each time you want to add a new item.I might add database support for items later and a cp interface, but right now, it's good.
First, you'll need to add another profile field.
Title: Item or whatever you want to call it
Description: up to you
Max Input: 100
Field Length: 25
Display Order: current fields +1
Required: no
Hidden: no
Editable: no
it's basically just like the points. Remember the field number and change it in the file. Default is(if you haven't added any other fields before):
points: 5
item: 6
in itemshop.php you may want to change the $loop variable. Associated images should be put in the https://vborg.vbsupport.ru/images/itemshop/ direcotry, and have the same name you gave the item in the array.
if you don't want associated images, you must take them out in the file and in the itemshop template.
upload the file itemshop.php
make a template called itemshop, and put in the contents of the itemshop.txt file
in the postbit template:
under: <a href="moderator.php?s=$session[sessionhash]&action=points&userid=$userinfo[userid]" target=_blank>Points:</a> $post[field5]<br> (or whatever you have for your points)
put: <a href="itemshop.php">Item:</a> $post[field6]<br>
if you wish any new user to have "No Item" instead of nothing in the postbit template, run this query:
ALTER TABLE `forums`.`userfield` CHANGE `field6` `field6` CHAR(250) DEFAULT 'No Item' NOT NULL
change forums to the name of the database, and field6 to the number of your item field.
please note that it won't modify any existing users. Just users that register after you run the query.
That's about all. I'll edit this if i forgot anything.
Enjoy!
scroll down for attachement
screenshots included in the zip
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
^^blah neo's right... shinra owns us... i want the shop hack afterlab has (not with weapons and stuff for battle system) just for custom titles chnaging username... stuff like that,.. And especially the Lotto.. .that would be ill.... just like the one that i actually saw of afterlabs... o well... o ur rpg thang
Originally posted by neo Many thanks to you. I do support open source... but with this hack it just seems like it should be keep to the ones that make it, or somehow buy it, and you dont have to release your code to me, I would just like to see it in action when you get in up and running on your site.
I have a question.
Why do any of you post a hack here on a hackers forum and then not release it? Do you get some sick, twisted sense of enjoyment to see those less fortunate grovel beneath you? Or is it that you would like to shamelessly promote your site here in hopes to gain some free traffic to your sites? In more simpler terms, let the author do as he wishes and pipe down. Your version is only exclusive if YOU wish to keep it to yourself. Should someone else make it, then leave it up to them to release it or keep it to them selves. My god, Final Fantasy fans are a dime a dozen. They come in droves just like FF related sites. Shinra is nothing special if you ask me. Its a site with the name of a clan in a final fantasy game yet have nothing to do with FF at all. Same boring index and crap design. I would see why you would have to resort to shameless plugs to get any attention.
I add a new catogory, late i dont like. So i delete it. I add a new catogory and its order is "3". I click add items, but under default it says order "4". I try it with keeping it 4 and i test it, the damn item wont appear in posts, neither will the no item thing, so i try it again, this time changing the 4 to a 3, nothing happens
How do i fix this? This is making me extreamly angry!!!!!!!!!!!!!!!!!!!!!!!!