← WordPress

wordpress AJUDA

Lida 7354 vezes

Offline

iso600 
Membro
Mensagens 230 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

keria meter a janela de pub que o bruno tem no http://www.sexo69.org/ uando abre ( eu ja tenho o codigo ) mas meter em wordpress;

meti no index, e desconfigurou o css, etc.

no heade lixou akilo tudo, e n cgs meter em mais nenhum... pode-me ajudaR?

graciaz
Offline

iso600 
Membro
Mensagens 230 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

ahhh... o template que uso é o BLIX
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Apagaste alguma coisa, ao colocar o novo código?

Podes colocar aqui o código que estás a querer meter no blog?
Offline

iso600 
Membro
Mensagens 230 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

Código: [Seleccione]
<?php get_header&#40;&#41;; ?>

<!-- content ................................. -->
<div id="content">

<?php if &#40;have_posts&#40;&#41;&#41; &#58; ?>

<?php while &#40;have_posts&#40;&#41;&#41; &#58; the_post&#40;&#41;; ?>

<?php $custom_fields get_post_custom&#40;&#41;; //custom fields ?>

<?php if &#40;isset&#40;$custom_fields["BX_post_type"&#93;&#41; && $custom_fields["BX_post_type"&#93;[0&#93; == "mini"&#41; &#123; ?>

<hr class="low" />

<div class="minientry">

<p>
<?php echo BX_remove_p&#40;$post->post_content&#41;; ?>
<?php comments_popup_link&#40;'&#40;0&#41;', '&#40;1&#41;', '&#40;%&#41;', 'commentlink', ''&#41;; ?>
<a href="<?php the_permalink&#40;&#41;; ?>" class="permalink" title="Permalink"><?php the_time&#40;'M j, \'y'&#41; ?><!--, <?php the_time&#40;'h&#58;ia'&#41;  ?>--></a>
<!--<em class="author"><?php the_author&#40;&#41; ?></em>-->
    <?php edit_post_link&#40;'Edit','<span class="editlink">','</span>'&#41;; ?>
    </p>

</div>

<hr class="low" />

<?php &#125; else &#123; ?>

<div class="entry">

<h2><a href="<?php the_permalink&#40;&#41; ?>" title="Permalink"><?php the_title&#40;&#41;; ?></a></h2>

<?php &#40;$post->post_excerpt != ""&#41;? the_excerpt&#40;&#41; &#58; the_content&#40;&#41;; ?>

<p class="info"><?php if &#40;$post->post_excerpt != ""&#41; &#123; ?><a href="<?php the_permalink&#40;&#41; ?>" class="more">Continue Reading</a><?php &#125; ?>
    <?php comments_popup_link&#40;'Add comment', '1 comment', '% comments', 'commentlink', ''&#41;; ?>
    <em class="date"><?php the_time&#40;'F jS, Y'&#41; ?><!-- at <?php the_time&#40;'h&#58;ia'&#41;  ?>--></em>
    <!--<em class="author"><?php the_author&#40;&#41;; ?></em>-->
    <?php edit_post_link&#40;'Edit','<span class="editlink">','</span>'&#41;; ?>
    </p>

</div>

<!--
<?php trackback_rdf&#40;&#41;; ?>
-->

<?php &#125; ?>

<?php endwhile; ?>

<p><!-- this is ugly -->
<span class="next"><?php previous_posts_link&#40;'Next Posts'&#41; ?></span>
<span class="previous"><?php next_posts_link&#40;'Previous Posts'&#41; ?></span>
</p>


<?php else &#58; ?>

<h2>Not Found</h2>
<p>Sorry, but you are looking for something that isn't here.</p>

<?php endif; ?>

</div> <!-- /content -->

<?php get_sidebar&#40;&#41;; ?>

<?php get_footer&#40;&#41;; ?>


codigo original

