找回密码
 注册
【阿里云】2核2G云服务器新老同享 99元/年,续费同价,云服务器3年机/5年机限时抢购,低至 2.5折华为云精选云产品特惠糖果主机Jtti,新加坡服务器,美国服务器,香港服务器,海外云服务器
查看: 1210|回复: 13

在sablog文章里下面加GGAD怎么加啊??

[复制链接]
发表于 2007 年 4 月 3 日 20:46:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
<!--<?php
$cname = urlencode($article[cname]);
print <<<EOT
-->
<div class="post">
<div class="title">$article[title]</div>
<div class="postdate">Submitted by <a href="./?action=showuser&amp;id=$article[authorid]">$article[author]</a> on $article[dateline]. <a href="./?cid=$article[cid]&amp;cname=$cname">$article[cname]</a></div><!--
EOT;
if (!$article['allowread']) {print <<<EOT
-->
<div style="padding-bottom:20px;background-color:#fff;margin: 20px 0px;"><form action="./?action=show&id=$article[articleid]" method="post">这篇日志被加密了。请输入密码后查看。<br />密码 <input class="formfield" type="password" name="readpassword" /> <input class="formbutton" type="submit" value="提交" /></form></div>
<!--
EOT;
} else {print <<<EOT
-->
<div class="content">$article[content]</div>
<!--
EOT;
if ($article['image']) {
foreach ($article['image'] as $image) {
if($image[6]){print <<<EOT
--><div class="attach">图片附件(缩略图):<br /><a href="./attachment.php?id=$image[0]" target="_blank"><img src="$image[1]" border="0" alt="大小: $image[2]&#13;尺寸: $image[3] x $image[4]&#13;浏览: $image[5] 次&#13;点击打开新窗口浏览全图" width="$image[3]" height="$image[4]" /></a></div><!--
EOT;
} else {print <<<EOT
--><div class="attach">图片附件:<br /><a href="./attachment.php?id=$image[0]" target="_blank"><img src="$image[1]" border="0" alt="大小: $image[2]&#13;尺寸: $image[3] x $image[4]&#13;浏览: $image[5] 次&#13;点击打开新窗口浏览全图" width="$image[3]" height="$image[4]" /></a></div><!--
EOT;
}}}
if($article[file]){
foreach($article[file] as $file){
if($file){print <<<EOT
--><div class="attach"><b>附件: </b><a href="attachment.php?id=$file[0]" target="_blank">$file[1]</a> ($file[2], 下载次数file[3])</div><!--
EOT;
}}}
if (!empty($article['keywords'])) {
print <<<EOT
--><div class="tags"><b>Tags</b>: $article[tags]</div><!--
EOT;
}
print <<<EOT
-->
</div>
<div id="article-other"><strong>&laquo;</strong> <a href="./?action=show&amp;id=$id&amp;goto=previous">上一篇</a> | <a href="./?action=show&amp;id=$id&amp;goto=next">下一篇</a> <strong>&raquo;</strong></div>
<!--
EOT;
if ($related_tatol > 0 && $relids != $articleid) {print <<<EOT
-->
<div class="post">
<div class="title"><span style="float:right;padding-bottom: 2px;font-size: 12px;">只显示$options[related_shownum]条记录</span>相关文章</div>
<div class="cmcontent">
<!--
EOT;
foreach($titledb as $key => $title){print <<<EOT
--><a href="./?action=show&amp;id=$title[articleid]">$title[title]</a> (浏览: <font color="#CC0000">$title[views]</font>, 评论: <font color="#CC0000">$title[comments]</font>)<br />
<!--
EOT;
}print <<<EOT
-->
</div>
<div style="height:5px"></div>
</div>
<!--
EOT;
}print <<<EOT
-->
<a name="trackbacks"></a>
<div class="post">
<div class="title"><!--
EOT;
if ($article['trackbacks'] > 0) {print <<<EOT
--><span style="float:right;padding-bottom: 2px;font-size: 12px;"><a href="###" onclick="showhide('tbbody');" title="点击查看所有Trackbacks">$article[trackbacks]条记录</a></span>
<!--
EOT;
}print <<<EOT
-->Trackbacks</div>
<div id="tburl"><!--
EOT;
if ($article['closetrackback']) {print <<<EOT
--><strong>本文因为某种原因此时不允许引用</strong><!--
EOT;
} else {print <<<EOT
-->
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article[articleid]').innerHTML=showtburl('$options[url]',$article[articleid],'utf-8');return false;"><img src="templates/$options[templatename]/utf8.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: UTF-8" /></a></td>
    <td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article[articleid]').innerHTML=showtburl('$options[url]',$article[articleid],'gbk');return false;"><img src="templates/$options[templatename]/gbk.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: GB2312 or GBK" /></a></td>
    <td width="85" height="20"><a href="###" onclick="sax_getbyid('spanid_$article[articleid]').innerHTML=showtburl('$options[url]',$article[articleid],'big5');return false;"><img src="templates/$options[templatename]/big5.jpg" width="73" height="15" border="0" alt="点击获得Trackback地址,Encode: BIG5" /></a></td>
  </tr>
</table>
<span id="spanid_$article[articleid]"></span>
<!--
EOT;
}print <<<EOT
--></div>
<!--
EOT;
if ($article['trackbacks'] > 0) {print <<<EOT
-->
<div id="tbbody" class="divOFF">
<!--
EOT;
foreach($trackbackdb as $key => $trackback){print <<<EOT
--><div class="tbcontent">标题: <a href="$trackback[url]" target="_blank">$trackback[title]</a><br />
      来自: <a href="$trackback[url]" target="_blank">$trackback[blog_name]</a><br />
      摘要: $trackback[excerpt]</div>
<div class="tbdate">Tracked on $trackback[dateline] <font color="#000000">#<strong>$trackback[tborderid]</strong></font></div>
<!--
EOT;
}print <<<EOT
--></div>
<!--
EOT;
}print <<<EOT
-->
</div>
<div style="height:5px"></div>
<a name="comment"></a>
<!--
EOT;
if ($article['comments'] > 0) {print <<<EOT
-->
<div class="post">
<div class="title"><span style="FLOAT:right;padding-bottom: 2px;font-size: 12px;">$article[comments]条记录</span>访客评论</div>
<!--
EOT;
foreach($commentdb as $key => $comment){print <<<EOT
--><a name="cm$comment[commentid]"></a><div class="cmcontent" id="comm_$comment[commentid]">$comment[content]</div>
<div class="cmdate">ost by $comment[author] on $comment[dateline] <!--
EOT;
if ($comment['url']) {
print <<<EOT
--><a href="$comment[url]" target="_blank"><img src="templates/$options[templatename]/top_home.gif" width="13" height="12" border="0" alt="访问评论者的主页/博客" /></a> <!--
EOT;
}
print <<<EOT
--><img style="cursor: hand" onclick="addquote('comm_$comment[commentid]','$comment[quoteuser]')" src="templates/$options[templatename]/quote.gif" width="10" height="12" border="0" alt="引用此文发表评论" /> <font color="#000000">#<strong>$comment[cmtorderid]</strong></font></div>
<!--
EOT;
}print <<<EOT
-->
<div id="addnew"></div>
</div>
$multipage
<br />
<!--
EOT;
}
if (!$multipage AND $article['comments'] > 0) { //美观
print <<<EOT
-->
<div style="height:5px"></div>
<!--
EOT;
}
if (!$article['closecomment']) {
print <<<EOT
-->
<a name="addcomment"></a>
<div class="title">发表评论</div>
  <form method="post" name="form" id="form" action="post.php" onsubmit="return checkform();">
    <input type="hidden" name="articleid" value="$article[articleid]" />
    <table border="0" cellpadding="0" cellspacing="0">
<!--
EOT;
if ($loginstat) {
print <<<EOT
-->
      <tr>
        <td colspan="2" class="formbox">已经登陆为 <b>$_COOKIE[username]</b> [<a href="post.php?action=logout">注销</a>]</td>
      </tr>
<!--
EOT;
} else {print <<<EOT
-->
      <tr>
        <td width="50%" class="formbox">名字(*):<br />
          <input name="username" id="username" type="text" size="25" maxlength="20" value="$_COOKIE[comment_username]" class="formfield" /></td>
        <td width="50%" class="formbox">密码(游客不需要密码):<br />
          <input name="password" id="password" type="password" size="25" maxlength="20" value="" class="formfield" /></td>
      </tr>
      <tr>
        <td colspan="2" class="formbox">主页/博客(必须以http://开头):<br />
          <input name="url" id="url" type="text" size="54" maxlength="100" value="$_COOKIE[comment_url]" class="formfield" /></td>
      </tr>
      <tr>
        <td colspan="2" class="formbox">电子邮件:<br />
          <input name="email" id="email" type="text" size="54" maxlength="100" value="$_COOKIE[comment_email]" class="formfield" /></td>
      </tr>
<!--
EOT;
}print <<<EOT
-->
      <tr>
        <td colspan="2" class="formbox">评论内容(*):<br />
          <textarea name="content" id="content" cols="54" rows="8" class="formfield" onkeydown="ctlent(event);">$_COOKIE[cmcontent]</textarea></td>
      </tr>
<!--
EOT;
if ($options['seccode'] && $gd_version) {print <<<EOT
-->
      <tr>
        <td colspan="2" class="formbox"><table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="70">验证码(*):</td>
              <td width="50"><img src="include/seccode.php" alt="验证码" border="0" /></td>
              <td width="70"><input name="clientcode" id="clientcode" type="text" size="6" maxlength="6" value="" class="formfield" /></td>
            </tr>
          </table></td>
      </tr>
<!--
EOT;
}print <<<EOT
-->
      <tr>
        <td colspan="2" class="formbox"><input type="hidden" name="action" value="addcomment" />
          <input type="submit" id="submit" name="submit" class="formbutton" value="提交" />
          <input type="button" class="formbutton" onclick="window.location.href='?action=reg'" value="注册" />
                  <input name="remember" type="checkbox" value="1" checked="checked" />
        记住我【Alt+S 或 Ctrl+Enter 快速提交】</td>
      </tr>
    </table>
  </form>
<!--
EOT;
} else {print <<<EOT
--><p align="center"><strong>本文因为某种原因此时不允许访客进行评论</strong></p>
<!--
EOT;
}}
if (!$article['allowread']) {print <<<EOT
--></div><!--
EOT;
}
?>
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
 楼主| 发表于 2007 年 4 月 3 日 20:47:25 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
在哪里加啊??我试了几个地方都不行
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 4 月 3 日 20:52:00 | 显示全部楼层
1000金光币.
我给你加

Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 4 月 3 日 20:52:34 | 显示全部楼层
算了..你一共才不够200呢

150金光币,我给你加
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 4 月 3 日 20:56:58 | 显示全部楼层
可以啊 :lol
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 4 月 3 日 21:00:06 | 显示全部楼层
ppopcn  2007-4-3 20:59 金币 160 元  积分
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 4 月 3 日 21:10:20 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
ppopcn在吗??
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 4 月 3 日 21:19:46 | 显示全部楼层

print <<<EOT
-->
中间添加 GG ADS
<!--
EOT;

添加到
}
print <<<EOT
-->
</div>
<div id="article-other"><strong>&laquo;</strong> <a href="./?action=show&id=$id&goto=previous">上一篇</a> | <a href="./?action=show&id=$id&goto=next">下一篇</a> <strong>&raquo;</strong></div>
<!--
EOT;
的上方
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2007 年 4 月 3 日 21:21:27 | 显示全部楼层

回复 #8 zjtv 的帖子

还是轰炸机厉害
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2007 年 4 月 3 日 21:21:38 | 显示全部楼层
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 9 月 20 日 14:50 , Processed in 0.098569 second(s), 21 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表