Posted by Coding Bug

Val|G1|7.8.22
RLC|Primal (#395601)


View Forum Posts


Posted on
2024-03-09 11:47:10
What gameplay feature is this bug affecting?
HTML [Maybe CSS Coding]

What's the issue? Please include any error messages you receive and as much detail as possible.
There are a few issues with player coding in lioden right now - most of which are a result of the server change, and others have been here but have been made worse by the server change

as of late my, and many other players, problem has been clan pages - When I insert my code into a clan page there are random pieces of my code being deleted and random code being added in places that it doesn't belong

I have a few screenshots of the issues, one of them being this one. When I was editing the size of the lions headshots the sizes of the icons were also being changed - because the 'width=size' code was being duplicated and added to the headers as well when I clicked save

On top of this, when I save the description with the full code one of two things is always deleted - the box with the HTMLs background, font, etc. or the last box in the code [in this case the 'partnerships' box]

even with deleting the last box - every time you save the clans description the background is broken. either because the coding disappears or, as I've found, is duplicated 1-3 times which causes it to not show up on top of breaking the title box.

Any links relating to this bug? For example, if a particular lion is bugging, what is the link to that lion?


Any screenshots you can provide us with?


^ This screenshot highlights the issue of random code being added where it doesnt belong




^ those two screenshots show how the code & HTML look after I add the Partnership box back into the code



^ This screenshot shows how the partnership box reacts after adding the background coding back in

Please provide us with step by step explanation how this bug happened so we can attempt to replicate it. If it's complex, please include screenshots where possible:
The only steps I took were inserting my code into the clans description, and from there is where the problems occurred - I had to either get rid of the HTMLs background coding, or the last box in the code [7 boxes in total, with the last box intact]



Hrt Icon 0 players like this post! Like?

Edited on 09/03/24 @ 11:48:07 by Val|G2|7.8.22 NRLC|Smilus (#395601)

Val|G1|7.8.22
RLC|Primal (#395601)


View Forum Posts


Posted on
2024-03-09 12:40:06
Of course, thank you for the help

this has been a pain to both me and the people buying HTMLs from me



Hrt Icon 0 players like this post! Like?

Michael (#16)

Famous
View Forum Posts


Posted on
2024-03-09 20:01:29
Alright, so that should be fixed now. You'll need to re-paste the clean HTML into the clan description, and once you save it this time, it will no longer rewrite the code.

I was testing, and this is actually how it was working on the old server as well. The first time you paste and save, it works correctly (but rewrites the code that gets shown in the description textarea). Then if you save it again, it would continue to rewrite the quotes.

When someone edits a clan description, we pass that text/HTML through a script that strips it of possible malicious code. In most cases, we store the cleaned version as well as the "raw"/unclean code. The clean code is what gets output to the screen for display, whereas the raw code is what's meant to be shown in the textarea. What was happening here is that the clean HTML was being stored in both places. Thus when someone went to go edit a clan description, the code they expected to see (the raw code) would actually be the modified/clean code (which ended up rewriting quotes in many instances and breaking inline CSS).

I hope this makes sense.

TL;DR: Saving clan descriptions was storing cleaned up HTML when it should have been storing the raw HTML, and it messed up when re-saved. All good now though!



Hrt Icon 1 player likes this post! Like?

Val|G1|7.8.22
RLC|Primal (#395601)


View Forum Posts


Posted on
2024-03-09 20:11:55
Perfect, thanks for your help! I'll redo the clans description soon



Hrt Icon 0 players like this post! Like?

Mars 🍊 (#457412)

Confused
View Forum Posts


Posted on
2024-03-10 23:29:29
Hello!
My friends and I also had a similar issue today while updating our clan CSS. As soon as we saved it wouldn't show. There's no issues for how we're pasting the dropbox in; we had no problems before saving it, and we had no issue with it working. A friend of ours said that their own code was also not working anywhere despite showing up fine without saving any new clan page changes. Is there something we need to do as well to fix the issue?



Hrt Icon 1 player likes this post! Like?

Michael (#16)

Famous
View Forum Posts


Posted on
2024-03-11 00:20:03
@Mars: You'll need to paste in the HTML that was originally used (before saving it into the clan description). This would be the "raw" uncleaned HTML. Any HTML that was saved previously will have some changes to the core structure which will cause issues.



Hrt Icon 1 player likes this post! Like?

➵ sprout (#185560)


View Forum Posts


Posted on
2024-03-11 00:44:00
Hey Michael, I'm the friend Mars was referring to that was trying to help him with the Clan CSS. We're using CSS via a Dropbox link/code & I'm a little bit confused, so I wanted to clarify: when you say the HTML that was originally used, do you mean the original Dropbox code?

I'm sorry to bother with all of this, but I've tried multiple different ways of fixing it, including re-saving on my computer and reuploading the code as a whole to use a new link, but it's still not working & I'm a bit frazzled



Hrt Icon 1 player likes this post! Like?

Michael (#16)

Famous
View Forum Posts


Posted on
2024-03-11 00:57:18
@sprout: Which clan is it?



Hrt Icon 0 players like this post! Like?

➵ sprout (#185560)


View Forum Posts


Posted on
2024-03-11 01:06:42
The Clan we're having the issues with is The Lioden Mall.

I used my Clan, Pagan Pride, for testing, since I don't have any coding in there right now & at first we thought it might've just been some issue with the code or linking itself. I did also test using the code from my other Clan, The Lioden Conservatory, to see if it would work since it's still showing up in LDC as it's supposed to, but it didn't show up when tested, either.



Hrt Icon 0 players like this post! Like?

Michael (#16)

Famous
View Forum Posts


Posted on
2024-03-11 01:27:12
I see what happened, external stylesheets were being stripped out. In the future, we'll likely separate out the CSS files into their own fields. For now though, I've re-enabled external stylesheets in HTML. That does bring up another issue though. Your CSS file is not available:
https://dl.dropbox.com/scl/fi/u175g20pnhjj5d06ecygm/THE-LIODEN-MALL.css?rlkey=xl2jq0u5vp7m68txl7w7axm9&am-;dl=0

I get a 403 error when trying to access it, which means it won't load on the clan page still.



Hrt Icon 1 player likes this post! Like?

➵ sprout (#185560)


View Forum Posts


Posted on
2024-03-11 01:35:37
For some reason, CSS doesn't show up when plugging the "www." link into the code and instead only shows up when that is replaced with "dl." at the beginning. That being said, I just tested it out & it worked! Thank you!



Hrt Icon 1 player likes this post! Like?







Memory Used: 625.00 KB - Queries: 0 - Query Time: 0.00000 - Total Time: 0.00471s