The plugin stopped working correctly after updating the PHP 8.3.8 version (WP 6.5.5) to the current one.
Using Chat GPT I corrected the plugin code. You can update it through the Plugin Editor by taking the correct code from the link https://docs.google.com/document/d/1p1RDfob6T1cJPYn9vqCk0kaDIrLB3qGR82TRM2SM-PA/edit?usp=sharing
After the fix, the plugin works correctly
I am not responsible for the correct operation of the code, and also do not consider this a copyright violation. But this saved me, perhaps the author will release the correct version, and my code is just a temporary solution.
]]>If you have PHP 7, Simple Footnotes will throw a PHP notice of Deprecated:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nacin_footnotes has a deprecated constructor in /path/to/wp-content/plugins/simple-footnotes/simple-footnotes.php on line 10
The E_DEPRECATED is emitted for the reason explained in this page: https://www.php.net/manual/en/migration70.deprecated.php#migration70.deprecated.php4-constructors.
Since the plugin has not been updated for 4 years, I edited it in this way:
Line 15
Change this line from this:
function nacin_footnotes() {
to this:
function __construct() {
Notice that __
is a double underscore.
Line 26
After line 26 (i.e., create a newline), add these lines:
function nacin_footnotes() {
self::__construct();
}
Save the file and you should not receive notices anymore.
To be clear, here you can find the diff between the original file and the modified: https://gist.github.com/aldolat/9642e5614449753f9408bd256136b4da/revisions
]]>I need to upgrade to PHP 7.
PHP Compatibility Check issues the following warning. Wondering if the plugin will be updated (we depend on it heavily).
FILE: /homepages/37/d146050845/htdocs/gf-wp/wp-content/plugins/simple-footnotes/simple-footnotes.php
—————————————————————————————————-
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
—————————————————————————————————-
15 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
—————————————————————————————————-
Hi,
by running the Plugin on PHP 7.0 the following message appears:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; nacin_footnotes has a deprecated constructor in /Applications/MAMP/htdocs/ubermind/wp-content/plugins/simple-footnotes/simple-footnotes.php on line 10
I hope that the plugin gets updated again in the future.
Best,
Josef
Hi !
Every time I insert a footnote in a text the footnote number jumps straight to 3 (in the text), and then at the bottom of the page, the same footnote text is entered three times in a row.
For instance I get at the bottom of my page:
1. This is your footnote text
2. this is your footnote text
3. This is your footnote text
You can see a concrete example on this page of my blog (text in French).
Any ideas how to fix this?
Thank you very much in advance !
Very often my text looks like this
asdfsd lkasjdf lkjasdfasdfasdfsd
[1]asdfsadf lkja sldkfj lk asfda
asdfsdf dsf asfd sdfa sdafdfsafd
Is there anything I could do so at least the previous word would go in next line too? In what way could I control that, with css?
]]>So on my site, I’m getting this:
Notice: wp_htmledit_pre is deprecated since version 4.3! Use format_for_editor() instead. in /var/www/danbailey.net/public_html/wp-includes/functions.php on line 3406
Site, obviously, is https://www.danbailey.net. Error shows up at the bottom of every page, even those not using the [ref]
shortcodes.
Any chance a fix will be forthcoming?
]]>Hi,
This is a great plugin, and is working perfectly on my site. Thank you! I would like to know if it is possible to change the font size of the footnotes, and if so how?
Thanks in advance.
]]>Hi. The footnotes don’t display if I include the shortcode for social sharing on my posts. You can see an example here:
https://www.crushednot.com/?p=170
I’ve got two footnote plugins running as I’m trying to find a fix. They don’t conflict with each other and both will display if I DON’T include social sharing. The theme development team this is an issue with the plugin and not the theme. What should I do?
Thanks.
]]>Hi,
I need to combine two or more identical references in one number and i need too that it appear only one time on the footer.
Can someone tell me if it is possible with this plugin?
Thanks.
]]>is there any way to set different styles (classes) for footnotes? for example: ((metaanalytis:…..)) such footnote should have red color because it’s an valuable source.
other examples:
((book:…..))
((article:…..))
((review:…..))
((systematic review:…..))
look here:
https://web.archive.org/web/20141219043109/https://www.dentopolis.org/
Hi, I really like this plugin. It would be nice if plugin would recognize if I write a link, and correspondly format it. For example
[ref]www.domain.com/huehue[/ref]
would be written as
<a href="www.domain.com/huehue">www.domain.com/huehue</a>
Also tinyMce button would be really nice, as people who arent familiar with codes forgot how to put footnotes
]]>Hello there. I really like this plugin, but sometimes my clients find using shortcodes a bit intimidating. There is a separate plugin (Simple Footnotes Editor Button) that adds a TinyMCE button and simple UI to the editor screen, but since WP3.9 it no longer works, and it seems the plugin has been abandoned.
I understand you are keen to keep this plugin simple (and I commend you for that), but integrating a TinyMCE button would be a great addition for the end user, regardless of their experience with shortcodes.
Thank you for reading, and keep up the great work.
https://www.ads-software.com/plugins/simple-footnotes-editor-button/
]]>The footnotes do not work when placed in an image caption. Is there a way around this?
]]>I’m just learning php and can see the awesome power off hooks. I’ve checked the plugin file and I don’t see that the footnotes are added to the page using a hook, but are just appended to the page content.
I’m making a page template and it would be awesome if I could determine exactly where I want the footnotes to be placed. At the moment I have some stuff that needs to appear on many pages after the page content but before the footnotes, and I can’t see any way to do that (except by adding it to each page manually, which I’m not going to do).
I want to load the footnotes onto the genesis_after_post_content hook and set its priority, but I can’t currently see any way to do that.
]]>hi,
great plugin but when i tried with RTL language dosen’t work i think because a shortcode is LTR. any ideas to resolve this issue
thank a lot.
]]>Right now, the “Notes” heading it’s hard-coded on the plugin.
I would like to send a patch to add a filter, an option or localization features to the plugin
I searched for this plugin on your Github repositories, but didn’t find it; how can I send you the patch? (whichever you prefer)
]]>As was discussed in an old post, this plugin inserts a space before the superscript footnote link in the body of the text.
Is there any way to remove it?
]]>Hi Andrew,
As the title says, could the plugin include a class for the return links in the footnotes? This would help themers distinguish between links in the “body” of the footnote and the return link and thus allow them to style the links differently. Something like this on line 86 perhaps:
$content .= '<li id="note-' . $id . '-' . $num . '">' . do_shortcode( $note ) . ' <a href="#return-note-' . $id . '-' . $num . '" class="simple-footnotes-return-link">?</a></li>';
Thanks, Christian
]]>How do I reference a source twice and have it appear only once in the notes at the bottom rather than repeating it?
I am citing the first source.1 I am citing the first source again.1
1. The first source
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>Thanks for building such an awesome plugin, it just saved me hours of fiddling with regex! Just a simple request that would make this perfect – could you apply filter to the header so that:
In the version I’m using, I changed line 84 from:
$content .= '<div class="simple-footnotes"><p class="notes">Notes:</p><ol>';
to
$content .= apply_filters('simple_footnotes_header','<div class="simple-footnotes"><p class="notes">Notes:</p><ol>');
I’ve set up a filter in my functions.php file with a custom string, including a gettext target:
function footnote_header($header){
return sprintf(
'<div class="simple-footnotes"><h2>%s:</h2><ol>',
__('Sources','theme')
);
}
add_filter('simple_footnotes_header','footnote_header');
This is working perfectly for me. Could you add the filter to your plugin?
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>Hi,
It would be pretty useful for me to be able to have footnotes labelled by letter (a,b,c etc) rather than number (1,2,3 …). That can reduce confusion with mathematical powers, or leaves superscripted numbers free to use, for example, as bibliographic references.
Would this be an easy thing to add to SimpleFootnotes, and would it be useful for other people? I imagine there are very few cases of >26 footnotes in a post, so running out of symbols is unlikely to be a problem (letters are also neater for footnotes 10-25, as only a single symbol is needed).
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>I can’t reproduce it on localhost (both on clear WP and a full copy of the site including DB), only installation on Dreamhost is affected. Could it some setting?
The strangest thing is that only non-admin users are affected, for admins site looks just fine.
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>Hi,
On some of my pages I have realized the the footnotes are not displaying (but the superscript number links do). I am using Bill Erickson’s plugin Display Posts Shortcodeand I have realized that any page that contains shortcodes from both plugins is where the issue exists. Even more specifically it is the parameter allowed in DPS include_excerpt=”true” that seems to be the real culprit.
Any idea how I may fix this?
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>The footnotes I put in my text, appear even when only the first part of the blog, without notes, is shown on a page. This is undesireable.
Is there anyway of this not happening?
The page is: https://inekris.xs4all.nl
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>When I use this plugin for my footnotes, the footnote numbers reset after 10 in the footer. They continue past 10 in the main text (superscripts), but in the footer it goes “9…0…1…2..etc”. Does anyone know what I am doing wrong?
Thank you!
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>Hi,
Is there any way to put the footnotes on a sidebar, like that of Grantland (https://www.grantland.com/story/_/id/8937394/are-george-karl-denver-nuggets-really-title-contenders)?
Thanks
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>https://halfelf.org/2012/google-apps-aint-free/ for example
If there’s one footnote, it shows up three times.
Two and they show up twice each. I thought it was because I was on trunk, but this happens on a clean 3.5 as well.
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>Hello,
When I create a footnote, it adds it so high up it overlaps some of the words in the sentence from the previous line. Can you tell me how to get the footnote to position where it should and not so “high” up that it overlaps on top of a word. Thank You
Michael D’Agostino
[email protected]
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>Also using multisite
https://www.ads-software.com/extend/plugins/simple-footnotes/
]]>