Hello There, Guest! Login Register
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Metrostyle report
#10
(19th Jan, 08:17 pm)Legitti Wrote:  Also register page:  https://gyazo.com/408448371befac19fd583e1790b57ee4

Go to the member_register_referrer template and replace it with the following:

Code:
<tr>
<td class="trow1"><label>{$lang->referrer}</label></td>
<!--<td class="trow1"><span class="smalltext"><label for="referrer">{$lang->referrer_desc}</label></span><br /><span class="smalltext"><label for="referrer">{$lang->referrer_desc}</label></span>-->

<td class="trow1">
<input type="text" class="textbox" name="referrername" id="referrer" value="{$referrername}" />
</td>



<script type="text/javascript" src="{$mybb->asset_url}/jscripts/select2/select2.min.js"></script>
<script type="text/javascript">
<!--
if(use_xmlhttprequest == "1")
{
MyBB.select2();
$("#referrer").select2({
       containerCssClass: "textarea",

placeholder: "{$lang->search_user}",
minimumInputLength: 3,
maximumSelectionSize: 3,
multiple: false,
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 value = $(element).val();
if (value !== "") {
callback({
id: value,
text: value
});
}
},
});
}
// -->
</script>





</td>
</tr>


Messages In This Thread
Metrostyle report - Legitti - 15th Jan, 04:04 am
RE: Metrostyle report - Legitti - 15th Jan, 06:30 am
RE: Metrostyle report - Tan - 15th Jan, 10:42 pm
RE: Metrostyle report - Legitti - 17th Jan, 05:03 pm
RE: Metrostyle report - Legitti - 17th Jan, 05:18 pm
RE: Metrostyle report - Tan - 19th Jan, 03:23 am
RE: Metrostyle report - Legitti - 19th Jan, 03:57 am
RE: Metrostyle report - Legitti - 19th Jan, 07:57 am
RE: Metrostyle report - Legitti - 19th Jan, 08:17 pm
RE: Metrostyle member register referrer - Tan - 21st Jan, 01:06 am
RE: Metrostyle report - Legitti - 21st Jan, 01:15 am
RE: Metrostyle report - Tan - 22nd Jan, 03:42 am
RE: Metrostyle report - Tan - 21st Jan, 02:38 am
RE: Metrostyle report - Legitti - 22nd Jan, 03:54 am
RE: Metrostyle report - Tan - 22nd Jan, 04:01 am
RE: Metrostyle report - Tan - 22nd Jan, 04:26 am
RE: Metrostyle report - Legitti - 24th Jan, 10:26 pm
RE: Metrostyle report - Legitti - 24th Jan, 10:36 pm
RE: Metrostyle report - Legitti - 25th Jan, 12:54 am
RE: Metrostyle report - Legitti - 26th Jan, 06:00 am
RE: Metrostyle report - Tan - 26th Jan, 06:16 am
RE: Metrostyle report - Legitti - 26th Jan, 08:13 am
RE: Metrostyle report - Legitti - 7th Feb, 09:12 pm
RE: Metrostyle report - Tan - 7th Feb, 10:20 pm
RE: Metrostyle report - Legitti - 7th Feb, 11:31 pm
RE: Metrostyle report - Tan - 7th Feb, 11:39 pm
RE: Metrostyle report - Legitti - 7th Feb, 11:41 pm
RE: Metrostyle report - Tan - 7th Feb, 11:46 pm
RE: Metrostyle report - Legitti - 7th Feb, 11:48 pm
RE: Metrostyle report - Tan - 7th Feb, 11:52 pm
RE: Metrostyle report - Legitti - 7th Feb, 11:53 pm
RE: Metrostyle report - Legitti - 8th Feb, 02:42 pm
RE: Metrostyle report - Tan - 8th Feb, 02:52 pm
RE: Metrostyle report - Legitti - 8th Feb, 02:54 pm
RE: Metrostyle report - Legitti - 9th Feb, 05:50 pm
RE: Metrostyle report - Tan - 10th Feb, 02:27 pm
RE: Metrostyle report - Tan - 12th Feb, 12:49 am



Users browsing this thread: 16 Guest(s)