Irish SEO,  Marketing & Webmaster Discussion

 

By-pass html conditional re-direct?

This is a discussion on By-pass html conditional re-direct? within the Coding Help forums, part of the Webmaster Discussion category; I have a small html re-direct set-up on the homepage of one of my sites. The redirect catches IE6 uses ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Webmaster Discussion > Coding Help

Register Forum Rules FAQDonate Calendar Search Today's Posts Mark Forums Read



Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-05-2008, 04:26 PM
ButtermilkJack's Avatar
Wannabe Geek
 
Join Date: Feb 2006
Location: Dublin, Ireland
Posts: 269
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
ButtermilkJack will become famous soon enough
Default By-pass html conditional re-direct?

I have a small html re-direct set-up on the homepage of one of my sites. The redirect catches IE6 uses and sends them to a page where I tell them how bad IE6 is . However, I have a button which lets them go back and browse the site anyway. Needless to say they just end up gping in circles because once they go back to the homepage it sends them back to the IE6 bashing page.

My question is, what's the easiest way to by-pass the IE6 conditional html if they are coming from the IE6 page?
__________________
Print & Web Design
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 29-05-2008, 08:51 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,283
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Thanks: 2
Thanked 5 Times in 5 Posts
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

Hmmm what language are you using on the server ? ... have a session and set a flag in it ... if the flag exists don't include the ie redirect ... ? else ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 29-05-2008, 09:13 PM
ButtermilkJack's Avatar
Wannabe Geek
 
Join Date: Feb 2006
Location: Dublin, Ireland
Posts: 269
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
ButtermilkJack will become famous soon enough
Default

Cheers Forbairt. I'm using php. My knowledge of php is very basic but I'll have a look at using sessions.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 29-05-2008, 09:53 PM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,283
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Thanks: 2
Thanked 5 Times in 5 Posts
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

The basics ...


Each page you have starts a session (first thing you do in your php)... (if you don't ... php forgets about who the user is even if you start it again in a page or two )

First time ... session variable isn't set through the [if ie6 statements you've got set up

Gets redirected to page ... asks do you want to view it anyways ... goes to page and sets session saying yesido=true; add it as a session variable

Back on your main page .... its refreshed and you check .. is this set ... if it is .. don't print the ie6 statement block ... else print it ...

simple enough .. will require a bit of fiddling / testing though ...

just remember ... start the session on each page you've got
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 30-05-2008, 08:09 AM
d-tour's Avatar
Coder
 
Join Date: Apr 2007
Location: Cork
Posts: 82
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
d-tour will become famous soon enough
Default

Send them to the redirect page, when they press back have a conditional php statement checking what their referrer page was....

If it was your ie6page let them in.
Sessions are a better choice, but only if they allow them.
Another option is to send use the GET method.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 30-05-2008, 08:17 AM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 2,283
Nominated 2 Times in 1 Post
Nominated TOTW/F/M Award(s): 1
Thanks: 2
Thanked 5 Times in 5 Posts
Forbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enoughForbairt will become famous soon enough
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

isn't the session automagically appended to the URL (GET) if they don't allow sessions ?

Should probably have said ...

Create a cookie with a 1 year time out (again as dtour has pointed out assuming they allow cookies)

This way the next time they hit the site after closing the browser they won't be asked do you want to continue.

BTW excluding IE6 is a bad idea (drawing attention to it) ... given the amount of users that still use it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7 (permalink)  
Old 30-05-2008, 09:50 AM
ButtermilkJack's Avatar
Wannabe Geek
 
Join Date: Feb 2006
Location: Dublin, Ireland
Posts: 269
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
ButtermilkJack will become famous soon enough
Default

Cheer for the help folks. I'm don't want to exclude IE6. I'm actually working on a workaround for the menu it breaks at the moment so the IE6 page is really a temp measure until I get the fix sorted. So, bearing that in mind I'd rather spend my time trying to fix the css for the menu for IE6 than trying to get the IE6 page working.

Anyway, I've just removed the redirect and placed the 'Save the developers' javascript in there for the moment . Probably not the best idea as it's a client site and not my own but I'll remove it once I get the fix done.

Thanks again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8 (permalink)  
Old 30-05-2008, 10:39 AM
d-tour's Avatar
Coder
 
Join Date: Apr 2007
Location: Cork
Posts: 82
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
d-tour will become famous soon enough
Default

Much better solution, what the CSS issue?
Much better to have a seperate css file for IE6 users.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9 (permalink)  
Old 30-05-2008, 11:01 AM
ButtermilkJack's Avatar
Wannabe Geek
 
Join Date: Feb 2006
Location: Dublin, Ireland
Posts: 269
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
ButtermilkJack will become famous soon enough
Default

It actually turned out to be quite simple enough to fix the css. It was to do with a drop-down menu and IE6 stretching the li elements out to the full width of the div, whereas Gecko browsers treated width: auto as the width of the a tag inside the li.

Schoolboy error
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10 (permalink)  
Old 30-05-2008, 11:06 AM
d-tour's Avatar
Coder
 
Join Date: Apr 2007
Location: Cork
Posts: 82
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Thanks: 0
Thanked 0 Times in 0 Posts
d-tour will become famous soon enough
Default

Keep sending them to the redirect and tell them how bad your css is
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
bypass, conditional, html, redirect

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Email marketing compared to direct marketing. JCB Email Marketing 30 15-01-2009 04:43 PM
HTML - Useful Links blacknight HTML Basics 3 23-06-2008 07:29 PM
Direct Admin & MySQL databases... Zascar Webmaster Discussion 3 14-08-2007 12:29 PM
Signatures no longer direct links? dude Forum Feedback, Development and Competitions 4 04-04-2007 05:17 PM
Converting HTML to RSS? blacknight Coding Help 3 05-02-2006 07:06 PM


Sponsored links

Pepperjam Network
Paid On Results www.zanox.com Get Chitika Premium


All times are GMT +1. The time now is 11:13 PM.


Powered by: vBulletin Version 3.8.4, Copyright ©2000 - 2010, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64