
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: YAFootnotes</title>
	<atom:link href="http://www.stratos.me/wp-plugins/yafootnotes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stratos.me</link>
	<description>Just writing what hits my mind!</description>
	<lastBuildDate>Thu, 13 Jan 2011 22:34:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: David Kane</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-6424</link>
		<dc:creator>David Kane</dc:creator>
		<pubDate>Fri, 19 Mar 2010 21:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-6424</guid>
		<description>Instead of writing 
{{1}}[[1]]footnote text[[1]]
I now can write
{{1:footnote text}}
Maybe there are problems with this that you can forsee.  The main innovation is the use of backreferences in the preg_match_all() function, which makes the code a bit shorter.

David Kane,
Waterford Institute of Technology Libraries</description>
		<content:encoded><![CDATA[<p>Instead of writing<br />
{{1}}[[1]]footnote text[[1]]<br />
I now can write<br />
{{1:footnote text}}<br />
Maybe there are problems with this that you can forsee.  The main innovation is the use of backreferences in the preg_match_all() function, which makes the code a bit shorter.</p>
<p>David Kane,<br />
Waterford Institute of Technology Libraries</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Kane</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-6423</link>
		<dc:creator>David Kane</dc:creator>
		<pubDate>Fri, 19 Mar 2010 21:07:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-6423</guid>
		<description>Hi Stratosg,

I have modified your code a bit:

-------------
&lt;?php

/*
Plugin Name: YAFootnotes Plugin
Plugin URI: http://www.stratos.me/wp-plugins/yafootnotes/
Description: Yet Another Footnotes (YAFootnotes) is a plugin that gives you the ability to add footnotes to any text you are writing.
Author: stratosg
Version: 1.1
Author URI: http://www.stratos.me
*/

function yafootnotes($data){
	$debug = true;
	$before_anchor = &#039;[&#039;;//opening the anchor
	$after_anchor = &#039;]&#039;;//closing the anchor
	$footnotes_title = &#039;FOOTNOTES&#039;;//the title to display before the footnotes on the bottom
	$foots = array();
	preg_match_all(&quot;/\{\{([0-9]*):([^}]*)\}\}/&quot;, $data, $foots);//finding anchors in the text
	$data .= &#039;&#039;.print_r($foots).&#039;&#039;;
	if(count($foots[0]) != 0){//there are footnotes to process!
			$count = 0;
			foreach($foots[1] as $foot){//finding the footnotes in the text
				$data = str_replace(&#039;{{&#039;.$foots[1][$count].&#039;:&#039;.$foots[2][$count].&#039;}}&#039;, &#039;&lt;a href=&quot;#foot_&#039;.$foots[1][$count].&#039;&quot; rel=&quot;nofollow&quot;&gt;&#039;.$before_anchor.$foots[1][$count].$after_anchor.&#039;&lt;/a&gt;&#039;, $data);
				//$data .= &#039;&lt;strong&gt;xx&#039;.$foot[$count].&#039;:&#039;.$foots[2][$count].&#039;xx&lt;/strong&gt;&#039;;
                                
				
                                
				$count += 1;
			}
//$data .= &#039;yy&#039;.print_r($foots).&#039;yy&#039;;
			$data .= &#039;&#039;.$footnotes_title.&#039;&#039;;
			$count = 0;
			foreach($foots[2] as $foot_text){
				$data .= &#039;&lt;a&gt;&#039;.$foots[1][$count].&#039;.&lt;/a&gt;&#160;&#039;.$foot_text.&#039;&lt;a href=&quot;#foot_src_&#039;.$foots[1][$count].&#039;&quot; rel=&quot;nofollow&quot;&gt;&#8593;&lt;/a&gt;&#039;;
				$count += 1;
			}

	}
	return $data;
}
add_filter(&#039;the_content&#039;, &#039;yafootnotes&#039;, 1, 1);
###
# usage {{1:footnotetext}} blah blah {{2:footnote other text}} etc.
#
?&gt;</description>
		<content:encoded><![CDATA[<p>Hi Stratosg,</p>
<p>I have modified your code a bit:</p>
<p>&#8212;&#8212;&#8212;&#8212;-<br />
&lt;?php</p>
<p>/*<br />
Plugin Name: YAFootnotes Plugin<br />
Plugin URI: <a href="http://www.stratos.me/wp-plugins/yafootnotes/" rel="nofollow">http://www.stratos.me/wp-plugins/yafootnotes/</a><br />
Description: Yet Another Footnotes (YAFootnotes) is a plugin that gives you the ability to add footnotes to any text you are writing.<br />
Author: stratosg<br />
Version: 1.1<br />
Author URI: <a href="http://www.stratos.me" rel="nofollow">http://www.stratos.me</a><br />
*/</p>
<p>function yafootnotes($data){<br />
	$debug = true;<br />
	$before_anchor = &#039;[&#039;;//opening the anchor<br />
	$after_anchor = &#039;]&#039;;//closing the anchor<br />
	$footnotes_title = &#039;FOOTNOTES&#039;;//the title to display before the footnotes on the bottom<br />
	$foots = array();<br />
	preg_match_all(&quot;/\{\{([0-9]*):([^}]*)\}\}/&quot;, $data, $foots);//finding anchors in the text<br />
	$data .= &#039;&#8217;.print_r($foots).&#8221;;<br />
	if(count($foots[0]) != 0){//there are footnotes to process!<br />
			$count = 0;<br />
			foreach($foots[1] as $foot){//finding the footnotes in the text<br />
				$data = str_replace(&#8216;{{&#8216;.$foots[1][$count].&#8217;:&#8217;.$foots[2][$count].&#8217;}}&#8217;, &#8216;<a href="#foot_'.$foots[1][$count].'" rel="nofollow">&#8216;.$before_anchor.$foots[1][$count].$after_anchor.&#8217;</a>&#8216;, $data);<br />
				//$data .= &#8216;<strong>xx&#8217;.$foot[$count].&#8217;:&#8217;.$foots[2][$count].&#8217;xx</strong>&#8216;;</p>
<p>				$count += 1;<br />
			}<br />
//$data .= &#8216;yy&#8217;.print_r($foots).&#8217;yy&#8217;;<br />
			$data .= &#8221;.$footnotes_title.&#8221;;<br />
			$count = 0;<br />
			foreach($foots[2] as $foot_text){<br />
				$data .= &#8216;<a>&#8216;.$foots[1][$count].&#8217;.</a>&nbsp;&#8217;.$foot_text.&#8217;<a href="#foot_src_'.$foots[1][$count].'" rel="nofollow">&uarr;</a>&#8216;;<br />
				$count += 1;<br />
			}</p>
<p>	}<br />
	return $data;<br />
}<br />
add_filter(&#8216;the_content&#8217;, &#8216;yafootnotes&#8217;, 1, 1);<br />
###<br />
# usage {{1:footnotetext}} blah blah {{2:footnote other text}} etc.<br />
#<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Urology Journal</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-5799</link>
		<dc:creator>Urology Journal</dc:creator>
		<pubDate>Fri, 12 Mar 2010 22:38:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-5799</guid>
		<description>Thank you for this plugin!

After inspecting all the other &quot;footnotes&quot; plugins available for wordpress, we decided yours is the best.
We are now using it on our website with some modifications to suit our needs; e.g. multiple references to the same book, highlighting.

Again, thank you and keep up the good work!

Joseph W. of UrologyJournal.us</description>
		<content:encoded><![CDATA[<p>Thank you for this plugin!</p>
<p>After inspecting all the other &#8220;footnotes&#8221; plugins available for wordpress, we decided yours is the best.<br />
We are now using it on our website with some modifications to suit our needs; e.g. multiple references to the same book, highlighting.</p>
<p>Again, thank you and keep up the good work!</p>
<p>Joseph W. of UrologyJournal.us</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stratosg</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-4272</link>
		<dc:creator>stratosg</dc:creator>
		<pubDate>Fri, 05 Feb 2010 14:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-4272</guid>
		<description>Hey there Andreas. No, no news there. Unfortunately i haven&#039;t got around in updating this plugin for some time. I can&#039;t guarantee i will but i can say i will try :) If i do i&#039;ll post about it (because a couple of my plugins need an update anyways) so subscribe to get notified or keep coming back...</description>
		<content:encoded><![CDATA[<p>Hey there Andreas. No, no news there. Unfortunately i haven&#8217;t got around in updating this plugin for some time. I can&#8217;t guarantee i will but i can say i will try <img src='http://www.stratos.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If i do i&#8217;ll post about it (because a couple of my plugins need an update anyways) so subscribe to get notified or keep coming back&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-4265</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Fri, 05 Feb 2010 11:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-4265</guid>
		<description>Are there any news on the problem with the read-more tag? The problem still exists, unfortunately... Thanks! A</description>
		<content:encoded><![CDATA[<p>Are there any news on the problem with the read-more tag? The problem still exists, unfortunately&#8230; Thanks! A</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WP-Footnotes to YAFootnotes &#124; Maris Svirksts</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-2885</link>
		<dc:creator>WP-Footnotes to YAFootnotes &#124; Maris Svirksts</dc:creator>
		<pubDate>Tue, 05 Jan 2010 22:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-2885</guid>
		<description>[...] 22nd, 2009 &#124; Author:  Maris SvirkstsWhile moving Darkmatter journal from WP-Footnotes plugin to YAFootnotes plugin (custom tweaked, moved because YAFootnotes was easier for writers/reviewers) we bumped into [...]</description>
		<content:encoded><![CDATA[<p>[...] 22nd, 2009 | Author:  Maris SvirkstsWhile moving Darkmatter journal from WP-Footnotes plugin to YAFootnotes plugin (custom tweaked, moved because YAFootnotes was easier for writers/reviewers) we bumped into [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: YAFootnotes &#124; stratos.me &#124; Squico</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-2423</link>
		<dc:creator>YAFootnotes &#124; stratos.me &#124; Squico</dc:creator>
		<pubDate>Thu, 19 Nov 2009 23:20:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-2423</guid>
		<description>[...] In: Wordpress plugins  19 Nov 2009         My favorite footnotes plugin for wordpress. Go to Source [...]</description>
		<content:encoded><![CDATA[<p>[...] In: WordPress plugins  19 Nov 2009         My favorite footnotes plugin for wordpress. Go to Source [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephanie</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-2354</link>
		<dc:creator>Stephanie</dc:creator>
		<pubDate>Mon, 24 Aug 2009 14:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-2354</guid>
		<description>Thank you for your help with the other item from February.  The full text did appear fine otherwise.  

We&#039;ve run into another issue.  Law review articles often have multiple paragraphs in a footnotes (yeah, I know it is a bit excessive but I can&#039;t change that!).  However, multiple paragraphs in a footnote (between the footnote tags) causes the footnote text to also be in the body of the article.  Is there anything I should be doing to prevent this?  

----------------------
Example Wysiwyg Text: 
test {{1}}

[[1]] This is a test.

This is a test. [[1]]

----------------------
Example Output:
test
By Editor &#124; August 24, 2009

test [1]

[[1]] This is a test.

This is a test. [[1]]

FOOTNOTES
1.  This is a test.

This is a test. ↑</description>
		<content:encoded><![CDATA[<p>Thank you for your help with the other item from February.  The full text did appear fine otherwise.  </p>
<p>We&#8217;ve run into another issue.  Law review articles often have multiple paragraphs in a footnotes (yeah, I know it is a bit excessive but I can&#8217;t change that!).  However, multiple paragraphs in a footnote (between the footnote tags) causes the footnote text to also be in the body of the article.  Is there anything I should be doing to prevent this?  </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Example Wysiwyg Text:<br />
test {{1}}</p>
<p>[[1]] This is a test.</p>
<p>This is a test. [[1]]</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Example Output:<br />
test<br />
By Editor | August 24, 2009</p>
<p>test [1]</p>
<p>[[1]] This is a test.</p>
<p>This is a test. [[1]]</p>
<p>FOOTNOTES<br />
1.  This is a test.</p>
<p>This is a test. ↑</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 직접행동 미디어 &#187; 직접행동 미디어 연구와 웹출판을 위한 사이트 개시</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-1935</link>
		<dc:creator>직접행동 미디어 &#187; 직접행동 미디어 연구와 웹출판을 위한 사이트 개시</dc:creator>
		<pubDate>Tue, 05 May 2009 07:12:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-1935</guid>
		<description>[...] 부가기능: 이번에는 YAFootnotes 사용함 [...]</description>
		<content:encoded><![CDATA[<p>[...] 부가기능: 이번에는 YAFootnotes 사용함 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Code efficiency and Javascript in WordPress &#124; stratos.me</title>
		<link>http://www.stratos.me/wp-plugins/yafootnotes/comment-page-1/#comment-1763</link>
		<dc:creator>Code efficiency and Javascript in WordPress &#124; stratos.me</dc:creator>
		<pubDate>Fri, 03 Apr 2009 01:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stratos.me/?page_id=580#comment-1763</guid>
		<description>[...] YAFootnotes [...]</description>
		<content:encoded><![CDATA[<p>[...] YAFootnotes [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

