View Full Version : relocating columns in search results
spankaveli
06-03-2008, 12:00 AM
obviously, as default, search results display as Thread / Thread Starter Last Post Replies Views Forum
I'd like to move the "Forum" column to the left of the Thread/Thread Starter Column.
Can anyone shed some light as to how this could be done? I've tried looking in the search_results and search_results_postbit templates but nothing is jumping out at me.
nerbert
06-03-2008, 01:39 AM
Just above the midpoint in search results you will see
$searchbits
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<else />
$announcebits
<tr>
<if condition="$show['threadicons']">
<td class="thead" colspan="2"> </td>
<else />
<td class="thead"> </td>
</if>
<td class="thead" width="75%">$vbphrase[thread] / $vbphrase[thread_starter]</td>
<td class="thead" width="150" align="center" nowrap="nowrap">$vbphrase[last_post]</td>
<td class="thead" align="center" nowrap="nowrap">$vbphrase[replies]</td>
<td class="thead" align="center" nowrap="nowrap">$vbphrase[views]</td>
<td class="thead" width="25%">$vbphrase[forum]</td>
<if condition="$show['inlinemod']">
<if condition="$show['popups']">
<td class="vbmenu_control" id="imod" align="center" title="$vbphrase[moderation]"> <script type="text/javascript"> vbmenu_register('imod'); </script> </td>
<else />
<td class="thead" align="center">
<input type="checkbox" name="allbox" id="checkall_all" title="$vbphrase[check_uncheck_all]" onclick="inlineMod.check_all()" />
</td>
</if>
</if>
The bold is the "forum" in the table head
In search results postbit just below center find this code:
<tr>
<if condition="$show['moderated']">
<td class="alt2">
<else />
<td class="alt1">
</if>
<div class="smallfont" style="float:$stylevar[right]">
$vbphrase[replies]: <strong>$post[replycount]</strong>
</div>
<div>
<img class="inlineimg" src="$stylevar[imgdir_statusicon]/thread$post[statusicon].gif" alt="" border="0" />
$post[typeprefix] <a href="showthread.php?$session[sessionurl]t=$post[threadid]$post[highlight]"><strong>$post[threadtitle]</strong></a>
</div>
<div class="smallfont" style="float:$stylevar[right]">
$vbphrase[views]: <strong>$post[views]</strong>
</div>
<div class="smallfont">
$vbphrase[posted_by]
<if condition="$post[userid]"><a href="member.php?$session[sessionurl]u=$post[userid]">$post[username]</a><else />$post[username]</if>
</div>
<div class="alt2" style="margin:$stylevar[cellpadding]px 0px $stylevar[cellpadding]px 0px; padding:$stylevar[cellpadding]px; border:2px groove">
<div class="smallfont"><em>
<if condition="$post[posticon]"><img class="inlineimg" src="$post[posticonpath]" alt="$post[posticontitle]" border="0" /></if>
<a href="showthread.php?$session[sessionurl]p=$post[postid]$post[highlight]#post$post[postid]">$post[posttitle]</a><br />
<br />
$post[pagetext]
</em></div>
</div>
<if condition="$show['moderated']">
I think the bold part is for the forum name.
spankaveli
06-04-2008, 02:21 AM
thanks but that doesnt seem to do it :(
bump
spankaveli
06-08-2008, 02:37 AM
up.
spankaveli
06-15-2008, 04:07 AM
anyone?
spankaveli
07-14-2008, 09:46 AM
bump
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.