eu meti no inicio antes do <?php get_header(); ?> .. meti depois.. meti no meio, meti ao fundo.. enfim... nao sei se deva ser aqui no index ou nao, mas no header fica pior e nos outros files nao funciona sequer :(

Código: [Seleccione]
<!--webbot bot="HTMLMarkup" startspan --><SCRIPT language=javascript>

   function closeDiv() {
      document.getElementById('floatLayer1').style.left = "-1000";
      return false;
   }

   window.onerror = null;
   var topMargin = 75;
   var slideTime = 1000;
   var ns6 = (!document.all && document.getElementById);
   var ie4 = (document.all);
   var ns4 = (document.layers);

   function layerObject(id,left) {
      if (ns6) {
         this.obj = document.getElementById(id).style;
         this.obj.left = left;
         return this.obj;
         }
      else if(ie4) {
         this.obj = document.all[id].style;
         this.obj.left = left;
         return this.obj;
         }
      else if(ns4) {
         this.obj = document.layers[id];
         this.obj.left = left;
         return this.obj;
         }
      }

   function layerSetup() {
      floatLyr = new layerObject('floatLayer1', pageWidth * .2);
      window.setInterval("main()", 10)
      }

   function floatObject() {
      if (ns4 || ns6) {
         findHt = window.innerHeight;
      } else if(ie4) {
         findHt = document.body.clientHeight;
         }
      }

   function main() {
      if (ns4) {
         this.currentY = document.layers["floatLayer1"].top;
         this.scrollTop = window.pageYOffset;
         mainTrigger();
         }
      else if(ns6) {
         this.currentY = parseInt(document.getElementById('floatLayer1').style.top);
         this.scrollTop = scrollY;
         mainTrigger();
      } else if(ie4) {
         this.currentY = floatLayer1.style.pixelTop;
         this.scrollTop = document.body.scrollTop;
         mainTrigger();
         }
      }

   function mainTrigger() {
      var newTargetY = this.scrollTop + this.topMargin;
      if ( this.currentY != newTargetY ) {
         if ( newTargetY != this.targetY ) {
            this.targetY = newTargetY;
            floatStart();
         }
         animator();
         }
      }

   function floatStart() {
      var now = new Date();
      this.A = this.targetY - this.currentY;
      this.B = Math.PI / ( 1 * this.slideTime );
      this.C = now.getTime();
      if (Math.abs(this.A) > this.findHt) {
         this.D = this.A > 0 ? this.targetY - this.findHt : this.targetY + this.findHt;
         this.A = this.A > 0 ? this.findHt : -this.findHt;
         }
      else {
         this.D = this.currentY;
         }
      }

   function animator() {
      var now = new Date();
      var newY = this.A * Math.sin( this.B * ( now.getTime() - this.C ) ) + this.D;
      newY = Math.round(newY);
      if (( this.A > 0 && newY > this.currentY ) || ( this.A < 0 && newY < this.currentY )) {
      if ( ie4 )document.all.floatLayer1.style.pixelTop = newY;
      if ( ns4 )document.layers["floatLayer1"].top = newY;
      if ( ns6 )document.getElementById('floatLayer1').style.top = newY + "px";
         }
      }

   function start() {
      if(ns6||ns4) {
         pageWidth = innerWidth;
         pageHeight = innerHeight;
         layerSetup();
         floatObject();
         }
      else if(ie4) {
         pageWidth = document.body.clientWidth;
         pageHeight = document.body.clientHeight;
         layerSetup();
         floatObject();
         }
      }
</SCRIPT>
<DIV id=floatLayer1
style="LEFT: -1000px; WIDTH: 200px; POSITION: absolute; TOP: 3px; 200: 128px; BACKGROUND-COLOR: #FFFFFF">
<table border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF">
  <tr>
    <td border="1" align="right" bgcolor="#F3CBDD" colspan="4">
      <font size="1" face="Verdana" color="#000000">Fechar</font><A onclick="return closeDiv()"
      href="link_do_site"><FONT size="1" face="Verdana" color="#000000">[X]</FONT></A>

    </td>
  </tr>
  <tr>
    <td border="1" align="center" bgcolor="#F3CBDD" colspan="4">
    <a href="link_do_site" target="_blank"><img
src="http://urlimagem"
alt="Título do site" border="0"></a>
    </td>
  </tr>
</table>
     </DIV>

<SCRIPT>start()</SCRIPT><!--webbot bot="HTMLMarkup" endspan --><!-- /subcontent -->
Offline

iso600 
Membro
Mensagens 230 Gostos 0
Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 100 Posts

<script>

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function alt_obj(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
   var ie=document.all
   var dom=document.getElementById
   var ns4=document.layers

   var bouncelimit=32 //(must be divisible by 8)
   var direction="up"

   function initbox(){
    if (!dom&&!ie&&!ns4)
    return
    crossobj=(dom)?document.getElementById("ultimas").style : ie? document.all.ultimas : document.ultimas
    scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
    crossobj.top=scroll_top-250
    crossobj.visibility=(dom||ie)? "visible" : "show"
    dropstart=setInterval("ultimas()",50)
   }
   function ultimas(){
    scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
    if (parseInt(crossobj.top)<210+scroll_top)
    crossobj.top=parseInt(crossobj.top)+40
    else{
     clearInterval(dropstart)
     bouncestart=setInterval("bouncein()",50)
    }
   }
   function bouncein(){
    crossobj.top=parseInt(crossobj.top)-bouncelimit
    if (bouncelimit<0)
    bouncelimit+=8
    bouncelimit=bouncelimit*-1
    if (bouncelimit==0){
     clearInterval(bouncestart)
    }
   }
   function dismissbox(){
    if (window.bouncestart) clearInterval(bouncestart)
    crossobj.visibility="hidden"
   }
   function get_cookie(name) {
    var search = name + "="
    var returnvalue = ""
    if (document.cookie.length > 0) {
     offset = document.cookie.indexOf(search)
     if (offset != -1) {
      offset += search.length
      end = document.cookie.indexOf(";", offset)
      if (end == -1)
      end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
     }
    }
    return returnvalue;
   }
   function dropornot(){
    if (get_cookie("droppedin")==""){
     window.onload=initbox
     document.cookie="droppedin=yes"
    }
   }
   dropornot()
   function redo(){
    bouncelimit=32
    direction="up"
    initbox()
   }
   window.onload=initbox
</script>


<script src="ultimas.js" type="text/javascript"></script>
<div id="ultimas" style="z-index:50; padding:20px; position:absolute; width:200px; height:200px; left: 223px; top: 263px; background-image: url('images/stcinza.gif'); border: 1px none #000000; visibility: hidden">
<a href="http://www.hoteldaweb.com.br/revenda/" target="_blank"><img src="http://www.maistrafego.com/images/banners/hotel/rev_200.gif" alt="Revenda de hospedagem no melhor servidor do Brasil? Agora sim! O Hotel da Web abre suas portas a revendedores!" width="200" height="200" border="0" id="bannerhw" /></a>
<div align="center"><b>&nbsp;<br />
    <input type="button" value="FECHAR" class="button" onclick="MM_showHideLayers('ultimas','','hide')" />
</b></div>
</div>
Offline

fpware 
Fundador
Mensagens 15318 Gostos 7
Troféus totais: 38
Trófeus: (Ver todos)
Linux User Mobile User Level 6 Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5

Tens de colocar isso no Header Template. Parece-me que estás a fazê-lo no Main Template