08.02.2020, 21:47
Hier mein Standart-Theme:
usercp_editlist_sent_request:
usercp_editlists_received_requests:
Das hier ist die usercp_editlists:
usercp_editlist_sent_request:
Code:
<tr>
Code:
<td class="{$bgcolor}">
Code:
{$request['username']}
Code:
</td>
Code:
<td class="{$bgcolor}">
Code:
{$request['date']}
Code:
</td>
Code:
<td class="{$bgcolor}">
Code:
<a href="{$mybb->settings['bburl']}/usercp.php?action=cancelrequest&id={$request['id']}&my_post_key={$mybb->post_code}">{$lang->cancel}</a>
Code:
</td>
Code:
</tr>
usercp_editlists_received_requests:
Code:
<tr>
Code:
<td class="{$bgcolor}">
Code:
{$request['username']}
Code:
</td>
Code:
<td class="{$bgcolor}">
Code:
{$request['date']}
Code:
</td>
Code:
<td class="{$bgcolor}">
Code:
<a href="{$mybb->settings['bburl']}/usercp.php?action=acceptrequest&id={$request['id']}&my_post_key={$mybb->post_code}">{$lang->accept}</a> - <a href="{$mybb->settings['bburl']}/usercp.php?action=declinerequest&id={$request['id']}&my_post_key={$mybb->post_code}">{$lang->decline}</a>
Code:
</td>
Code:
</tr>
Das hier ist die usercp_editlists:
Code:
<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->edit_lists}</title>
{$headerinclude}
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/usercp.js?ver=1808"></script>
<script type="text/javascript">
lang.remove_buddy = '{$lang->confirm_remove_buddy}';
lang.remove_ignored = '{$lang->confirm_remove_ignored}';
lang.adding_buddy = '{$lang->adding_buddy}';
lang.adding_ignored = '{$lang->adding_ignored}';
lang.buddylist_error = '{$lang->buddylist_error}';
</script>
<link rel="stylesheet" href="{$mybb->asset_url}/jscripts/select2/select2.css?ver=1807">
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js?ver=1806"></script>
</head>
<body>
{$header}
<table width="100%" border="0" align="center">
<tr>
{$usercpnav}
<td valign="top">
<form action="usercp.php" method="post" id="buddy" onsubmit="return UserCP.addBuddy('buddy');">
<input type="hidden" name="action" value="do_editlists" />
<input type="hidden" name="manage" value="buddy" />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center"><strong>{$lang->edit_buddy_list}</strong></td>
</tr>
<tr>
<td class="trow1">
<fieldset>
<legend><strong>{$lang->add_buddies}</strong></legend>
<span class="smalltext">{$lang->add_buddies_desc}</span><br />
<div class="float_left" style="width: 120px; text-align: right;"><strong>{$lang->username_or_usernames}</strong></div>
<div style="margin-left: 130px;"><input type="text" name="add_username" id="buddy_add_username" style="width: 60%;" class="textbox" /> <input type="submit" value="{$lang->add_to_buddies}" id="buddy_submit" class="button" /></div>
<script type="text/javascript">
<!--
if(use_xmlhttprequest == "1")
{
MyBB.select2();
$("#buddy_add_username").select2({
placeholder: "{$lang->search_user}",
minimumInputLength: 2,
maximumSelectionSize: 5,
multiple: true,
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
url: "xmlhttp.php?action=get_users",
dataType: 'json',
data: function (term, page) {
return {
query: term, // search term
};
},
results: function (data, page) { // parse the results into the format expected by Select2.
// since we are using custom formatting functions we do not need to alter remote JSON data
return {results: data};
}
},
initSelection: function(element, callback) {
var query = $(element).val();
if (query !== "") {
var newqueries = [];
exp_queries = query.split(",");
$.each(exp_queries, function(index, value ){
if(value.replace(/\s/g, '') != "")
{
var newquery = {
id: value.replace(/,\s?/g, ", "),
text: value.replace(/,\s?/g, ", ")
};
newqueries.push(newquery);
}
});
callback(newqueries);
}
},
});
}
// -->
</script>
</fieldset>
<fieldset id="buddy_container">
<legend><strong>{$lang->current_buddies}</strong></legend>
<ul id="buddy_list" style="list-style: none;">
{$buddy_list}
</ul>
</fieldset>
</td>
</tr>
</table>
</form>
<br />
<form action="usercp.php" method="post" id="ignored" onsubmit="return UserCP.addBuddy('ignored');">
<input type="hidden" name="action" value="do_editlists" />
<input type="hidden" name="manage" value="ignored" />
<input type="hidden" name="my_post_key" value="{$mybb->post_code}" />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" align="center"><strong>{$lang->edit_ignore_list}</strong></td>
</tr>
<tr>
<td class="trow1">
<fieldset>
<legend><strong>{$lang->add_ignored_users}</strong></legend>
<span class="smalltext">{$lang->add_ignored_users_desc}</span><br />
<div class="float_left" style="width: 120px; text-align: right;"><strong>{$lang->username_or_usernames}</strong></div>
<div style="margin-left: 130px;"><input type="text" name="add_username" id="ignored_add_username" style="width: 60%;" class="textbox" /> <input type="submit" value="{$lang->ignore_users}" id="ignored_submit" class="button" /></div>
<script type="text/javascript">
<!--
if(use_xmlhttprequest == "1")
{
MyBB.select2();
$("#ignored_add_username").select2({
placeholder: "{$lang->search_user}",
minimumInputLength: 2,
maximumSelectionSize: 5,
multiple: true,
ajax: { // instead of writing the function to execute the request we use Select2's convenient helper
url: "xmlhttp.php?action=get_users",
dataType: 'json',
data: function (term, page) {
return {
query: term, // search term
};
},
results: function (data, page) { // parse the results into the format expected by Select2.
// since we are using custom formatting functions we do not need to alter remote JSON data
return {results: data};
}
},
initSelection: function(element, callback) {
var query = $(element).val();
if (query !== "") {
var newqueries = [];
exp_queries = query.split(",");
$.each(exp_queries, function(index, value ){
if(value.replace(/\s/g, '') != "")
{
var newquery = {
id: value.replace(/,\s?/g, ", "),
text: value.replace(/,\s?/g, ", ")
};
newqueries.push(newquery);
}
});
callback(newqueries);
}
},
});
}
// -->
</script>
</fieldset>
<fieldset id="ignored_container">
<legend><strong>{$lang->current_ignored_users}</strong></legend>
<ul id="ignore_list" style="list-style: none;">
{$ignore_list}
</ul>
</fieldset>
</td>
</tr>
</table>
</form>
<br />
<table border="0" style="width: 100%">
<tr>
<td style="width: 50%; vertical-align: top" id="receivedrequests">
{$received_requests}
</td>
<td style="width: 50%; vertical-align: top" id="sentrequests">
{$sent_requests}
</td>
</tr>
</table>
</td>
</tr>
</table>
{$footer}
</body>
</html>