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)

Webmasta XT 05-04-2002 07:50 PM

Quote:

Originally posted by Webmasta XT
Vivi, One more thing, and nice hack, the thing is how can It display members Items on Postbit, like the old Itemshops??
Can ANyone Answere my question please? :dead:

AnkisethGallant 05-04-2002 08:04 PM

I'd try and help you, but I can't even use my itemshop. I'd look for the code that lists them items on the itemshop screen, I don't know much about this sort of thing, so I have no idea.

Here's the error I'm getting in mine:
Quote:

Database error in vBulletin 2.2.5:

Invalid SQL: SELECT field5 FROM user WHERE userid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Thursday 02nd of May 2002 05:40:31 PM
Script: http://www.punkmusicrocks.com/board...ds/itemshop.php
Referer:
Any suggestions?

Velocd 05-04-2002 08:45 PM

Quote:

Originally posted by AnkisethGallant


However, I think that users should only be able to resell items they have bought, because if users just get to make up items, that would kinda suck in my opinion.

I think that would be an excellent idea also, because if the stock goes down in the regular itemshop of a certain item, you can sell that item (if you have it) for higher in your itemshop to make profit off of it. I was confused at the making of items when I first saw it, but maybe if it were possible to pay a high price, you could make your own item.

Quote:

Originally posted by Webmasta XT


Can ANyone Answere my question please? :dead:

I suggested this and I'm sure Vivi already knows about the problem. In his next version you should be able to see items in the postbit (hopefully ;))

Quote:

Originally posted by AnkisethGallant


Database error in vBulletin 2.2.5:

Invalid SQL: SELECT field5 FROM user WHERE userid=
mysql error: You have an error in your SQL syntax near '' at line 1

mysql error number: 1064

Date: Thursday 02nd of May 2002 05:40:31 PM
Script: http://www.punkmusicrocks.com/board...ds/itemshop.php
Referer:

#1. Make sure you don't have any of the custom fields used from the previous itemshop hack, if you installed it. This includes "weapon", "helmet", etc. I found this to be a problem with me when I tried to install the new itemshop, so I removed those fields.

#2. Field5 is your point field, correct?

And...get back to me if that doesn't fix it.

AnkisethGallant 05-04-2002 08:48 PM

This is the only itemshop I have, so I've passed #1 with flying colors.
field5 is my point field, and I have it set to field5 in the items option.

Now I am getting back to you, because that doesn't fix it.

Velocd 05-05-2002 12:31 AM

Uninstall the whole thing, and try again but more carefully. Thats the only advice I have for you, because I'm not too sure where the problem might be residing. Uninstall the tables and templates from phpmyadmin, then revert php file changes. Though I recommend you just wait till Vivi releases the updated version, since it may very well fix your problem. And if this next version requires a fresh installation, you will have to remove it anyway.

AnkisethGallant 05-05-2002 12:33 AM

Alright, but right now I can't upload files to my server because of a problem.

Since Vivi made it to where the templates are made as original, how do you delete them?

Velocd 05-05-2002 05:34 AM

Go into phpmyadmin, and you will have to delete them manually from there. (goto table: template, then click on browse, and then manually delete all templates with prefix itemshop.) I'm not very good with queries yet, but I'm sure somebody could make you one that removes all the templates with one swift step. :D

AnkisethGallant 05-05-2002 06:12 PM

Don't worry, I already figured that out before you said anything.

I think I may be actually getting the hang of the whole PHP & MySQL thing....................or not.

Xyber 05-06-2002 08:19 PM

bump

why'd u remove the download link? not every1 needs assistance in installing stuff o_O

ender 05-06-2002 08:28 PM

He's gone until Tuesday. He removed it until he gets back.

AnkisethGallant 05-06-2002 08:52 PM

Does anyone know for a fact which updates he's putting into the new version?

geniuscrew 05-06-2002 10:56 PM

Wish I knew ;)

Btw, Did you manage to get your itemshop working Antiseth?

AnkisethGallant 05-06-2002 10:57 PM

No. I just took out everything and decided to wait until the new version, since it will have more stuff anyway. I didn't have the shop open to users as it was, so there was no loss.

geniuscrew 05-06-2002 11:05 PM

Sounds like a dumb question, and probably no point now, but did you install the two point hacks prior to installing itemshop?

AnkisethGallant 05-06-2002 11:08 PM

I only installed the Points hack from Palmer OfShinra, why, was there another thing I had to install?

geniuscrew 05-06-2002 11:13 PM

I dunno if it might have made any difference, but I also installed the add-on to it, which lets you earn points by posting

AnkisethGallant 05-06-2002 11:16 PM

Vivi included that in the itemshop hack, and he even made a field in the Admin CP where you could edit how much they got. I don't think it matters if it was previously installed.

geniuscrew 05-06-2002 11:23 PM

the add-on made by Iguacu (or something like that)

Add on

That's what I installed after installing the point hack - i suppose if you're not busy it's worth a try, although I dunno why it would make a difference :ermm:

Also hover over your "www" bit under one of your posts, i think the URL is wrong

OK I'll go now cuz i dunno what i'm talking about

