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)

snack 05-08-2002 04:42 PM

Quote:

Originally posted by Velocd


&



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.



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]'"); 


It doesnt work, I changed the codes then refresh that page 3 points was added on =P hehe

Marshalus 05-08-2002 11:50 PM

There needs to be some kind of admin panel for this, that would allow the admins to check what users have in the bank, what they own, and more options.

Also, be able to edit what users have.

Just a request :D

Marshalus 05-08-2002 11:54 PM

Also, instead of post[item] is there a way to make a new page, or add it to the members information page, that would list what users have for normal users.

My shop has like 8 or 9 catagories, and my postbits would get really huge.

dadymac 05-09-2002 03:05 AM

question : (not crictizing at all) if this is a step towards the battle hack, how hard will it be to give the items attributes??

Velocd 05-09-2002 04:06 AM

Who said it was a step towards the battle system? Well actually, I guess you could say it being silly to have an itemshop without a battlesystem, but I'm not sure anyone but Afterlab is developing a battlesystem (ofcourse I *probably* am wrong). Giving item attributes is possible, but depends on the level of experience by the coder. An experienced coder with good knowledge of MySQL/PHP could probably do it, and I'm sure if he had time, Vivi could do it.

Marshalus 05-09-2002 04:11 AM

I hope so.

Vivi, I just wanted to let you know that my site members LOVE this hack. http://www.federationstudios.net/forums/itemshop.php check out the stuff we're selling ;)

Anyway, a battle hack would be great to incorporate into this, as right now I'm planning to do all of the battles on my forums by hand, a sort of "D&D" style match up.

snack 05-09-2002 04:30 AM

Anyone know how to fix the problem... my board keep giving out points when people refresh the pages ...

E 05-09-2002 07:23 AM

Marshalus too get the items too display somewhere else ill tell u what i did

Put This Query in Functions where the post one goes
PHP Code:

$items=$DB_site->query_first("SELECT * FROM items_user WHERE userid=$bbuserinfo[userid]"

now wherever u want it to display the users items do this

If Category One Is Weapons.. then u'd type:
PHP Code:

[b]Users Weapon[/b]
$items[item1

In A Template whereeverr u want it to display

If u want it to display the item from category 2... u use item2 instead of item1

hope that helps

Vivi Ornitier 05-09-2002 01:16 PM

the code to get items is already in functions. you just have to modify the html output in that part, and display them where you want on your site.


Quote:

Giving item attributes is possible, but depends on the level of experience by the coder. An experienced coder with good knowledge of MySQL/PHP could probably do it, and I'm sure if he had time, Vivi could do it.
already ahead of you, but i will not be releasing anything. I'll keep it to myself.

Marshalus 05-09-2002 02:42 PM

Quote:

Originally posted by Vivi Ornitier
already ahead of you, but i will not be releasing anything. I'll keep it to myself.
Doh! How much $$ would it cost to pursuade you otherwise?

Marshalus 05-09-2002 05:59 PM

Quote:

Originally posted by E
Marshalus too get the items too display somewhere else ill tell u what i did...
You forgot the ; at the end ;)

dadymac 05-09-2002 07:40 PM

Quote:

Originally posted by Marshalus


Doh! How much $$ would it cost to pursuade you otherwise?


snack 05-10-2002 12:05 AM

Does anyone hav ethe same problem? when a page refresh the person get points???

Marshalus 05-10-2002 12:45 AM

Hey Vivi, whats the status of the updates?

Marshalus 05-10-2002 04:55 AM

Does the system restock it self automatically, or is there something I need to do for it to work?

snack 05-10-2002 05:10 PM

In the personal shop... the user can add stuff but theres no pic???

AtmosPhere 05-10-2002 11:59 PM

May i suggest an add on for the current itemshop? A feature that can add/decrease Gil?
I want to give users awards etc.

Velocd 05-11-2002 05:11 AM

Note to Marshalus: Stop double posting (gets annoying)

As for suggestions, I still have 2 that I would literally DIE for to see on this itemshop, mostly to deal with the personal itemshop really.

#1. PLEASE make it so users cannot create their own items, but can only sell the items they currently have. There is nothing from stopping a user creating total spammish items with profanity names, etc. It just isn't that great of an idea for users to create their own and sell them, but maybe though for a certain price a user could create his own item.

#2. (this is ignoring #1) How about letting the user choose an icon for their custom item?? This would be very cool, and really is needed ^_^ Maybe a dropdown list with a list of the icon names, and a picture to the side.

BUG: I've noticed with the whole looping thing in the itemshop, that on some pages like the personal item shop pages it will loop everything over again, like there will be two image logo's, two header button bars, 2 footers, etc.

Anyway, those suggestions I made above would be awesome to have, and I even tried to code them myself but it's much more difficult for me trying to disect your code them if I were to build it myself from scratch.

Regards,
Velocd

snack 05-11-2002 06:51 AM

Also a bug when a person refresh the page it gives them points...

Velocd 05-11-2002 01:45 PM

I'm not having that problem, but that is because I skipped the modifications he had in the newreply/newthread.php, and used the old point system add-on instead.

https://vborg.vbsupport.ru/showthrea...ight=rerelease

Vivi Ornitier 05-11-2002 07:26 PM

i'm waaay to busy to do anything else right now. I'm working hard on my site, which i'm gonna release soon, not to mention the forums.

One quik update here: i noticed that the functions.php can add couple hundreds of queries depending on the number of posts in a thread.here's the fix:

find in showthread.php (twice):
Code:

        LEFT JOIN userfield ON userfield.userid=user.userid
below it add
Code:

        LEFT JOIN items_user ON items_user.userid=user.userid
[b]change the functions.php part to:
Code:

        if($post[item0]!='No Item') {
        $post[items] .= "<a href=\"itemshop.php?action=view&id=$post[itid0]\"><img src=\"{imagesfolder}/itemshop/prs.gif\" border=\"0\"></a> ";
        } else {
        $post[items] .= "<img src=\"{imagesfolder}/itemshop/No Item.gif\" border=\"0\"> ";
        }


$nr=1;
while ($nr <= 3) {
$xc="item$nr";
        if($post[$xc]!='No Item') {
                $xvv = "item$nr";
                $xv = "itid$nr";
                $xvvv = "icon$nr";
                if(empty($post[$xvvv])) {
                $post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"{imagesfolder}/itemshop/$post[$xvv].gif\" border=\"0\"></a> ";
                } else {
                $post[items] .= "<a href=\"itemshop.php?action=view&id=$post[$xv]\"><img src=\"{imagesfolder}/itemshop/$post[$xvvv].gif\" border=\"0\"></a> ";
                }
        } else {
        $post[items] .= "<img src=\"{imagesfolder}/itemshop/No Item.gif\" border=\"0\"> ";
        }
$nr++;
}


dadymac 05-12-2002 12:11 AM

can u post the code we are supposed to change from admin/functions.php since all u gave us was the install file and its a butt to look for with all the extra \ and php commands in there.

Vivi Ornitier 05-12-2002 11:27 AM

run install_itemshop.php?step4

snack 05-13-2002 01:23 AM

UMMm when i add new catagories... it shows in the item shop but not in the user profile when they post!

snack 05-14-2002 05:24 PM

How do i uninstall the point hack thats with the itemshop v5 install? so i can install the old point hack?

Brianna 05-18-2002 12:36 AM

Quote:

Originally posted by J-OST
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.
I get the same problem :S

Go into your MySQL Database and select the "items_options" table... check on the field "pointfield" and click on the change button... then it should take you to another page where you can change the length of the variable, it's set to 6 for me, change it to 7 ;)

*Hopes he did this right* I'm quite new to all of this ^^ but that's not too hard is it? hehe http://forums.crystaldimensions.com/...ies/bounce.gif http://forums.crystaldimensions.com/...ilies/hide.gif

Mike Gaidin 05-18-2002 03:12 AM

Thanks! I will try this.

Velocd 05-18-2002 05:50 AM

Quote:

Originally posted by snack
How do i uninstall the point hack thats with the itemshop v5 install? so i can install the old point hack?
last I checked this Itemshop uses the Shinra Online Point System, which is the only one really out there. So I think you're either alittle unclear or too vague

Neo 05-18-2002 05:55 AM

I released one aswell.. its smaller and runs fatser than the shinra online one.

snack 05-21-2002 08:47 PM

ONE MAJOR PROBLEM... when i add a new catagory. it shows on the itemshop the items you brought, but it doesnt show on the user profile... like when they post it only show four of there itemshop...

E 05-23-2002 08:48 AM

ima make my own shop...
easier to customize that way

DarkDraco07 05-24-2002 07:11 AM

on the edit item page where it shows all the sellable items, the icons for the main itemshops work but when i try to add one to a users item nothing happens. can someone find a fix for this?

UGate 05-24-2002 04:51 PM

Database error in vBulletin 2.2.4:

Invalid SQL: SELECT field5 FROM userfield WHERE userid=1
mysql error: Unknown column 'field5' in 'field list'

mysql error number: 1054

Date: Friday 24th of May 2002 07:51:29 PM
Script: http://www.undergroundgate.com/ugate...=donate&user=3
Referer:

DarkDraco07 05-24-2002 04:53 PM

um, can anyone help????

UGate 05-24-2002 04:59 PM

i need Help !

DarkDraco07 05-24-2002 05:14 PM

no i do!!!

snack 05-24-2002 05:16 PM

The Itemshop only load 4 icons on the user profile how do i make it load all of the icons... i have like 6 - 8 icon area it only load 4 of them??

snack 05-24-2002 05:23 PM

How do you change the bank interest?

DarkDraco07 05-24-2002 05:49 PM

yea, i think 10% is too much i want to make it 5 or 6

snack 05-24-2002 06:20 PM

yUpz... anyone know how to change it?


All times are GMT. The time now is 02:11 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.01836 seconds
  • Memory Usage 1,828KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (7)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