Oak Door website beta testing please...

A meeting area where members can relax, chill out and talk about anything non magical.


Moderators: nickj, Lady of Mystery, Mandrake, bananafish, support

Oak Door website beta testing please...

Postby seige » Jan 22nd, '07, 23:35



Hi guys

Sorry to burden anyone with this, but if you'd be so kind, could you visit this link... it's a mate of mine who sells oak doors and oak floors etc, and we're trying to make a 'clever' page content mask for non UK visitors.


I've been testing a script which hides and shows certain content based on your browser config.

The more savvy amongst you will take a look at the source code and see where I'm going wrong... basically, anyone who's entering the site outside the UK needs to see the Google ads, and within the UK shouldn't.

This may not make much sense, but the site is designed to be UK only, and we're getting insane traffic from the states looking for oak doors. I designed the site for a friend, and we recon that hopefully we could make a few quid AND give the US visitors 'what they're looking for' via Google relevant ads.

Especially interesting would be feedback from US visitors...

Not compulsory, and not magic, but would help me out, cos it's driving me mad!

Also, insight from any programmers savvy with Java would help!

There's a freebie in it...
If anyone can help, I'll bung them a prezzie from NUMS. Yes, I'm that desparate. We need to reduce traffic to this site. It's ranked No. 1 in Google for the search 'oak doors', and the bandwidth usage for non-UK viewers is almost 2Gb per-month, and it's getting out of hand!

http://www.oakdoors.co.uk

Last edited by seige on Feb 27th, '07, 12:22, edited 5 times in total.
User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby magicdiscoman » Jan 23rd, '07, 00:54

ok i see adds bottom and side, should i. :?:

magicdiscoman
 

Postby kems » Jan 23rd, '07, 10:24

magicdiscoman wrote:ok i see adds bottom and side, should i. :?:


snap i got the same here.

User avatar
kems
Senior Member
 
Posts: 771
Joined: Mar 30th, '05, 14:15
Location: Essex, UK (32:AH)

Postby seige » Jan 23rd, '07, 10:29

Hmmmm

Could you confirm what browser you are using, and who your ISP is?

Cheeeers!

(The reason being, I am trying to use a browser detection and ISP detection, to determine the 'language' of the user.)

HELLLPPP!!!

User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby lmw » Jan 23rd, '07, 10:34

seige wrote:Hi guys

Sorry to burden anyone with this, but if you'd be so kind, could you visit this link... it's a mate of mine who sells oak doors and oak floors etc, and we're trying to make a 'clever' page content mask for non UK visitors.

Oak doors, from Sabrina

I've been testing a script which hides and shows certain content based on your browser config.

The more savvy amongst you will take a look at the source code and see where I'm going wrong... basically, anyone who's entering the site outside the UK needs to see the Google ads, and within the UK shouldn't.

This may not make much sense, but the site is designed to be UK only, and we're getting insane traffic from the states looking for oak doors. I designed the site for a friend, and we recon that hopefully we could make a few quid AND give the US visitors 'what they're looking for' via Google relevant ads.

Especially interesting would be feedback from US visitors...

Not compulsory, and not magic, but would help me out, cos it's driving me mad!

Also, insight from any programmers savvy with Java would help!

There's a freebie in it...
If anyone can help, I'll bung them a prezzie from NUMS. Yes, I'm that desparate. We need to reduce traffic to this site. It's ranked No. 1 in Google for the search 'oak doors', and the bandwidth usage for non-UK viewers is almost 2Gb per-month, and it's getting out of hand!


Damn my companies content filters sometimes...how can oak doors be classed as offensive...(cue discussions about men and having/getting wood)...Seige, I've PM'd you...as for browsers I've got both firefox and Internet exploder on this machine...I've done a bit of this stuff before, but no promises hmm'k!

Cheers.

User avatar
lmw
Preferred Member
 
Posts: 131
Joined: Jan 5th, '07, 11:18
Location: Staffordshire UK (30:EN)

Postby seige » Jan 23rd, '07, 10:44

Well, I *think* it's the script which may be causing the content filters to die.

The main problems I'm having so far, and the possible cause:

1. Firefox users: can't seem to see anything. The site dies at the homepage.
Cause: Possibly I'm using a dodgy Javascript command somewhere.

2. The 'US' content is showing to everyone, except me on my Mac.
Cause: No idea!

3. IF it's possible to write a little php script which can check browser language/locale, and then use either variables or includes to change the content, that would work a treat.
So far, the only foolproof way I can see of making the content browser lanuage depended is Javascript.

User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby kems » Jan 23rd, '07, 11:02

