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! |
You could put this in class_template.php under "private function assignTemplateVars()":
PHP Code:
|
That worked perfectly, thanks so much!
|
All times are GMT -5. The time now is 10:09 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.