PDA

View Full Version : Rating divider


aceofspades
02-19-2007, 08:28 AM
Im trying to put a divider line between the left side of the rating column and the forum description, as default there isnt one, can anyone tell me what code i need to use to insert one?

James

aceofspades
02-19-2007, 08:31 AM
This should explain it better than i did above :P

CyberAlien
02-19-2007, 09:23 AM
in forumdisplay find this: <td class="thead" width="150" align="center" nowrap="nowrap"><span style="white-space:nowrap">$vbphrase[last_post]</span></td>
and before it add this: <td class="thead" align="center" width="100">$vbphrase[rating]</td>
then find this: <td class="thead" width="100%">
<if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&amp;order=desc&amp;sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span></if>
<a href="$sorturl&amp;order=asc&amp;sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
and replace with this: <td class="thead" width="100%">
<a href="$sorturl&amp;order=asc&amp;sort=title" rel="nofollow">$vbphrase[thread]</a> $sortarrow[title] /
<a href="$sorturl&amp;order=asc&amp;sort=postusername" rel="nofollow">$vbphrase[thread_starter]</a> $sortarrow[postusername]
</td>
<td class="thead" width="100"><if condition="$show['threadratings']"><span style="float:$stylevar[right]"><a href="$sorturl&amp;order=desc&amp;sort=voteavg" rel="nofollow">$vbphrase[rating]</a> $sortarrow[voteavg]</span><else />$vbphrase[rating]</if></td>


then in threadbit template find this: <if condition="$show['threadmoved']">
<td class="alt2" align="center">-</td>
<else />and add before it: <td width="100" class="alt1" align="right"><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><else />&nbsp;</if></td>
then find this: <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>
and replace with this: <div class="smallfont">
<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>

I didn't test it, so maybe I skipped something, but this should give you idea of what to change.

aceofspades
02-19-2007, 11:00 AM
Super, worked, thank you :D