Author |
Message |
lasatalayas
New Member


Joined: Jun 01, 2005
Posts: 11
|
Posted:
Mon Jun 27, 2005 1:25 am |
|
I'd like to change the deafult Country from USA. As if the bad word filter kicks in and one returns to the enter detail page the Country is rest to US.
How and where do I do this?
Ken. |
Last edited by lasatalayas on Tue Jun 28, 2005 2:48 pm; edited 1 time in total |
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Mon Jun 27, 2005 7:06 am |
|
Can you restate your question? I don't understand this statmentQuote: | As if the bad word filter kicks in and one returns to the enter detail page the Country is rest to US |
|
|
|
|
 |
lasatalayas

|
Posted:
Mon Jun 27, 2005 7:42 am |
|
After entering my details including setting my country of orgin to somewhere other than the USA and trying to "Add Entry To Guestbook" some of the content is identified as a "bad word" the option is then given to rewrite the Guest Book entry. However when doing this the Country of Origin is reset to USA.
Ken. |
|
|
|
 |
Raven

|
Posted:
Mon Jun 27, 2005 11:34 am |
|
Yes indeed you are right! Thank you for alerting me. I will add this to the bug list - it's the only open bug . Once I have a fix I will release it. |
|
|
|
 |
lasatalayas

|
Posted:
Tue Jun 28, 2005 2:48 pm |
|
Fine, I look forward to seeing that.
Howvere the first part of my query was how can I change the default Country to something other than the USA?
Ken. |
|
|
|
 |
Raven

|
Posted:
Tue Jun 28, 2005 3:06 pm |
|
Sorry, I missed that. In user.prefs.php is a setting called $defaultNation. It is presently set to 182. You have a file called nation.php. Open it up with an editor that has line numbers. Find USA and you will see it's line number 186. Subtract 4 from the line number and you have the code number. So, if you wanted UK, you will see that it's line number 183. 183-4 = 179. Set $defaultNation = 179; and you should be set.
Technically, the reason you subtract 4 is that there are 3 lines of code in that file before PHP sets up the array. So, PHP sees blank.gif as the first table/array entry. Then, PHP arrays start with indeces=0 (not 1), so there is the 4th offset  |
|
|
|
 |
lasatalayas

|
Posted:
Wed Jun 29, 2005 12:41 am |
|
Well, that's nice and simple.
Many thanks, Ken. |
|
|
|
 |
Raven

|
Posted:
Wed Jun 29, 2005 12:58 am |
|
It dawned on me afterwards that you could have done a View Source and viewed the nations code - the number is there too  |
|
|
|
 |
lasatalayas

|
Posted:
Wed Jun 29, 2005 1:22 am |
|
Ah... I'm not that clever!
But it is something that I will bear in mind for the future.
Hey, you're up early aren't you?
Ken. |
|
|
|
 |
Raven

|
Posted:
Wed Jun 29, 2005 1:36 am |
|
Just on my way to bed actually  |
|
|
|
 |
Raven

|
Posted:
Thu Jun 30, 2005 2:08 pm |
|
Raven wrote: | Yes indeed you are right! Thank you for alerting me. I will add this to the bug list - it's the only open bug . Once I have a fix I will release it. | http://www.ravenphpscripts.com/faq-1-KISGB.html#48 |
|
|
|
 |
|