Add Firefox button in the sidebar

Creating and modifying plugins.
Post Reply
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Add Firefox button in the sidebar

Post by MySchizoBuddy »

Any idea how to do that. have a firefox button from spreadfirefox in my sidebar. which file should i edit.
:)
mgroeninger
Regular
Posts: 546
Joined: Mon Dec 20, 2004 11:57 pm
Contact:

Post 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..
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post 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
wesley
Regular
Posts: 197
Joined: Sun Jul 10, 2005 11:15 am
Contact:

Post by wesley »

I assume this would require some sort of PHP programming.

EDIT: D'oh! Yes, you can use javascript for this, too...
Last edited by wesley on Mon Aug 01, 2005 4:47 am, edited 1 time in total.
I make s9y plugins, too.
My s9y blog depends on them. :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Col. Kurtz
Regular
Posts: 450
Joined: Thu May 26, 2005 10:43 am
Location: Bonn, Germany
Contact:

Post 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!
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

You should encode all "&" with "&" in your links. Maybe this dislocates the correct CSS parsing.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply