vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   relocating columns in search results (https://vborg.vbsupport.ru/showthread.php?t=181328)

spankaveli 06-03-2008 12:00 AM

relocating columns in search results
 
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

Code:

$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">&nbsp;</td>
        <else />
                <td class="thead">&nbsp;</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:

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


All times are GMT. The time now is 08:31 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01181 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete