Como colocar numero na baliza código
3 participantes
Fórum dos Fóruns :: Ajuda e atendimento ao utilizador :: Questões sobre códigos :: Questões resolvidas sobre HTML e BBCode
Página 1 de 1 • Compartilhe
Como colocar numero na baliza código
Qual é minha questão:
Na Baliza Código Do FdF tem números do lado eu queria saber como fazer isso
Links e imagens do meu problema:
Não é necessário.
Endereço do meu fórum:
Versão do meu fórum:
PHPBB3
Na Baliza Código Do FdF tem números do lado eu queria saber como fazer isso
Links e imagens do meu problema:
Não é necessário.
Endereço do meu fórum:
Versão do meu fórum:
PHPBB3
Última edição por DetonaGames em 25.08.12 4:12, editado 1 vez(es)
Re: Como colocar numero na baliza código
Olá!
Aceda ao seu:
Investimento: Em todas as páginas.
Código:
Feito isto aceda ao seu:
Cole o código abaixo e salve:
Abraços.
Aceda ao seu:
Painel de Controle Módulos HTML & JAVASCRIPT Gestão dos Códigos JavaScript Criar um novo código Javascript
Investimento: Em todas as páginas.
Código:
jQuery(document).ready(function(){jQuery('.postbody dl.codebox dd code').each(function(){t=1;if(this.innerHTML.indexOf('<br>')!=-1){t='';i=1;while(i<=this.innerHTML.split('<br>').length){t+='\n'+i;i++};jQuery(this).before('<pre>'+t+'</pre>')}})});
Feito isto aceda ao seu:
Painel de Controle Visualização Imagens e Cores Cores Aba 'Folha de estilo CSS'
Cole o código abaixo e salve:
.postbody dl.codebox dd{overflow-y:auto;overflow-x:auto;max-height:200px}.postbody dl.codebox pre{display:block;float:left;font-size:12px;line-height:15.199999809265137px;padding:5px;border-right:3px solid #6CE26C;margin-top:2px;color:#A8A5A5;margin-right:5px;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';padding-right:8px}.postbody dl.codebox code{overflow-y:hidden;overflow-x:hidden;max-height:none;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';background:url(https://i.imgur.com/eHvfR.png) repeat 0px 0px;padding-top:0px;margin-top:7px}
Abraços.
Re: Como colocar numero na baliza código
não resultou.
Re: Como colocar numero na baliza código
Olá!
O código e exatamente para todas as versões. Peço que refaça o que o Mateus disse. Se não der certo pode ser de um de teus códigos JS estão a dar erro no mesmo.
Até logo.
O código e exatamente para todas as versões. Peço que refaça o que o Mateus disse. Se não der certo pode ser de um de teus códigos JS estão a dar erro no mesmo.
Até logo.
Re: Como colocar numero na baliza código
Erro detectado
Nós contamos um número diferente de "{" e de "}". Isto significa que o seu CSS pode não ser válido e não será exibido corretamente no seu fórum.
Lhe aconselhamos que releia o seu código
Nós contamos um número diferente de "{" e de "}". Isto significa que o seu CSS pode não ser válido e não será exibido corretamente no seu fórum.
Lhe aconselhamos que releia o seu código
Re: Como colocar numero na baliza código
Olá!
O erro deve estar em sua folha de estilo CSS, poderia fornece-la para mim?
Abraços.
O erro deve estar em sua folha de estilo CSS, poderia fornece-la para mim?
Abraços.
Re: Como colocar numero na baliza código
- Spoiler:
- .postbody dl.codebox dd{overflow-y:auto;overflow-x:auto;max-height:200px}.postbody dl.codebox pre{display:block;float:left;font-size:12px;line-height:15.199999809265137px;padding:5px;border-right:3px solid #6CE26C;margin-top:2px;color:#A8A5A5;margin-right:5px;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';padding-right:8px}.postbody dl.codebox code{overflow-y:hidden;overflow-x:hidden;max-height:none;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';background:url(https://i.imgur.com/eHvfR.png) repeat 0px 0px;padding-top:0px;margin-top:7px}
background-color: transparent !important;
background-image: none !important;
border: none;
}
.introduction div.h3 {
display: none;
}
.introduction .module div.h3 {
display: block;
}
/*-----------------------------------------------*/
/*-------------[Body tamaño del foro logo descripcion del foro]------------*/
/*------------------------------------------------*/
body#phpbb {
background-color: #eee;
}
.headerbar {
padding: 0px;
}
#wrap {
width: 960px;
background: #FFFFFF;
background-color: #fff;
margin: auto;
-webkit-border-radius: 0 0 6px 6px;
-moz-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
box-shadow: 0 1px 2px rgba(0,0,0,.15);
margin-bottom: 25px !important;
}
.footer-home::before {
content: "© Konekta Brasil - www.konektabrasil.com";
display: block;
margin-top: 40px;
}
#logo-desc{width: 970px !important;
height: 300px !important;
background: transparent url("https://i.imgur.com/K05zK.png") center center no-repeat;
box-shadow: 0px 0px 15px #000 inset;
margin: -5px;}
#site-title h1 {display: none;}
#site-title, #site-title h1{display: none;}
#logo-desc p {display: none;}
/*------------------------------------------------*/
/*-------------[Navbar]------------*/
/*------------------------------------------------*/
ul.navlinks {
border-bottom: 1px solid transparent;
box-shadow: 0 1px 3px rgba(0,0,0,0.25),inset 0 -1px 0 rgba(0,0,0,0.1);
font-weight: 700;
height: 40px;
left: 0;
position: fixed;
right: 0;
text-align: center;
top: 0;
z-index: 999;
background-image: url(https://i.imgur.com/AOkgY.png);
}
ul.linklist li {
line-height: 40px;
}
ul.linklist.navlinks li a{padding: 15px 10px 15px 10px;color: #bfbfbf;}
ul.linklist.navlinks li a:hover{background: rgba(255, 255, 255, 0.05);color: #ffffff;}
/*------------------------------------------------*/
/*-------------[Panel Foros]------------*/
/*------------------------------------------------*/
.panel {
background-color: #f5f5f5;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
.row {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(https://i.imgur.com/PtFzv.png) repeat-x left bottom;
}
.forabg {
background-color: #333333;
background-image: url(https://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-right: 1px #ddd solid;
padding: 0;
box-shadow: 0px 0px 15px #ccc;
border-radius: 4px;
}
.row1 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(https://i.imgur.com/PtFzv.png) repeat-x left bottom;}
.row2 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(https://i.imgur.com/PtFzv.png) repeat-x left bottom;}
/*------------------------------------------------*/
/*-------------[Foros cat Portal]------------*/
/*------------------------------------------------*/
.forumbg {
background-color: #333;
background-image: url(https://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-radius: 4px;
border-right: 1px #ddd solid;
box-shadow: 0 0 15px #ccc;
padding: 0;
}
form#quick_reply #textarea_content textarea#text_editor_textarea {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.post {
background: #eee;
border-bottom: 1px solid #ccc;
box-shadow: 0px 0px 8px #ddd inset;
}
.post span.corners-top {
height: 29px;
background: #222;
padding: 6px 15px;
}
.module {
border-radius: 4px;
background: #eee;
border: 1px solid #ccc;
box-shadow: 0 0 5px #ccc;
}
.module span.corners-top{height: 29px;
background: #333 url(https://i.imgur.com/AOkgY.png)repeat-x;
}
.table-title, .table-title h2 {
display: inline;
color: #FFF !important;
font-family: 'Arvo', Helvetica Neue, Helvetica, Arial, Verdana;
font-size: 1.1em;
font-weight: 700;
}
/*------------------------------------------------*/
/*-------------[search incorporado con algunos codigos importantes]------------*/
/*------------------------------------------------*/
#chatbox {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box {
background: url(https://i.imgur.com/d6Rki.png) no-repeat;
display: inline;
height: 35px;
margin-top: -130px!important;
}
.wysiwyg {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box #keywords {
width: 130px;
background: transparent;
color: #6C6C6D;margin-left: 15px;
font-family: Verdana;margin-top:5px;
font-style: normal;
font-size: 12px;}
#search-box input {
border: none !important;
background: none;}
#search-box input.search {
background: none;
margin-left: 0px;
margin-top: 0;}
#search-box input.button2 {visibility: hidden;
}
#search_menu {
background: #ffffff;
font-size: 11px !important;
position: relative;
width: 350px;
top: 60px!important;
left: 300px!important;
}
#search_menu a{color:#000!important;}
.conteneur_container_IE{position: relative;bottom: -3px;margin-top: -2px;padding: 1px;}
/*------------------------------------------------*/
/*-------------[Borrar el subrayado de los enlaces]------------*/
/*------------------------------------------------*/
a {text-decoration: none;}
a:link {text-decoration: none;}
a:hover {text-decoration: none!important;}
a.forumtitle {text-decoration: none;}
a.forumtitle:hover {text-decoration: none!important;}
a.topictitle {text-decoration: none;}
a.topictitle:hover {text-decoration: none!important;}
/*------------------------------------------------*/
/*-------------[Perfil Post]------------*/
/*------------------------------------------------*/
#message-box textarea {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.postprofile {
padding: 5px;
text-align: center;
background-color: #f5f5f5;
border: 1px solid #ddd;
box-shadow: 0px 0px 0px 1px rgb(255, 255, 255),inset 0 0px 0 rgba(0,0,0,0.1);
border-radius: 4px;
padding: 5px;
left: -5px;
}
.postprofile dd, .postprofile dt {
line-height: 1.2em;
margin: auto;
padding: 10px;
background: #FFF;
border: 1px solid #DDD;
border-radius: 5px;
margin: auto;
margin-top: 4px;
}
/*------------------------------------------------*/
/*-------------[Botones]------------*/
/*------------------------------------------------*/
input.button1, input.button2, button.button2, #main-content a.cgu-buttons {
background: #f4f5f4 url(https://i.servimg.com/u/f66/11/96/49/61/tabbg10.png);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 2px;}
/*------------------------------------------------*/
/*-------------[agre codigos para solucionar errores & aportes importantes no borres nada]------------*/
/*------------------------------------------------*/
#plus_menu {
background: #ffffff;
}
.user_login_form input[type="text"], .user_login_form input[type="password"]{
position:relative;
top:7px;
}
.postbody .topic-title {
font-size:1.2em;}
p.path {
background: #222 url(https://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
p.path a{color:#fff!important;}
.pathname-box {
background: #222 url(https://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
.pathname-box a{color:#fff!important;}
.postbody {
clear: both;
color: #7d7d7d;
float: right;
line-height: 1.48em;
padding: 7px;
width: 75%;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
margin-top: 5px;
}
.topic-actions {
font-size: 1.1em;
height: auto;
background-color: #f5f5f5;
padding: 10px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
margin: 0px;
}
h1.page-title {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 2em;
font-weight: 400;
background-color: #f5f5f5;
border-bottom: 1px dotted #ddd;
padding: 10px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
margin: 0px;
}
h1.page-title a{color: #333 !important;}
blockquote cite {
display: block;
font-style: normal;
font-weight: 700;
border-bottom: 1px dashed rgba(0,0,0,.2);
padding: 3px 5px;
margin-left: -15px;
font-size: 12px;
}
blockquote {
margin: 1em 1px 1em 25px;
overflow: hidden;
background-color: #fefbf3;
padding: 9px;
border: 1px solid rgba(0,0,0,.2);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.1);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
font-family: Verdana;
font-size: 12px;
line-height: 1.5em;
border-radius: 6px;
}
.content blockquote {
color: #333;
}
Re: Como colocar numero na baliza código
Boas!
Troque teu CSS pelo abaixo:
Atenciosamente.
Troque teu CSS pelo abaixo:
- Código:
.postbody dl.codebox dd{overflow-y:auto;overflow-x:auto;max-height:200px}.postbody dl.codebox pre{display:block;float:left;font-size:12px;line-height:15.199999809265137px;padding:5px;border-right:3px solid #6CE26C;margin-top:2px;color:#A8A5A5;margin-right:5px;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';padding-right:8px}.postbody dl.codebox code{overflow-y:hidden;overflow-x:hidden;max-height:none;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';background:url(http://i.imgur.com/eHvfR.png) repeat 0px 0px;padding-top:0px;margin-top:7px}
background-color: transparent !important;
background-image: none !important;
border: none;
}
.introduction div.h3 {
display: none;
}
.introduction .module div.h3 {
display: block;
}
/*-----------------------------------------------*/
/*-------------[Body tamaño del foro logo descripcion del foro]------------*/
/*------------------------------------------------*/
body#phpbb {
background-color: #eee;
}
.headerbar {
padding: 0px;
}
#wrap {
width: 960px;
background: #FFFFFF;
background-color: #fff;
margin: auto;
-webkit-border-radius: 0 0 6px 6px;
-moz-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
box-shadow: 0 1px 2px rgba(0,0,0,.15);
margin-bottom: 25px !important;
}
.footer-home::before {
content: " Konekta Brasil - www.konektabrasil.com";
display: block;
margin-top: 40px;
}
#logo-desc{width: 970px !important;
height: 300px !important;
background: transparent url("http://i.imgur.com/K05zK.png") center center no-repeat;
box-shadow: 0px 0px 15px #000 inset;
margin: -5px;}
#site-title h1 {display: none;}
#site-title, #site-title h1{display: none;}
#logo-desc p {display: none;}
/*------------------------------------------------*/
/*-------------[Navbar]------------*/
/*------------------------------------------------*/
ul.navlinks {
border-bottom: 1px solid transparent;
box-shadow: 0 1px 3px rgba(0,0,0,0.25),inset 0 -1px 0 rgba(0,0,0,0.1);
font-weight: 700;
height: 40px;
left: 0;
position: fixed;
right: 0;
text-align: center;
top: 0;
z-index: 999;
background-image: url(http://i.imgur.com/AOkgY.png);
}
ul.linklist li {
line-height: 40px;
}
ul.linklist.navlinks li a{padding: 15px 10px 15px 10px;color: #bfbfbf;}
ul.linklist.navlinks li a:hover{background: rgba(255, 255, 255, 0.05);color: #ffffff;}
/*------------------------------------------------*/
/*-------------[Panel Foros]------------*/
/*------------------------------------------------*/
.panel {
background-color: #f5f5f5;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
.row {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(http://i.imgur.com/PtFzv.png) repeat-x left bottom;
}
.forabg {
background-color: #333333;
background-image: url(http://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-right: 1px #ddd solid;
padding: 0;
box-shadow: 0px 0px 15px #ccc;
border-radius: 4px;
}
.row1 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(http://i.imgur.com/PtFzv.png) repeat-x left bottom;}
.row2 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(http://i.imgur.com/PtFzv.png) repeat-x left bottom;}
/*------------------------------------------------*/
/*-------------[Foros cat Portal]------------*/
/*------------------------------------------------*/
.forumbg {
background-color: #333;
background-image: url(http://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-radius: 4px;
border-right: 1px #ddd solid;
box-shadow: 0 0 15px #ccc;
padding: 0;
}
form#quick_reply #textarea_content textarea#text_editor_textarea {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.post {
background: #eee;
border-bottom: 1px solid #ccc;
box-shadow: 0px 0px 8px #ddd inset;
}
.post span.corners-top {
height: 29px;
background: #222;
padding: 6px 15px;
}
.module {
border-radius: 4px;
background: #eee;
border: 1px solid #ccc;
box-shadow: 0 0 5px #ccc;
}
.module span.corners-top{height: 29px;
background: #333 url(http://i.imgur.com/AOkgY.png)repeat-x;
}
.table-title, .table-title h2 {
display: inline;
color: #FFF !important;
font-family: 'Arvo', Helvetica Neue, Helvetica, Arial, Verdana;
font-size: 1.1em;
font-weight: 700;
}
/*------------------------------------------------*/
/*-------------[search incorporado con algunos codigos importantes]------------*/
/*------------------------------------------------*/
#chatbox {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box {
background: url(http://i.imgur.com/d6Rki.png) no-repeat;
display: inline;
height: 35px;
margin-top: -130px!important;
}
.wysiwyg {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box #keywords {
width: 130px;
background: transparent;
color: #6C6C6D;margin-left: 15px;
font-family: Verdana;margin-top:5px;
font-style: normal;
font-size: 12px;}
#search-box input {
border: none !important;
background: none;}
#search-box input.search {
background: none;
margin-left: 0px;
margin-top: 0;}
#search-box input.button2 {visibility: hidden;
}
#search_menu {
background: #ffffff;
font-size: 11px !important;
position: relative;
width: 350px;
top: 60px!important;
left: 300px!important;
}
#search_menu a{color:#000!important;}
.conteneur_container_IE{position: relative;bottom: -3px;margin-top: -2px;padding: 1px;}
/*------------------------------------------------*/
/*-------------[Borrar el subrayado de los enlaces]------------*/
/*------------------------------------------------*/
a {text-decoration: none;}
a:link {text-decoration: none;}
a:hover {text-decoration: none!important;}
a.forumtitle {text-decoration: none;}
a.forumtitle:hover {text-decoration: none!important;}
a.topictitle {text-decoration: none;}
a.topictitle:hover {text-decoration: none!important;}
/*------------------------------------------------*/
/*-------------[Perfil Post]------------*/
/*------------------------------------------------*/
#message-box textarea {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.postprofile {
padding: 5px;
text-align: center;
background-color: #f5f5f5;
border: 1px solid #ddd;
box-shadow: 0px 0px 0px 1px rgb(255, 255, 255),inset 0 0px 0 rgba(0,0,0,0.1);
border-radius: 4px;
padding: 5px;
left: -5px;
}
.postprofile dd, .postprofile dt {
line-height: 1.2em;
margin: auto;
padding: 10px;
background: #FFF;
border: 1px solid #DDD;
border-radius: 5px;
margin: auto;
margin-top: 4px;
}
/*------------------------------------------------*/
/*-------------[Botones]------------*/
/*------------------------------------------------*/
input.button1, input.button2, button.button2, #main-content a.cgu-buttons {
background: #f4f5f4 url(http://i66.servimg.com/u/f66/11/96/49/61/tabbg10.png);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 2px;}
/*------------------------------------------------*/
/*-------------[agre codigos para solucionar errores & aportes importantes no borres nada]------------*/
/*------------------------------------------------*/
#plus_menu {
background: #ffffff;
}
.user_login_form input[type="text"], .user_login_form input[type="password"]{
position:relative;
top:7px;
}
.postbody .topic-title {
font-size:1.2em;}
p.path {
background: #222 url(http://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
p.path a{color:#fff!important;}
.pathname-box {
background: #222 url(http://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
.pathname-box a{color:#fff!important;}
.postbody {
clear: both;
color: #7d7d7d;
float: right;
line-height: 1.48em;
padding: 7px;
width: 75%;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
margin-top: 5px;
}
.topic-actions {
font-size: 1.1em;
height: auto;
background-color: #f5f5f5;
padding: 10px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
margin: 0px;
}
h1.page-title {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 2em;
font-weight: 400;
background-color: #f5f5f5;
border-bottom: 1px dotted #ddd;
padding: 10px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
margin: 0px;
}
h1.page-title a{color: #333 !important;}
blockquote cite {
display: block;
font-style: normal;
font-weight: 700;
border-bottom: 1px dashed rgba(0,0,0,.2);
padding: 3px 5px;
margin-left: -15px;
font-size: 12px;
}
blockquote {
margin: 1em 1px 1em 25px;
overflow: hidden;
background-color: #fefbf3;
padding: 9px;
border: 1px solid rgba(0,0,0,.2);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.1);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
font-family: Verdana;
font-size: 12px;
line-height: 1.5em;
border-radius: 6px;
}
.content blockquote {
color: #333;
}
Atenciosamente.
Re: Como colocar numero na baliza código
eu acho que não é com o css pq ta dando o mesmo erro.
Re: Como colocar numero na baliza código
Olá!
Tente mais uma vez:
Código:
Investimento: Nos tópicos.
Feito isto aceda ao seu:
Cole o código abaixo e salve:
Abraços.
Tente mais uma vez:
Painel de Controle Módulos HTML & JAVASCRIPT Gestão dos Códigos JavaScript
Código:
- Código:
jQuery(document).ready(function(){jQuery('.postbody dl.codebox dd code').each(function(){t=1;if(this.innerHTML.indexOf('<br>')!=-1){t='';i=1;while(i<=this.innerHTML.split('<br>').length){t+='\n'+i;i++};jQuery(this).before('<pre>'+t+'</pre>')}})});
Investimento: Nos tópicos.
Feito isto aceda ao seu:
Painel de Controle Visualização Imagens e Cores Cores Aba 'Folha de estilo CSS'
Cole o código abaixo e salve:
.postbody dl.codebox dd{overflow-y:auto;overflow-x:auto;max-height:200px}.postbody dl.codebox pre{display:block;float:left;font-size:12px;line-height:15.199999809265137px;padding:5px;border-right:3px solid #6CE26C;margin-top:2px;color:#A8A5A5;margin-right:5px;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';padding-right:8px}.postbody dl.codebox code{overflow-y:hidden;overflow-x:hidden;max-height:none;font-family:Consolas,'Bitstream Vera Sans Mono','Courier New';background:url(https://i.imgur.com/eHvfR.png) repeat 0px 0px;padding-top:0px;margin-top:7px}
Abraços.
Re: Como colocar numero na baliza código
cara o erro não é desse codigo o erro é de outro codigo css pois quando apaguei o codigo o erro continuo
Você poderia resolver ele pra min?
Você poderia resolver ele pra min?
- Spoiler:
- background-color: transparent !important;
background-image: none !important;
border: none;
}
.introduction div.h3 {
display: none;
}
.introduction .module div.h3 {
display: block;
}
/*-----------------------------------------------*/
/*-------------[Body tamaño del foro logo descripcion del foro]------------*/
/*------------------------------------------------*/
body#phpbb {
background-color: #eee;
}
.headerbar {
padding: 0px;
}
#wrap {
width: 960px;
background: #FFFFFF;
background-color: #fff;
margin: auto;
-webkit-border-radius: 0 0 6px 6px;
-moz-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
box-shadow: 0 1px 2px rgba(0,0,0,.15);
margin-bottom: 25px !important;
}
.footer-home::before {
content: "© Konekta Brasil - www.konektabrasil.com";
display: block;
margin-top: 40px;
}
#logo-desc{width: 970px !important;
height: 300px !important;
background: transparent url("https://i.imgur.com/K05zK.png") center center no-repeat;
box-shadow: 0px 0px 15px #000 inset;
margin: -5px;}
#site-title h1 {display: none;}
#site-title, #site-title h1{display: none;}
#logo-desc p {display: none;}
/*------------------------------------------------*/
/*-------------[Navbar]------------*/
/*------------------------------------------------*/
ul.navlinks {
border-bottom: 1px solid transparent;
box-shadow: 0 1px 3px rgba(0,0,0,0.25),inset 0 -1px 0 rgba(0,0,0,0.1);
font-weight: 700;
height: 40px;
left: 0;
position: fixed;
right: 0;
text-align: center;
top: 0;
z-index: 999;
background-image: url(https://i.imgur.com/AOkgY.png);
}
ul.linklist li {
line-height: 40px;
}
ul.linklist.navlinks li a{padding: 15px 10px 15px 10px;color: #bfbfbf;}
ul.linklist.navlinks li a:hover{background: rgba(255, 255, 255, 0.05);color: #ffffff;}
/*------------------------------------------------*/
/*-------------[Panel Foros]------------*/
/*------------------------------------------------*/
.panel {
background-color: #f5f5f5;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
.row {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(https://i.imgur.com/PtFzv.png) repeat-x left bottom;
}
.forabg {
background-color: #333333;
background-image: url(https://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-right: 1px #ddd solid;
padding: 0;
box-shadow: 0px 0px 15px #ccc;
border-radius: 4px;
}
.row1 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(https://i.imgur.com/PtFzv.png) repeat-x left bottom;}
.row2 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(https://i.imgur.com/PtFzv.png) repeat-x left bottom;}
/*------------------------------------------------*/
/*-------------[Foros cat Portal]------------*/
/*------------------------------------------------*/
.forumbg {
background-color: #333;
background-image: url(https://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-radius: 4px;
border-right: 1px #ddd solid;
box-shadow: 0 0 15px #ccc;
padding: 0;
}
form#quick_reply #textarea_content textarea#text_editor_textarea {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.post {
background: #eee;
border-bottom: 1px solid #ccc;
box-shadow: 0px 0px 8px #ddd inset;
}
.post span.corners-top {
height: 29px;
background: #222;
padding: 6px 15px;
}
.module {
border-radius: 4px;
background: #eee;
border: 1px solid #ccc;
box-shadow: 0 0 5px #ccc;
}
.module span.corners-top{height: 29px;
background: #333 url(https://i.imgur.com/AOkgY.png)repeat-x;
}
.table-title, .table-title h2 {
display: inline;
color: #FFF !important;
font-family: 'Arvo', Helvetica Neue, Helvetica, Arial, Verdana;
font-size: 1.1em;
font-weight: 700;
}
/*------------------------------------------------*/
/*-------------[search incorporado con algunos codigos importantes]------------*/
/*------------------------------------------------*/
#chatbox {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box {
background: url(https://i.imgur.com/d6Rki.png) no-repeat;
display: inline;
height: 35px;
margin-top: -130px!important;
}
.wysiwyg {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box #keywords {
width: 130px;
background: transparent;
color: #6C6C6D;margin-left: 15px;
font-family: Verdana;margin-top:5px;
font-style: normal;
font-size: 12px;}
#search-box input {
border: none !important;
background: none;}
#search-box input.search {
background: none;
margin-left: 0px;
margin-top: 0;}
#search-box input.button2 {visibility: hidden;
}
#search_menu {
background: #ffffff;
font-size: 11px !important;
position: relative;
width: 350px;
top: 60px!important;
left: 300px!important;
}
#search_menu a{color:#000!important;}
.conteneur_container_IE{position: relative;bottom: -3px;margin-top: -2px;padding: 1px;}
/*------------------------------------------------*/
/*-------------[Borrar el subrayado de los enlaces]------------*/
/*------------------------------------------------*/
a {text-decoration: none;}
a:link {text-decoration: none;}
a:hover {text-decoration: none!important;}
a.forumtitle {text-decoration: none;}
a.forumtitle:hover {text-decoration: none!important;}
a.topictitle {text-decoration: none;}
a.topictitle:hover {text-decoration: none!important;}
/*------------------------------------------------*/
/*-------------[Perfil Post]------------*/
/*------------------------------------------------*/
#message-box textarea {
background-image: url(https://i.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.postprofile {
padding: 5px;
text-align: center;
background-color: #f5f5f5;
border: 1px solid #ddd;
box-shadow: 0px 0px 0px 1px rgb(255, 255, 255),inset 0 0px 0 rgba(0,0,0,0.1);
border-radius: 4px;
padding: 5px;
left: -5px;
}
.postprofile dd, .postprofile dt {
line-height: 1.2em;
margin: auto;
padding: 10px;
background: #FFF;
border: 1px solid #DDD;
border-radius: 5px;
margin: auto;
margin-top: 4px;
}
/*------------------------------------------------*/
/*-------------[Botones]------------*/
/*------------------------------------------------*/
input.button1, input.button2, button.button2, #main-content a.cgu-buttons {
background: #f4f5f4 url(https://i.servimg.com/u/f66/11/96/49/61/tabbg10.png);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 2px;}
/*------------------------------------------------*/
/*-------------[agre codigos para solucionar errores & aportes importantes no borres nada]------------*/
/*------------------------------------------------*/
#plus_menu {
background: #ffffff;
}
.user_login_form input[type="text"], .user_login_form input[type="password"]{
position:relative;
top:7px;
}
.postbody .topic-title {
font-size:1.2em;}
p.path {
background: #222 url(https://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
p.path a{color:#fff!important;}
.pathname-box {
background: #222 url(https://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
.pathname-box a{color:#fff!important;}
.postbody {
clear: both;
color: #7d7d7d;
float: right;
line-height: 1.48em;
padding: 7px;
width: 75%;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
margin-top: 5px;
}
.topic-actions {
font-size: 1.1em;
height: auto;
background-color: #f5f5f5;
padding: 10px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
margin: 0px;
}
h1.page-title {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 2em;
font-weight: 400;
background-color: #f5f5f5;
border-bottom: 1px dotted #ddd;
padding: 10px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
margin: 0px;
}
h1.page-title a{color: #333 !important;}
blockquote cite {
display: block;
font-style: normal;
font-weight: 700;
border-bottom: 1px dashed rgba(0,0,0,.2);
padding: 3px 5px;
margin-left: -15px;
font-size: 12px;
}
blockquote {
margin: 1em 1px 1em 25px;
overflow: hidden;
background-color: #fefbf3;
padding: 9px;
border: 1px solid rgba(0,0,0,.2);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.1);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
font-family: Verdana;
font-size: 12px;
line-height: 1.5em;
border-radius: 6px;
}
.content blockquote {
color: #333;
}
Re: Como colocar numero na baliza código
Olá!
Substitua-o por este:
Abraços.
Substitua-o por este:
- Código:
.introduction div.h3 {
display: none;
}
.introduction .module div.h3 {
display: block;
}
/*-----------------------------------------------*/
/*-------------[Body tamaño del foro logo descripcion del foro]------------*/
/*------------------------------------------------*/
body#phpbb {
background-color: #eee;
}
.headerbar {
padding: 0px;
}
#wrap {
width: 960px;
background: #FFFFFF;
background-color: #fff;
margin: auto;
-webkit-border-radius: 0 0 6px 6px;
-moz-border-radius: 0 0 6px 6px;
border-radius: 0 0 6px 6px;
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.15);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.15);
box-shadow: 0 1px 2px rgba(0,0,0,.15);
margin-bottom: 25px !important;
}
.footer-home::before {
content: " Konekta Brasil - www.konektabrasil.com";
display: block;
margin-top: 40px;
}
#logo-desc{width: 970px !important;
height: 300px !important;
background: transparent url("http://i.imgur.com/K05zK.png") center center no-repeat;
box-shadow: 0px 0px 15px #000 inset;
margin: -5px;}
#site-title h1 {display: none;}
#site-title, #site-title h1{display: none;}
#logo-desc p {display: none;}
/*------------------------------------------------*/
/*-------------[Navbar]------------*/
/*------------------------------------------------*/
ul.navlinks {
border-bottom: 1px solid transparent;
box-shadow: 0 1px 3px rgba(0,0,0,0.25),inset 0 -1px 0 rgba(0,0,0,0.1);
font-weight: 700;
height: 40px;
left: 0;
position: fixed;
right: 0;
text-align: center;
top: 0;
z-index: 999;
background-image: url(http://i.imgur.com/AOkgY.png);
}
ul.linklist li {
line-height: 40px;
}
ul.linklist.navlinks li a{padding: 15px 10px 15px 10px;color: #bfbfbf;}
ul.linklist.navlinks li a:hover{background: rgba(255, 255, 255, 0.05);color: #ffffff;}
/*------------------------------------------------*/
/*-------------[Panel Foros]------------*/
/*------------------------------------------------*/
.panel {
background-color: #f5f5f5;
border: 1px solid rgba(0, 0, 0, 0.05);
border-radius: 4px;
}
.row {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(http://i.imgur.com/PtFzv.png) repeat-x left bottom;
}
.forabg {
background-color: #333333;
background-image: url(http://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-right: 1px #ddd solid;
padding: 0;
box-shadow: 0px 0px 15px #ccc;
border-radius: 4px;
}
.row1 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(http://i.imgur.com/PtFzv.png) repeat-x left bottom;}
.row2 {
border-bottom: 1px solid #FFF!important;
border-top: 1px solid #CCC!important;
position: relative;
background: rgb(255, 255, 255) url(http://i.imgur.com/PtFzv.png) repeat-x left bottom;}
/*------------------------------------------------*/
/*-------------[Foros cat Portal]------------*/
/*------------------------------------------------*/
.forumbg {
background-color: #333;
background-image: url(http://i.imgur.com/AOkgY.png);
background-position: 0 0;
border-left: 1px #ddd solid;
border-radius: 4px;
border-right: 1px #ddd solid;
box-shadow: 0 0 15px #ccc;
padding: 0;
}
form#quick_reply #textarea_content textarea#text_editor_textarea {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.post {
background: #eee;
border-bottom: 1px solid #ccc;
box-shadow: 0px 0px 8px #ddd inset;
}
.post span.corners-top {
height: 29px;
background: #222;
padding: 6px 15px;
}
.module {
border-radius: 4px;
background: #eee;
border: 1px solid #ccc;
box-shadow: 0 0 5px #ccc;
}
.module span.corners-top{height: 29px;
background: #333 url(http://i.imgur.com/AOkgY.png)repeat-x;
}
.table-title, .table-title h2 {
display: inline;
color: #FFF !important;
font-family: 'Arvo', Helvetica Neue, Helvetica, Arial, Verdana;
font-size: 1.1em;
font-weight: 700;
}
/*------------------------------------------------*/
/*-------------[search incorporado con algunos codigos importantes]------------*/
/*------------------------------------------------*/
#chatbox {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box {
background: url(http://i.imgur.com/d6Rki.png) no-repeat;
display: inline;
height: 35px;
margin-top: -130px!important;
}
.wysiwyg {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
#search-box #keywords {
width: 130px;
background: transparent;
color: #6C6C6D;margin-left: 15px;
font-family: Verdana;margin-top:5px;
font-style: normal;
font-size: 12px;}
#search-box input {
border: none !important;
background: none;}
#search-box input.search {
background: none;
margin-left: 0px;
margin-top: 0;}
#search-box input.button2 {visibility: hidden;
}
#search_menu {
background: #ffffff;
font-size: 11px !important;
position: relative;
width: 350px;
top: 60px!important;
left: 300px!important;
}
#search_menu a{color:#000!important;}
.conteneur_container_IE{position: relative;bottom: -3px;margin-top: -2px;padding: 1px;}
/*------------------------------------------------*/
/*-------------[Borrar el subrayado de los enlaces]------------*/
/*------------------------------------------------*/
a {text-decoration: none;}
a:link {text-decoration: none;}
a:hover {text-decoration: none!important;}
a.forumtitle {text-decoration: none;}
a.forumtitle:hover {text-decoration: none!important;}
a.topictitle {text-decoration: none;}
a.topictitle:hover {text-decoration: none!important;}
/*------------------------------------------------*/
/*-------------[Perfil Post]------------*/
/*------------------------------------------------*/
#message-box textarea {
background-image: url(http://i49.servimg.com/u/f49/16/89/74/34/untitl57.png);
background-repeat: no-repeat;
background-position: bottom right;
}
.postprofile {
padding: 5px;
text-align: center;
background-color: #f5f5f5;
border: 1px solid #ddd;
box-shadow: 0px 0px 0px 1px rgb(255, 255, 255),inset 0 0px 0 rgba(0,0,0,0.1);
border-radius: 4px;
padding: 5px;
left: -5px;
}
.postprofile dd, .postprofile dt {
line-height: 1.2em;
margin: auto;
padding: 10px;
background: #FFF;
border: 1px solid #DDD;
border-radius: 5px;
margin: auto;
margin-top: 4px;
}
/*------------------------------------------------*/
/*-------------[Botones]------------*/
/*------------------------------------------------*/
input.button1, input.button2, button.button2, #main-content a.cgu-buttons {
background: #f4f5f4 url(http://i66.servimg.com/u/f66/11/96/49/61/tabbg10.png);
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
padding: 2px;}
/*------------------------------------------------*/
/*-------------[agre codigos para solucionar errores & aportes importantes no borres nada]------------*/
/*------------------------------------------------*/
#plus_menu {
background: #ffffff;
}
.user_login_form input[type="text"], .user_login_form input[type="password"]{
position:relative;
top:7px;
}
.postbody .topic-title {
font-size:1.2em;}
p.path {
background: #222 url(http://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
p.path a{color:#fff!important;}
.pathname-box {
background: #222 url(http://i.imgur.com/DkHoj.png) bottom repeat-x;
border: 1px solid #000;
border-top-left-radius: 5px;
border-top-right-radius: 5px;
clear: left;
color: #DDD;
margin-left: 15px;
padding: 8px;
position: absolute;
top: 265px;
width: 915px;
box-shadow: rgba(0,0,0,0.3) 0px 1px 4px, inset #555 0px 1px 0px;
}
.pathname-box a{color:#fff!important;}
.postbody {
clear: both;
color: #7d7d7d;
float: right;
line-height: 1.48em;
padding: 7px;
width: 75%;
background: #fff;
border: 1px solid #ddd;
border-radius: 6px;
margin-top: 5px;
}
.topic-actions {
font-size: 1.1em;
height: auto;
background-color: #f5f5f5;
padding: 10px;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
margin: 0px;
}
h1.page-title {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 2em;
font-weight: 400;
background-color: #f5f5f5;
border-bottom: 1px dotted #ddd;
padding: 10px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
margin: 0px;
}
h1.page-title a{color: #333 !important;}
blockquote cite {
display: block;
font-style: normal;
font-weight: 700;
border-bottom: 1px dashed rgba(0,0,0,.2);
padding: 3px 5px;
margin-left: -15px;
font-size: 12px;
}
blockquote {
margin: 1em 1px 1em 25px;
overflow: hidden;
background-color: #fefbf3;
padding: 9px;
border: 1px solid rgba(0,0,0,.2);
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.1);
box-shadow: 0 1px 2px rgba(0,0,0,.1);
font-family: Verdana;
font-size: 12px;
line-height: 1.5em;
border-radius: 6px;
}
.content blockquote {
color: #333;
}
Abraços.
Tópicos semelhantes
» Colocar código baliza
» Personalizar o fundo da baliza código
» Colocar número da postagem
» Colocar número de visitantes no painel
» Colocar tag código nos tópicos
» Personalizar o fundo da baliza código
» Colocar número da postagem
» Colocar número de visitantes no painel
» Colocar tag código nos tópicos
Fórum dos Fóruns :: Ajuda e atendimento ao utilizador :: Questões sobre códigos :: Questões resolvidas sobre HTML e BBCode
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos