diff options
author | Dominik Dröscher <dhn2@users.sourceforge.net> | 2007-01-03 20:10:53 +0000 |
---|---|---|
committer | Dominik Dröscher <dhn2@users.sourceforge.net> | 2007-01-03 20:10:53 +0000 |
commit | 2851b9ea80318e056486785a0a5e1d2ee33ec3de (patch) | |
tree | d7c0d1c46a181e3dfb7431dd5bedfa48f7ed1f63 | |
parent | 826a045ddd922df1b38fba1f405b6f70b0fc8b9d (diff) | |
download | forums-2851b9ea80318e056486785a0a5e1d2ee33ec3de.tar forums-2851b9ea80318e056486785a0a5e1d2ee33ec3de.tar.gz forums-2851b9ea80318e056486785a0a5e1d2ee33ec3de.tar.bz2 forums-2851b9ea80318e056486785a0a5e1d2ee33ec3de.tar.xz forums-2851b9ea80318e056486785a0a5e1d2ee33ec3de.zip |
#6712
- Posts in search results with empty subjects get a Jump to post message
git-svn-id: file:///svn/phpbb/trunk@6836 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/language/en/search.php | 2 | ||||
-rw-r--r-- | phpBB/styles/subSilver/template/search_results.html | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/phpBB/language/en/search.php b/phpBB/language/en/search.php index cd7b8c50e5..b932cd8ccb 100644 --- a/phpBB/language/en/search.php +++ b/phpBB/language/en/search.php @@ -45,6 +45,8 @@ $lang = array_merge($lang, array( 'IGNORED_TERMS' => 'ignored', 'IGNORED_TERMS_EXPLAIN' => 'The following words in your search query were ignored: <strong>%s</strong>', + 'JUMP_TO_POST' => 'Jump to post', + 'NO_KEYWORDS' => 'You must specify at least one word to search for. Each word must consist of at least %d characters and must not contain more than %d characters excluding wildcards.', 'NO_RECENT_SEARCHES' => 'No searches have been carried out recently', 'NO_SEARCH' => 'Sorry but you are not permitted to use the search system.', diff --git a/phpBB/styles/subSilver/template/search_results.html b/phpBB/styles/subSilver/template/search_results.html index ea880d3642..79853b83af 100644 --- a/phpBB/styles/subSilver/template/search_results.html +++ b/phpBB/styles/subSilver/template/search_results.html @@ -84,14 +84,23 @@ <!-- IF searchresults.S_IGNORE_POST --> <td class="gensmall" colspan="2" height="25" align="center">{searchresults.L_IGNORE_POST}</td> <!-- ELSE --> - <td colspan="2" height="25"><p class="topictitle"><a name="p{searchresults.POST_ID}" id="p{searchresults.POST_ID}"></a> <!-- IF searchresults.FORUM_TITLE -->{L_FORUM}: <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a><!-- ELSE -->{L_GLOBAL}<!-- ENDIF --> {L_TOPIC}: <a href="{searchresults.U_VIEW_TOPIC}">{searchresults.TOPIC_TITLE}</a></p></td> + <td colspan="2" height="25"><p class="topictitle"><a name="p{searchresults.POST_ID}" id="p{searchresults.POST_ID}"></a> <!-- IF searchresults.FORUM_TITLE -->{L_FORUM}: <a href="{searchresults.U_VIEW_FORUM}">{searchresults.FORUM_TITLE}</a><!-- ELSE -->{L_GLOBAL}<!-- ENDIF --> {L_TOPIC}: <a href="{searchresults.U_VIEW_TOPIC}">{searchresults.TOPIC_TITLE}</a> </p></td> </tr> <tr class="row1"> <td width="150" align="center" valign="middle"><b class="postauthor">{searchresults.POST_AUTHOR_FULL}</b></td> <td height="25"> <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr> - <td class="gensmall"><div style="float:left"> <b>{L_POST_SUBJECT}:</b> <a href="{searchresults.U_VIEW_POST}">{searchresults.POST_SUBJECT}</a></div><div style="float:right"><a href="{searchresults.U_VIEW_POST}">{searchresults.MINI_POST_IMG}</a><b>{L_POSTED}:</b> {searchresults.POST_DATE} </div></td> + <td class="gensmall"> + <div style="float:left"> + <!-- IF searchresults.POST_SUBJECT neq "" --> + <b>{L_POST_SUBJECT}:</b> <a href="{searchresults.U_VIEW_POST}">{searchresults.POST_SUBJECT}</a> + <!-- ELSE --> + [ <a href="{searchresults.U_VIEW_POST}">{L_JUMP_TO_POST}</a> ] + <!-- ENDIF --> + </div> + <div style="float:right"><b>{L_POSTED}:</b> {searchresults.POST_DATE} </div> + </td> </tr> </table> </td> |