Page 1 of 1

Add Firefox button in the sidebar

Posted: Sat Jul 30, 2005 9:34 pm
by MySchizoBuddy
Any idea how to do that. have a firefox button from spreadfirefox in my sidebar. which file should i edit.
:)

Posted: Sat Jul 30, 2005 9:58 pm
by mgroeninger
Take a look at the HTML nugget plugin.

You can place an <img /> tag inside the plugin text and position it where ever you like...

And then you wont have to edit any files..

Posted: Sun Jul 31, 2005 10:46 am
by MySchizoBuddy
Hey thanks. it worked perfectly :)

btw do u know how to display a warning message based on the browser they are using. like this site stanch.net uses a warning message at the top of the page if u use IE.

Thanks in advance

Posted: Sun Jul 31, 2005 9:50 pm
by wesley
I assume this would require some sort of PHP programming.

EDIT: D'oh! Yes, you can use javascript for this, too...

Posted: Mon Aug 01, 2005 12:45 am
by garvinhicking
I think you can already easily inject javascript in the HTML nugget.

And I think the IE is the only browser that shows:

Code: Select all

<!--[if IE]>
You suck. ;-)
<![endif]-->
Regards,
Garvin

Posted: Mon Aug 01, 2005 12:51 am
by Col. Kurtz
garvinhicking wrote:I think you can already easily inject javascript in the HTML nugget.

And I think the IE is the only browser that shows:

Code: Select all

<!--[if IE]>
You suck. ;-)
<![endif]-->
LOL!

Posted: Mon Aug 01, 2005 12:23 pm
by MySchizoBuddy
ok I'm using this code

Code: Select all

<!--[if IE]>
  <div class="iemessage">
    Warning you are using a non-secure and non-standards compliant browser. <a href="http://www.spreadfirefox.com/?q=affiliates&id=115027&t=1" title="Get Firefox!">Get a better browser</a>! also click <a href="http://myschizobuddy.com/index.php?/archives/6-Internet-Explorer-IE-Secure-Browser-Myth.html" title="Internet Explorer Secure Browser Myth">here</a> for more information.
  </div>
<![endif]-->
and in css style, I use

Code: Select all

.iemessage {
	font-size:x-small;
	color:#FFF;
	padding:10px;
}

.iemessage a:link{
	color:#FF8C00;
}

.iemessage a:hover, .iemessage a:focus,.iemessage a:active {
	color:#FF8C00;
	text-decoration:underline;
}
a small problem with this. the first <a> tag get the correct color property but not the second <a> tag.

Posted: Mon Aug 01, 2005 12:37 pm
by garvinhicking
You should encode all "&" with "&" in your links. Maybe this dislocates the correct CSS parsing.

Regards,
Garvin