【首页生日会员】 -DZ plugin
#1
1.修改 index.php 文件。

查找
代码:
include template('index');

在其..上...面增加以下内容
代码:
$month_names =array("","01","02","03","04","05","06","07","08","09","10","11","12");
      $now = time() + ($timeoffset * 3600);
      $today = $month_names[gmdate("n",$now)]."-".gmdate("d",$now);
      $query = $db->query("SELECT username FROM $table_members WHERE bday LIKE'%$today'");
          if($db->num_rows($query) != 0)         {
               while($happy = mysql_fetch_array($query)) {
                   $memlink = "<a href='viewpro.php?username=$happy[username]'>$happy[username]</a>";
                      if ($happybday == "")
                            {
                         $happybday = "$memlink";        
                           }else{
                      $happybday .= "$comma$memlink";
                           }
                     $comma = ", ";
                       }
                }elseif ($happy == "") {
                  $happybday = "";
                 }

2.修改index模板

查找
代码:
<!--{else}-->
                        &nbsp; &nbsp; {lang online_only_guests}
                <!--{/if}-->
        <!--{/if}-->
        </td></tr></table></td></tr>
<!--{/if}-->

增加
代码:
<!-- {if $happybday} -->
<!-- happy birthday HACK -->
        <tr><td colspan="6" class="header">
        <table cellspacing="0" cellpadding="0" border="0" width="100%" align="center">
        <tr class="smalltxt" style="color: {HEADERTEXT}"><td><img src="{IMGDIR}/indexicon.gif" align="absmiddle"> <span class="bold">Happy Birthday to:</span>
</td></tr></table></tr>

<tr>
<td bgcolor="{ALTBG2}" colspan="6" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
        <table cellspacing="0" cellpadding="0" border="0" width="98%" align="center" class="smalltxt">
        <tr>
<td colspan="6" valign="middle">
   <img src="{IMGDIR}/happybirthday.gif" align=left width=32 height=32>&nbsp;$happybday
</td>
</tr></table></td></tr>
<!-- happybirthday HACK -->
<!-- {/if} -->
for fun...

http://mlgbd.org/
回复
#2
呵呵 回来我弄弄 几天没看服务器了
回复
#3
有一个happybirthday.gif
你到这里拿~
http://taiyuan123.mytfls.com/bbs/images/...ybirth.gif
for fun...

http://mlgbd.org/
回复
#4
晕.拉来这种超级专业知识.我们这种半专业的压根看不懂...
你迷路了.
你迷茫了.
而我.失去了你们也什么都没有得到.这个是你对.还是我错.
无家可归了.
回复
#5
DONET 重装完本本 那些保存的用户名和登陆都没了 。。。发给我吧
<marquee width="90%" behavior="alternate" scrollamount="3"><font color="purple">黑黑的天空低垂,亮亮的繁星相随,虫儿飞,虫儿飞。你在思念谁。    天上的星星流泪,地上的玫瑰枯萎,冷风吹,冷风吹,只要有你陪。</font></marquee>   <font color="pink"><marquee width="90%" behavior="alternate" scrollamount="3">其实, 生活就像洋葱, 一片一片地剥开, 总有一片会让我们流泪。   
[图片: pig%20wake%20up_8IMOps92NxIe.gif]
</marquee></font>
回复


跳转到:


正在阅读该主题的用户: 1位游客
您的访问已通过Cloudflare保护,访问自美国/loc=US。