Implemented Bart's 'egosearch', and the search for unanswered posts.

Created links that are accessable from anywhere


git-svn-id: file:///svn/phpbb/trunk@1310 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-11-14 06:37:05 +00:00
parent f697f04514
commit f448cdf609
4 changed files with 22 additions and 2 deletions

View file

@ -231,6 +231,7 @@ $template->assign_vars(array(
"L_BY" => $lang['by'], "L_BY" => $lang['by'],
"L_LOGIN_LOGOUT" => $l_login_logout, "L_LOGIN_LOGOUT" => $l_login_logout,
"L_LAST_VISIT" => $lang['You_last_visit'], "L_LAST_VISIT" => $lang['You_last_visit'],
"L_SEARCH_UNANSWERED" => $lang['Search_unanswered'],
"U_INDEX" => append_sid("index.".$phpEx), "U_INDEX" => append_sid("index.".$phpEx),
"U_REGISTER" => append_sid("profile.".$phpEx."?mode=register"), "U_REGISTER" => append_sid("profile.".$phpEx."?mode=register"),
@ -243,6 +244,8 @@ $template->assign_vars(array(
"U_LOGIN_LOGOUT" => append_sid($u_login_logout), "U_LOGIN_LOGOUT" => append_sid($u_login_logout),
"U_MEMBERSLIST" => append_sid("memberlist.".$phpEx), "U_MEMBERSLIST" => append_sid("memberlist.".$phpEx),
"U_GROUP_CP" => append_sid("groupcp.".$phpEx), "U_GROUP_CP" => append_sid("groupcp.".$phpEx),
"U_SEARCH_UNANSWERED" => append_sid("search.".$phpEx."?search_id=unanswered"),
"S_CONTENT_DIRECTION" => $lang['DIRECTION'], "S_CONTENT_DIRECTION" => $lang['DIRECTION'],
"S_CONTENT_ENCODING" => $lang['ENCODING'], "S_CONTENT_ENCODING" => $lang['ENCODING'],
@ -292,6 +295,7 @@ $template->assign_vars(array(
"T_SPAN_CLASS3" => $theme['span_class3']) "T_SPAN_CLASS3" => $theme['span_class3'])
); );
// //
// Login box? // Login box?
// //
@ -302,6 +306,15 @@ if( !$userdata['session_logged_in'] )
else else
{ {
$template->assign_block_vars("switch_user_logged_in", array()); $template->assign_block_vars("switch_user_logged_in", array());
//
// Bart's quick ego search
//
$template->assign_block_vars("egosearch", array(
"L_SEARCH_SELF" => $lang['Search_your_posts'],
"U_SEARCH_SELF" => append_sid("search.".$phpEx."?search_id=egosearch"))
);
} }
header ("Cache-Control: no-store, no-cache, must-revalidate"); header ("Cache-Control: no-store, no-cache, must-revalidate");

View file

@ -132,6 +132,8 @@ $lang['Online_users'] = "In total there are %d users online :: %d Registered, %d
$lang['Online_user'] = "In total there is %d user online :: %d Registered, %d Hidden and %d Guests"; $lang['Online_user'] = "In total there is %d user online :: %d Registered, %d Hidden and %d Guests";
$lang['You_last_visit'] = "You last visited on"; $lang['You_last_visit'] = "You last visited on";
$lang['Search_your_posts'] = "View your posts";
$lang['Search_unanswered'] = "View unanswered posts";
$lang['Add'] = "Add"; $lang['Add'] = "Add";
$lang['Register'] = "Register"; $lang['Register'] = "Register";
$lang['Profile'] = "Profile"; $lang['Profile'] = "Profile";

View file

@ -2,7 +2,12 @@
<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center"> <table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
<tr> <tr>
<td align="left" valign="bottom"><span class="nav"><a href="{U_INDEX}" class="nav">{SITENAME}&nbsp;{L_INDEX}</a></span></td> <td align="left" valign="bottom"><span class="nav"><a href="{U_INDEX}" class="nav">{SITENAME}&nbsp;{L_INDEX}</a></span></td>
<td align="right" class="gensmall"><a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br />{L_LAST_VISIT} {LAST_VISIT_DATE}</td> <td align="right" class="gensmall">
<!-- BEGIN egosearch -->
<a href="{egosearch.U_SEARCH_SELF}" class="gensmall">{egosearch.L_SEARCH_SELF}</a><br />
<!-- END egosearch -->
<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a><br />
<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br />{L_LAST_VISIT} {LAST_VISIT_DATE}</td>
</tr> </tr>
</table> </table>

View file

@ -1,4 +1,4 @@
<form action="{S_SEARCH_ACTION}" method="post"> <form action="{S_SEARCH_ACTION}" method="POST">
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr> <tr>
<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{SITENAME}&nbsp;{L_INDEX}</a></span></td> <td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{SITENAME}&nbsp;{L_INDEX}</a></span></td>