vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Problems with templates after posting notice (https://vborg.vbsupport.ru/showthread.php?t=298615)

WoODoO 05-31-2013 05:37 PM

Problems with templates after posting notice
 
Hi guys, wanting to find fix for this bug...

Before posting html notice...

https://vborg.vbsupport.ru/external/2013/05/1.png


After posting html notice...

https://vborg.vbsupport.ru/external/2013/05/2.png

why this is happening?

Any idea :confused:

ForceHSS 05-31-2013 06:13 PM

you putting that in the header template

Zachery 05-31-2013 07:55 PM

You have bad html in your notice.

WoODoO 06-01-2013 02:25 AM

Quote:

Originally Posted by ForceHSS (Post 2425108)
you putting that in the header template

No no ... AdminCP ==> notices


My html code:

Code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
div.global{
                width: 830px;
                height: 350px;
                font-family: Arial,Helvetica,sans-serif;
                font-size: 11px;
                padding: 0px;
                overflow: hidden;
                background-image:url(../images/noticias/fundo.jpg);}
div.header_footer{
                height: 20px;
                line-height: 16px;
                padding: 5px;
                overflow: hidden;
                text-align: center;
                font-weight: bold;
                }
div.texto {
            width: 765px;
                margin: 20px;
                margin-left:30px;
                /*margin-right-value: 2px;
                margin-bottom: 2px;
                margin-left-value: 100px;*/
                height: 223px;
                padding: 2px;
                padding-top: 2px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;
                overflow: hidden;
                font-size: 14px;
                font-weight: bold;
                color:#CCC;
}
div.botao{
            width: 159px;
                margin: 2px;
                margin-left:25px;
                margin-right-value: 2px;
                margin-bottom: 2px;
                margin-left-value: 2px;
                height: 52px;
                padding: 2px;
                padding-top: 2px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;
                font-size: 11px;
                font-weight: bold;
                text-align: center;}
/*div.resumo{
                width: 288px;
                height: 96px;
            background-color: rgb(255, 255, 255);
            color: rgb(0, 0, 0);
                margin: 2px;
                margin-right-value: 2px;
                margin-bottom: 2px;
                margin-left-value: 2px;
                padding: 2px;
                padding-top: 2px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;
                overflow: hidden;
                font-weight: bold;
                text-align: center;
                font-size: 14px;}
div.quero_doar{
                padding: 2px;
                padding-top: 8px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;}
a:link {color: rgb(51, 51, 51);}
img.image_250x250 {
                width: 150px; 
                height: 150px; 
                display: block;
                  margin-left: auto;
                  margin-right: auto;}
div.map_image { margin: 2px;
        margin-top: 2px;
        margin-right-value: 2px;
        margin-bottom: 2px;
        margin-left-value: 2px;
            text-align: center;}

#mostrador { }*/



</style>

</head>

<body>

<!--Inicia Principal--><div class="global">
<!--Header--><div class="header_footer"><img src="../images/noticias/titulo.png"></div>
<!--Vencimento--><div class="texto">Apesar de nosso servidor gringo estar sendo amplamente prestigiado com a presen?a e a prefer?ncia do p?blico, temos o prazer de anunciar que voltamos a ofertar um servidor de Project Reality hosteado no Brasil, pois os jogadores brasileiros merecem jogar com a qualidade CBPR e com pings baixos.


<p>Estamos aproveitando para agradecer aos jogadores que aderiram ? campanha Doador CBPR e com seus aportes financeiros nos possibilitaram dar mais esse passo rumo ? excel?ncia.<p>

<p>Com a disponibiliza??o do servidor BR, voltamos a contar com a colabora??o daqueles que estiverem dispostos, e puderem contribuir, para que o Project Reality seja jogado num servidor nacional, no qual todo jogador brasileiro seja tratado sem distin??o e com prontid?o.
<p>Se voc? est? em condi??es e deseja contribuir, seremos gratos por sua doa??o que far? com que o peso v? sendo dividido por v?rias m?os e permitir? que o divertimento esteja ao alcance de todos.</div>
<!--Progresso--><div class="botao"><a href=".../portal/news/novo-servidor-brasileiro-cbpr/" ><img src=".../images/noticias/botao.png"></div>


<!--Fecha mostrador--></div>
<!--Inicia Resumo-->

</div>
</body>
</html>


nerbert 06-01-2013 06:30 AM

You're putting a complete page in the Notices. You should just have your css in a <style> sheet followed by the <div>s and <p>s. No <html> <head> or <body> tags

ForceHSS 06-01-2013 11:11 AM

Quote:

Originally Posted by WoODoO (Post 2425180)
No no ... AdminCP ==> notices


My html code:

Code:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
div.global{
                width: 830px;
                height: 350px;
                font-family: Arial,Helvetica,sans-serif;
                font-size: 11px;
                padding: 0px;
                overflow: hidden;
                background-image:url(../images/noticias/fundo.jpg);}
div.header_footer{
                height: 20px;
                line-height: 16px;
                padding: 5px;
                overflow: hidden;
                text-align: center;
                font-weight: bold;
                }
div.texto {
            width: 765px;
                margin: 20px;
                margin-left:30px;
                /*margin-right-value: 2px;
                margin-bottom: 2px;
                margin-left-value: 100px;*/
                height: 223px;
                padding: 2px;
                padding-top: 2px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;
                overflow: hidden;
                font-size: 14px;
                font-weight: bold;
                color:#CCC;
}
div.botao{
            width: 159px;
                margin: 2px;
                margin-left:25px;
                margin-right-value: 2px;
                margin-bottom: 2px;
                margin-left-value: 2px;
                height: 52px;
                padding: 2px;
                padding-top: 2px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;
                font-size: 11px;
                font-weight: bold;
                text-align: center;}
/*div.resumo{
                width: 288px;
                height: 96px;
            background-color: rgb(255, 255, 255);
            color: rgb(0, 0, 0);
                margin: 2px;
                margin-right-value: 2px;
                margin-bottom: 2px;
                margin-left-value: 2px;
                padding: 2px;
                padding-top: 2px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;
                overflow: hidden;
                font-weight: bold;
                text-align: center;
                font-size: 14px;}
div.quero_doar{
                padding: 2px;
                padding-top: 8px;
                padding-right-value: 2px;
                padding-bottom: 2px;
                padding-left-value: 2px;}
a:link {color: rgb(51, 51, 51);}
img.image_250x250 {
                width: 150px; 
                height: 150px; 
                display: block;
                  margin-left: auto;
                  margin-right: auto;}
div.map_image { margin: 2px;
        margin-top: 2px;
        margin-right-value: 2px;
        margin-bottom: 2px;
        margin-left-value: 2px;
            text-align: center;}

#mostrador { }*/



</style>

</head>

<body>

<!--Inicia Principal--><div class="global">
<!--Header--><div class="header_footer"><img src="../images/noticias/titulo.png"></div>
<!--Vencimento--><div class="texto">Apesar de nosso servidor gringo estar sendo amplamente prestigiado com a presen?a e a prefer?ncia do p?blico, temos o prazer de anunciar que voltamos a ofertar um servidor de Project Reality hosteado no Brasil, pois os jogadores brasileiros merecem jogar com a qualidade CBPR e com pings baixos.


<p>Estamos aproveitando para agradecer aos jogadores que aderiram ? campanha Doador CBPR e com seus aportes financeiros nos possibilitaram dar mais esse passo rumo ? excel?ncia.<p>

<p>Com a disponibiliza??o do servidor BR, voltamos a contar com a colabora??o daqueles que estiverem dispostos, e puderem contribuir, para que o Project Reality seja jogado num servidor nacional, no qual todo jogador brasileiro seja tratado sem distin??o e com prontid?o.
<p>Se voc? est? em condi??es e deseja contribuir, seremos gratos por sua doa??o que far? com que o peso v? sendo dividido por v?rias m?os e permitir? que o divertimento esteja ao alcance de todos.</div>
<!--Progresso--><div class="botao"><a href=".../portal/news/novo-servidor-brasileiro-cbpr/" ><img src=".../images/noticias/botao.png"></div>


<!--Fecha mostrador--></div>
<!--Inicia Resumo-->

</div>
</body>
</html>


No wonder you are having problems you don't put that code there


All times are GMT. The time now is 06:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00986 seconds
  • Memory Usage 1,770KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete