Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-11-16 21:43:04

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

[plugin] [ORPHAN] rss_spread_firefox: SpreadFirefox! Plugin

rss_spread_firefox generates a Firefox button for your site based on those available on the SpreadFirefox! site.

All of the button types available can be seen in the plugin docs once you install it or on the SpeadFirefox! Affiliates Page.

Details

Download

<code><txp:rss_spread_firefox/></code>

id
Your SpreadFirefox! affiliate ID
Default: ‘36541’ (my id)
Example: id=“12345”

type
The button type you want to display
Default: ‘80b1’
Example: type=“80b2”

The default will give you this button:

Offline

#2 2004-11-17 01:32:01

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: [plugin] [ORPHAN] rss_spread_firefox: SpreadFirefox! Plugin

coolio :) thanks wilshire


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#3 2004-11-17 01:40:08

Neczy
New Member
Registered: 2004-07-12
Posts: 4

Re: [plugin] [ORPHAN] rss_spread_firefox: SpreadFirefox! Plugin

Aye, added to my site :)

Some Validity issues depending on what DTD you are using. xhtml 1.1 doesn’t support the border=“0” attribute. Easy change:

For the plugin code:

<code>$getff = ‘<a href=“http://www.spreadfirefox.com/?q=affiliates&amp;id=’.$aid.’&amp;t=81”><img alt=“Get Firefox!” title=“Get Firefox!” class=“firefox” src=“http://www.spreadfirefox.com/community/images/affiliates/Buttons/’;
$getff.= rss_getffbutton($type);
$getff.= ‘”/></a>’;</code>

return $getff;
}

Add this to your CSS Document:

<code>
img.firefox {
border: 0;
}
</code>

Last edited by Neczy (2004-11-17 01:46:57)

Offline

#4 2004-11-17 15:56:31

wilshire
Plugin Author
From: Akron, Ohio
Registered: 2004-08-27
Posts: 656
Website

Re: [plugin] [ORPHAN] rss_spread_firefox: SpreadFirefox! Plugin

Good point Neczy. I actually never looked too closely at the code. I just used what was posted on the SpreadFirefox! site. Plus, I only validate to 1.0 so I wouldn’t have noticed when I validated either.

In any case, I updated the plugin to accept a parameter called strict which will replace the border attribute with a class attribute as you did above.

The CSS of course is still up to you.

Offline

#5 2004-11-17 15:58:56

heimar
New Member
From: ebonia
Registered: 2004-11-03
Posts: 6

Re: [plugin] [ORPHAN] rss_spread_firefox: SpreadFirefox! Plugin

great plugin:)!


thank you, Jebus!

Offline

Board footer

Powered by FluxBB