#1
|
||||
|
||||
Item Pages
I wanted to make my inventory pages nice and clean, plus make greater use of the item system (as my site requires users to assign items to pets). So I came up with this and, after a lot of screeching in frustration, I have it working. It still needs some work in spifying it up and streamlining the process, but I have seen folks bring it up before so figured I'd share it as-is.
First! I cannot recall if it is dependent on Kyttias's mod, but it may very well be so note you'll want to install this mod first: http://mysidiaadoptables.com/forum/s...ead.php?t=4741 Okay, so let's get started. The good news is you do not have to touch your database at all (whew!). Assuming you have Kyttias' mod installed, the first part we're going to edit is how we display items in the inventory. Open up inventoryview.php and scroll to where you see the notation; # Rendering items now Now I replaced everything between that note, and the closing bracket ( } ) for this line; for($i = 0; $i < $iids->length(); $i++){. PHP Code:
Now we're going to replace EVERYTHING between the END of the INDEX function and the START of the TOSS function with this messy chunk of code; PHP Code:
That's all there is to it! I know the code itself is messy and the manage page could use some beautifying, but I'll leave that to you. If you have questions/comments/etc just post and I'll get to it when I am able Happy new year, y'all!
__________________
My Mods Site (1.3.4, 2020 Mods) |
#2
|
||||
|
||||
It looks great, thanks! It looks like you forgot to include the styling for the items, since every items appears underneath each other instead of next to each other. I fixed it by adding style tags though:
PHP Code:
__________________
|
#3
|
||||
|
||||
Oops, thank you for that! I don't notate my modifications well in the moment lol
__________________
My Mods Site (1.3.4, 2020 Mods) |
#4
|
||||
|
||||
I'm tickled people are making mods from my mods and sharing 'em.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#5
|
|||
|
|||
Great work abro i really appreciate it and i don't think so this is really based on kyttias mod .
|
#6
|
||||
|
||||
@Kyttias, I have learned a lot from your mods on what's possible/how to do things, and a lot of them have the perfect set-up to expand on, they're great
@Silver_Brick, thank you, you're welcome, and it's definitely heavily "inspired"/derrived from it, but I am sure that you can modify it to use w/out Kyttias' mod.
__________________
My Mods Site (1.3.4, 2020 Mods) |
|
|
What's New? |
What's Hot? |
What's Popular? |