免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

標題: [已回答] 爬文未找到,求问如何把公告和统计放到首页N格上边 [打印本頁]

作者: IndianaJones    時間: 2015-7-13 23:01     標題: 爬文未找到,求问如何把公告和统计放到首页N格上边

本帖最後由 IndianaJones 於 2015-7-13 23:04 編輯

360截图20150713225737149.jpg

就是怎么把1放到2上面,谢谢啦

论坛地址:
http://indianajones.imotor.com/

还有个问题就是怎么设置让导航栏随着页面一起向下滚动?

圖片附件: 360截图20150713225737149.jpg (2015-7-13 23:00, 112.58 KB) / 下載次數 1004
http://www.sclub.com.tw/discuz/attachment.php?aid=65130&k=37635316d3aa05b6677f9a6f92d11ba2&t=1713522834&sid=Q46x25


作者: qianyin    時間: 2015-7-13 23:37

看不到你的首页n格
导航栏试试这个,放在第三方
<style>#menu{position:fixed !important;}<style>
作者: IndianaJones    時間: 2015-7-14 00:05

回復 2# qianyin


    直接爬到最下面了
作者: qianyin    時間: 2015-7-14 00:27

回復 3# IndianaJones
<style>#menu{position:fixed !important;top:1px}<style>
top的数值你看着需要调就调
作者: rosa1414    時間: 2015-7-14 01:00

安娤N格~~系統自然會把它分開到上方~~~
作者: 西瓜与芝麻    時間: 2015-7-14 10:11

提示: 作者被禁止或刪除 內容自動屏蔽
作者: IndianaJones    時間: 2015-7-14 13:37

回復  IndianaJones
#menu{position:fixed !important;top:1px}
top的数值你看着需要调就调 ...
qianyin 發表於 2015-7-14 00:27


这个方式不行,固定以后,往下滚动,导航栏不是贴着页顶部,而是相距一段距离(这个距离就是导航栏到页头的距离)
作者: IndianaJones    時間: 2015-7-14 13:38

回復 5# rosa1414


    这个是首页N格(缓冲),该怎么调哈?
作者: rosa1414    時間: 2015-7-15 01:10

回復 8# IndianaJones


你不妨问问(缤纷色彩)会员、相信她乐意教你。

http://colorful.joinbbs.net/

241.gif

圖片附件: 241.gif (2015-7-15 01:10, 20.85 KB) / 下載次數 881
http://www.sclub.com.tw/discuz/attachment.php?aid=65160&k=c6da2a44f18b20e0fbfa0530b6580724&t=1713522834&sid=Q46x25


作者: tommy850924    時間: 2015-7-15 01:35

回復 1# IndianaJones

靠修改模板~切記要備份!

所有模版備份:http://sclub.com.tw/discuz/viewthread.php?tid=30500


到 discuz.htm 找
  1. $pluginhooks[index_header]
複製代碼
移到
  1. <!--{eval $rkey=array_rand($catlist);}-->
複製代碼
上面
作者: IndianaJones    時間: 2015-7-15 17:15

回復 10# tommy850924


    没有效果
作者: tommy850924    時間: 2015-7-15 17:35

回復 11# IndianaJones

你有更新緩存嗎?
作者: IndianaJones    時間: 2015-7-15 17:59

回復 12# tommy850924


    恩
作者: tommy850924    時間: 2015-7-15 22:23

回復 13# IndianaJones

喔~抱歉~
到 discuz.htm 找
  1. $pluginhooks[index_header]
複製代碼
移到
  1. {template index_header}
複製代碼
上面

(上面步驟是復原上次的修改錯誤)

到 discuz.htm 找
  1. {template index_header}
複製代碼
移到 xshow.htm 找
  1. <div class="xshow">
複製代碼
上面

再到 discuz.htm 找
  1. <div class="itemtitle s_clear">
  2.         <p class="right forumcount">
  3.                 {lang index_today}: <em>$todayposts</em>, {lang index_yesterday}: <em>$postdata[0]</em>, {lang index_members}: <em>$totalmembers</em>
  4.         </p>
  5.         <!--{if $indextype}-->
  6.                 {subtemplate index_navbar}
  7.         <!--{/if}-->
  8. </div>
複製代碼
移到 xshow.htm 找
  1. {template index_header}
複製代碼
下面
作者: IndianaJones    時間: 2015-7-19 21:14

本帖最後由 IndianaJones 於 2015-7-19 21:18 編輯

回復 14# tommy850924

位置对了,排版有错位,怎么修改一下哈?
360截图20150719211307334.jpg

在线等谢谢~

圖片附件: 360截图20150719211307334.jpg (2015-7-19 21:14, 146.7 KB) / 下載次數 739
http://www.sclub.com.tw/discuz/attachment.php?aid=65689&k=244c43252fb7c3372fd6e3f58439506f&t=1713522834&sid=Q46x25


作者: 无界    時間: 2015-7-19 23:20

你那个不是默认的会员信息不能这么改
作者: tommy850924    時間: 2015-7-20 00:09

回復 15# IndianaJones


移位問題要看模板不同去做不同的修改,這點需要看到論壇的情況才能改~
作者: tommy850924    時間: 2015-7-20 00:10

回復 16# 无界


什麼意思?為何不能這麼改?版面再依風格去改不行嗎?
作者: 无界    時間: 2015-7-20 01:34

回復 18# tommy850924


    他应该用的是下边这段会员信息代码(这是我论坛用的,不用在意数据调用那里)
  1. <p class="chart"><em class="tj">{lang index_today}:</em> <em>$todayposts</em><span class="pipe">|</span><em class="tj">{lang index_yesterday}:</em> <em>$postdata[0]</em><span class="pipe">|</span><em class="tj">{lang index_posts}:</em> <em>$posts</em><span class="pipe">|</span><em class="tj">会员:</em> <em>{eval $xunirenshu=$totalmembers +500;}$xunirenshu</em><span class="pipe">|</span><em class="tj">欢迎新会员:</em> <em><a href="space.php?username=$memberenc" target="_blank" class="xi2">{eval request('会员排行_B3K');}</a></em></p>
複製代碼
只需把这段代码放到discuz模板里的{template xshow}上边即可。
css再适当的调整一下即可
作者: IndianaJones    時間: 2015-7-20 01:46

回復 19# 无界


    改的有点乱了,我再试试
作者: tommy850924    時間: 2015-7-20 02:16

回復 19# 无界


    懂了!難怪你說不是用默认的会员信息~

現在重點是他的CSS~




歡迎光臨 SCLUB免費論壇申請-使用者論壇 (http://www.sclub.com.tw/discuz/) Powered by Discuz! 7.2