Log in

View Full Version : Forum Display Enhancements - No more IE (Internet Explorer)


Dr.osamA
11-22-2010, 10:00 PM
No more IE (Internet Explorer)

First, I apologize for my bad English

What's this?
This addition was achieved and detect , type of browser used by the visitor and informing him that the browser makes a change if the type of Internet Explorer,

plzz look at attachments in IE and FF

How to install ?

First, we downloaded the file attachment, and then raise the contents of the photos to the dir vb/images

then open template header and copy paste this code in top of it


<head>
<script type="text/javascript">
if(navigator.appName != "Microsoft Internet Explorer"){
document.writeln("<div id=\"alra7ba1\"><center><img src=\"/vb/images/41.gif\" style=\"vertical-align: middle;\" alt=\"\" /><font color=\"#FF0000\"> Thank you very much because you do not use the <del>Internet Explorer</del> </font></center></div>");
}else if (navigator.appName == "Microsoft Internet Explorer"){
document.writeln("<div id=\"alra7ba1\"><center><img src=\"/vb/images/14.gif\" style=\"vertical-align: middle;\" alt=\"\" /> <font color=\"#FF0000\">This is very unfortunate because you are using <del>Internet Explorer</del>,it is best to try <a href=\"http://www.mozilla.com/en-US/firefox/\">FireFox</a></font></center></div>");
}
</script>
</head>


note: if you have your forum as VB or forum or anything else you havf to change dir " /vb/images/41.gif " to your one

then open template additional.css and in end of it paste this code

#alra7ba1{
color : #FFFFFF;
width : 100%;
background-color:black;
position:fixed;
right:0px;
top:0px;
z-index: 1;

}

with this we done

the second Code is optional if you like, Is in the corner ,A picture and hide the link below to the subject against the Internet Explorer and replace it with a link located in the code

link of subject is:
http://www.alra7ba.info/vb/t39801.html

https://vborg.vbsupport.ru/external/2010/11/18.png

copy and paste the code in the top of template header

<div style="float:top left; position:absolute; overflow:visible; z-index:2; left:0px; top:0px; height:233px; width:233px;"><a href="http://www.alra7ba.info/vb/t39801.html" target="_blank"><img src="/vb/images/noie-1.png" border="0" alt="Do not support Internet Explorer 6" width="233" height="233"></a></div>

upload the image noie-1.png to dir vb/images

Demo : alra7ba (http://www.alra7ba.info/vb/forum.php)

user : vBulletin
pass : 123456

That is all for now ... dont pres Install;) i dont care

FReeSTER
11-23-2010, 02:18 PM
WoW bro, you always bring small mods that really make the difference. Nice Mod specially for me that im a IE hater. lol :D

But one thing though, Im trying to force users to get Firefox, how can I add a link to Firefox on that image?

Dr.osamA
11-23-2010, 06:52 PM
WoW bro, you always bring small mods that really make the difference. Nice Mod specially for me that im a IE hater. lol :D

But one thing though, Im trying to force users to get Firefox, how can I add a link to Firefox on that image?

welcome bro

ther is link to Firefox under word Firefox

but if you insest to ut it there on problem

ohhhhhh

you main link under this pic. https://vborg.vbsupport.ru/external/2010/11/18.png

you can fined link:
http://www.alra7ba.info/vb/t39801.html

You can replace this link with following link:

http://www.mozilla.com/en-US/firefox/

try it then let me know bro

FReeSTER
11-23-2010, 07:25 PM
Yes, thank you so much

Dr.osamA
11-23-2010, 07:41 PM
you are welcome

RobbieZ
11-23-2010, 07:55 PM
Surely it would be better to write the code as.

if(navigator.appName != "Mozilla Firefox") then show nothing ELSE show your code.

As browsing your demo via Firefox and Safari still shows your message which I think is not needed if you are already in your preferred browser, which is FF!

Dr.osamA
11-23-2010, 09:20 PM
Surely it would be better to write the code as.

if(navigator.appName != "Mozilla Firefox") then show nothing ELSE show your code.

As browsing your demo via Firefox and Safari still shows your message which I think is not needed if you are already in your preferred browser, which is FF!

I agree with you ,but
This is an propaganda to stop the use of Internet Explorer specifically IE6

MicroSoft company stopped supporting this browser and require users to revoke it from their computer

that is why we shows message in other browsers FF ,Safari and Opera

thank you for you notis

Robru
11-24-2010, 07:51 AM
And they are gone! Your visitors, LOL !!

Dr.osamA
11-26-2010, 01:45 AM
And they are gone! Your visitors, LOL !!


This is my friend alerted visitors to the need to replace their browser

And if they go that is there business .. God with them

Robru
11-27-2010, 10:05 AM
I think, its better to allow all browser types, and not only Firefox. But, this is your party :)

Kraxell
11-28-2010, 06:23 PM
Where do you found this picture? I search another one like that.

Regards

basilrath
11-28-2010, 08:51 PM
not sure if im getting why this is good for a board

Dr.osamA
11-28-2010, 11:51 PM
I think, its better to allow all browser types, and not only Firefox. But, this is your party :)

hi

you can use the code as you like bro ... you can add there all browser types , it is Re-usable Code

Where do you found this picture? I search another one like that.

Regards

Easy to make this image in photoshop, my friend

not sure if im getting why this is good for a board

To alert members to stop the use of browser Explorer and start use browsers more compatibility with Release VB 4.x.x
As in Facebook and other most Famous sites

guys it is up to you how to reuse this code

Special Pages
05-13-2011, 06:12 PM
Great one. Thanks mate!

final kaoss
01-15-2013, 11:06 PM
very good plug.

ForceHSS
01-16-2013, 12:23 AM
your demo is not working

thetechgenius
08-16-2014, 11:18 PM
Thank you for this!

I edited the code a bit to match my forums though. And I made it so the message only shows up when a user is using Internet Explorer. Check out the attached screenshot.

If anyone wants the code, here it is:

Note: I also attached the image I am using in my code. Put "attention.png" in *vbroot*/images . You may use it any way you like.

header:



<head>
<script type="text/javascript">
if (navigator.appName == "Microsoft Internet Explorer"){
document.writeln("<div id=\"alra7ba1\"><center><img src=\"/images/attention.png\" style=\"vertical-align: middle;\" alt=\"\" /> <font color=\"#FF0000\"><b>Attention</b>: This site does not support <del>Internet Explorer</del>,TTG runs best with <a href=\"http://www.mozilla.com/en-US/firefox/\">FireFox</a></font></center></div>");
}
</script>
</head>


Change the RED text to your liking.




additional.css:




#alra7ba1 {

color : #FFFFFF;
width : 550px;
background-color: rgba(0, 0, 0, 0.5) ; /* Added Opacity to the background */
border: 2px solid rgba(69, 63, 63, 0.5); /* Added Opacity to the border to match background */
border-radius: 4px; /* Added a radius to the border for rounded corners */
position:fixed;
right:410px; /* You may need to adjust this to get it centered */
top:0px;
z-index: 1;

}

#alra7ba1 a:hover {
color: #FFFFFF; /* Added a hover color to the FireFox Link - It was Black */

}





Thank you Dr.osamA!