Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support
Author Message
lasatalayas
New Member
New Member



Joined: Jun 01, 2005
Posts: 11

PostPosted: Mon Jun 27, 2005 1:25 am Reply with quote

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 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Mon Jun 27, 2005 7:06 am Reply with quote

Can you restate your question? I don't understand this statment
Quote:
As if the bad word filter kicks in and one returns to the enter detail page the Country is rest to US
 
View user's profile Send private message
lasatalayas







PostPosted: Mon Jun 27, 2005 7:42 am Reply with quote

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







PostPosted: Mon Jun 27, 2005 11:34 am Reply with quote

Yes indeed you are right! Thank you for alerting me. I will add this to the bug list - it's the only open bug Smile. Once I have a fix I will release it.
 
lasatalayas







PostPosted: Tue Jun 28, 2005 2:48 pm Reply with quote

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







PostPosted: Tue Jun 28, 2005 3:06 pm Reply with quote

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 Smile
 
lasatalayas







PostPosted: Wed Jun 29, 2005 12:41 am Reply with quote

Well, that's nice and simple.

Many thanks, Ken.
 
Raven







PostPosted: Wed Jun 29, 2005 12:58 am Reply with quote

It dawned on me afterwards that you could have done a View Source and viewed the nations code - the number is there too Laughing
 
lasatalayas







PostPosted: Wed Jun 29, 2005 1:22 am Reply with quote

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







PostPosted: Wed Jun 29, 2005 1:36 am Reply with quote

Just on my way to bed actually Wink
 
Raven







PostPosted: Thu Jun 30, 2005 2:08 pm Reply with quote

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 Smile. Once I have a fix I will release it.
http://www.ravenphpscripts.com/faq-1-KISGB.html#48
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> KISGB General Support

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©