Announcement

Collapse
No announcement yet.

Columns in Search

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Columns in Search

    I modified my forum template after Jake Bounce instructions that can be found here, in order to have a separate thread starter column: http://www.vbulletin.com/forum/showt...thread+starter

    The problem I have is that on my forum, after making a searh, the columns are not corresponding. I mean, for example, "last post" column displays thread starter names. Here is a link to see on my forum how it is: http://www.onlinesport.ro/forum/sear...searchid=23422

    Can you please tell me how to fix it?
    Last edited by geovadim; Fri 28 May '04, 1:27am.

  • #2
    Youll also need to edit the search_results template to fix this

    Comment


    • #3
      Can you please tell me exactly how? I am "zero" in php and vbulletin.

      Comment


      • #4
        This is just html and tables


        However try this:in search_results
        find

        <td class="thead" width="25%">$vbphrase[forum]</td>
        </tr>

        Replace it with

        <td class="thead" width="25%">$vbphrase[forum]</td>
        <td class="thead"> Thread Starter </td>
        </tr>

        Comment


        • #5
          Look the result: http://www.onlinesport.ro/forum/sear...searchid=23422

          still the columns are not corresponding.

          Comment


          • #6
            HTML Code:
            $stylevar[htmldoctype]
            <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
            <head>
            <title>$vboptions[bbtitle] - $vbphrase[search_results]</title>
            $headinclude
            </head>
            <body>
            $header
            $navbar
            
            <if condition="$pagenav">
            <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-bottom:3px">
            <tr valign="bottom">
            	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
            </tr>
            </table>
            </if>
            
            <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
            <tr>
            	<td class="tcat" colspan="20" style="font-weight:normal">
            	
            		<span class="smallfont" style="float:$stylevar[right]">
            			<phrase 1="$first" 2="$last" 3="$numitems">$vbphrase[showing_results_x_to_y_of_z]</phrase>
            			<br />
            			<phrase 1="$searchtime">$vbphrase[search_took_x_seconds]</phrase>
            		</span>
            		
            		<a href="search.php?$session[sessionurl]$searchquery"><strong>$vbphrase[search]:</strong></a>
            		<span class="smallfont">
            		<if condition="$action == 'process'">
            			<if condition="$displayWords">$vbphrase[key_words]: $displayWords</if>
            			<if condition="$displayWords AND $displayUsers">; </if>
            			<if condition="$displayUsers">
            				<if condition="$starteronly">$vbphrase[threads_started_by]<else />$vbphrase[posts_made_by]</if>: $displayUsers
            			</if>
            		<else />
            			<if condition="$action == 'getnew'">$vbphrase[new_posts_nav]<else />$vbphrase[posts_from_last_day]</if>
            		</if>
            		<if condition="$displayForums">
            			; $vbphrase[forum]: $displayForums <if condition="$childforums">$vbphrase[and_child_forums]</if>
            		</if>
            		</span>
            	</td>
            </tr>
            
            <if condition="$displayCommon">
            <tr>
            	<td class="thead" style="font-weight: normal" colspan="20">$vbphrase[words_very_common]: $displayCommon</td>
            </tr>
            </if>
            
            <if condition="$search[showposts]">
            
            </table>
            $searchbits
            <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
            
            <else />
            
            <tr>
            	<td class="thead" colspan="2">&nbsp;</td>
            	<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>
            <td class="thead">Test</td>
            </tr>
            $searchbits
            
            </if>
            
            <tr>
            	<td class="tfoot" colspan="20" align="$stylevar[right]">
            		<span class="smallfont"><phrase 1="$first" 2="$last" 3="$numitems">$vbphrase[showing_results_x_to_y_of_z]</phrase></span>
            	</td>
            </tr>
            </table>
            
            <if condition="$pagenav">
            <table cellpadding="0" cellspacing="0" border="0" width="100%" style="margin-top:3px">
            <tr valign="top">
            	<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
            </tr>
            </table>
            </if>
            
            <br />
            
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
            	<td width="100%">&nbsp;</td>
            	<td>$forumjump</td>
            </tr>
            </table>
            
            $footer
            
            </body>
            </html>
            That should work, replace your search_results template with that

            Comment


            • #7
              Nope, still not working: http://www.onlinesport.ro/forum/sear...searchid=23422

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X