找回密码
 快速注册

QQ登录

只需一步,快速开始

楼主: gmszone

<FONT color=#0000FF>§校园文学§›</FONT>

  [复制链接]
 楼主| gmszone 发表于 2010-11-15 21:28:50 | 显示全部楼层
反潜水奖励。。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?快速注册

×
回复

使用道具 举报

眼镜蛇 发表于 2010-11-15 21:31:29 | 显示全部楼层
  1. <!--{subtemplate common/header}-->

  2. <!--{subtemplate common/pubsearchform}-->

  3. <!--{ad/text/wp a_t}-->
  4. <style id="diy_style" type="text/css"></style>
  5. <div class="wp">
  6. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  7. </div>

  8. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  9. <div id="chart" class="bm bw0 cl">
  10. <!--{if $_G['uid']}--><p class="y"><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><span class="pipe">|</span><a href="search.php?mod=forum&srchfrom=$newthreads&searchsubmit=yes" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a></p><!--{/if}-->
  11. <p class="chart">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: $postdata[0]<span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>
  12. </div>
  13. <!--{if empty($gid) && $announcements}-->
  14. <div id="an" class="bm bw0">
  15. <dl class="cl">
  16. <dt class="z xw1">{lang announcements}: </dt>
  17. <dd>
  18. <div id="anc" class="xi2"><ul id="ancl">$announcements</ul></div>
  19. </dd>
  20. </dl>
  21. </div>
  22. <script type="text/javascript">announcement();</script>
  23. <!--{/if}-->

  24. <div class="mn">
  25. <!--{hook/index_top}-->

  26. <!--{if !empty($_G['cache']['heats']['message'])}-->
  27. <div class="bm">
  28. <div class="bm_h cl">
  29. <h2>{lang hotthreads_forum}</h2>
  30. </div>
  31. <div class="bm_c cl">
  32. <div class="heat z">
  33. <!--{loop $_G['cache']['heats']['message'] $data}-->
  34. <dl class="xld">
  35. <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  36. <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  37. <dd>$data[message]</dd>
  38. </dl>
  39. <!--{/loop}-->
  40. </div>
  41. <ul class="xl heatl">
  42. <!--{loop $_G['cache']['heats']['subject'] $data}-->
  43. <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}--><a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
  44. <!--{/loop}-->
  45. </ul>
  46. </div>
  47. </div>
  48. <!--{/if}-->

  49. <div class="fl bm">
  50. <!--{loop $catlist $key $cat}-->
  51. <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  52. <div class="bm_h cl">
  53. <span class="o">
  54. <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  55. </span>
  56. <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  57. <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  58. <h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
  59. </div>
  60. <div id="category_$cat[fid]" class="bm_c" style="$collapse['category_'.$cat[fid]]">
  61. <table cellspacing="0" cellpadding="0" class="fl_tb">
  62. <tr>
  63. <!--{loop $cat[forums] $forumid}-->
  64. <!--{eval $forum=$forumlist[$forumid];}-->
  65. <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
  66. <!--{if $cat['forumcolumns']}-->
  67. <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  68. </tr>
  69. <!--{if $forum['orderid'] < $cat['forumscount']}-->
  70. <tr class="fl_row">
  71. <!--{/if}-->
  72. <!--{/if}-->
  73. <td class="fl_g" width="$cat[forumcolwidth]">
  74. <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  75. <!--{if $forum[icon]}-->
  76. $forum[icon]
  77. <!--{else}-->
  78. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  79. <!--{/if}-->
  80. </div>
  81. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  82. <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  83. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
  84. <dd>
  85. <!--{if $forum['permission'] == 1}-->
  86. {lang ∵_forum}
  87. <!--{else}-->
  88. <!--{if $forum['redirect']}-->
  89. <a href="$forumurl" class="xi2">{lang url_link}</a>
  90. <!--{elseif is_array($forum['lastpost'])}-->
  91. <!--{if $cat['forumcolumns'] < 3}-->
  92. <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}-->{lang anonymous}<!--{/if}--></cite>
  93. <!--{else}-->
  94. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  95. <!--{/if}-->
  96. <!--{else}-->
  97. {lang never}
  98. <!--{/if}-->
  99. <!--{/if}-->
  100. </dd>
  101. </dl>
  102. </td>
  103. <!--{else}-->
  104. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  105. <!--{if $forum[icon]}-->
  106. $forum[icon]
  107. <!--{else}-->
  108. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  109. <!--{/if}-->
  110. </td>
  111. <td>
  112. <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw0 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  113. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  114. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  115. <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  116. </td>
  117. <td class="fl_i">
  118. <!--{if empty($forum[redirect])}--><span class="xi2">$forum[threads]</span><span class="xg1"> / $forum[posts]</span><!--{/if}-->
  119. </td>
  120. <td class="fl_by">
  121. <div>
  122. <!--{if $forum['permission'] == 1}-->
  123. {lang ∵_forum}
  124. <!--{else}-->
  125. <!--{if $forum['redirect']}-->
  126. <a href="$forumurl" class="xi2">{lang url_link}</a>
  127. <!--{elseif is_array($forum['lastpost'])}-->
  128. <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}-->{lang anonymous}<!--{/if}--></cite>
  129. <!--{else}-->
  130. {lang never}
  131. <!--{/if}-->
  132. <!--{/if}-->
  133. </div>
  134. </td>
  135. </tr>
  136. <tr class="fl_row">
  137. <!--{/if}-->
  138. <!--{/loop}-->
  139. $cat['endrows']
  140. </tr>
  141. </table>
  142. </div>
  143. </div>
  144. <!--{ad/intercat/bm a_c/$cat[fid]}-->
  145. <!--{/loop}-->
  146. </div>

  147. <!--{hook/index_middle}-->

  148. <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  149. <div id="online" class="bm oll">
  150. <div class="bm_h">
  151. <!--{if $detailstatus}-->
  152. <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  153. <h3>
  154. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  155. <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  156. - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  157. <strong>$guestcount</strong> {lang index_guests}
  158. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  159. </h3>
  160. <!--{else}-->
  161. <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  162. <h3>
  163. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  164. <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  165. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  166. </h3>
  167. <!--{/if}-->
  168. </div>
  169. <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  170. <dl id="onlinelist" class="bm_c">
  171. <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  172. <!--{if $detailstatus}-->
  173. <dd class="ptm pbm">
  174. <ul class="cl">
  175. <!--{if $whosonline}-->
  176. <!--{loop $whosonline $key $online}-->
  177. <li title="{lang time}: $online[lastactivity]">
  178. <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  179. <!--{if $online['uid']}-->
  180. <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  181. <!--{else}-->
  182. $online[username]
  183. <!--{/if}-->
  184. </li>
  185. <!--{/loop}-->
  186. <!--{else}-->
  187. <li style="width: auto">{lang online_only_guests}</li>
  188. <!--{/if}-->
  189. </ul>
  190. </dd>
  191. <!--{/if}-->
  192. </dl>
  193. <!--{/if}-->
  194. </div>
  195. <!--{/if}-->

  196. <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  197. <div class="bm lk">
  198. <div id="category_lk" class="bm_c ptm">
  199. <!--{if $_G['cache']['forumlinks'][0]}-->
  200. <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  201. <!--{/if}-->
  202. <!--{if $_G['cache']['forumlinks'][1]}-->
  203. <div class="mbn cl">
  204. $_G['cache']['forumlinks'][1]
  205. </div>
  206. <!--{/if}-->
  207. <!--{if $_G['cache']['forumlinks'][2]}-->
  208. <ul class="x mbm cl">
  209. $_G['cache']['forumlinks'][2]
  210. </ul>
  211. <!--{/if}-->
  212. </div>
  213. </div>
  214. <!--{/if}-->

  215. <!--{hook/index_bottom}-->
  216. </div>

  217. <!--{if $_G['setting']['forumallowside']}-->
  218. <div id="sd" class="sd">
  219. <!--{hook/index_side_top}-->
  220. <div class="drag">
  221. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  222. </div>
  223. <!--{hook/index_side_bottom}-->
  224. </div>
  225. <!--{/if}-->
  226. </div>

  227. <div class="wp mtn">
  228. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  229. </div>
  230. <!--{subtemplate common/footer}-->
