Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Display number of items in a user's inventory
Hi again -
Is there a way to display the number of items in a user's inventory? I would think that it would be displaying $total from class_inventory.php but have not yet found the right syntax for it to work. On my site I have a top bar with their UN, number of new messages, etc. and I wanted to display it there so I think I need something for class_template.php so that I could just put {$total} in my template where I want to display the number. Thanks! |
#2
|
||||
|
||||
You could put this in class_template.php under "private function assignTemplateVars()":
PHP Code:
__________________
|
#3
|
|||
|
|||
That worked perfectly, thanks so much!
|
|
|
What's New? |
What's Hot? |
What's Popular? |