本坛安装的vBulletin风格和插件

Discussion in 'Suggestions and Feedback' started by hylt, Feb 5, 2007.

  1. Main CSS的修改:

    取消下划线
    Body
    在三项Links下面的Text Decoration填上:none

    导航条字体颜色从黑色改为蓝色
    Navbar Text
    Font Color填上:#22229C

    贴子中的用户名字号
    Additional CSS Definitions
    .bigusername { font-size: 14pt; }
    其中14改为10


    论坛首页各项列宽调整, 删除底部状态图标
    Edit Templates - FORUMHOME
    找到
    <td class="thead" width="175">$vbphrase[last_post]</td>
    改为
    <td class="thead">$vbphrase[last_post]</td>

    找到
    Code:
    <!-- icons and login code -->
    <table cellpadding="0" cellspacing="2" border="0" width="100%">
    <tr valign="bottom">
    	<td>
    		<table cellpadding="2" cellspacing="0" border="0">
    		<tr>
    			<td><img src="$stylevar[imgdir_statusicon]/forum_new.gif" alt="$vbphrase[contains_new_posts]" border="0" /></td>
    			<td class="smallfont">&nbsp; $vbphrase[forum_contains_new_posts]</td>
    		</tr>
    		<tr>
    			<td><img src="$stylevar[imgdir_statusicon]/forum_old.gif" alt="$vbphrase[contains_no_new_posts]" border="0" /></td>
    			<td class="smallfont">&nbsp; $vbphrase[forum_contains_no_new_posts]</td>
    		</tr>
    		<tr>
    			<td><img src="$stylevar[imgdir_statusicon]/forum_old_lock.gif" alt="$vbphrase[a_closed_forum]" border="0" /></td>
    			<td class="smallfont">&nbsp; $vbphrase[forum_is_closed_for_posting]</td>
    		</tr>
    		</table>
    	</td>
    	<if condition="!$show['guest']">
    		<!-- member logout -->
    		<td align="$stylevar[right]"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]">$vbphrase[log_out_x]</phrase></a></td>
    		<!-- end member logout -->
    	</if>
    </tr>
    </table>
    <!-- / icons and login code -->
    删除

    论坛首页最后发表列的贴子标题去粗, 去除主题发起人和最后跟贴时间显示
    Edit Templates - forumhome_lastpostby
    找到
    <strong>$lastpostinfo[trimthread]</strong>
    换成
    $lastpostinfo[trimthread]

    找到
    Code:
    	<div<if condition="is_browser('ie', 6)"> style="float:$stylevar[left]"</if>>
    		<phrase 1="member.php?$session[sessionurl]find=lastposter&amp;f=$lastpostinfo[forumid]" 2="$lastpostinfo[lastposter]">$vbphrase[by_x]</phrase>
    	</div>
    	<div align="$stylevar[right]">
    		$lastpostinfo[lastpostdate] <if condition="!$show['detailedtime']"><span class="time">$lastpostinfo[lastposttime]</span></if>
    		<a href="showthread.php?$session[sessionurl]p=$lastpostinfo[lastpostid]#post$lastpostinfo[lastpostid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
    	</div>
    删除


    用户列表中声望图标改为数值
    Edit Templates - memberlist_resultsbit
    找到
    $userinfo[reputationdisplay]
    改为
    $userinfo[reputation]

    查看新贴改为7日新贴
    navbar
    找到两处
    do=getnew
    均改为
    do=do=getdaily&days=7

    FAQ点击进入后即为展开状态(原默认为折叠)
    navbar
    找到
    faq.ph
    换为
    faq.php?faq=vb_faq

    增加贴子正文的行间距, 并缩小左侧栏的宽度
    Edit Templates - postbit_legacy
    找到
    <div id="post_message_$post[postid]">
    换为
    <div id="post_message_$post[postid]" style="line-height:162%">
    其中162%可按自己喜好修改。
    找到
    width="175"
    换为
    width="140"

    取消回复贴标题加黑
    Edit Templates - postbit_legacy
    找到
    <strong>$post[title]</strong>
    改为
    $post[title]

    贴子中作者信息里的声望直接以数字显示(默认是点图)
    Edit Templates - postbit_legacy
    找到
    $post[reputationdisplay]
    改为
    <br />Reputation: $post[reputation]

    去除版块首页的主题发起人和Rating图标
    Edit Templates - threadbit
    找到
    Code:
    		<div class="smallfont">
    			<if condition="$show['threadratings'] AND $show['threadrating']"><span style="float:$stylevar[right]"><img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" border="0" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span></if>
    			<if condition="$show['guestuser']">
    				$thread[postusername]
    			<else />
    				<span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]', '_self')">$thread[postusername]</span>
    			</if>
    		</div>
    删除.


    成员列表默认按加入日期排序
    原版默认排序是按用户名正序,现改成按加入时间逆序。
    打开memberlist.php
    找到
    if ($sortfield == '')
    {
    $sortfield = 'username';
    }
    if ($sortorder == '')
    {
    $sortorder = 'asc';
    }
    将其中的username改为joindate,将asc改为desc。

    在线成员列表默认按最后活动时间,并逆序
    打开online.php
    找到:
    if ($sortorder != 'desc')
    {
    $sortorder = 'asc';
    $oppositesort = 'desc';
    }
    else
    { // $sortorder = 'asc'
    $sortorder = 'desc';
    $oppositesort = 'asc';
    }
    switch ($sortfield)
    {
    case 'location':
    $sqlsort = 'session.location';
    break;
    case 'time':
    $sqlsort = 'session.lastactivity';
    break;
    case 'host':
    $sqlsort = 'session.host';
    break;
    default:
    $sqlsort = 'user.username';
    $sortfield = 'username';
    }
    改为
    if ($sortorder != 'asc')
    {
    $sortorder = 'desc';
    $oppositesort = 'asc';
    }
    else
    { // $sortorder = 'desc'
    $sortorder = 'asc';
    $oppositesort = 'desc';
    }
    switch ($sortfield)
    {
    case 'location':
    $sqlsort = 'session.location';
    break;
    case 'username':
    $sqlsort = 'user.username';
    break;
    case 'host':
    $sqlsort = 'session.host';
    break;
    default:
    $sqlsort = 'session.lastactivity';
    $sortfield = 'time';
    }


    在用ImpEx转换之前,用EmEditor的Replace in Files功能将ImpEx下所有文件中的ISO-8859-1全部改为GB2312。

    从phpBB转换后,更新所有成员的时区选项
    UPDATE vb_user SET timezoneoffset = 8

    更新所有会员的年龄生日显示选项
    UPDATE vb_user SET showbirthday = 1

    0 - Hide Age and Date of Birth
    1 - Display Age
    2 - Display Age and Date of Birth
     
  2. 取消回复贴子的标题
    分别删除editpost、newreply两个模板中的以下代码:
    Code:
    		<!-- subject field -->
    		<table cellpadding="0" cellspacing="0" border="0" style="margin-bottom:$stylevar[formspacer]px">
    		<tr>
    			<td class="smallfont" colspan="3">$vbphrase[title]:</td>
    		</tr>
    		<tr>
    			<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
    			<td>&nbsp;&nbsp;</td>
    			<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
    		</tr>
    		</table>
    		<!-- / subject field -->
    
    
    删除postbit_legacy模板中的以下代码:
    Code:
    	
    		<if condition="$show['messageicon'] OR $post['title']">
    			<!-- icon and title -->
    			<div class="smallfont">
    				<if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if>
    				<if condition="$post['title']">$post[title]</if>
    			</div>
    			<hr size="1" style="color:$stylevar[tborder_bgcolor]" />
    			<!-- / icon and title -->
    		</if>
    
     
  3. 取消Logo
    Edit Templates - header
    Code:
    <!-- logo -->
    <a name="top"></a>
    <table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
    <tr>
    	<td align="$stylevar[left]"><a href="$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>
    	<td align="$stylevar[right]">
    		&nbsp;
    	</td>
    </tr>
    </table>
    <!-- /logo -->
    
    
    改为
    <br />