免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[問題] "分區版塊"以及"頁面框"怎麼加圖片??

"分區版塊"以及"頁面框"怎麼加圖片??

"頁面框"上中下 又要修改那裡??

回復 1# pucca0823



[D7.0/7.2] 橫排美化

discuz.htm
1.找
  1. <th width="$cat[forumcolwidth]"{$forum[folder]}>
複製代碼
2.下面加入
  1. $forum[icon]
複製代碼
3.找
  1.                                                 <h2><a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if} style="{if $forum[extra][namecolor]}color: {$forum[extra][namecolor]};{/if}">$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  2.                                                 <!--{if !$forum[redirect]}-->
  3.                                                         <p>{lang forum_threads}: $forum[threads], {lang forum_posts}: $forum[posts]</p>
  4.                                                         <!--{if $forum['permission'] == 1}-->
  5.                                                                 <p>{lang private_forum}
  6.                                                         <!--{else}-->
  7.                                                                 <p>{lang forum_lastpost}:
  8.                                                                         <!--{if is_array($forum['lastpost'])}-->
  9.                                                                                 <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost" title="{echo cutstr($forum[lastpost][subject], 30)} {lang forum_lastpost_by} {if $forum['lastpost']['author']}$forum['lastpost']['authorusername']{else}{lang anonymous}{/if}  ">$forum[lastpost][dateline]</a>
  10.                                                                         <!--{else}-->
  11.                                                                                 {lang never}
  12.                                                                         <!--{/if}-->
  13.                                                                 </p>
複製代碼
4.改為
  1.                         <h2>┌ <a href="forumdisplay.php?fid=$forum[fid]" {if $forum[redirect]}target="_blank"{/if}>$forum[name]</a><!--{if $forum[todayposts]}--><em> ({lang index_today}: <strong>$forum[todayposts]</strong>)</em><!--{/if}--></h2>
  2.                                                 <!--{if !$forum[redirect]}-->
  3.                                                         <p>├ {lang lastpost} : <a href="redirect.php?tid=$forum[lastpost][tid]&amp;goto=lastpost#lastpost">{echo cutstr($forum[lastpost][subject], 10)}</a> By : <cite><!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->{lang anonymous}<!--{/if}--></cite></p>
  4.                                                         <!--{if $forum['permission'] == 1}-->
  5.                                                                 <p>{lang private_forum}
  6.                                                         <!--{else}-->
  7.                                                                 <p>└   <!--{if is_array($forum['lastpost'])}-->
  8.                                                                         {lang forum_threads}: <strong>$forum[threads]</strong>, {lang forum_posts}: <strong>$forum[posts]</strong>
  9.                                                                         <!--{else}-->
  10.                                                                                 {lang never}
  11.                                                                         <!--{/if}-->
  12.                                                                 </p>
複製代碼
如想更改显示主题字数 , 可更改以下数字          
($forum[lastpost][subject], 10)


1.jpg
2012-5-21 03:06

2.jpg
2012-5-21 03:06

TOP



不好意思,好像讓您會錯意了!!
我用圖片表示一下,再請大大教教我!! 謝謝!

TOP

有人知道怎麼用嗎??

TOP

我也很想知道@@

TOP

本帖最後由 GomPaw 於 2012-7-12 13:30 編輯

回復 5# km36588
回復 1# pucca0823

分區版塊 的背景我不清楚!!

----------------------------------------------------
頁面框,我大概跟你讲解...
第一就是先把 页面框的图做好。分成三份,上传。

第二:
* 页头部分:
把图片网址放入頁頭背景
頁頭背景第三个空格,放入:
  1. no-repeat;background-position:center
複製代碼
注意:要准备一张透明图片 放入论坛logo 那里。[高度大概就是你的页头图片那个大小,如果大小不对自己在调整!]

* 页中部分:
把图片网址放入頁面背景
頁面背景第三个空格,放入:
  1. repeat-y;background-position:center
複製代碼
* 页尾部分:
頁腳文字色 里,放入以下代码。
  1. #6a3905 important;} #footer{background:#ffff95 url([img]这里放入页尾图片网址[/img]) no-repeat 50% 0px !important;height:70px !important}
複製代碼
#6a3905:页脚文字颜色的代码
#ffff95:背景颜色的代码

这个是我做好的!!
http://gompaw.weclub.info/

TOP

感謝分享

TOP

返回列表