Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 0 additions & 106 deletions Sources/Actions/FindMember.php

This file was deleted.

1 change: 0 additions & 1 deletion Sources/Forum.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class Forum
'dlattach' => ['', 'SMF\\Actions\\AttachmentDownload::call'],
'editpoll' => ['', 'SMF\\Poll::edit'],
'editpoll2' => ['', 'SMF\\Poll::edit2'],
'findmember' => ['', 'SMF\\Actions\\FindMember::call'],
'groups' => ['', 'SMF\\Actions\\Groups::call'],
'help' => ['', 'SMF\\Actions\\Help::call'],
'helpadmin' => ['', 'SMF\\Actions\\HelpAdmin::call'],
Expand Down
106 changes: 0 additions & 106 deletions Themes/default/Help.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,112 +40,6 @@ function template_popup()
</html>';
}

/**
* The template for the popup for finding members
*/
function template_find_members()
{
echo '<!DOCTYPE html>
<html', Utils::$context['right_to_left'] ? ' dir="rtl"' : '', '>
<head>
<title>', Lang::$txt['find_members'], '</title>
<meta charset="', Utils::$context['character_set'], '">
<meta name="robots" content="noindex">
', Theme::template_css(), '
<script src="', Theme::$current->settings['default_theme_url'], '/scripts/script.js', Utils::$context['browser_cache'], '"></script>
<script>
var membersAdded = [];
function addMember(name)
{
var theTextBox = window.opener.document.getElementById("', Utils::$context['input_box_name'], '");

if (name in membersAdded)
return;

// If we only accept one name don\'t remember what is there.
if (', Utils::escapeJavaScript(Utils::$context['delimiter']), ' != \'null\')
membersAdded[name] = true;

if (theTextBox.value.length < 1 || ', Utils::escapeJavaScript(Utils::$context['delimiter']), ' == \'null\')
theTextBox.value = ', Utils::$context['quote_results'] ? '"\"" + name + "\""' : 'name', ';
else
theTextBox.value += ', Utils::escapeJavaScript(Utils::$context['delimiter']), ' + ', Utils::$context['quote_results'] ? '"\"" + name + "\""' : 'name', ';

window.focus();
}
</script>
</head>
<body id="help_popup">
<form action="', Config::$scripturl, '?action=findmember;', Utils::$context['session_var'], '=', Utils::$context['session_id'], '" method="post" accept-charset="', Utils::$context['character_set'], '" class="padding description">
<div class="roundframe">
<div class="cat_bar">
<h3 class="catbg">', Lang::$txt['find_members'], '</h3>
</div>
<div class="padding">
<strong>', Lang::$txt['find_username'], ':</strong><br>
<input type="text" name="search" id="search" value="', isset(Utils::$context['last_search']) ? Utils::$context['last_search'] : '', '" style="margin-top: 4px; width: 96%;"><br>
<span class="smalltext"><em>', Lang::$txt['find_wildcards'], '</em></span><br>';

// Only offer to search for buddies if we have some!
if (!empty(Utils::$context['show_buddies']))
echo '
<span class="smalltext">
<label for="buddies"><input type="checkbox" name="buddies" id="buddies"', !empty(Utils::$context['buddy_search']) ? ' checked' : '', '> ', Lang::$txt['find_buddies'], '</label>
</span><br>';

echo '
<div class="padding righttext">
<input type="submit" value="', Lang::$txt['search'], '" class="button">
<input type="button" value="', Lang::$txt['find_close'], '" onclick="window.close();" class="button">
</div>
</div><!-- .padding -->
</div><!-- .roundframe -->
<br>
<div class="roundframe">
<div class="cat_bar">
<h3 class="catbg">', Lang::$txt['find_results'], '</h3>
</div>';

if (empty(Utils::$context['results']))
echo '
<p class="error">', Lang::$txt['find_no_results'], '</p>';
else
{
echo '
<ul class="padding">';

foreach (Utils::$context['results'] as $result)
echo '
<li class="windowbg">
<a href="', $result['href'], '" target="_blank" rel="noopener"> <span class="main_icons profile_sm"></span>
<a href="javascript:void(0);" onclick="addMember(this.innerHTML); return false;">', $result['name'], '</a>
</li>';

echo '
</ul>
<div class="pagesection">
<div class="pagelinks">', Utils::$context['page_index'], '</div>
</div>';
}

echo '
</div><!-- .roundframe -->
<input type="hidden" name="input" value="', Utils::$context['input_box_name'], '">
<input type="hidden" name="delim" value="', Utils::$context['delimiter'], '">
<input type="hidden" name="quote" value="', Utils::$context['quote_results'] ? '1' : '0', '">
</form>';

if (empty(Utils::$context['results']))
echo '
<script>
document.getElementById("search").focus();
</script>';

echo '
</body>
</html>';
}

/**
* The main help page
*/
Expand Down
Loading