no it didnt work
will it work if i use this in funtions.php
<!--[if lt IE 9]>
//your code here.. All IE browsers below 9 version will get your previous code.
<![endif]-->
<![if !IE]>
//Your code with the pretty modifications..work in browsers other then IE..
<![endif]>
If you have more suggesstions please tell..and will this work if i use it in functions.php??
==========================================
EDIT :
Hmmm..not working..that only works in html..so i googled and found this..
if ( eregi("MSIE", getenv( "HTTP_USER_AGENT" ) ) || eregi("Internet Explorer", getenv("HTTP_USER_AGENT" ) ) ) {
// do something
}but with this i can echo only.. if i use the download button code or anything. i get an error on IE?
is there anything in PHP which i can use like
if internet explorer
execute code 1
else
execute code 2
is it possible in php??
=============================================
EDIT 2 :
ok..i did this now and it some how worked..but having little issue with it??
if ( eregi("MSIE", getenv( "HTTP_USER_AGENT" ) ) || eregi("Internet Explorer", getenv("HTTP_USER_AGENT" ) ) ) {
// do something
echo "<h5>This is IE</h5>";
}
else {
echo "<h5>This is not IE</h5>";
}
but there is some problem..in IE the message appears 3 times like this.
and browser other then ie it echos the message 4 times??
what to do it dont do looping thing??
=======================================
Edit 3 :
Wow awesome Superb..superb..
i did this and its working ..
if ( eregi("MSIE", getenv( "HTTP_USER_AGENT" ) ) || eregi("Internet Explorer", getenv("HTTP_USER_AGENT" ) ) ) {
// If User is using IE this statements will be executed
if ((!check_permission("auth_download", $image_row['cat_id'])) && $user_info['user_level'] == GUEST) {
$download_button = "<a href=\"".ROOT_PATH."index.php?template=please_reg\" onclick=\"void(window.open(this.href,this.target,'width=300px,height=150px,top=200px,left=500px,resizable=0,menubar=no,locationbar=no,scrollbars=auto'));return false;\"><img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" /></a>";
$download_zip_button = "<a href=\"".ROOT_PATH."index.php?template=please_reg\" onclick=\"void(window.open(this.href,this.target,'width=300px,height=150px,top=200px,left=500px,resizable=0,menubar=no,locationbar=no,scrollbars=auto'));return false;\"><img src=\"".get_gallery_image("download_zip_off.gif")."\" border=\"0\" alt=\"\" /></a>";
$allow_download = 0;
clear_download_token($image_row['image_id']);
}
}
else {
// else statement will be executed if it is not IE.
if ((!check_permission("auth_download", $image_row['cat_id'])) && $user_info['user_level'] == GUEST) {
$download_button = "<a href=\"#?w=350\" rel=\"register_please\" class=\"poplight\" ><img src=\"".get_gallery_image("download_off.gif")."\" border=\"0\" alt=\"\" /></a>";
$download_zip_button = "<a href=\"#?w=520\" rel=\"register_please\" class=\"poplight\" ><img src=\"".get_gallery_image("download_zip_off.gif")."\" border=\"0\" alt=\"\" /></a>";
$allow_download = 0;
clear_download_token($image_row['image_id']);
}
}
its working awesome.. if user use the IE the code with your procedure will appear.. and if user uses browser other then IE the code appear to user will be yours but modified jquery one..
Its really kool cuz now both users of IE and Non IE can get benefited from this feature.. kool haan..
Many THanks.. i couldnt do this without your help..Many thanks..
Now its working.. I think you should introduce it as your mod..
May b users like this mod..i liked it very much as it give ease to users in using my site..
Now gonna apply it to my site.. it worked on wamp localhost so far..now gonna apply on my site.