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

Reply
 
Thread Tools
Details »»

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: 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.

Comments
  #22  
Old 02-20-2002, 12:52 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My hack can show Multiple Items, Item Groups, and a much more organized code.
Reply With Quote
  #23  
Old 02-20-2002, 01:43 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #24  
Old 02-20-2002, 01:48 PM
afterlab's Avatar
afterlab afterlab is offline
 
Join Date: Oct 2001
Location: Dallas, TX
Posts: 327
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cool, thanks Reeve. I have a lot of time tonight to work on it, so hopefully by tonight, something will be finished.
Reply With Quote
  #25  
Old 02-20-2002, 01:58 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Give me a shout on aim sometime, .... thetomblack
Reply With Quote
  #26  
Old 02-20-2002, 02:27 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

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.
Reply With Quote
  #27  
Old 02-21-2002, 09:23 AM
voogru's Avatar
voogru voogru is offline
 
Join Date: Dec 2001
Location: Miami, FL
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #28  
Old 02-22-2002, 04:54 PM
Matt's Avatar
Matt Matt is offline
 
Join Date: Oct 2001
Location: UK
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Me three....
Reply With Quote
  #29  
Old 03-02-2002, 07:12 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you are all just posers trying to be lick shinraonline they ownz you
Reply With Quote
  #30  
Old 03-02-2002, 01:11 PM
Saiyan XL Saiyan XL is offline
 
Join Date: Dec 2001
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Vivi Ornitier, Please Conact me on AIM, my S/N= usaiyans
Reply With Quote
  #31  
Old 03-02-2002, 04:02 PM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

question.... what do the items do besides, just sit there and be viewable?
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 07:18 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05398 seconds
  • Memory Usage 2,298KB
  • 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_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
  • (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