PDA

View Full Version : Search-ul pe forum



fia
26th May 2004, 07:35
Incep prin a spune ca eu folosesc pe acest forum in special search-ul. Chiar daca e mascat sub forma butonului "New posts" sau thread-uri pornite de un anume user, etc.

Am o mica rugaminte legata de Search-ul de pe forum. Nu stiu daca il foloseste multa lume, desi ar trebuie, pentru ca forumul e deja stufos... si e cam greu sa iei subforum cu subforum la rand.
In acest moment cand se da search apar urmatoarele informatii:

Thread / Thread Starter - Dar in care nu apare decat numele Threadului su si starterul.
Last Post - aici apare thread starterul, desi ar trebui la coloanade mai sus.
Si asa mai departe Replies Views Forum.
Deci din cate vad eu s-au decalat toate coloanele, din cauza ca thread starter a iesit din "celula" lui
(probabil e un <td> care nu e inchis sau ceva de genul asta in codul HTML/PHP).

Daca se poate remedia, mai ales ca nu e cine stie ce, asa aprecia foarte mult.

fia
28th May 2004, 09:53
Sa intzeleg ca nu se poate face nimic, sau nu e timp, sau nu se vrea?

Vadim
28th May 2004, 11:30
A fost schimbat putin layoutul forumului, in sensul ca a fost adaugata coloana "thread starter" care inainte nu aparea. Numele celui care incepea threadul era initial exact sub thread, ceea ce mi s-a parut cam aglomerat. Decalajul actual la searh apare din cauza ca nu a fost modificat templateul de searh. Daca ma ajuta cei de la vbulletin, se va repara gresala.

fia
13th July 2004, 06:28
Cine se stie nu se sesizeaza? Template-ul de la search... E o luna de cand am zis si eu... Chiar nu e timp... Vreti sa ma ofer eu? Ce naiba sunt 2 de <td>...

Vadim
13th July 2004, 11:58
Ar fi o idee, eu nu ma pricep.

fia
14th July 2004, 06:19
Pai din cate stiu eu se pot face modificari de la Admin control panel, la vBulletin, la Style & Templates... Edit Templates, Search Templates, la "search_results"... Customize... si imi trimiti textul de acolo, pe care il modific.. si apoi trebuie pus la loc. :D

fia
14th July 2004, 06:39
Asta am verificat in vBulletin 3.0.1 care e versiune Demo de pe www.vBulletin.com. Presupun ca nu s-a schimbat mare lucru pana la 3.0.3.

Vadim
14th July 2004, 12:26
$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>

fia
14th July 2004, 12:50
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions - $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> [b]
<td class="thead" colspan="2">&nbsp;</td>
<td class="thead" width="75%">$vbphrase[thread] </td>
<td class="thead" > $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>

</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>

fia
14th July 2004, 12:54
Am modificat doar in portiunea pe care am pus-o cu bold.
deci in principiu trebuie inlocuita sectiunea:


<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>


cu


<td class="thead" colspan="2">&nbsp;</td>
<td class="thead" width="75%">$vbphrase[thread] </td>
<td class="thead" > $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>


E in codul pe care mi l-ai dat o linie:
<td class="thead">Test</td>
Asta presupun ca ai adaugat-o acum...

Vadim
14th July 2004, 13:01
Gata, merge. 10q.