1.2.3真是经典版本啊
点击数:311 | 回复数:8 | 最后回复发表于2010.02
请教alan啊,我想用1.2.3版本的做单吧,是不是要改list.html这个模板?
由于初学,不知怎么变成一点index.php就进入默认的单版面,恳请你教教我啊。。
下面是list文件内容。。。
{:if pageaction != "tiezi"}
{:include file = "header.htm"}
<TABLE id=result-bar width="100%">
<TBODY>
<TR>
<TD align="left"> <A href="{:=install_catalog}?y=s">{:=site_bar_name}</A> >> {:=bar_guidance}{:=fname}</TD>
<TD noWrap align="right">
<FONT color=#002f7d>吧主:</FONT>{:repeater id = 'loopfbz' dataSrc=master colums=1}<a href="{:=install_catalog}user_info.php?u={:=loopfbz->val.urlencode()}" target="_blank">{:=loopfbz->val}</a>{:if loopfbz->val != ""} {:/if}{:/repeater}
</TD></TR></TBODY></TABLE>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD noWrap align="left">
{:if show_post_form == "1"}
<A href="#appear">
</A>
{:/if}
<A href="elite.php?f={:=ffid}">
</A>
<A href="list.php?f={:=bar_help_id}">
</A>
<A href="list.php?f={:=bar_complain_id}">
</A>
{:if canapply == 1}
<A href="applymaster.php?f={:=ffid}">
</A>
{:/if}
{:if canapply == "2"}
<A href="resignmaster.php?f={:=ffid}">
</A>
<A href="bbs_set.php?f={:=ffid}">
</A>
{:/if}
{:if cancollect == "1"}
<span id="scbut"><A href="#" onclick="CollectBar({:=ffid});">
</A></span>
{:/if}
</TD>
<TD style="FONT-SIZE: 13px; COLOR: blue" vAlign=center width=235></TD>
<TD align="left">
{:if two_domain_yes != "0"}{:if bbsdomain != "0"}{:if bbsdomain != ""}本吧地址:<a href="#" onclick="javascript:window.external.AddFavorite('http://{:=bbsdomain}.{:=two_domain_postfix}', '{:=fname}_{:=site_bar_name}')" title="将此网址添加到您的IE收藏夹">http://{:=bbsdomain}.{:=two_domain_postfix}</a> {:/if}{:/if}{:/if}
</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=5></TD>
<TD vAlign=top>
<div id="tiezi_show">
{:/if}
<TABLE class=a05 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR class=a03 valign=middle bgColor=#e8f3ff>
<TD noWrap width="9%" height="31" align="center">阅读数</TD>
<TD noWrap width="8%" align="center">回复数</TD>
<TD noWrap align="left">主题</TD>
<TD noWrap width="12%" align="left">作者</TD>
<TD noWrap width="9%" align="center">时间</TD>
<TD noWrap width="13%" align="left">最后回复</TD></TR>
<TR onMouseOver="this.bgColor='#E9FFDB'" onMouseOut="this.bgColor='#FFFFFF'">
{:repeater id='loopzt' dataSrc=threadlist colums=1}
<TD height=31 align=center><FONT style="{:if loopzt->val.r9 > "100"}font-weight:bold;color:red{:else}color:black{:/if}">{:=loopzt->val.r9}</FONT></TD>
<TD align=center><FONT style="{:if loopzt->val.r10 > "20"}font-weight:bold;color:red{:else}color:black{:/if}">{:=loopzt->val.r10}</FONT></TD>
<TD align="left" style="WORD-BREAK: break-all">
{:if loopzt->val.r8 == "1"}
<FONT color=red>[锁定]</FONT>
{:else}
{:if loopzt->val.r5 > "0"}
<FONT color=#ff0000>[置顶]</FONT>
{:/if}
{:/if}
<A href="{:=install_catalog}read.php?tid={:=loopzt->val.r0}" target="_blank" title="{:=loopzt->val.r1}">{:=loopzt->val.utf8}</A>
{:if loopzt->val.r6 == "1"} <FONT color=red>[精华]</FONT>{:/if}</TD>
<TD align=left>
{:if loopzt->val.tnmau == "1"}
{:=loopzt->val.r2}
{:else}
<a href="{:=install_catalog}user_info.php?u={:=loopzt->val.r2.urlencode()}" target="_blank">{:=loopzt->val.r2}</a>
{:/if}
</TD>
<TD align=center>
{:if loopzt->val.today.date("Y-m-d") == loopzt->val.r3.date("Y-m-d")}
{:=loopzt->val.r3.date("H:i")}
{:else}
{:=loopzt->val.r3.date("m-d")}
{:/if}
</TD>
<TD align=left>
{:if loopzt->val.tnmwh == "1"}
{:=loopzt->val.r4}
{:else}
<a href="{:=install_catalog}user_info.php?u={:=loopzt->val.r4.urlencode()}" target="_blank">{:=loopzt->val.r4}</a>
{:/if}
</TD></TR>
<TR><TD background="{:=install_catalog}images/{:=current_template}/dian.gif" colSpan="6" height="1"></TD>
{:if loopzt->enter == true}
</tr>
<tr {:if loopzt->mod2 == false}bgcolor="#FAFAFA"{:/if} onMouseOver="this.bgColor='#E9FFDB'" onMouseOut="this.bgColor='{:if loopzt->mod2 == false}#FAFAFA{:else}#FFFFFF{:/if}'">
{:/if}
{:/repeater}
</TR>
</TBODY></TABLE>
<TABLE height="26" cellSpacing="1" cellPadding="0" width="100%" bgColor="#bfe0f8" border="0">
<TBODY>
<TR>
<TD class="a04" bgColor="#ffffff" height="31" align="left">
本吧共有主题数 {:=threadall} 个,帖子数 {:=postall} 篇 共 {:=allpage} 页 {:=threadpage}
</TD>
</TR>
</TBODY>
</TABLE>
由于初学,不知怎么变成一点index.php就进入默认的单版面,恳请你教教我啊。。
下面是list文件内容。。。
{:if pageaction != "tiezi"}
{:include file = "header.htm"}
<TABLE id=result-bar width="100%">
<TBODY>
<TR>
<TD align="left"> <A href="{:=install_catalog}?y=s">{:=site_bar_name}</A> >> {:=bar_guidance}{:=fname}</TD>
<TD noWrap align="right">
<FONT color=#002f7d>吧主:</FONT>{:repeater id = 'loopfbz' dataSrc=master colums=1}<a href="{:=install_catalog}user_info.php?u={:=loopfbz->val.urlencode()}" target="_blank">{:=loopfbz->val}</a>{:if loopfbz->val != ""} {:/if}{:/repeater}
</TD></TR></TBODY></TABLE>
<TABLE width="100%" border=0>
<TBODY>
<TR>
<TD noWrap align="left">
{:if show_post_form == "1"}
<A href="#appear">
</A>{:/if}
<A href="elite.php?f={:=ffid}">
</A><A href="list.php?f={:=bar_help_id}">
</A><A href="list.php?f={:=bar_complain_id}">
</A>{:if canapply == 1}
<A href="applymaster.php?f={:=ffid}">
</A>{:/if}
{:if canapply == "2"}
<A href="resignmaster.php?f={:=ffid}">
</A><A href="bbs_set.php?f={:=ffid}">
</A>{:/if}
{:if cancollect == "1"}
<span id="scbut"><A href="#" onclick="CollectBar({:=ffid});">
</A></span>{:/if}
</TD>
<TD style="FONT-SIZE: 13px; COLOR: blue" vAlign=center width=235></TD>
<TD align="left">
{:if two_domain_yes != "0"}{:if bbsdomain != "0"}{:if bbsdomain != ""}本吧地址:<a href="#" onclick="javascript:window.external.AddFavorite('http://{:=bbsdomain}.{:=two_domain_postfix}', '{:=fname}_{:=site_bar_name}')" title="将此网址添加到您的IE收藏夹">http://{:=bbsdomain}.{:=two_domain_postfix}</a> {:/if}{:/if}{:/if}
</TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD width=5></TD>
<TD vAlign=top>
<div id="tiezi_show">
{:/if}
<TABLE class=a05 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR class=a03 valign=middle bgColor=#e8f3ff>
<TD noWrap width="9%" height="31" align="center">阅读数</TD>
<TD noWrap width="8%" align="center">回复数</TD>
<TD noWrap align="left">主题</TD>
<TD noWrap width="12%" align="left">作者</TD>
<TD noWrap width="9%" align="center">时间</TD>
<TD noWrap width="13%" align="left">最后回复</TD></TR>
<TR onMouseOver="this.bgColor='#E9FFDB'" onMouseOut="this.bgColor='#FFFFFF'">
{:repeater id='loopzt' dataSrc=threadlist colums=1}
<TD height=31 align=center><FONT style="{:if loopzt->val.r9 > "100"}font-weight:bold;color:red{:else}color:black{:/if}">{:=loopzt->val.r9}</FONT></TD>
<TD align=center><FONT style="{:if loopzt->val.r10 > "20"}font-weight:bold;color:red{:else}color:black{:/if}">{:=loopzt->val.r10}</FONT></TD>
<TD align="left" style="WORD-BREAK: break-all">
{:if loopzt->val.r8 == "1"}
<FONT color=red>[锁定]</FONT>
{:else}
{:if loopzt->val.r5 > "0"}
<FONT color=#ff0000>[置顶]</FONT>
{:/if}
{:/if}
<A href="{:=install_catalog}read.php?tid={:=loopzt->val.r0}" target="_blank" title="{:=loopzt->val.r1}">{:=loopzt->val.utf8}</A>
{:if loopzt->val.r6 == "1"} <FONT color=red>[精华]</FONT>{:/if}</TD>
<TD align=left>
{:if loopzt->val.tnmau == "1"}
{:=loopzt->val.r2}
{:else}
<a href="{:=install_catalog}user_info.php?u={:=loopzt->val.r2.urlencode()}" target="_blank">{:=loopzt->val.r2}</a>
{:/if}
</TD>
<TD align=center>
{:if loopzt->val.today.date("Y-m-d") == loopzt->val.r3.date("Y-m-d")}
{:=loopzt->val.r3.date("H:i")}
{:else}
{:=loopzt->val.r3.date("m-d")}
{:/if}
</TD>
<TD align=left>
{:if loopzt->val.tnmwh == "1"}
{:=loopzt->val.r4}
{:else}
<a href="{:=install_catalog}user_info.php?u={:=loopzt->val.r4.urlencode()}" target="_blank">{:=loopzt->val.r4}</a>
{:/if}
</TD></TR>
<TR><TD background="{:=install_catalog}images/{:=current_template}/dian.gif" colSpan="6" height="1"></TD>
{:if loopzt->enter == true}
</tr>
<tr {:if loopzt->mod2 == false}bgcolor="#FAFAFA"{:/if} onMouseOver="this.bgColor='#E9FFDB'" onMouseOut="this.bgColor='{:if loopzt->mod2 == false}#FAFAFA{:else}#FFFFFF{:/if}'">
{:/if}
{:/repeater}
</TR>
</TBODY></TABLE>
<TABLE height="26" cellSpacing="1" cellPadding="0" width="100%" bgColor="#bfe0f8" border="0">
<TBODY>
<TR>
<TD class="a04" bgColor="#ffffff" height="31" align="left">
本吧共有主题数 {:=threadall} 个,帖子数 {:=postall} 篇 共 {:=allpage} 页 {:=threadpage}
</TD>
</TR>
</TBODY>
</TABLE>
{:if pageaction != "tiezi"}
</div>
{:if show_post_form == "1"}
<BR>
{:include file = "post_form.htm"}
{:/if}
</TD>
<TD width=10></TD>
<td width=165 valign=top align=center>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD>
</TD>
<TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="table-layout:fixed;">
<TBODY>
<TR>
<TD align="middle" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0>
<tr><td height=11></td></tr>
<tr><td align="center">
{:if fpic == ""}

