vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   The Itemshop v5 (Original) (https://vborg.vbsupport.ru/showthread.php?t=38090)

Mijae 11-26-2002 12:02 AM

http://www.invoid.net/forum/itemshop.php

Everything is default from the install file. I'd say, 50 items total?

Also, does anyone know how to solve Post #378? Can anyone send me the install file they used so I can compare? Or an older version to admin@invoid.net?

Bitsys 11-26-2002 12:21 PM

Sorry, I wasn't very clear with my question. What I meant was, which items has your RPG character bought from the itemshop?

Mijae 11-27-2002 12:19 AM

Lightning Staff
Diamond Gloves
Ore

Bitsys 12-02-2002 06:32 PM

My mistake. I accidentally had you comment out the line
PHP Code:

global $totalcats

Just add
PHP Code:

global $totalcats

above my code, as seen in my edited post above. That should fix it.

Mijae 12-02-2002 06:51 PM

One more problem, now it doesnt show "Ore" or anything from the 3rd category.

Bitsys 12-02-2002 08:08 PM

Quote:

Originally posted by v0id
One more problem, now it doesnt show "Ore" or anything from the 3rd category.
That is caused by a typo from the original installation of the Itemshop. The field name in the table `items_user` says "Item3" when it should say "item3" with a lower case "i". An easy way to fix this is to go into phpmyadmin and manually change the field name to make it lowercase. If you don't have phpmyadmin, and you don't know how to change it with a database query, then let me know.

Mijae 12-02-2002 08:11 PM

I have phpMyAdmin, but I dont know the query string.

Bitsys 12-02-2002 08:25 PM

In phpmyadmin v2.2.2, here is the manual way of changing the field name:
  • Click on your vBulletin Database so that the list of tables drops down.
  • Click on the table called `items_user`
  • In the far left column, look for a field called "Item3". Click on the "Change" link across from this field. It should bring you to a screen that lets you change the name of the field.
  • Change the name of the field from "Item3" to "item3".
  • Click "Save". The field name should now be correct.

If you are running a different version, or can't figure it out, then here is another way to change it:

In your vBulletin database, run the following query:

Code:

ALTER TABLE `items_user` CHANGE `Item3` `item3` CHAR(250) DEFAULT 'No Item' NOT NULL
One of those two methods should work.

Mijae 12-02-2002 08:28 PM

Works perfectly. Thanks a lot! Since you seem to be familiar with this stuff, do you know why I get this when donating?

Invalid SQL: SELECT field5 FROM userfield WHERE userid=Array
mysql error: Unknown column 'Array' in 'where clause'

mysql error number: 1054

Its the only bug I have on the board >_<

Bitsys 12-02-2002 09:03 PM

Sorry, but I can't help ya on that one. I have never had that error before, nor have any of my members. I looked over the files, and there wasn't anything that looked out of place. :ermm:

Sorry. :(


All times are GMT. The time now is 07:41 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.01299 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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