引用 | 编辑
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 |