复制代码

以上为论坛首页模板源码


不知道LZ是不是也精通PHP

不过我在这方面还是新手···
回复

使用道具 举报

蛋定如初 发表于 2010-11-15 21:35:20 | 显示全部楼层
回复 gmszone 的帖子

那不是解决问题的方法吧?alt属性的值是给图片增加描述的,也就是说,当你把鼠标移动到图片上,就会出现alt属性的值。。。
回复

使用道具 举报

 楼主| gmszone 发表于 2010-11-15 21:38:19 | 显示全部楼层
好吧,我不懂,我懂HTML,我之前是用Google Chrome浏览器查看的,显示的是HTML代码

点评

HTML掌握的不错 赞一个  发表于 2010-11-15 21:41
回复

使用道具 举报

 楼主| gmszone 发表于 2010-11-15 21:41:21 | 显示全部楼层
我也相纠结这个

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?快速注册

×
回复

使用道具 举报

 楼主| gmszone 发表于 2010-11-15 21:42:23 | 显示全部楼层
本帖最后由 gmszone 于 2010-11-15 21:44 编辑

回复 蛋定如初 的帖子

呵呵,那里移到照片上试试,那个问题也出现了,PHP咱不是很懂,,,用的是ASP。。
回复

使用道具 举报

 楼主| gmszone 发表于 2010-11-15 21:48:26 | 显示全部楼层
<a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>  应该是和这个相同了"$forum[name]"论坛名字,,,的问题,和我遇到一样的问题。。
回复

使用道具 举报

 楼主| gmszone 发表于 2010-11-15 21:51:37 | 显示全部楼层
回复

使用道具 举报

 楼主| gmszone 发表于 2010-11-15 21:54:46 | 显示全部楼层
"$forum[name]"是后台定义的,要貌似很麻烦,回宿舍睡觉去了。。。
回复

使用道具 举报

 楼主| gmszone 发表于 2010-11-15 21:58:21 | 显示全部楼层
CSS代码的长度超出我的想像,要是Discuz能加入一些CSS3的特性就好了,至少看谷歌浏览器上看起来会是圆角的直角界面看起来不是很漂亮,我做的一个CSS3的简单网页,建议在谷歌浏览器等支持CSS3、HTML5上看http://moqist2.appspot.com/web/mokcy.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

快速回复 返回顶部 返回列表