请问高手怎样在discuz的主题列表页调用贴子的内容? 如果你是我说的这个意思,那么你可以在后台先新建个版块,之后编辑该版块,把里面的版块转向 URL:这一项中填上你的那个帖子的地址,之后就是你例子中的样子了. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 谢谢你zmouki我的意思是比如我发个电影贴,随后外面的主题列表,就是贴子名的那个页面他是像这个例子,显示一张图片,还有一些电影信息这些都是贴子里的信息,所以我想应该是从贴子里调用出来的我不知道怎么样从贴子里调用信息出来,因为发贴的时候内容都是打在textarea框中的。 谢谢你lijinm我已经在官方找过了,没有 T_T现在自己研究了下,样子已经能做出来了,就是不知道怎么调用贴中的内容显示到主题列表 谢谢你lijinm我也怀疑他分类信息这里有古怪,现在后台看了下好象是可以做点文章现在去研究研究 :) forumdisplay.php里面用贴子的tid去查贴子的内容,当然模板(forumdisplay.htm)也要改一下。 谢谢你for1101能不能详细地说一下呢? 启用了分类信息。这样就是在forumdisplay查分类信息。默认是没有这个功能的。 分类信息保存在表cdb_typeoptionvars里面。 是不是要在 forumdisplay.php里面require一个文件才能在forumdisplay.htm里调用变量? 能不能举例说明下怎么在forumdisplay.php里面查分类信息 这是threadtype_28.php的内容<?php//Discuz! cache file, DO NOT modify me!//Created: Sep 9, 2008, 20:26//Identify: d6aaecb906e1a388a4f2abe2bf48ee94$_DTYPE = array (3010 =>array ('title' => '电影封面','type' => 'image','identifier' => 'jjpicture','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxwidth' => 0,'maxheight' => 0,),3001 =>array ('title' => '年 代','type' => 'text','identifier' => 'jjyear','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3002 =>array ('title' => 'IMDB评分','type' => 'text','identifier' => 'jjscroe','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3003 =>array ('title' => '国家地区','type' => 'text','identifier' => 'jjcountry','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3004 =>array ('title' => '类 别','type' => 'text','identifier' => 'jjstyle','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3005 =>array ('title' => '导 演','type' => 'text','identifier' => 'jjdirect','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3006 =>array ('title' => '主 演','type' => 'text','identifier' => 'jjactor','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3007 =>array ('title' => '语 言','type' => 'text','identifier' => 'jjlanguage','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3008 =>array ('title' => '字 幕','type' => 'text','identifier' => 'jjsubtitles','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),3009 =>array ('title' => '压缩格式','type' => 'text','identifier' => 'jjcompress','description' => '','required' => 0,'unchangeable' => 0,'search' => 0,'maxlength' => 0,),);$_DTYPETEMPLATE = "<table><tr><td valign=\"middle\" width=\"80\"><b>{jjpicture}</b>: </td><td valign=\"middle\">[jjpicturevalue]</td></tr><tr><td colspan=\"2\"><li><b>{jjyear}</b>: [jjyearvalue]</li><li><b>{jjscroe}</b>: [jjscroevalue]</li><li><b>{jjcountry}</b>: [jjcountryvalue]</li><li><b>{jjstyle}</b>: [jjstylevalue]</li><li><b>{jjdirect}</b>: [jjdirectvalue]</li><li><b>{jjactor}</b>: [jjactorvalue]</li><li><b>{jjlanguage}</b>: [jjlanguagevalue]</li><li><b>{jjsubtitles}</b>: [jjsubtitlesvalue]</li><li><b>{jjcompress}</b>: [jjcompressvalue]</li></td></tr></table>";?>我该怎么取得这个里面的信息? Parse error: syntax error, unexpected T_ELSE php产生随机数字的问题 帮我推荐几本学习PHP比较好的书吧 mysql插入中文乱码 求助:去掉一段字符串中的一些字符 庆祝网站上线,散分喽!!!人人有份!! 网站基于php,欢迎高手多多指教,谢谢啊~~~ 关注PHP4.3.2RC4与PHP4.2中对于“运行期函数按引用传递参数”的不同 问OCI函数问题! 推荐一些php学习的书籍 安装 curl 失败 关于php读取数据库时出现中文乱码问题 机房里的机器IE不能运行PHP?我自己的却可以???
我的意思是
比如我发个电影贴,随后外面的主题列表,就是贴子名的那个页面
他是像这个例子,显示一张图片,还有一些电影信息
这些都是贴子里的信息,所以我想应该是从贴子里调用出来的
我不知道怎么样从贴子里调用信息出来,因为发贴的时候内容都是打在textarea框中的。
我也怀疑他分类信息这里有古怪,现在后台看了下好象是可以做点文章现在去研究研究 :)
里面用贴子的tid去查贴子的内容,当然模板(forumdisplay.htm)也要改一下。
能不能详细地说一下呢?
这样就是在forumdisplay查分类信息。默认是没有这个功能的。
cdb_typeoptionvars
里面。
<?php
//Discuz! cache file, DO NOT modify me!
//Created: Sep 9, 2008, 20:26
//Identify: d6aaecb906e1a388a4f2abe2bf48ee94$_DTYPE = array (
3010 =>
array (
'title' => '电影封面',
'type' => 'image',
'identifier' => 'jjpicture',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxwidth' => 0,
'maxheight' => 0,
),
3001 =>
array (
'title' => '年 代',
'type' => 'text',
'identifier' => 'jjyear',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3002 =>
array (
'title' => 'IMDB评分',
'type' => 'text',
'identifier' => 'jjscroe',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3003 =>
array (
'title' => '国家地区',
'type' => 'text',
'identifier' => 'jjcountry',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3004 =>
array (
'title' => '类 别',
'type' => 'text',
'identifier' => 'jjstyle',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3005 =>
array (
'title' => '导 演',
'type' => 'text',
'identifier' => 'jjdirect',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3006 =>
array (
'title' => '主 演',
'type' => 'text',
'identifier' => 'jjactor',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3007 =>
array (
'title' => '语 言',
'type' => 'text',
'identifier' => 'jjlanguage',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3008 =>
array (
'title' => '字 幕',
'type' => 'text',
'identifier' => 'jjsubtitles',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
3009 =>
array (
'title' => '压缩格式',
'type' => 'text',
'identifier' => 'jjcompress',
'description' => '',
'required' => 0,
'unchangeable' => 0,
'search' => 0,
'maxlength' => 0,
),
);$_DTYPETEMPLATE = "<table>
<tr>
<td valign=\"middle\" width=\"80\"><b>{jjpicture}</b>: </td>
<td valign=\"middle\">[jjpicturevalue]</td>
</tr>
<tr>
<td colspan=\"2\">
<li><b>{jjyear}</b>: [jjyearvalue]</li>
<li><b>{jjscroe}</b>: [jjscroevalue]</li>
<li><b>{jjcountry}</b>: [jjcountryvalue]</li>
<li><b>{jjstyle}</b>: [jjstylevalue]</li>
<li><b>{jjdirect}</b>: [jjdirectvalue]</li>
<li><b>{jjactor}</b>: [jjactorvalue]</li>
<li><b>{jjlanguage}</b>: [jjlanguagevalue]</li>
<li><b>{jjsubtitles}</b>: [jjsubtitlesvalue]</li>
<li><b>{jjcompress}</b>: [jjcompressvalue]</li>
</td>
</tr>
</table>";
?>
我该怎么取得这个里面的信息?