久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

Discuz! 官方交流社區

標題: 怎樣讓首頁版塊顯示簡介而不是帖子 [打印本頁]

作者: wh8630193    時間: 2023-4-13 14:23
標題: 怎樣讓首頁版塊顯示簡介而不是帖子

如圖,想顯示成版塊簡介。
(, 下載次數: 2)

作者: onetheme    時間: 2023-4-13 14:30
discuz.php把這里的代碼替換成下面的
  1. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
復制代碼

作者: niuniu1688    時間: 2023-4-13 14:31
修改上面代碼
作者: wh8630193    時間: 2023-4-13 15:36
onetheme 發表于 2023-4-13 14:30
discuz.php把這里的代碼替換成下面的

這里的代碼,是哪段呀?
作者: onetheme    時間: 2023-4-13 17:42
wh8630193 發表于 2023-4-13 15:36
這里的代碼,是哪段呀?
  1. <!--{if $forum['permission'] == 1}-->
  2.                                                                                 {lang private_forum}
  3.                                                                         <!--{else}-->
  4.                                                                                 <!--{if $forum['redirect']}-->
  5.                                                                                         <a href="$forumurl" class="xi2">{lang url_link}</a>
  6.                                                                                 <!--{elseif is_array($forum['lastpost'])}-->
  7.                                                                                         <!--{if $cat['forumcolumns'] < 3}-->
  8.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  9.                                                                                         <!--{else}-->
  10.                                                                                                 <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  11.                                                                                         <!--{/if}-->
  12.                                                                                 <!--{else}-->
  13.                                                                                         {lang never}
  14.                                                                                 <!--{/if}-->
  15.                                                                         <!--{/if}-->
復制代碼

作者: wh8630193    時間: 2023-4-13 20:15
discuz.php是下面這些,沒有你寫的那些代碼:
<?php
if(!defined('IN_DISCUZ')) {
        exit('Access Denied');
}
include loadarchiver('common/header');
?>
<div id="nav">
        <a href="./"><strong><?php echo $_G['setting']['bbname']; ?></strong></a>
</div>
<div id="content">
        <?php foreach($catlist as $key => $cat): ?>
        <h3><?php echo $cat['name']; ?></h3>
        <?php if(!empty($cat['forums'])): ?>
        <ul>
                <?php foreach($cat['forums'] as $fid): ?>
                <li><a href="?fid-<?php echo $fid; ?>.html"><?php echo $forumlist[$fid]['name']; ?></a></li>
                <?php endforeach; ?>
        </ul>
        <?php endif; ?>
        <?php endforeach; ?>
</div>
<div id="end">
        <?php echo lang('forum/archiver', 'full_version'); ?>:
        <a href="../forum.php" target="_blank"><strong><?php echo $_G['setting']['bbname']; ?></strong></a>
</div>
<?php include loadarchiver('common/footer'); ?>
作者: 文強    時間: 2023-4-13 21:01
wh8630193 發表于 2023-4-13 20:15
discuz.php是下面這些,沒有你寫的那些代碼:

你用的是默認模板嗎?如果是那就打開 template\default\forum\discuz.htm ,搜索結果有2段樓上給的代碼,如圖:


(, 下載次數: 2)




歡迎光臨 Discuz! 官方交流社區 (http://www.9999xn.com/) Powered by Discuz! W1.0