View Single Post
  #979  
Old 02-24-2003, 12:14 AM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahhh the itemshop--my fav part of the whole rpg hack, and yeah...ive done tons to it....*sits down and takes out pipe*

since itemtype is determined by rpgtype from class, simply place $bbuserinfo[rpgtype] at the end of any link to the itemshop. so, when clicking it, you auto-go to your type's itemshop. u may want to go into itemshop.php and add that url ending to all the redirects too, so when someone purchases, sell, whatever, it kicks them to their itemshop. there are also a few templates you can do this to as well, like the bank 'itemshop' link in the navline

i did this because my members never found where they could get their items from. clicking the itemshop returned them to the empty page, and some confusing links at the bottom. i got rid of the links, and added to the itemshop.php page, to figure out what type ppl were, and it would display it at the top of the page. 'You are currently a Magician Type' for instance. i also had to make a separate display variable for which shop you are in, so it would say something like 'As a Fighter Type, you have these items available for purchase'
later, i added a redirect link next to the 'ur a whatever type' in case you werent in your itemshop. at the very bottom of the page, i have links to the other itemshops, cause ppl like to know what theyre missin

i wrote an itemshop faq (which needs rewriting now...) so i included a link to the top to avoid questions. if someone was registered, it would say 'edit ur character' under the what type you are. when not registered, it would say 'You are currently a person without a type' and there would be a register-now line under it. tons of fun little edits. i also worked on my editprofile page, and added a target to it, so that i could post links to directly edit character stuff....(cause absolutely no one could figure it out -_-)

also, u should set up a rpg type which has no classes on it, called 'Certain Type' (so it says, you need to be a certain type to purchase) and have all items available through it--this creates a 'see-all' store, so anyone without a character can see it, or with direct links-- to do this, go into itemshop.php, and find where it says
PHP Code:
if($itemtype == "")
        
$itemtype "0"
and add the typeid of your combo itemshop...(so its not 0)

with all that said and done....heres my itemshop...(326 items, 14 categories, all item types available)

http://ffgods.ffextreme.com/forums/itemshop.php

in regards to the summons addon, i _somehow_ broke battlefight.php, but there are 2 weird things going on with it: even the original file says this error, and it says the error is on the line AFTER ALL THE OTHER LINES (past ?>) so...-_- ill gotta hunt that out...
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,772KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete