Make readable the old messages of this board
Hi,
the old messages of this Community Forum containing code now are practically unreadable. Please, see an example:
the amount of old messages with code solutions still useful is invaluable, and this non-sense in these messages supposes a tragic loss for everybody.
Solving this problem is extremely easy. Just by replacing the <code> and </code> tags by one <div>. In this way the code will be readable by magics including one horizontal scroll.
In example, in this fragment we do a replacement the <code> tag by <div class="code2">:
<div class="code2">LOG: MAIN cwd=/usr/local/cpanel/whostmgr/docroot 4 args: /usr/sbin/exim -v -M 1dmdEb-0004Yz-Ku delivering 1dmdEb-0004Yz-Ku LOG: MAIN PANIC Error in system filter: unrecognized condition word "not" near line 240 of fil...
</div>
and then just including a new simple .css class like this inside the .css styleheet of the board:
.code2 {
border: 1px solid #cccccc;
border-radius: 3px;
padding: 0 5px;
margin: 0 2px;
font-size: 0.8em;
white-space: pre;
background-color: white;
line-height: 2;
font-family: monospace;
overflow-x: auto;
overflow-y: hidden;
}
and with this simple change now look the difference with the previous image: now is at least readable:
Without knowing what's the board software, anyway it is possible do something similar in a short time. Just do a massive replacement in the database for the old messages, or apply that similar replacement when showing the old messages.
We could include some extension in the browser to do this replacement in the Cpanel website, although it is more problematic and definitely not a proper solution when this can be solved easily.
Please, submit this suggestion to the developers.
thank you,
-
Hey there! When the Forum was migrated to new software we picked the migration option that caught the most data. It wasn't a perfect solution, but it worked for a majority of posts. However, as you've found, there are some that slipped through our system.
I've updated the formatting on that post you linked to it is more readable.
0 -
better now. :) thanks so much
0 -
sorry, that message was just one example. I'm checking this is not applied everywhere:
https://support.cpanel.net/hc/en-us/community/posts/19162409513879
https://support.cpanel.net/hc/en-us/community/posts/19122941838231
etcetera
Why don't apply this in a global way?.It wouldn't impact in the new messages.
Well, it is just a suggestion. Keeping these solutions readable is good for all users and also to save work for CPanel people. I believe
thanks
0 -
Oh I'm aware there's many, i just don't have a good way to fix them all. If you see any in particular that you're struggling with just let me know and I can update them.
0 -
ok, I understand. No problem
There is the alternative way for the user installing the Styllus extension in the browser:
Chrome - Firefox - GithubAnd just creating this simple CSS code inside the extension:
code {
color: #000;
white-space: pre;
font-family: monospace;
font-size: 15px;
line-height: 1.6;
max-width: 100%;
overflow: auto;
display: block;
word-wrap: break-word;
}and applying the style only to "URL defined with Regex" like this:
https://support.cpanel.net/hc/(.*)/community/posts(.*)
in this way is applied only to this forum. It works for both new and old messages.
A test here with some threads from years ago:
https://support.cpanel.net/hc/en-us/community/posts/19122941838231
Hope it can be useful for others,
0
Please sign in to leave a comment.
Comments
5 comments