News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

HTML in board name

Started by Sir Osis of Liver, March 31, 2019, 05:00:18 PM

Previous topic - Next topic

Sir Osis of Liver

Haven't seen this in quite a while, but 2.0.15 appears to be handling it differently than earlier 2.0 versions.  IIRC, if html was included in board name, it would not display in board index, and if you tried to modify board, either the modify link was dead or page load crashed.  What I'm seeing now is name displays correctly, including html formatting, modify link gets me into board editor, in a few boards html is displayed in name field and can be modified, in most boards name field is blank and modify button is dead until something is typed into name field, at which point modify button works and name is overwritten with new text.  Apparently it's no longer necessary to delete html from the name field in database to correct the problem.  Was this changed at some point in 2.0 branch?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

I don't believe it was changed in 2.0, it definitely was in 2.1.

But it mostly depends on exactly what HTML, not all HTML breaks it.

Sir Osis of Liver

Does 2.1 allow html in board names?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

No, 2.1 sanitises it to bbcode.

Sir Osis of Liver

#4
Found the problem:

This causes name field to be blank -



<div style="text-align: left;">&nbsp;•&nbsp;Stats Forum Registration &amp; Support<br />&nbsp;•&nbsp;<font color="navy"><i>Registro &amp; Soporte del Foro</i></font></div>



This displays name correctly in editor -



<div style="text-align: left;">&nbsp;•&nbsp;Stats Forum Registration &amp; Support<br />&nbsp;•&nbsp;<font color="navy"><i>Registro &amp; Soporte del Foro</i></font></div>



See the bullet in first one?  Fix is to replace • with &#8226.  This guy mixed it up on couple dozen board names.  Oddly, both display correctly on board index.

Edit:  Well, you can't see it.  Post editor replaces &#8226 with • when I post this in code tags. >:(

Should look like this -

<div style="text-align: left;">&nbsp;&#8226;&nbsp;Stats Forum Registration &amp; Support<br />&nbsp;&#8226;&nbsp;<font color="navy"><i>Registro &amp; Soporte del Foro</i></font></div>



Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

Honestly,  that should never be in the board name or description. 

All of that could be done with css
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

Yes, I know, but I'm trying to help a guy with very little english and even less knowledge of how things work.  If I can give him a workaround that solves his immediate problem, however badly, we're good.  He's got multiple websites running with things I've never heard of, and they're mostly screwed up.  Just hacked an admin login into tikiwiki, whatever the ****** that is. :P
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Aleksi "Lex" Kilpinen

&nbsp;&#8226&nbsp;
&nbsp;&#8226&nbsp;

Quote&nbsp;&#8226&nbsp;
&nbsp;&#8226&nbsp;

&nbsp;&#8226&nbsp;

&nbsp;&#8226&nbsp;

&nbsp;&#8226&nbsp;


Just had to try, but are you using wysiwyg by any chance?
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sir Osis of Liver

Think you need a semicolon after ascii code.  On my reader, can't do much.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Quote from: Sir Osis of Liver on April 01, 2019, 12:59:44 AM
Think ye need a semicolon after ascii code.  On my reader, can't do much.

Is this happening all over the forum?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Sir Osis of Liver

ye -> ye.  I see this in other topics.

Crap.  y o u -> y e

Quote from: Aleksi " Lapsus " Kilpinen on April 01, 2019, 12:18:46 AM
Just had to try, but are ye using wysiwyg by any chance?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Gwenwyfar

thou art just seeing things. Have you checked for bugs in your browser?
"It is impossible to communicate with one that does not wish to communicate"

Antes

SMF already gives unique identification to categories/boards, if yöu need some styling ye can use style sheet thingy.

Example;
/* For specific board only */
#board_1 > td.info > a::after {
    content: " (Something)";
}
/* For some reason ye want for all */
tr[id^="board_"] > td.info > a::after {
    content: " (Something)";
}

Sir Osis of Liver

Seeing it in FF65 and IE11.  Also, look at 'Lex' in quote title.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Gwenwyfar

Weird. Maybe it has to do with the ponies.
"It is impossible to communicate with one that does not wish to communicate"

Sir Osis of Liver

Is anyone else seeing this, or has Sir Osis gone down the rabbit hole?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

 :o It's April 1, isn't it.  Should have known. ::)
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Quote from: Antes on April 01, 2019, 12:23:38 PM
SMF already gives unique identification to categories/boards, if yöu need some styling ye can use style sheet thingy.

Example;
/* For specific board only */
#board_1 > td.info > a::after {
    content: " (Something)";
}
/* For some reason ye want for all */
tr[id^="board_"] > td.info > a::after {
    content: " (Something)";
}


Well, I could do that, but this forum owner couldn't.  Gotta work with what you have.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Aleksi "Lex" Kilpinen

Quote from: Gwenwyfar on April 01, 2019, 12:25:35 PM
Weird. Maybe it has to do with the ponies.
Must be. I say blame the ponies.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: