FUDforum - خوراک RDF
http://fudforum.org/forum/index.php
Need help with Optional manual choice of country in register script
http://fudforum.org/forum/index.phpindex.php?t=rview&goto=166114&th=120199#msg_166114
My thought is to use one of the free geoIP csv's to populate the geoip table, and use a select distinct on just country and cc, then use that as a) lookup table for a select box for the country name and b) setting for the flag fields in the user table.
When the country is selected in the form, the corresponding flag icon should automatically appear next to it, and all posts by that user should show that flag.
I'd like this as an option that only shows up if the geoip is disabled or the user is an admin (so we can set peoples' flags for them if we feel the need, even if geoip is on.)
What all do I have to change, in FUDforum 3.0.3, to accomplish this change? I'm expecting there will be an "else" in the flag function in register.php that sets the flag_country and flag_cc based on the country chosen instead of on the geolocation process, and a change to the template for the register form, but am still a bit shaky on the binary option codes and the user option field and how they relate to what goes on in the register form, so any pointers you can give would be great.
After this is working, my next thought is to create an admin report based on the geoip lookup that shows the users who claim to be from a different country than their IP says they're posting from, to catch trolls. That should be an easy add-on that wouldn't require modifying base code.
Any help anyone can provide letting me know all of the files I have to consider changing to make this work would be much appreciated. I am examining the developer docs on the wiki, but am unsure what kind of cascading effect this change might cause.
<edit> Wow, lots of views, but nobody posting any help... </edit>