seige wrote:Hmmmm

Could you confirm what browser you are using, and who your ISP is?

Cheeeers!

(The reason being, I am trying to use a browser detection and ISP detection, to determine the 'language' of the user.)

HELLLPPP!!!


IE6 on a corprate network, will check later from my ntl connection at home

User avatar
kems
Senior Member
 
Posts: 771
Joined: Mar 30th, '05, 14:15
Location: Essex, UK (32:AH)

Postby Lady of Mystery » Jan 23rd, '07, 11:20

I'm seeing the adds and I'm using firefox at work

Foodie chat and recipes at https://therosekitchen.wordpress.com/
User avatar
Lady of Mystery
Senior Moderator
 
Posts: 8870
Joined: Nov 30th, '06, 17:30
Location: On a pink and fluffy cloud (31:AH)

Postby magicdiscoman » Jan 23rd, '07, 11:38

latest explorer, xp, ntl and english.

magicdiscoman
 

Postby lmw » Jan 23rd, '07, 11:55

seige wrote:Well, I *think* it's the script which may be causing the content filters to die.

The main problems I'm having so far, and the possible cause:

1. Firefox users: can't seem to see anything. The site dies at the homepage.
Cause: Possibly I'm using a dodgy Javascript command somewhere.

2. The 'US' content is showing to everyone, except me on my Mac.
Cause: No idea!

3. IF it's possible to write a little php script which can check browser language/locale, and then use either variables or includes to change the content, that would work a treat.
So far, the only foolproof way I can see of making the content browser lanuage depended is Javascript.


re jscript, are you able to use the .NET framework on this particular site? (I appreciate this may be like swearing to some people...)

If so, perhaps you can then use the CultureInfo object if you do...? e.g.

i.e. in VBScript...

Dim oInstalledCulture As System.Globalization.CultureInfo
oInstalledCulture = System.Globalization.CultureInfo.CurrentCulture()
Dim strInfo As String = oInstalledCulture.Name
Response.Write(strInfo)

this will return, for example on my machine, en-GB (there is a list available)?

I'm not sure on php, I saw some stuff in the past to do with gettext...which I think can be used to return some of the detail that's available in the CultureInfo, and then of course you'd not be .net framework reliant.

Cheers.

lmw.

(Edit: Remove unused variable declaration, and detail what language it was!)

User avatar
lmw
Preferred Member
 
Posts: 131
Joined: Jan 5th, '07, 11:18
Location: Staffordshire UK (30:EN)

Postby seige » Jan 23rd, '07, 12:03

Thanks for that!

Yeah, .net and VB make my skin crawl... I've had a hard enough time self-teaching php and javascript!

I've found a way this morning of getting more detailed stuff using Javascript, and I've just also realised that our web stats record things like language etc... and that uses CGI/PERL.

So... there MUST be a way of doing it!

It's gone from a project to a grudge match—me vs. the machine!

I'll keep on trying till I get it right!

User avatar
seige
.
 
Posts: 6830
Joined: Apr 22nd, '03, 10:01
Location: Shrewsbury, Shropshire

Postby Tomo » Jan 23rd, '07, 12:13

I wasn't seeing ads in Firefox 2.0.0.1 until I realised that NoScript had blocked Google Syndication by default.

Image
User avatar
Tomo
Veteran Member
 
Posts: 9866
Joined: May 4th, '05, 23:46
Location: Darkest Cheshire (forty-bloody-six going on six)

Postby lmw » Jan 23rd, '07, 12:37

ok...I think I've got something, I'll have to email it though as it appears tm is trying to parse the script...is your personal (NUMS rather) email ok?

User avatar
lmw
Preferred Member
 
Posts: 131
Joined: Jan 5th, '07, 11:18
Location: Staffordshire UK (30:EN)

Oak Doors

Postby DrTodd » Jan 23rd, '07, 15:11

IE 7 and see the google ads on the side and the bottom Seige.

User avatar
DrTodd
Elite Member
 
Posts: 2196
Joined: Feb 5th, '06, 08:44
Location: East Bergholt

Postby Nightfall » Jan 23rd, '07, 15:14

Greece, FireFox 1.5.0.9 , Tue 14:10 GMT :

I can see a side google ad and 2 rows of google ads at the bottom.

User avatar
Nightfall
Preferred Member
 
Posts: 277
Joined: Nov 10th, '06, 14:35
Location: Now: hamburg, Germany, orig:Athens, Greece (38:AH)

Next

Return to The Dove's Head

Who is online

Users browsing this forum: No registered users and 13 guests