Replies

Aug 29, 2017 8 years ago
Truffula
is quali-tree company
User Avatar
Daryonka

I'm trying to style the equipped weapons on the pet profile page and they all have the same class and they don't have div ids or image ids or anything. Here's what their divs look like:

So you can see that makes it really hard to put a different style on each one in the CSS so that they can be repositioned but not all on top of each other. There is also no surrounding div or ul or any other element that contains specificially just the equipped weapons, so I can't style their parent either.

So my request is, please put a div with an ID around the weapons, or give each one an id like weapon_item1, weapon_item2, etc, or something like that. It would be the very best if you put a ul around it and make each weapon a li within that, like how the statistics are. But anything will do, just let me have a way to attach all the weapons individually to the bottom of the page on my pet Meeshah's profile instead of them all being on top of each other so only one is visible. Thanks!

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

There are multiple ways to accomplish what you ask with CSS alone. The easiest would be to use the nth-child() selector if you want to style each item individually.

If I were you, however, I'd look at this page in a different way. Notice the way the HTML is structured in column_3:

You have your pet stats all wrapped in the same ul tag, and after that you have your weapons listed one by one. What you can do, is position just that ul tag in such a way that it's separate from the parent column_3, and then position column_3 itself at the bottom. You can accomplish this by positioning the ul tag absolutely but keep column_3's position static.

I can explain in more detail (this was super brief so I did a poor job, I know) if you're interested? I'll ask to move this to the profile help forums if it's appropriate, since it sounds like this is less of an actual suggestion and more just trying to figure out how to do a specific thing on a custom profile.

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 29, 2017 8 years ago
Kevin
is all-powerful
User Avatar
Wuf

moved this thread! (did it before I posted this message so I can't post it in purple)

Aug 29, 2017 8 years ago
Truffula
is quali-tree company
User Avatar
Daryonka

thanks... I kind of already had a thread here (https://subeta.net/forums.php/read/877781/help-with-my-pet-profile-) where I asked for help and no one gave me any, but, thanks x 100 Bug! that super brief explanation was plenty, I get it 💙

well... the only problem is I am not sure how to position the innards of column 3 where column 3 is now (as in, keeping it flowing down when the viewport narrows etc) I'll give it a try though.

If you look at the profile can you (or anyone) tell me how to do that or if it's possible?

but, nevermind again, because I think you also mentioned this 'nth child selector' ... hmmm. I'm not totally sure how to use that to do this! but it's something to try :D

I will say though the irony..... I got very good help in a few hours posting in the wrong place... I got zero posting in the right place 10 days earlier.

Aug 29, 2017 8 years ago
Bug
User Avatar
Segfault

Haha it's because I stalk the Suggestions forums obsessively xD I'll try to peek in profile help forums more often! I've just been so busy I don't know if I wanna be a regular here.

I'll try and put together an example for you later (still in bed haha) I'll let you know when it's done :)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Aug 30, 2017 8 years ago
Truffula
is quali-tree company
User Avatar
Daryonka

oh my gosh you don't have to do that! I mean thank you so much if you do, but you have lots of work fixing the site and diagnosing the slow stuff now (I am going to say right off here I suspect the wardrobe filters might be causing some of the lag... mostly because searches cause lag in my own work setup. Specifically in mine it's the indexes giving a falsely optimistic guess as to the time they'd take. I know you use entirely different stack so it's probably something else - I'm projecting, but, also I suspect it due to the wardrobe searches being so much slower since the day you fixed a bunch of wardrobe problems)

Anyway if you really want to make an example that's great, it's just not necessary, I can figure it out.... thanks very much for the suggestions.

I hope you can tell what I intended by the suggestion. It does seem like a ul of the weapon items would make more sense for the html to me than having them each have their own div in the column?

Aug 30, 2017 8 years ago
Rocketlauncher
beat the meat!
User Avatar

It's probably not maintained since the weapons went into the armory years ago.

I think there have been requests for the consumable weapons to be shared among all pets. If that happens in the future, you won't have to make them show up and check each pet's profile anymore, and therefore it can be hidden for good :)

Aug 30, 2017 8 years ago
Bug
User Avatar
Segfault

There are a lot of ways the default profile code could make more sense :P

But I'm hesitant to change it because there would be risk of breaking custom profiles. I can talk to the other staff about it but I don't see it being a priority either. Probably we will make some big changes when layout v2 happens (someday!!)

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Please log in to reply to this topic.