继续Drupal分享精神 群已满 站长QQ:532116351【drupal交流+drupal 建站+theme制作】
登录 注册

广告代码的位置

我看您的网站上内容页显示的广告位置分别有在标题下面,内容上面,在内容下面,评论上面。我在网站找了很多地方,都没有实现这种效果。请问贵网站是如何实现的,期盼回答。

你好,具体是在node.tpl.php里面设置

你好,具体是在node.tpl.php里面设置

  <?php if ($submitted): ?>
    <span class="submitted"><?php print $submitted; ?></span>
  <?php endif; ?>

  <div class="content clear-block">
    <?php if (!$teaser): ?>
   <div class="gg_art_l" style="float:left; margin:0px 2px 2px 0px;">
广告上
</div>
    <?php endif; ?>
    <?php print $content ?>
 
  </div>

下面的广告代码 :



    <?php if ($links): ?>
      <div class="links"><?php print $links; ?></div>
    <?php endif; ?>
      <?php if (!$teaser & $type!='forum'): ?>
<div style="float:left"><!-- 将此标记放入广告位置 hd_d_l
     中的理想位置 -->
广告一
<!-- 广告位置“hd_d_l
    ”的标记结束 --></div>
<div  style="float:right">
广告二
</div><?php endif; ?>

看见你的回复了,我多发一条评论,问的也是这个问题,不好意思

非常感谢,我会去试试的,希望如何还有问题的话哦,可以再在你请教。:-)

发表新评论

  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

更多关於格式化选项的信息

CAPTCHA
请输入正确答案
Image CAPTCHA
Enter the characters (without spaces) shown in the image.