8-31前安裝,請修正inclube/viewpro.inc.php
尋找
$birthdate = "$month$day"; //誕生月份日期
上加$birthday = explode('-', $member['bday']);
新安裝的不需理會...下面已修正
-----------------------------------------------------------------------------------------------------------------------
2.5 版:小優格格
4.0 版本:Linux0911
6.0 版本 ﹕天涯決斷
適用版本:Discuz! 6.0.0
演示﹕
http://forum.dreamfd.com/
修改檔案:viewpro.php, viewpro.htm , viewthread.php, viewthread.htm, include/functionlist.php
修改程序:簡單
1.將圖片連資料夾放入 images/common/ 入面
2. 將 functionlist.php 放入 include/ 的資料夾內
1. 修改 inclube/viewpro.inc.php
尋找
require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
下加
//========================== 自動判斷星座,生肖整合 - start
require_once DISCUZ_ROOT.'./include/functionlist.php';
//========================== 自動判斷星座,生肖整合 - end
尋找
$member['bday'] = str_replace('y', substr($year, 2, 4), $member['bday']);
下加
//========================== 自動判斷星座,生肖整合 - start
$birthday = explode('-', $member['bday']);
$birthdate = "$month$day"; //誕生月份日期
$member['horoimg'] = horoimg($birthdate);
$member['horoname'] = horoname($birthdate);
$member['yearimg'] = yearimg($birthday[0]);
$member['yearname'] = yearname($birthday[0]);
//========================== 自動判斷星座,生肖整合 - end
2. 修改 viewpro_classic.htm
尋找
<tr><th>{lang birthday}:</th><td>$member[bday]</td></tr>
改成<tr><th>{lang birthday}:</th><td>$member[bday] <img src=$member[yearimg] alt=$member[yearname] align=absmiddle></td></tr>
<tr><th>星座:</th><td><img src=$member[horoimg] align="absmiddle" title="星座:$member[horoname]"> <img src=$member[yearimg] align="absmiddle" title="生肖:$member[yearname]"></td></tr>
3.修改 viewpro.htm
尋找
<tr><th>{lang birthday}:</th><td>$member[bday]</td></tr>
改成<tr><th>{lang birthday}:</th><td>$member[bday]
<img src=$member[yearimg] alt=$member[yearname]
align=absmiddle></td></tr>
<tr><th>星座:</th><td><img
src=$member[horoimg] align="absmiddle"
title="星座:$member[horoname]"> <img src=$member[yearimg]
align="absmiddle"
title="生肖:$member[yearname]"></td></tr>
4.修改 viewthread.php
尋找
require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
下加
//========================== 自動判斷星座,生肖整合 - start
require_once DISCUZ_ROOT.'./include/functionlist.php';
//========================== 自動判斷星座,生肖整合 - end
尋找
在後面加上尋找
$post['ratings'] = karmaimg($post['rate'], $post['ratetimes']);
上加
//========================== 自動判斷星座,生肖整合 - start
if($post['bday']!== '0000-00-00') {
$birthday = explode('-', $post['bday']);
$birthdate = "$birthday[1]$birthday[2]"; //誕生月份日期
$post['horoimg'] = horoimg($birthdate,1);//使用小圖
$post['horoname'] = horoname($birthdate);
$post['yearimg'] = yearimg($birthday[0],1); //使用小圖
$post['yearname'] = yearname($birthday[0]);
$post['checkbday'] ='1';
}
//========================== 自動判斷星座,生肖整合 - end
5.修改 viewthread.htm
尋找
<!--{if $post['customstatus']}--><p class="customstatus">$post[customstatus]</p><!--{/if}-->
下加
<!--{if $post[checkbday]}--><p>
<img src="$post['horoimg']" align=absmiddle alt="$post[horoname]"> <img src="$post[yearimg]" alt="$post[yearname]" align=absmiddle></p>
<!--{/if}-->
[
本帖最後由 lsy 於 2007-8-31 08:40 編輯 ]