Jump to content

Monj87

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Everything posted by Monj87

  1. Yes i read it. What i found in there was that FF is hard to create conditionals with. I really don't have time to do research looking a quick answer =) (thank you in advance) Can anyone give me the answer? HOW do i replace "IE6" with Fire Fox 2 in this code. so that i can put it into a prefixed conditional statement like this. <!--[if IE 6]> <meta http-equiv="refresh" content="0; url=http://example.com/"> <![endif]-->
  2. Thanks a lot but those are for IE I need firefox2 any pointers?
  3. hey guys trying to find out what the short name of FireFox2 is. (for example the "IE 6" in this code) What would it be for firefox versions 2? <!--[if IE 6]> <meta http-equiv="refresh" content="0; url=http://example.com/"> <![endif]--> THANKS!!!
  4. hey guys trying to find out what the short name of FireFox2 is. (for example the "IE 6" in this code) What would it be for firefox versions 2? <!--[if IE 6]> <meta http-equiv="refresh" content="0; url=http://example.com/"> <![endif]--> THANKS!!!
  5. THIS IS AWESOME. Ive been searching everywhere though and how the heck would i replace "IE 6" with to do this with FireFox 2? Could you point me in the right direction to find that out or let me know? THANKS!!! IT WORKED AWESOME
  6. Trying to set a condition in my header a few questions: This code is close but gives me an error code and doesn't redirect. 1) Can anyone figure out how to make this work so that if user is in IE6 the url will redirect to the second URL? 2) I would put this in my header right? I can't figure out why this isn't working. <?php $HTTP_USER_AGENT = $_SERVER['HTTP_USER_AGENT']; function str_present($str,$substr) { $pos = strpos($str,$substr); if($pos === false) { return false; } else { return true; } } if (str_present($HTTP_USER_AGENT, "IE6")) { header('location: url1'); }else{ header('location: url2'); } ?>
  7. would you be able to tell me how to use 'HTTP_USER_AGENT' in this code to make somedomain.com/about-us.htm redirect to somedomain2.com/about-us.htm if the user is on firefox 2 browser? <?php $referer = $_SERVER['HTTP_REFERER']; $domain_name = "somedomain.com"; if(strpos($referer, $domain_name)!== FALSE) { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.yourdomain.com/newpage.php"); exit; } ?>
  8. I know i suck at php but i need help lol. I just started working at this medical company in encinitas and one of their sites is really janky so in a few browsers like older IE and firefox you can't even navigate through the site. I dont have time to spend on fixing it now so i wanted to use something like this. do you know how to make a conditional like this but make it say If the user is in firefox 2 it will redirect them to a seperate location. I already have conditional style sheets setup but the firefox 2 issues are beyond styling because it is a massive shopping cart and its not shoppable on firefox 2 so I will send them to my older site that works correctly on firefox 2 I need to start studying more php lol. <?php $referer = $_SERVER['HTTP_REFERER']; $domain_name = "somedomain.com"; if(strpos($referer, $domain_name)!== FALSE) { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.yourdomain.com/newpage.php"); exit; } ?> Thank you!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.