2008-7-1 15:33
Chienlin
BBS2ME感謝卡V3.1.1a for 6.1.0F (UTF8)(感謝作者,心心,THANK U功能)
深深感謝原創:阿狗狗
[url]http://www.alan888.com/Discuz/thread-78970-1-1.html[/url]
敬請尊重阿狗狗的著作權
請勿刪除其版權
先聲明 本插件仍有不足之處 敬請各路高手協助
=============
BIG5請見九樓 TAIWAN08分享
=============
敬請不想用者 請勿批評...
公布的原因僅為 希望大家集思廣益 共求更美好的插件
[code]
CREATE TABLE `chemistry_thanklog` (
`id` mediumint( 20 ) unsigned NOT NULL AUTO_INCREMENT ,
`fromuser` varchar( 15 ) NOT NULL default '',
`fromuseruid` mediumint( 8 ) NOT NULL ,
`touser` varchar( 15 ) NOT NULL default '',
`asfe` varchar( 8 ) NOT NULL default '',
`score` int( 10 ) NOT NULL default '0',
`tid` varchar( 15 ) NOT NULL default '',
`aswhat` varchar( 100 ) NOT NULL default '',
`logdate` date NOT NULL ,
`touseruid` MEDIUMINT( 8 ) NOT NULL,
PRIMARY KEY ( `id` )
) TYPE=MyISAM;
ALTER TABLE `chemistry_threads` ADD `thank` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',ADD `thankuser` mediumtext NOT NULL DEFAULT '';
ALTER TABLE `chemistry_posts` ADD `thank` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `chemistry_members` ADD `thankannex` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0',ADD `thankgive` INT( 10 ) UNSIGNED NOT NULL DEFAULT '0';
ALTER TABLE `chemistry_usergroups` ADD `allowthank` TINYINT( 1 ) NOT NULL DEFAULT '1';
ALTER TABLE `chemistry_forums` ADD `allowthank` TINYINT( 1 ) NOT NULL DEFAULT '1';
[/code]
message.lang.php
搜尋
[code]
'post_reply_succeed' => '非常感謝,您的回覆已經發佈,現在將轉入主題頁。<br /><br /><a href=\forumdisplay.php?fid=$fid\>[ 需要轉入主題列表請點擊這裡 ]</a>',
[/code]
下面加上
[code]
'post_hide_reply_hidden_sorry' => '抱歉!回覆不可使用隱藏代碼,請返回修改。',
[/code]
===================================
templates.lang.php
搜尋
[code]
'post_hide_reply' => '以下內容需要回覆才能看到',
'post_hide_reply_hidden' => '本帖隱藏的內容需要回覆才可以瀏覽',
[/code]
替代
[code]
'post_hide_reply' =>"<table align='center' width='95%' cellspacing='0' cellpadding='0' border='0' style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'><tr><td><font color='#ffffff' style=background:#000000>[隱藏限制通過 感謝你對作者的支持]</font></td></tr></table> <table bgcolor=#000000 align='center' width='95%' cellspacing='1' cellpadding='5' border='0' style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word'><tr bgcolor=".ALTBG2."><td bgcolor=".ALTBG1.">\\1</td></tr></table>",
'post_hide_reply_hidden' => "<a href='plugin.php?identifier=thank&module=thank&action=thank&tid=$tid&page=$page'><img src=\"".IMGDIR."/thankubig.gif\" border='0' align='absmiddle' alt='給這篇貼子作者送感謝卡!使用感謝卡 免回覆隱藏帖(贊助會員以上除外)'></a><br>",
'post_user_hide_reply' => '給這篇貼子作者送感謝卡!使用感謝卡 免回覆隱藏帖',
'post_nomoney_hide_reply' => '以及免付費直接查看文章',
'post_money_hide' => '查看 [感謝] 名單',
'post_money_hide_no' => '暫無感謝者!!',
'post_money_hide_have' => '手中擁有',
'post_money_hide_got' => '魅力',
'post_money_hide_give' => '熱心',
'post_money_hide_got1' => '得到',
'post_money_hide_give1' => '送出',
'post_money_hide_point' => '點',
'post_money_card' => '感謝卡張數',
'post_money_cards' => '感謝卡',
[/code]
搜尋
[code]
'order_lastpost' => '回覆時間',
[/code]
下面加上
[code]
'order_thank' => '感謝數量',
'order_thank_DESC' => '依感謝卡數降序排列',
'order_thank_ASC' => '依感謝卡數升序排列',
[/code]
===================================
admincp.lang.php
搜尋
[code]
'usergroups_edit_thread' => '帖子相關',
[/code]
下面加上
[code]
'usergroups_edit_thank' => '是否允許使用感謝卡功能',
'usergroups_edit_thank_board' => '是否允許使用感謝卡功能',
[/code]
===================================
discuzcode.func.php
///如果你使用的是非強制使用感謝卡 則////
搜尋
[code]
$query = $db->query("SELECT pid FROM {$tablepre}posts WHERE tid='$tid' AND ".($discuz_uid ? "authorid='$discuz_uid'" : "authorid=0 AND useip='$GLOBALS[onlineip]'")." LIMIT 1");
[/code]
替代
[code]
$query2 = $db->query(SELECT fromuser,fromuseruid FROM {$tablepre}thanklog WHERE tid='$tid' and fromuseruid='$discuz_uid');
[/code]
///如果你使用的是強制使用感謝卡 則////
搜尋
[code]
$query = $db->query("SELECT pid FROM {$tablepre}posts WHERE tid='$tid' AND ".($discuz_uid ? "authorid='$discuz_uid'" : "authorid=0 AND useip='$GLOBALS[onlineip]'")." LIMIT 1");
[/code]
替代
[code]
$query = $db->query("SELECT t.*,tt.fromuser, tt.fromuseruid FROM {$tablepre}threads t LEFT JOIN {$tablepre}thanklog tt ON t.tid=tt.tid WHERE t.tid='$tid' AND (t.authorid='$discuz_uid' OR tt.fromuseruid='$discuz_uid') LIMIT 1");
[/code]
////////////////////
===============================================
---如果限制只能用感謝卡解開隱藏帖---
搜尋
[code]
$query = $db->query(SELECT pid FROM {$tablepre}posts WHERE tid='$tid' AND .($discuz_uid ? authorid='$discuz_uid' : authorid=0 AND useip='$GLOBALS[onlineip]'). LIMIT 1);
[/code]
替代
[code]
$query = $db->query(SELECT * FROM {$tablepre}threads WHERE tid='$tid' AND .($discuz_uid ? authorid='$discuz_uid' : authorid=0 AND useip='$GLOBALS[onlineip]'). LIMIT 1);
[/code]
//////////
newreply.inc.php
搜尋
[code]
if($subject == '' && $message == '') {
[/code]
替代
[code]
if(preg_match(/\[hide\].+?\[\/hide\]/is, preg_replace(/(\[code\].*\[\/code\])/is, '', $message))) {
showmessage('post_hide_reply_hidden_sorry');
}
[/code]
======================================================================
forumdisplay.php
搜尋
[code]
$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
[/code]
下面加上
[code]
@require DISCUZ_ROOT.'./forumdata/cache/plugin_thank.php';
$th=$_DPLUGIN['thank']['vars'];
$thfull=$thread['thank'];
if(strlen($thread['thankuser'])>150){
$thread['thankuser']=substr($thread['thankuser'], 0, 150)."....";
}
if($thfull<$th['full'] || $th['full']=='0'){
$thread['thank']=$thread['thank']>0?$thread['thank']="<a href=plugin.php?identifier=thank&module=thank&tid=$thread[tid]><img src='images/common/thanks.gif' title='$thread[thankuser]' align='absmiddle' border='0'></a><font color=red><b> x </b>{$thread['thank']}</font>":'';
}else{
$thread['thank']=$thread['thank']>0?$thread['thank']="<a href=plugin.php?identifier=thank&module=thank&tid=$thread[tid]><img src='images/common/thanks.gif' title='$thread[thankuser]' align='absmiddle' border='0'></a><font color=red><b> x </b></font><font color=blue>full</font>":'';
}[/code]
搜尋
[code]
'dateline', 'replies', 'views'
[/code]
替代
[code]
'thank', 'dateline', 'replies', 'views'
[/code]
===================================
forumdisplay.htm
搜尋
[code]
<em>$thread[dateline]</em>
[/code]
替代
[code]
<em>$thread[dateline]</em><!--{if $thread['thank']}--><em><img src='./images/common/loves.gif'>$thread['thank']</em><!--{/if}-->
[/code]
搜尋
[code]
option value="lastpost" $check[lastpost]>{lang order_lastpost}</option>
[/code]
下面加上
[code]
<option value="thank" $check[thank]>{lang order_thank}</option>
[/code]
搜尋-----要留意最後還有一個</td>唷....
[code]
<td class="author">{lang author}<A href="forumdisplay.php?fid=$fid&filter=0&orderby=dateline&ascdesc=DESC"><font color=red>▼</font></A>
[/code]
後面插入
[code]
/<img src='./images/common/loves.gif'><a href='forumdisplay.php?fid=$fid&filter=$filter&orderby=thank&ascdesc=DESC'><font color=red>▼</font></A>
[/code]
===================================
viewthread.htm
搜尋--共兩處(可只改上處)
[code]
<!--{if $allowpostreply || !$discuz_uid}--><span class="replybtn"><a href="post.php?action=reply&fid=$fid&tid=$tid&extra=$extra"><img src="{IMGDIR}/reply.gif" border="0" alt="" /></a></span><!--{/if}-->
上面加上
[code]
<!--{if $discuz_user && $allowpostreply}--><span class="replybtn"><a href="plugin.php?identifier=thank&module=thank&action=thank&tid=$tid&page=$page"><img src="{IMGDIR}/Thank.gif" border="0" alt="{lang post_user_hide_reply}<!--{if $thanknopay==true}-->{lang post_nomoney_hide_reply}<!--{/if}-->"></a></span><!--{/if}-->
[/code]
搜尋
[code]
<!--{if $post['subject']}-->
[/code]
上面加上
[code]
<!--{if $thread['thank']}-->
$thread['thank']<a href="###" onclick="thanku_collapse('thanku');">{lang post_money_hide}<img id="thanku_img" src="{IMGDIR}/thanks.gif" border="0"></a>
<!--{/if}-->
[/code]
====若帖子中需要加上小按鈕====
搜尋
[code]
<div id="postmessage_$post[pid]" class="t_msgfont">$post[message]</div>
[/code]
後面加上
[code]
<!--{if $discuz_user && $post['authorid'] && $post[number]== 1 && $allowpostreply}--><br><a href="plugin.php?identifier=thank&module=thank&action=thank&tid=$tid&page=$page"><img src="{IMGDIR}/thanks.gif" border="0" align="absmiddle" alt="{lang post_user_hide_reply}<!--{if $thanknopay==true}-->{lang post_nomoney_hide_reply}<!--{/if}-->"></a><!--{/if}-->
[/code]
==============================
搜尋
[code]
</div>
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread2'][$post['count']])}--><div class="ad_textlink2" id="ad_thread2_$post[count]">$advlist[thread2][$post[count]]</div><!--{else}--><div id="ad_thread2_$post[count]"></div><!--{/if}-->
<div class="postmessage defaultpost">
<!--{if !empty($post[ratings])}-->
<span class="postratings"><a href="misc.php?action=viewratings&tid=$tid&pid=$post[pid]" title="{lang rate} $post[rate]">$post[ratings]</a></span>
<!--{/if}-->
[/code]
上面加上
[code]
<fieldset><legend><img src='images/common/loves.gif' title='{lang post_user_hide_reply}' align=absmiddle border=0>{lang post_money_hide}</legend>
<!--{if $thread['thankuser']==''}-->{lang post_money_hide_no}<!--{else}-->$thread['thankuser']<!--{/if}--></fieldset>
[/code]
===
訊息 暫時跳過 未改
====
===================================
viewthread.php
搜尋
[code]
$db->query("UPDATE {$tablepre}threads SET moderated='0' WHERE tid='$tid'", 'UNBUFFERED');
}
return $lastmod;
}
[/code]
替代
[code]
$thread['thank']=$thread['thank']>0?$thread['thank']="<img src='images/common/thanks.gif' title='感謝卡' align=absmiddle border=0><font color=red><b> x$thread[thank]</font>":'';
if(strpos($_COOKIE['discuz_collapse'], 'thanku ') === FALSE) {
$thanku['collapseimg'] = 'collapsed_yes.gif';
$collapse['thanku'] = 'display: none';
} else {
$thanku['collapseimg'] = 'collapsed_no.gif';
$collapse['thanku'] = '';
}
[/code]
搜尋
[code]
m.showemail,
[/code]
替代
[code]
m.showemail, m.thankannex,m.thankgive,
[/code]
搜尋
[code]
$postlist[$post['pid']] = viewthread_procpost($post);
[/code]
上面加上
[code]
$ext="extcredits".$th['thext'];
[/code]
搜尋
[code]
require_once DISCUZ_ROOT.'./include/discuzcode.func.php';
[/code]
下面加上
[code]
@require DISCUZ_ROOT.'./forumdata/cache/plugin_thank.php';
$th=$_DPLUGIN['thank']['vars'];
[/code]
搜尋
[code]
showmessage('thread_nopermission', NULL, 'NOPERM');
[/code]
下面加
[code]
$thanknopay=$th['thanknopay'];
if($thanknopay==true){
$query2 = $db->query("SELECT fromuser,fromuseruid FROM {$tablepre}thanklog WHERE tid='$tid' and fromuseruid='$discuz_uid'");
}
[/code]
搜尋
[code]
if($thread['readperm'] && $thread['readperm'] > $readaccess && !$forum['ismoderator'] && $thread['authorid'] != $discuz_uid) {
[/code]
替代
[code]
if($thread['readperm'] && $thread['readperm'] > $readaccess && !$forum['ismoderator'] && $thread['authorid'] != $discuz_uid && !$db->result($query2, 0))
[/code]
===================================
\include\javascript\common.js
搜尋
[code]
function setcookie(cookieName, cookieValue, seconds, path, domain, secure) {
var expires = new Date();
expires.setTime(expires.getTime() + seconds);
document.cookie = escape(cookieName) + '=' + escape(cookieValue)
+ (expires ? '; expires=' + expires.toGMTString() : '')
+ (path ? '; path=' + path : '/')
+ (domain ? '; domain=' + domain : '')
+ (secure ? '; secure' : '');
}
[/code]
下面加上
[code]
function thanku_collapse(objname) {
obj = findobj(objname);
img = findobj(objname+"_img");
collapsed = getcookie("discuz_collapse");
cookie_start = collapsed ? collapsed.indexOf(objname) : -1;
cookie_end = cookie_start + objname.length + 1;
if(obj.style.display == "none") {
obj.style.display = "";
img_re = new RegExp("_yes\\.gif$");
img.src = img.src.replace(img_re, '_no.gif');
if(cookie_start == -1) collapsed = collapsed + objname + " ";
} else {
obj.style.display = "none";
img_re = new RegExp("_no\\.gif$");
img.src = img.src.replace(img_re, '_yes.gif');
if(cookie_start != -1) collapsed = collapsed.substring(0, cookie_start) + collapsed.substring(cookie_end, collapsed.length);
}
expires = new Date();
expires.setTime(expires.getTime() + (collapsed ? 0 : -(86400 * 30 * 1000)));
document.cookie = "discuz_collapse=" + escape(collapsed) + "; expires=" + expires.toGMTString() + "; path=/";
}
[/code]
===================================
viewpro_classic.htm
搜尋
[code]
<!--{loop $extcredits $id $credit}-->
<tr><th>$credit[title]:</th><td>{$member['extcredits'.$id]} $credit[unit]</td></tr>
[/code]
替代
[code]
<!--{loop $extcredits $id $credit}-->
<tr><th>$credit[title]:</th><td>{$member['extcredits'.$id]} $credit[unit]<!--{if $id==$th['thext']}--> <img src='images/common/thanks.gif' title='{lang post_money_hide_have}{lang post_money_card}'><!--{/if}--></td></tr>
<!--{/loop}-->
<tr><td width="45%" class="bold">{lang post_money_hide_got}:</td><td width="55%">$member[thankannex]{lang post_money_hide_point}  <img src='images/common/hot.gif' border='0' title='{lang post_money_hide_got1}{lang post_money_card}'></td></tr>
<tr><td width="45%" class="bold">{lang post_money_hide_give}:</td><td width="55%">$member[thankgive]{lang post_money_hide_point}  <img src='images/common/ardency.gif' border='0' title='{lang post_money_hide_give1}{lang post_money_card}'></td></tr>
[/code]
===================================
space.php
搜尋
[code]
@$percent = round($member['posts'] * 100 / $db->result_first("SELECT COUNT(*) FROM {$tablepre}posts"), 2);
[/code]
下面加上
[code]
@require DISCUZ_ROOT.'./forumdata/cache/plugin_thank.php';
$th=$_DPLUGIN['thank']['vars'];
$ext="extcredits".$th['thext'];
[/code]
===================================
admin/groups.inc.php
搜尋
[code]
showsetting('usergroups_edit_direct_post', array('allowdirectpostnew', array(
[/code]
上面加上
[code]
showsetting('usergroups_edit_thank', 'allowsthank', $group['allowthank'], 'radio');
[/code]
搜尋
[code]
allowanonymous='$allowanonymousnew'
[/code]
前面加上
[code]
allowthank='$allowsthank',
[/code]
========================
forums.inc.php
搜尋
[code]
allowsmilies='$allowsmiliesnew'
[/code]
後面插上
[code]
,allowthank=$allowthanknew
[/code]
搜尋
[code]
showsetting('forums_edit_bbcode', 'allowbbcodenew', $forum['allowbbcode'], 'radio');
[/code]
上面加上
[code]
showsetting('usergroups_edit_thank_board', 'allowthanknew', $forum['allowthank'], 'radio');
[/code]
========================
viewthread_pay.htm
搜尋
[code]
<a href="misc.php?action=viewpayments&tid=$tid" target="_blank">({lang pay_view})</a></td>
[/code]
前面插上
[code]
<a href="plugin.php?identifier=thank&module=thank&action=thank&tid=$tid&pay=nopay"><img src="{IMGDIR}/thanks.gif" border="0" align="absmiddle" alt="{lang post_user_hide_reply}"></a>
[/code]
========================
search_threads.htm
搜尋
[code]
<em>$thread[dateline]</em>
[/code]
替代
[code]
<em>$thread[dateline]</em><!--{if $thread['thank']}--><img src='images/common/thanks.gif'><font color=red>×</font>$thread['thank']<!--{/if}-->
[/code]
========================
search.htm
搜尋
[code]
<option value="replies">{lang order_replies}</option>
[/code]
下面加上
[code]
<option value="thank">{lang post_money_cards}</option>
[/code]
========================
search.php
搜尋
[code]
array('dateline', 'replies', 'views'))
[/code]
替代
[code]
array('dateline', 'replies', 'thank','views'))
[/code]
=======================
本人安裝成功 僅供各位參考
[[i] 本帖最後由 Chienlin 於 2008-7-3 14:59 編輯 [/i]]
2008-7-1 15:52
Chienlin
解決文章中看到誰給感謝的問題
viewthread.htm
搜尋
[code]
<!--{if $post['subject']}-->
[/code]
上面加上(原本的)
[code]
<!--{if $thread['thank']}-->
$thread['thank']<a href="###" onclick="thanku_collapse('thanku');">{lang post_money_hide}<img id="thanku_img" src="{IMGDIR}/thanks.gif" border="0"></a>
<!--{/if}-->
[/code]
上面改為(更新為)
[code]
<!--{if $thread['thank']}-->
<a href=plugin.php?identifier=thank&module=thank&tid=$thread[tid]>{lang post_money_hide}<img id="thanku_img" src="images/common/thanks.gif" border="0"></a>× $thread['thank']
<!--{/if}-->
[/code]
即可在文章中順利點選誰給予感謝.....
========修正觀看兌換錯誤===========
修正common.inc.php 第525行
[code]
$page = !ispage($page) ? 1 : $page;
[/code]
替代為
[code]
$page = !isset($page) ? 1 : $page;
[/code]
[[i] 本帖最後由 Chienlin 於 2008-7-1 16:17 編輯 [/i]]
2008-7-1 17:38
leehk2517
得utf8..無big5...無得裝tim!
2008-7-2 03:23
chimy04
嗚~~~想要~~~BIG5的~~~
:em21:
2008-7-2 08:41
Chienlin
因個人經驗 BIG5 易遇到字碼問題
所以連同插件 要由 GBK or UTF8 轉 BIG5易出現狀況
所以才採用 UTF8
不過呢.....原作者是有釋放BIG5版的唷...
抓下來稍微小修改一下 也是可以正常使用的啦^^y
ps:我就是從BIG5 改UTF8來使用的(只是內容有稍微修改了一下)
viewpro.php 在6.1版 變為 space.php ...
所以thank.inc.php 裡面共有六處需要修正
2008-7-2 15:20
wboys
有沒搞錯照搬.:lol:
DZ 6.1 似乎需要更改下...
2008-7-3 09:38
fackabc75321
沒有6.0能用的嗎??
2008-7-3 09:55
Chienlin
回覆 #6 wboys 的帖子
您或許沒去對照原文 4.1版...
我是已經實際掛在自己 6.1在Run...
一切正常....
並非照本全數更改
是按6.1下去修正....
您亦可自行嘗試安裝測試
2008-7-3 10:49
taiwan08
我想問一下,這邊要怎麼改?
viewthread.php在4.1、5.0、5.5的部份,是底下那樣沒錯
[quote]$db->query("UPDATE {$tablepre}threads SET moderated='0' WHERE tid='$tid'", 'UNBUFFERED');
}
}[/quote]
但是在6.0、6.1、6.1F卻是長成這樣
[quote] $db->query("UPDATE {$tablepre}threads SET moderated='0' WHERE tid='$tid'", 'UNBUFFERED');
}
[color=Red]return $lastmod;[/color]
}[/quote]
多了紅字的部份,我比對過舊文了,6.X的部份這邊沒辦法改,不知道是哪邊有錯嗎:em36:
===
以下提供BIG5編碼,含BIG5導入碼(僅做編碼轉換,尚未知有沒有BUG)
[[i] 本帖最後由 taiwan08 於 2008-7-3 10:59 編輯 [/i]]
2008-7-3 13:17
raynold
不錯不錯...支持下d會員都好
2008-7-3 13:24
johnny40409
安裝中
請問6.1有哪裡要改的嗎?
[[i] 本帖最後由 johnny40409 於 2008-7-3 13:28 編輯 [/i]]
2008-7-3 13:34
Chienlin
回覆 #9 taiwan08 的帖子
唉呀呀 抱歉抱歉
我知道這兒有不一樣 我有特別注意到這個問題
但是張貼出來的時後 沒改到這兒^^"
感謝您的提醒呢
這兒要附加成以下這樣
[code]
$db->query("UPDATE {$tablepre}threads SET moderated='0' WHERE tid='$tid'", 'UNBUFFERED');
}
return $lastmod;
}
$thread['thank']=$thread['thank']>0?$thread['thank']="<img src='images/common/thanks.gif' title='感謝卡' align=absmiddle border=0><font color=red><b> x$thread[thank]</font>":'';
if(strpos($_COOKIE['discuz_collapse'], 'thanku ') === FALSE) {
$thanku['collapseimg'] = 'collapsed_yes.gif';
$collapse['thanku'] = 'display: none';
} else {
$thanku['collapseimg'] = 'collapsed_no.gif';
$collapse['thanku'] = '';
}
[/code]
=========
ps: BIG5 要考慮 許功蓋成 等字的問題唷^^"
[[i] 本帖最後由 Chienlin 於 2008-7-3 13:36 編輯 [/i]]
2008-7-3 14:18
samspson
太多野改了XD .....
純支持一下算了
2008-7-3 14:51
taiwan08
回覆 #12 Chienlin 的帖子
許功蓋大致上測試沒發現問題...
2008-7-3 14:58
Chienlin
回覆 #14 taiwan08 的帖子
恩恩恩恩
那Big5 就可以請大家用妳的啦~~那我在文中標註囉^^
2008-7-3 17:47
joe5407
請問一下6.0可以用嗎?
2008-7-4 01:39
candy4331
6.0能直接套用嗎
2008-7-4 10:22
taiwan08
6.0也可用...
小心點就好:D
2008-7-4 15:05
JOJO117009
搜尋-----要留意最後還有一個</td>唷....
[Copy to clipboard] [ - ]CODE:
<td class="author">{lang author}<A href="forumdisplay.php?fid=$fid&filter=0&orderby=dateline&ascdesc=DESC"><font color=red>▼</font></A>
後面插入
[Copy to clipboard] [ - ]CODE:
/<img src='./images/common/loves.gif'><a href='forumdisplay.php?fid=$fid&filter=$filter&orderby=thank&ascdesc=DESC'><font color=red>▼</font></A>
怎麼找不到這一段阿
2008-7-4 15:07
Chienlin
回覆 #19 JOJO117009 的帖子
這一段 我忘了說明了..
因為我有加上會員可自由改變文章排序方式
原本應該是
[code]
<td class="author">{lang author}</td>
[/code]
2008-7-4 23:26
044003
thanks 模板 好靚
對於D55黎講
2008-7-6 08:27
fackabc75321
[quote]原帖由 [i]taiwan08[/i] 於 2008-7-4 10:22 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1233572&ptid=148361][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
6.0也可用...
小心點就好:D [/quote]
瞎咪小心點@@"
希望6.0可以用^^
2008-7-8 00:04
yung60
不知道6.0有沒有這種插件....似乎滿好用的說
2008-7-8 09:43
Chienlin
回覆 #23 yung60 的帖子
其實各版本應該是都ok
這個最早作者是發展在4.x版 (好像是吧 還是2.x)
我只是套用過來6.1....
我想6.0只要找到相關的修改地方 一樣是可以用的^^y
只是某些參數要比對一下 保留原始的 比對修改一下
就可以囉
2008-7-8 20:52
chanjim
太棒了@@終於有好人放出來了,先下載來試試,呵呵
2008-7-8 21:47
chanjim
做到以下步驟就失敗了, 入版塊變成空白, 有6.0 big5的人能成功嗎@@?
forumdisplay.php
搜尋
[Copy to clipboard] [ - ]CODE:
$thread['lastpost'] = gmdate("$dateformat $timeformat", $thread['lastpost'] + $timeoffset * 3600);
下面加上
[Copy to clipboard] [ - ]CODE:
@require DISCUZ_ROOT.'./forumdata/cache/plugin_thank.php';
$th=$_DPLUGIN['thank']['vars'];
$thfull=$thread['thank'];
if(strlen($thread['thankuser'])>150){
$thread['thankuser']=substr($thread['thankuser'], 0, 150)."....";
}
if($thfull<$th['full'] || $th['full']=='0'){
$thread['thank']=$thread['thank']>0?$thread['thank']="<a href=plugin.php?identifier=thank&module=thank&tid=$thread[tid]><img src='images/common/thanks.gif' title='$thread[thankuser]' align='absmiddle' border='0'></a><font color=red><b> x </b>{$thread['thank']}</font>":'';
}else{
$thread['thank']=$thread['thank']>0?$thread['thank']="<a href=plugin.php?identifier=thank&module=thank&tid=$thread[tid]><img src='images/common/thanks.gif' title='$thread[thankuser]' align='absmiddle' border='0'></a><font color=red><b> x </b></font><font color=blue>full</font>":'';
}
[[i] 本帖最後由 chanjim 於 2008-7-8 22:12 編輯 [/i]]
2008-7-8 23:02
kilen
強烈要求出6.1.0
big5版...
有無邊位大大可以轉出黎@@""
2008-7-9 11:04
arstin
感覺好像要成功安裝有點不容易耶
樓主能否整體整理一下呢
真的非常感謝樓主的用心與分享
如果這裡可以給愛心我一定給你
2008-7-9 17:26
Chienlin
回覆 #26 chanjim 的帖子
您是Big5....
所以plugin_thank.php格式必須轉為ASCII的Big5格式
不然我的檔案是UTF8的....就會顯示空白囉^^"
2008-7-9 17:27
Chienlin
回覆 #28 arstin 的帖子
由於我自己是用UTF8來插入....
所以BIG5會發生什麼問題 我無法全知...
我已盡我所能回答各位 並整理於首篇^^"
2008-7-11 09:36
greeneye
唉...沒辦法,UFT8裝了也失敗,
forumdisplay.htm裡面完全找不到下面這行
<td class="author">{lang author}<A href="forumdisplay.php?fid=$fid&filter=0&orderby=dateline&ascdesc=DESC"><font color=red>▼</font></A>
6.1的原安裝程式裡也沒有
2008-7-11 11:41
mychu
[quote]原帖由 [i]greeneye[/i] 於 2008-7-11 09:36 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1236864&ptid=148361][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
唉...沒辦法,UFT8裝了也失敗,
forumdisplay.htm裡面完全找不到下面這行
<td class="author">{lang author}<A href="forumdisplay.php?fid=$fid&filter=0&orderby=dateline&ascdesc=DESC"><font color=red>▼ ... [/quote]
在20樓
首頁中插入資料插在 {lang author} 後面即可。
2008-7-12 00:42
greeneye
[quote]原帖由 [i]mychu[/i] 於 2008-7-11 11:41 發表 [url=http://www.alan888.com/Discuz/redirect.php?goto=findpost&pid=1236890&ptid=148361][img=13,13]http://www.alan888.com/Discuz/images/common/back.gif[/img][/url]
在20樓
首頁中插入資料插在 {lang author} 後面即可。 [/quote]
感謝,但是我都弄好,也都沒錯誤,甚至還做了同路徑資料夾,結果也是一片白
2008-7-13 02:41
vulul7
我也是空白
有錯誤不改了
[[i] 本帖最後由 vulul7 於 2008-8-3 07:46 編輯 [/i]]
2008-7-13 03:01
3ASV444
終於有番個UTF-8的插件啦
支持支持
2008-7-14 01:28
呆呆a阿狗
棒! 支持支持!
不安裝∼
可惜要修改的太多∼
而且看起來有點簡陋∼:titter:
2008-7-14 23:31
superdog
我想知你的主題下方加入描述 For D6.1的修改辦法,能分享一下嗎?
2008-7-16 10:19
Chienlin
回覆 #37 superdog 的帖子
我是參考本篇 [url]http://www.alan888.com/Discuz/thread-126476-1-1.html[/url]
[[i] 本帖最後由 Chienlin 於 2008-7-16 10:23 編輯 [/i]]
2008-7-19 01:36
xchris412
能不能別那麼複雜的 :em40:
單純給會員按下感謝就能查看隱藏帖的改法
不需要感謝卡或是兌換等功能
2008-7-19 11:11
vincentlau
請問有沒有方法在按感謝後,會令有關帖子推到最頂,像一般回覆主題那樣?
頁:
[1]
2
Powered by Discuz! Archiver 5.5.0
© 2001-2006 Comsenz Inc.