Velocd 05-07-2002 12:16 AM

I don't know what your talking about either. Vivi's new item shop will integrate Iguacu's addon. I just can't wait to install this updated version, I hope he fixed some of the problems before :D

geniuscrew 05-07-2002 12:39 AM

See, I knew I was crazy -

Doesn't hurt to try to help though ;) :p

dadymac 05-07-2002 08:43 AM

so how hard would it be to get this to point to the db that lesane used for his store to have one general money for those who have it installed?

E 05-07-2002 10:53 AM

*sees its Tuesday... vivi is lookin at thread*
*grins*

AnkisethGallant 05-07-2002 12:22 PM

I'm going to school, I hope Vivi has it done when I get back.

And if you read this Vivi, would you post a list of the new updates? Thanks.

Vivi Ornitier 05-07-2002 01:55 PM

I'm attaching the new version.

fixed the reported bugs. postbit works. more efficient.

****
BEFORE YOU INSTALL, REMOVE ALL PREVIOUS INSTALLATIONS!
AFTER INSTALLATION, REVERT ANY LEFT ITEMSHOP TEMPLATES!
****

I have tested this on a clean vb copy and it works.

snack 05-07-2002 05:12 PM

Ok found a bug with the fast reply box!

If you have it and you refresh the page it will automatic gives you points... can you fix it?

Do anyone notice ??

I tried with different usernames and when i refresh that page with the fast reply box hack it automatic gives me points!

snack 05-07-2002 05:13 PM

Yea this post reply box located on the bottom of the page some how it gives points when you refresh page i dunno why

dadymac 05-07-2002 09:13 PM

i was installing the new version, and accidently closed the window where it told me what to stick into my post bit

was it post[items] ?

dadymac 05-07-2002 09:13 PM

nm, found it in the install file, duh on my part.

dadymac 05-07-2002 09:22 PM

oh, can u change the interests on the bank?? i thnk 10percent is way too much, some of my members already have like 2000 points and 10% would totally be too much.

dadymac 05-07-2002 09:42 PM

also, if you try to buy the same item, u keep the same one, your money is intact at the right amount, but it shows one more for the sold counter. it also says thanks for shopping, but im guessint that would req another template.

E 05-07-2002 10:02 PM

how do u buy items?

E 05-07-2002 10:17 PM

and i cant find the templates too edit.....
anyway of makin them instead of going to default templates... they goto Custom templates...?

E 05-07-2002 10:21 PM

or i could just add them by hand.. hmm ill read thru the install file

Webmasta XT 05-08-2002 10:18 AM

is there a way I can change the way the PostBit displays Items?? I wanna put a label at the top.. such as Weapon, Item, Armor at the top so they can know which one is which!! plz help..

E 05-08-2002 10:24 AM

i was wondering the same.... i looked into the database... and i see in user there is item1 item2 + item3 and evrythign else 1,2,3 i have 3 categorys so i figuired they would be it............. but
it just shows this "Resource id #8" or another number..... ??

E 05-08-2002 10:47 AM

Oh nevermind.. i found out how to do it.... i was using user instead of item_user

AtmosPhere 05-08-2002 11:19 AM

Is there anyway of showing the points on the posbit?
I also use Lesanes store hack along side itemshop and i want itemshops "gil" to appear under LesaneStores Points in my postbit, Please advise on how to go about this

Vivi Ornitier 05-08-2002 11:31 AM

well, you can change the way items are displayed in the postbit in the functions.php part. you can use $catstuff[name] to display the name.

as for the points field.... $post[fieldx] i think, where x is the number of your field.

Velocd 05-08-2002 01:58 PM

Quote:

Originally posted by dadymac
oh, can u change the interests on the bank?? i thnk 10percent is way too much, some of my members already have like 2000 points and 10% would totally be too much.
&

Quote:

Originally posted by Webmasta XT
is there a way I can change the way the PostBit displays Items?? I wanna put a label at the top.. such as Weapon, Item, Armor at the top so they can know which one is which!! plz help..
It shouldn't be too hard, just look in the templates/php files. I have yet to install this new version, but I plan to do so tonight.

Quote:

Originally posted by snack
Yea this post reply box located on the bottom of the page some how it gives points when you refresh page i dunno why
Yes this is a problem with the original point system add-on by posting. But Vivi made fixed the code himself in the original add-on, so this itemshop shouldn't have a problem. If so still, then replace:
PHP Code:

$DB_site->query("UPDATE user SET
          "
.iif ($foruminfo[countposts],"posts=posts+1,","")."
          
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'"); 

In newthread.php and newreply.php, with this:

PHP Code:

$DB_site->query("UPDATE userfield SET
          fieldX=fieldX+? WHERE userid='
$bbuserinfo[userid]'"); 


Mike Gaidin 05-08-2002 03:04 PM

Is there anyway to make the Points Field part of the Itemshop Admin options bigger? Right now I can only put in 6 characters into the box and I need seven. I tried to enter field26, but it changed it to field2. Please assist.


All times are GMT. The time now is 04:20 AM.

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.01501 seconds
  • Memory Usage 1,820KB
  • 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
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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