cotonti.com : country in register https://www.cotonti.com Последние сообщения в теме Cotonti en Tue, 03 Feb 2026 02:56:42 -0000 code_87 # Kilandor : Well it used to do that by default, but apparently someone changed it.

open geoip.register.php

Replace....
$t->assign(array("USERS_REGISTER_COUNTRY" => sed_selectbox_countries($usr["geoip_country"], 'rcountry')."<img src=https://www.cotonti.com/\"images/flags/f-".$usr["geoip_country"].".gif\" alt=\"\" /><input type=\"hidden\" name=\"rcountry\" value=\"".$usr["geoip_country"]."\" />"));

With...
$t->assign(array("USERS_REGISTER_COUNTRY" => "<img src=https://www.cotonti.com/\"system/img/flags/f-".$usr["geoip_country"].".gif\" alt=\"\" /><input type=\"hidden\" name=\"rcountry\" value=\"".$usr["geoip_country"]."\" />"));


i try to change the code. but its not working sir]]>
пн, 25 мая 2009 21:33:14 -0000
Kilandor
open geoip.register.php

Replace....
$t->assign(array("USERS_REGISTER_COUNTRY" => sed_selectbox_countries($usr["geoip_country"], 'rcountry')."<img src=https://www.cotonti.com/\"images/flags/f-".$usr["geoip_country"].".gif\" alt=\"\" /><input type=\"hidden\" name=\"rcountry\" value=\"".$usr["geoip_country"]."\" />"));

With...
$t->assign(array("USERS_REGISTER_COUNTRY" => "<img src=https://www.cotonti.com/\"system/img/flags/f-".$usr["geoip_country"].".gif\" alt=\"\" /><input type=\"hidden\" name=\"rcountry\" value=\"".$usr["geoip_country"]."\" />"));
]]>
вт, 12 мая 2009 09:43:04 -0000
code_87 # Koradhil : You could use javascript for this. Try:
$(document).ready(function(){
$('select[name="rcountry"]').attr("disabled","disabled");
});
Not tested, just making this up.

thanks a lot sir.. it works but is there any way aside from that one? a core hack or plugin? coz if they just disable all javascript before entering the register page they can change the country again :-(]]>
вт, 12 мая 2009 02:46:46 -0000
Dave Force registration fields]]> пн, 11 мая 2009 19:22:54 -0000 GHengeveld
$(document).ready(function(){
$('select[name="rcountry"]').attr("disabled","disabled");
});
Not tested, just making this up.]]>
пн, 11 мая 2009 17:10:25 -0000
code_87 пн, 11 мая 2009 09:54:40 -0000