引用 | 編輯
chris710908
2006-01-12 11:38 |
樓主
▼ |
||
x0
【類型】插件【版本】3.01 【問題文章演示網址】http://fashion.icam.ntut.edu.tw/phpwind/thread.php?fid=2 請教一下~~小弟最近開啟了主題分類功能 然而後台中所打入的格式為【XX】~加框是因為 發文時可以區隔標題~~但是在版面上方所顯示的主題分類 也是有把框框顯示~~因為我有用美化分類插件~~ 所以想把版面上方所顯示的主題分類的框框去除~~ 同時又保持發文時有加框的格式 請問有辦法嗎?感謝指教! x0
|
引用 | 編輯
月光
2006-01-12 14:21 |
1樓
▲ ▼ |
thread.php
查找 複製程式 $guidename=forumindex($foruminfo['fup']); $msg_guide=headguide($guidename) 複製程式 //修改,主題分類增強插件 $guidename=forumindex($foruminfo['fup']); 複製程式 unset($t_typedb[0]);/* 0 */ if($t_db && is_numeric($type) && isset($t_typedb[$type])){ 複製程式 //修改,主題分類增強插件 if($t_db && ($t_typedb[0]<>0)){ $t_typedb[0]='默認分類' } if($t_db && is_numeric($type) && isset($t_typedb[$type])){ //修改,主題分類增強插件 $typeplus_link="&type=$type"; $guidename[$t_typedb[$type]]="thread.php?fid=$fid&type=$type"; 複製程式 $winddb['t_num'] && $db_perpage=$winddb['t_num']; $winddb['p_num'] && $db_readperpage=$winddb['p_num']; 複製程式 //修改,主題分類增強插件 $msg_guide=headguide($guidename); $winddb['t_num'] && $db_perpage=$winddb['t_num']; $winddb['p_num'] && $db_readperpage=$winddb['p_num']; 複製程式 $threaddb[]=$thread; 複製程式 //修改,主題分類增強插件 if(($thread['type'])&&(!($type))) { $thread['typename'] = "<font color=royalblue>[".$t_typedb[$thread[type]]."]</font></a>"; } $threaddb[]=$thread; 查找 複製程式 if ($action=="new"||$action=="vote"){ 複製程式 //修改,主題分類增強插件 if(!(is_numeric($type))){ unset($type); } if ($action=="new"||$action=="vote"){ 查找 複製程式 <a href='$thread[tpcurl]'>$thread[subject]</a> 複製程式 $thread[typename]<a href='$thread[tpcurl]'>$thread[subject]</a> 複製程式 <td align=right><a href='post.php?fid=$fid'><img src='$imgpath/$stylepath/post.gif'></a> <a href='post.php?action=vote&fid=$fid'><img src='$imgpath/$stylepath/vote.gif'></a> 複製程式 <td align=right><a href='post.php?fid=$fid$typeplus_link'><img src='$imgpath/$stylepath/post.gif'></a> <a href='post.php?action=vote&fid=$fid$typeplus_link'><img src='$imgpath/$stylepath/vote.gif'></a> 複製程式 <tr><td align=left>{$fenye} $db_perpage/頁 {$count}篇文章</td> <td align=right><a href='post.php?fid=$fid'><img src='$imgpath/$stylepath/post.gif'></a> <a href='post.php?action=vote&fid=$fid'> <img src='$imgpath/$stylepath/vote.gif'></a> 複製程式 <tr><td align=left>{$fenye} $db_perpage/頁 {$count}篇文章</td> <td align=right><a href='post.php?fid=$fid$typeplus_link'><img src='$imgpath/$stylepath/post.gif'></a> <a href='post.php?action=vote&fid=$fid$typeplus_link'> <img src='$imgpath/$stylepath/vote.gif'></a> 查找 複製程式 <tr><td class='t_one'>主題分類</td> <td class='t_one'> <SELECT name=p_type onchange='add_title(this.options[this.selectedIndex].text)'> <OPTION value=0>默認分類</OPTION> <!-- EOT; foreach($t_typedb as $key=>$value){ if($value){ print <<<EOT --> <OPTION $t_checked[$key] value=$key>$value</OPTION> <!-- EOT; } }print <<<EOT --> </select></td></tr> 複製程式 <tr><td class='t_one'>主題分類</td> <td class='t_one'> <SELECT name=p_type> <OPTION value=0>默認分類</OPTION> <!-- EOT; foreach($t_typedb as $key=>$value){ if($value){if($type==$key){ print <<<EOT --> <OPTION $t_checked[$key] value=$key selected>$value</OPTION> <!-- EOT; }else { print <<<EOT --> <OPTION $t_checked[$key] value=$key>$value</OPTION> <!-- EOT; }} }print <<<EOT --> </select></td></tr> x0 |
引用 | 編輯
chris710908
2006-01-12 16:29 |
2樓
▲ ▼ |
感謝板主說明~~只是分類板上的框框還是存在
剛剛看了代碼有很多都是加強文章分類的插件 因為我本來就有裝~~所以就沒動到~~ 改完之後~後台新增類別~~跑出來還是有框框的 x0 |
引用 | 編輯
月光
2006-01-12 22:27 |
3樓
▲ ▼ |
下面是引用chris710908於2006-01-12 16:29發表的 : 你裝完後要把你後台的框框取消阿... x0 |
引用 | 編輯
chris710908
2006-01-12 22:50 |
4樓
▲ ▼ |
恩~~我試試看喔
謝謝你 x0 |
引用 | 編輯
月光
2006-01-12 23:52 |
5樓
▲ ▼ |
下面是引用chris710908於2006-01-12 22:50發表的 : 恩不會因為我看了一下你的論壇版本還是PHPWind v3.0.1 而我也在這版本上測試過了是正常的喔只要你把後台框框 取消就行了 x0 |
引用 | 編輯
chris710908
2006-01-13 01:13 |
6樓
▲ ▼ |
謝謝!!已成功了~~
可以另外再請教一個問題嗎? 就是我有使用強制主題分類~~但是 怎嚜還是有會員可以不選分類就發帖? 我後台有勾選讓會員管理分類的呀! x0 |
引用 | 編輯
月光
2006-01-13 03:43 |
7樓
▲ ▼ |
下面是引用chris710908於2006-01-13 01:13發表的 : 你改過post.htm...我有點看不懂了語法怪怪的 所以我直接拿了PHPwind 3.0.1的post.htm來改 複製程式 <script language="JavaScript"> function showmuti(){ if (document.FORM.muti.checked == true){ attach2.style.display = '' }else{ attach2.style.display = 'none' } } cnt = 0; function checkCnt() { if(FORM.atc_title.value==''){ alert("標題未填 !!!"); return false; cnt++; if (cnt==1) return true; alert('你已按過送出了,請稍等一下 !!'); return false; } if(FORM.p_type.value=="0"){alert("請選擇【主題分類】謝謝!!");return eheckCnt();} } function gopreview() { document.preview.preatc.value=document.FORM.atc_content.value; document.preview.submit() } </script> 看你要不要取代吧因為我不知道你的部分語法是幹麻用的 所以我也沒幫你加上!!另外因為我目前是使用PHPwind 4.3.0 CE 所以語法會稍有變動如果您還有問題最好附上出問題的htm原始碼 喔不然我每次都要找PHPwind 3.0.1來安裝才能幫您解決問題 x0 |
引用 | 編輯
chris710908
2006-01-13 12:02 |
8樓
▲ |
下面是引用月光於2006-01-13 03:43發表的 : 謝謝版大的熱心說明喔 幫了我不少忙~目前測試都OK 謝謝!! x0 |