Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Display different stats on Stats page
The title essentially says it all.
I would like to display an adoptable's "trophies" under the stats page. Trophies are stored in the owned_adoptables table as "trophies". Right now in class_ownedadoptables.php all I have is this, but it is not calling the trophies; PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) |
#2
|
||||
|
||||
Well just putting the function in the class file alone won't make it show up, you have to go to the view file for that. Then you could add something like:
PHP Code:
PHP Code:
__________________
Last edited by Dinocanid; 11-06-2016 at 11:50 AM. |
#3
|
||||
|
||||
I do already have it in the statsview.php file, but for some reason it is unable to call the trophies.
An excerpt of my getTable function within statsview.php: PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) |
#4
|
||||
|
||||
Ahh, I think I see the possible problem. Did you try changing:
PHP Code:
PHP Code:
__________________
|
#5
|
||||
|
||||
Only just saw your reply!
Trying it now...and I am getting this error: Code:
Fatal error: Call to a member function select() on null in /home/inekelmy/public_html/classes/class_ownedadoptable.php on line 89 PHP Code:
__________________
My Mods Site (1.3.4, 2020 Mods) |
#6
|
||||
|
||||
Wait a minute, I may have figured it out. I added this (copied from totalclicks and such) and modified it under the get function:
PHP Code:
This is great!
__________________
My Mods Site (1.3.4, 2020 Mods) |
Thread Tools | |
Display Modes | |
|
|
What's New? |
What's Hot? |
What's Popular? |