{:else}

{:/if}
</td></tr>
<tr><td height=5></td></tr></table>
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0 style="table-layout:fixed;word-wrap: break-word">
<tr>
<td class="a04" align="left">
{:if fannouncement == ""} 我炫故我在 尽在吧风采 {:=site_bar_name}欢迎您{:else} {:=fannouncement}{:/if}
</td>
</tr></table>
</div>
{:if show_post_form == "1"}
<BR>
{:include file = "post_form.htm"}
{:/if}
</TD>
<TD width=10></TD>
<td width=165 valign=top align=center>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD>
</TD><TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD></TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="table-layout:fixed;">
<TBODY>
<TR>
<TD align="middle" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0>
<tr><td height=11></td></tr>
<tr><td align="center">
{:if fpic == ""}

{:else}
{:/if}
</td></tr>
<tr><td height=5></td></tr></table>
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0 style="table-layout:fixed;word-wrap: break-word">
<tr>
<td class="a04" align="left">
{:if fannouncement == ""} 我炫故我在 尽在吧风采 {:=site_bar_name}欢迎您{:else} {:=fannouncement}{:/if}
</td>
</tr></table>
</TD></TR>
<TR><TD>
</TD></TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="margin-top:15px;">
<TBODY>
<TR>
<TD>
</TD>
<TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD>
</TR>
</TBODY>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD align="left" height="20" valign="bottom" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<font style="font-weight:bold;color:black;font-size:13px;"> 圈内成员</font>({:=member_total})
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD>
</TD>
<TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="table-layout:fixed;">
<TBODY>
<TR>
<TD align="middle" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0 style="table-layout:fixed;word-wrap: break-word">
<tr>
<td class="a04" align="left">
<div id="member_show">
<script>getMember({:=ffid},1);</script>
</div>
</td>
</tr></table>
</TD></TR>
<TR><TD>
</TD></TR>
</TBODY>
</TABLE>
<TR><TD>
</TD></TR></TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="margin-top:15px;">
<TBODY>
<TR>
<TD>
</TD><TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD></TR>
</TBODY>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD align="left" height="20" valign="bottom" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<font style="font-weight:bold;color:black;font-size:13px;"> 圈内成员</font>({:=member_total})
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD>
</TD><TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD></TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="table-layout:fixed;">
<TBODY>
<TR>
<TD align="middle" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0 style="table-layout:fixed;word-wrap: break-word">
<tr>
<td class="a04" align="left">
<div id="member_show">
<script>getMember({:=ffid},1);</script>
</div>
</td>
</tr></table>
</TD></TR>
<TR><TD>
</TD></TR></TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="margin-top:15px;">
<TBODY>
<TR>
<TD>
</TD>
<TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD>
</TR>
</TBODY>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD align="left" height="20" valign="bottom" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<font style="font-weight:bold;color:black;font-size:13px;"> 友情贴吧</font>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD>
</TD>
<TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="table-layout:fixed;">
<TBODY>
<TR>
<TD align="middle" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0 style="table-layout:fixed;word-wrap: break-word">
<tr>
<td class="a04" align="left">
{:repeater id='loopfl' dataSrc=friendlink colums=1}
<a href="{:=install_catalog}so.php?w={:=loopfl->val.urlencode()}&s=join-bar" target="_blank">{:=loopfl->val}</a><br>
{:/repeater}
</td>
</tr></table>
</TD></TR>
<TR><TD>
</TD></TR>
</TBODY>
</TABLE>
</TD>
<TD width=5></TD></TR>
</TBODY></TABLE><BR>
{:include file = "footer.htm"}
</BODY></HTML>
{:/if}
<TBODY>
<TR>
<TD>
</TD><TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD></TR>
</TBODY>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD align="left" height="20" valign="bottom" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<font style="font-weight:bold;color:black;font-size:13px;"> 友情贴吧</font>
</TD>
</TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0">
<TBODY>
<TR>
<TD>
</TD><TD align="middle" width="159" background="{:=install_catalog}images/{:=current_template}/pic12.gif"></TD>
<TD>
</TD></TR>
</TBODY>
</TABLE>
<TABLE cellSpacing="0" cellPadding="0" width="165" border="0" style="table-layout:fixed;">
<TBODY>
<TR>
<TD align="middle" background="{:=install_catalog}images/{:=current_template}/pic14.gif">
<table align="center" width=139 border=0 cellpadding=0 cellspacing=0 style="table-layout:fixed;word-wrap: break-word">
<tr>
<td class="a04" align="left">
{:repeater id='loopfl' dataSrc=friendlink colums=1}
<a href="{:=install_catalog}so.php?w={:=loopfl->val.urlencode()}&s=join-bar" target="_blank">{:=loopfl->val}</a><br>
{:/repeater}
</td>
</tr></table>
</TD></TR>
<TR><TD>
</TD></TR></TBODY>
</TABLE>
</TD>
<TD width=5></TD></TR>
</TBODY></TABLE><BR>
{:include file = "footer.htm"}
</BODY></HTML>
{:/if}
下面这代码不适合1X版本了,跪求高手给改一下适合1.2.3版本。。
------------------------------------------------------------
两步改单版面
第一步使用下面的代码替换 index.php 的代码
<?php
require_once(dirname(__FILE__)."/./forum.php");
?>
第二步,打开 forum.php
在 require_once(dirname(__FILE__)."/./global.php"); 的下一行增加下面的代码
$_GET['fid'] = 1; //这里的1表示你建的贴吧的fid
------------------------------------------------------------
两步改单版面
第一步使用下面的代码替换 index.php 的代码
<?php
require_once(dirname(__FILE__)."/./forum.php");
?>
第二步,打开 forum.php
在 require_once(dirname(__FILE__)."/./global.php"); 的下一行增加下面的代码
$_GET['fid'] = 1; //这里的1表示你建的贴吧的fid
1
其它帖子
- 怎么新版还没有发布
点击:89 / 回复:2
- 官方有提供主机合租或..
点击:139 / 回复:3
- 今天发现有个abc的盗用ph..
点击:277 / 回复:3
- utf8是什么意思嘛
点击:56 / 回复:1
- 吧主删帖后无法还原吗
点击:130 / 回复:4
- 求助各位啊
点击:31 / 回复:4
- 请问这里有单吧版本的..
点击:139 / 回复:2






























