(#12930) HTML IN modernbb

Page 2 of 2 Previous  1, 2

Go down

In progress (#12930) HTML IN modernbb

Post by Miau on June 29th 2018, 5:01 am

First topic message reminder :

Hi
I need help, I created an alert message in html, but when I changed the version it became so
http://prntscr.com/k0n19g


Code used: Mr. Green

Code:
<table style="border-left-width: 3px; border-left-style: solid; border-left-color: #23E605; border-right-width: 3px; border-right-style: solid; border-right-color: #23E605; margin: 10px auto; padding: 5px; border-radius: 4px; box-shadow: #FF0000 0px 5px 9px; max-height: 2500px; max-width: 2500px; z-index: 999; min-width: 1px; min-height: 1px; background: url("http://bit.ly/acLmW9");"><tbody><tr><td><img src="https://cdn4.iconfinder.com/data/icons/32x32-free-design-icons/32/Warning.png" alt=""></td><td><strong><font color="red" size="1">A sua <u>Barra de Alerta</u> aumentou em <i><font color="BLUE">10%</i></font> por violar as Regras do Fórum.</strong></font>
<strong><font size="0">Regras Violadas:</strong>
1.1 Flood: É proibido o flood. Caracteriza-se:
 -Quando é feito postagens seguidas, ou seja, postagem atrás de postagem;
 -Quando o usuário repete mensagens postadas acima em curto espaço de tempo;
 -Quando o usuário cita uma mensagem dita acima e não escreve nada mais ou faz uso de smileys;
 -Quando o usuário foge do contexto do tópico;
 -Quando são feitas postagens em curto intervalo de tempo em diferentes tópicos (clique aqui para ver um exemplo);
 -Fazer UP em tópico em menos de 24 horas;</font>
<font color="red" size="1">Evite transtornos, leia as </font><font size="0"><a href="http://www.nwdgames.com/t63857-regras-do-forum" target="_blank"><strong>Regras do Fórum</strong></a></strong></font>
<strong><font size="1">Atenciosamente,</font></strong>
<strong><font color="#ff0aff" size="1">COLOQUE_AQUI_SEU_NICK - Coordenador</font></strong>
</td></tr></tbody></table>
avatar
Miau
Forumember

Posts : 95
Reputation : 2
Language : Portuguese

https://nwdgames.com

Back to top Go down


In progress Re: (#12930) HTML IN modernbb

Post by Wecoc on August 23rd 2018, 6:55 pm

I know how to solve this. Insert this in your CSS:

Code:
#preview .postbody table, #preview .postbody td, div[class*='post--'] .postbody table, div[class*='post--'] .postbody td {
    border: none !important;
    border-spacing: 0;
}

The border-spacing line is not really necessary, but since in other tables its value is 0 I guess it's good to include it too.
It will affect all tables in posts. If you want tables in posts to remain the same but change it only in the Alert one, you could assign a new class to that table and apply the CSS to that class.

Also, your HTML could be cleaned a little bit.

HTML recommendations:
- You are using a lot of attributes inside the style parameter of table, I would rather create a class for the table and assign them in the CSS.

- The
Code:
font size="1"
codes don't seem to be working at all, why don't you set
Code:
font-size: 1rem;
in the table style and delete all those?

- You used double quotes inside a style parameter which already uses double quotes, use single quotes instead:
Code:
url('here the url')
.

- Don't use an url that redirects to another url to set the background of the table.

- And finally, this
Code:
<strong><font>text</font></strong>
in better than this
Code:
<strong><font>text</strong></font>
because in mantains the "code in blocks" format of HTML: tags inside other tags.

Hope this helps.
avatar
Wecoc
Forumember

Male Posts : 136
Reputation : 98
Language : Catalan, Spanish, English

http://www.mundo-maker.com/

Back to top Go down

In progress Re: (#12930) HTML IN modernbb

Post by Miau on October 7th 2018, 8:19 pm

I did not understand how I will do to remove the tables just from the alert, can you give me an example? I added the css code and removed all
@Wecoc
avatar
Miau
Forumember

Posts : 95
Reputation : 2
Language : Portuguese

https://nwdgames.com

Back to top Go down

In progress Re: (#12930) HTML IN modernbb

Post by APE on October 7th 2018, 10:44 pm

@Miau wrote:I did not understand how I will do to remove the tables just from the alert, can you give me an example? I added the css code and removed all
@Wecoc

The code will remove all the tables you post.

We know that this is a bug on our system and it is on the list to be fixed but as it is not a bug that is messing up the systems its self it will be way down the list to be fixed it could be done tomorrow it could be done in 2 or 3 years No one will know

Until the system is fixed you will always have this problem and there is NO code out there that will truly fix this until we fix it on our servers.



avatar
APE
Administrator
Administrator

Male Posts : 13284
Reputation : 1401
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum