vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Item Shop (https://vborg.vbsupport.ru/showthread.php?t=35156)

Vivi Ornitier 02-16-2002 10:00 PM

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

Vivi Ornitier 02-17-2002 02:20 PM

Update: Added error pages if you don't have enough points and if you already have the item. Added thank you page.
The items will only be linked if you can afford them.

TheComputerGuy 02-17-2002 02:55 PM

ok where do we get this point hack??

Radon3k 02-17-2002 03:01 PM

https://vborg.vbsupport.ru/showthrea...threadid=32060 ;)

afterlab 02-17-2002 03:15 PM

Good job, Vivi (Crono). Got it installed and working. Modified it a bit of course too. :D

Vivi Ornitier 02-17-2002 03:18 PM

Afterlab its Crono man, he write it tho.

afterlab 02-17-2002 03:31 PM

I haven't noticed anything along the lines of the error pages. Either they aren't working or haven't been integrated yet.

afterlab 02-17-2002 03:42 PM

Also, Vivi. When people purchase an item for over there current point total, it gives them a negative number, like -900. They can still get the item though.

Vivi Ornitier 02-17-2002 04:01 PM

hmmm ill(alex) will look into it.

Vivi Ornitier 02-17-2002 05:27 PM

afterlab: there shouldn't be any negative number. there's an if statement that compares your points to the the item you want to buy. If you don't have enough points you get am error message. (you actually shouldn't even see that at all, because there's no link if the item costs more than you have.

my conclusion is that you did something wrong when editing itemshop.php

watch for
if($points >=$value) {
that if statement checks checks your points. if your have more of equal to the points of the item you want to buy it will continue. if not, it will send you to the error page:
header ("Location: itemshop.php?action=error&why=points");

=====
tsk it was the old version again, here is he fully fixed version.
ouch. forgot template. :?:

...
working on sell function.

Psychdrone 02-17-2002 10:54 PM

Dude if this works! That would be wonderful!!!!!

I was working on my own, but maybe I won't have too!!

Let me check this one out!

Psychdrone 02-17-2002 11:49 PM

O damn:(

I thought this would be like the other persons store, where users can purchase custom titles, new name etc

Hey maybe you would like to work on something like that with me, if so pm me:)

Dalius 02-19-2002 11:07 AM

Screenshot Please

Vivi Ornitier 02-19-2002 06:00 PM

screenshots are in the zip :)

Dalius 02-19-2002 06:56 PM

Ack, It's for RPG Boards!

I was also looking for the Shinra Store Hack

Im still working on my edition, hard :\

afterlab 02-19-2002 07:14 PM

I've created a way for multiple items, alternating tables, and item groups for this hack.

I was the original creator of the Item Shop name, idea, and template design. I have yet to get any credit.

afterlab 02-20-2002 12:40 AM

I've released an add-on and better instructions here: Download FFR Item Shop (FFR Members Only)

Arathorn 02-20-2002 08:15 AM

Afterlab, what's the diff between your hack and the one in this thread?

Bald Bouncer 02-20-2002 08:15 AM

Quote:

Originally posted by Dalius

I was also looking for the Shinra Store Hack

Im still working on my edition, hard :\

were is this m8?

Arathorn 02-20-2002 12:03 PM

The Shinra Store Hack isnt' a publicly available hack. It's used at ShinraOnline.com

afterlab 02-20-2002 12:52 PM

My hack can show Multiple Items, Item Groups, and a much more organized code.

Reeve of shinra 02-20-2002 01:43 PM

Afterlabs version of the hack is pretty sweet. I was playing around with it last night. I want to make it into a table driven format to add stats and such. Now lets see if I can find the time.

afterlab 02-20-2002 01:48 PM

Cool, thanks Reeve. I have a lot of time tonight to work on it, so hopefully by tonight, something will be finished.

Reeve of shinra 02-20-2002 01:58 PM

Give me a shout on aim sometime, .... thetomblack

Vivi Ornitier 02-20-2002 02:27 PM

err.... afterlab.... you just copied my code 3 times....
and i also think you have a bug somewhere in your (my) code, like Sano said: "Hahahaha! I totally exploited that bug. I now have the most expensive item in every category, and 9,300 RP. Go me!"

right now, i'm planning on adding AdminCP integration and database, which would allow multiple categories and items, descriptions, etc, etc, etc.

and custom titles and stuff too.

voogru 02-21-2002 09:23 AM

Quote:

Originally posted by Psychdrone
O damn:(

I thought this would be like the other persons store, where users can purchase custom titles, new name etc

Hey maybe you would like to work on something like that with me, if so pm me:)

me too :(

Matt 02-22-2002 04:54 PM

Me three....

Neo 03-02-2002 07:12 AM

you are all just posers trying to be lick shinraonline :p they ownz you

Saiyan XL 03-02-2002 01:11 PM

Vivi Ornitier, Please Conact me on AIM, my S/N= usaiyans

Neo 03-02-2002 04:02 PM

question.... what do the items do besides, just sit there and be viewable?

Xelation 03-02-2002 04:04 PM

Quote:

Originally posted by neo
you are all just posers trying to be lick shinraonline :p they ownz you
Why do you have to be so negative? If I were you I would shut my trap... If you dont have anything nice to say then don't say anything at all... We lost a good hacker "Nakkid" because of negative comments like this.

afterlab 03-02-2002 04:04 PM

I'm working on a way to premiere a RPG battle system. Each item will have it's own ID, and it will call that up... Blah blah blah. You'll see.

Neo 03-02-2002 04:10 PM

Well thats good, but releasing it would be a mistake, and would be in vain of me and Knoman. It was his original idea for this hack and now everyone what to make it, or is trying to make it, or is going to use/release it. So you can see why I would be a little annoyed about it. Since I am one of the coders that is making it, and once I finish this nice system for only a few forums.... 200 other sites pop up and have it..... then my and his site seem like just another board..... thats why I dont intent on ever releasing it or making a different one....

afterlab 03-02-2002 04:14 PM

Well okay. I'll release it to ya, since you're my affiliate and all. But until permission is granted, I will not release it.

Neo 03-02-2002 04:49 PM

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.

Sefiros 03-02-2002 08:25 PM

I'm using the hack on my boards and it rules :) I've just edited it a bit (Sorting in price order, fixed the little selling bug, etc.). My boards at www.rpgmaniacs.com/forum if u want :)

Vivi Ornitier 03-04-2002 10:50 AM

oh crap. my computer has been messed up for a while. I just hope it will get fixed soon, so i can work on all this stuff.
i'm thinking up a battle system. I just need to figure out some stuff.
Well, a lot has happened in 5 days, since i was last online. Oh boy.

Well, it's nice to see this whole thing grow.
:)

voogru 03-04-2002 02:07 PM

Hey Sefiros, Nice forums! :)

Sefiros 03-05-2002 02:57 PM

Thanx Voogru :)

Saiyan XL 03-06-2002 04:15 AM

neo, your crazy, you and your stupid friend (not afterlab) have dum idea's
hacks are suppose to be shared, not sold, all these ppl made cool hacks and let everyone use them!! so don't think your too speacial by making this **** and Selling it for more than $300 (which you will not sell) thats just gay sh*t! dood, afterlab don't listen to this fag!! hes just stupid, you should realse this hack, and he doesn't own the damn idea just cuz his friend thought of it.. its like saying, Oh I made vbulletin and you shouldn't make Yabb because I thought of it first or you shouldn't make Ikonboard and crapp...........


All times are GMT. The time now is 04:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01237 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete