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?


All times are GMT. The time now is 04:43 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.01435 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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