This plugin is now part of the official Wordpress plugins repository. Due to a conflict with an existing plugin, however, its name is now “Now Reading Reloaded.” It is recommended that you disable the existing “Now Reading for Wordpress 2.7+” plugin and enable this one; your books and such will not be affected.
Like many of you, I’m a fan of Rob Miller’s Now Reading plugin. But Rob’s been busy lately, and the plugin, while functional, doesn’t look too great on Wordpress 2.7.
In an entirely selfish effort, I cleaned up some of the code (using the latest 4.4.4-beta code from SVN) to use some of Wordpress 2.7’s built in styles.
Caveats
Before you download it, let me make some things perfectly clear:
- I have limited testing capabilities; I don’t have access to PHP4, so support for it is limited to whatever happens to work.
- Translations are no longer up to date, and will be even less so in the future. Contributions are (eventually) welcome.
- You must have Wordpress 2.7 or higher. Older versions are not supported.
- Due to a change in Amazon’s API, you must now sign up for an access key in order to use this plugin.
General support questions should be posted to this plugin’s support forum. Patches are welcome via my contact form.
If you still want this, have a go at it.
Roadmap/ToDo
- Allow other data sources besides Amazon (?)
- Allow caching/saving of book images (planned for 6.0)
- Allow configurable book status (planned for 6.0)
- Tie more closely to Wordpress API (planned for 6.0)
- Expanded DB schema (planned for 6.0)
- Shortcodes (planned for 6.0)
- Reworked templating system (tentatively planned for 6.0)
- Improve the UI
Subscribe
Jamie Thingelstad
/ Wednesday, May 20th, 2009Has anyone attempted to implement paging in the library? I’m starting to add more books, and it doesn’t make sense to show all books on the library.php page. I’d like to implement paging, but am more than a bit worried about it. :-)
Anyone done this yet?
Lisa
/ Sunday, May 24th, 2009I have yet another question. I’m not sure if it’s possible but I was wondering if there was a way of displaying a tag list for the Now Reading Library so someone could basically browse the subjects and find books in that subject.
ovidiu
/ Thursday, June 18th, 2009hi there.
still using the old version of the plugin and am happy with it, but I have some “styling problems”.
please have a look at my customization here: http://pacura.ru/library/ also check tag pages, author pages and single entries.
My problem is I can’t find a way to format the permalink for the h2 title i.e. in the author pages, check the output: http://pacura.ru/library/karen-miller/ notice the link: Recently read books by and then the author name is missing there :-( here is the code that generated that page: http://pastebin.com/f253febfc
see? I tried including $nr_author but it seems somethign is wrong because
<a href="http://pacura.ru/library/<?php book_author_permalink(); ?>/"doesn’t work.Ben
/ Friday, June 19th, 2009Have you tried
the_book_author()instead of justbook_author()?Cy
/ Thursday, June 18th, 2009Strangely, since I upgraded to 4.4.5 Now Reading has stopped working again. I get the 404 error whenever I try to add or edit a book. Searching works fine, though. I also attempted to turn off mod_security, but unfortunately this did not solve my problem. Any fixes?
ovidiu
/ Friday, June 19th, 2009I posted a rather legthy comment here, last night, seems to have been caught as spam, would you mind checking? otherwise I’ll have to rewrite it all ;-(
ovidiu
/ Friday, June 19th, 2009thx Ben, doesn’t work. why would it? I doubt there is a function the_book_author, I copied the functions book_author_permalink and book_author from the original templates. I am sure I am just using it outside the loop but I know too little about code to fix this :-(
I’d really want to display that information on the page like I am trying to...
Ben
/ Friday, June 19th, 2009It works in my template, and I didn’t add or remove any functions.... here’s my author template:
ovidiu
/ Friday, June 19th, 2009slowly getting there :-) made some changes, according to your template, here are the differences: http://pastebin.com/pastebin.php?diff=f750d43da
the_book_author works now, can you also help me get book_author_permalink right? so the hyperlink works properly, pelase?
ovidiu
/ Friday, June 19th, 2009ok, here is an excerpt from the original author.php tempalte:
it seems the permalink does only work inside that loop, is tehre a chance I can get it to work here? http://pacura.ru/library/kristin-cashore/ I would like to get the right permalink working for the H2 tag on author pages...
Ben
/ Friday, June 19th, 2009Doesn’t that just link the page to itself, though? Clicking on the name of the author on an author page would take you to.... the author page.
ovidiu
/ Friday, June 19th, 2009oops, sorry. but not even the book_title works on single pages i.e. http://pacura.ru/library/kristin-cashore/graceling/ :-( I don’t necessarily need the permalink :-(
Ben
/ Friday, June 19th, 2009As of 12:50CST, there doesn’t seem to be anything wrong with that page....
ovidiu
/ Friday, June 19th, 2009hmmm... you are right, but that is just the way, most themes construct pages/posts...
I guess I’ll have to do without it then, but nevertheless, the function is built-in I am just too stupid to use it :-(
ovidiu
/ Friday, June 19th, 2009there is still stuff wrong with that page. the H2 tag is missing, the page is based upon this template file: http://pastebin.com/f75d63722 se where it should generate the H2 tag?
Ben
/ Friday, June 19th, 2009You mean the
<h2><?php book_title() ?></h2>should result in<h2>Graceling</h2>? It does....ovidiu
/ Friday, June 19th, 2009not there :-( have a look at the source code of the page: its meant to be there where there is only an empty H2 tag, further up in the page :-(
Ben
/ Friday, June 19th, 2009Ah, I see now. The information you’re trying to put inside the
<h2>has to be inside the loop. So:ovidiu
/ Friday, June 19th, 2009thanks :-) that more or less solved everything. now I’ll just have to find the time needed to fiddle with these tempaltes and perfect them :-)
Lutz
/ Monday, June 22nd, 2009Hi,
thanks for the work you put into it. I downloaded your version of “Now Reading” and it works fine.
Well but I have the same problem like some others who wrote here. The sidebar is moved when single.php or library.php is loaded. I already moved the get_sidebar after the last
Ben
/ Monday, June 22nd, 2009Lutz,
The stock template doesn’t jive with your theme. Compare the single.php and library.php pages to your stock page.php template and make sure the
<div>tags match up.Lutz
/ Monday, June 22nd, 2009Thanks for pushing me into the right direction. I already compared page.php and single.php but it didn’t worked untill now. Now it’s looking nice.
Thanks again. :-)
bbattersby
/ Monday, June 22nd, 2009I’m having the same problem as Christy — Error Adding Book.
The search seems to go fine. Enabled the error log and this is what I got.
raw XML:string(8) “raw XML:“
string(21300) ”
115aed2c-b3dd-4183-b41a-ca099c8cb04d
Then when I click on the Use This Result I get the error — Error Adding Book! and the search screen again.
Ben
/ Monday, June 22nd, 2009Is your host running PHP4? Or PHP5?
ovidiu
/ Sunday, June 28th, 2009one more issue I just discovered: my library page: http://pacura.ru/library/ shows 70 book,s but if I go manage books, I see its actually 77 books. I already checked, all 77 are marked as read.
here is the code that generates the numbers on the library page:
‘
overall; read in the last year; read in the last month;
Last read books():
‘
there is nothing wrong with that code :-(
Ben
/ Sunday, June 28th, 2009Can you paste your code in a
<pre>tag?ovidiu
/ Tuesday, June 30th, 2009didn’t work with the pre tag, here is a link: http://pastebin.com/m4d8aa194
Ben
/ Tuesday, June 30th, 2009Nothing in the code to indicate what you’re reporting. Do you know which books aren’t showing up in the library as read? Any way you could get me an sql dump of your
now_readingtable?ovidiu
/ Wednesday, July 1st, 2009too many books to find the ones missing, I ‘ll have another look to see which ones are missing. meanwhile, how do I get that dump to you? I’ll just try answering your email ok?
ovidiu
/ Thursday, July 2nd, 2009solved. I was looking at the book IDs not book numbers.
Brian
/ Sunday, June 28th, 2009On my library page: http://blog.thelifeofbrian.info/library/
The right sidebar is not being displayed in the correct position.
I’ve found this problem and with your help (I thought?) corrected it before, but can’t find where it was discussed. I remember it was a simple one line fix which I had to apply to several template files... I honestly don’t remember the last time I updated the plugin, but I’m guessing I must have done so and the change was overwritten.
Can you help? :)
Brian
/ Sunday, June 28th, 2009heh, one other question — I see in the template file that each book on that page is surrounded by li (list) tags, but it’s not showing up as a list on my page. Any idea why?
Thanks for your help!!
Ben
/ Sunday, June 28th, 2009Well, for starters, your theme already has a
<div id="content">, but the template is producing an extra one (<div class="now-reading primary narrowcolumn" id="content"</div>); that might have something to do with it.w.r.t. lists, your template is generating the unordered lists just fine. This because your theme has
which eliminates the usual list style.
Brian
/ Sunday, June 28th, 2009ok... Can you tell me what I would need to do to fix it then? I tried changing the div id=“content” to “nr_content” with no change.
Ben
/ Sunday, June 28th, 2009Comparing the library markup to your colophon, my guess is this:
Your library template currently has a structure like so:
Make it look like this (add id=left and class=entry):
Brian
/ Sunday, June 28th, 2009**thank you**! That did the trick — and now the list items show correctly as well. :)
ovidiu
/ Friday, July 3rd, 2009any idea about SEO? I mean I have the all in one seo pack plugin active, and all book/author/library pages, are treated as if its the homepage, so I cna’t use custom meta tags :-( only if I modify the templates, so the header isn’t dynamically generated I can manually include meta tags, but then AIO overrides my metas with its own ones :-(
anyone with some info on SEO this now reading plugin?
Brian
/ Friday, July 3rd, 2009Wow, I just realized version 4.4.6.1 is available — I’ve got 4.4.5 installed. How can I be automatically notified when there are newer versions?
Brian
/ Friday, July 3rd, 2009What’s the recommended upgrade path? Disable the current version and just copy the files up? Or delete the previous plugin and install fresh?
Brian
/ Friday, July 3rd, 2009No worries about the ugprade. I just backed up the previous files by renaming the 4.4.5 directory, then uploaded the new one. Of course I had to re-tweak the library.php, and I’m sure there will be other tweaks I’ll find I’ve lost, but at least I have the previous files to look at.
Any plans for:
1) automatic notification of updates
2) a way to modify templates, etc. in such a way that the modifications are not lost with an update?
ovidiu
/ Friday, July 3rd, 2009well, the instructions sa to copy all template files you modify into a folder: now-reading inside your active theme to keep them :-)
Ben
/ Friday, July 3rd, 2009Brian,
As ovidiu said, you can make a folder inside your current theme called
now-reading, and the plugin will prefer the templates in there to its own.As for updating, please see this recent post regarding the plugin’s future.
Brian
/ Friday, July 3rd, 2009cool, thanks!!
Ross
/ Saturday, July 4th, 2009I have installed the latest version (4.4.6.1) on my test/dev site running WP 2.8.1 beta 2 and K2 1.0 rc7 (build 798). The plugin installs fine and appears on the admin page. However, when I try to enter a couple of ISBN numbers I get the message that Amazon.com/.co.uk/.de cannot find the book with that ISBN number.
Then, when I try to view some of the other pages — Now-Reading, Add A Book, Manage Books, Options — I get the following error: “You do not have sufficient permissions to access this page.” I have checked the ownership and permissions of the plugin folder — www-data and 777 — so I should definitely be able to access the page.
Has anyone else had this problem? Has anyone got a solution?
Thanks in anticipation
Ross
Ben
/ Saturday, July 4th, 2009I noticed this same problem when I was testing with 2.8.1 betas; I’m waiting to see if the problem is solved in 2.8.1 final.
Ross
/ Saturday, July 4th, 2009I have a few queries about this plugin (using 4.4.5 at the moment while I wait for 4.4.6.1 to work with WP 2.8.1):
First, on the plugin admin page there are four options under the Now-Reading heading — Now-Reading, Add a Book, Manage Books, Options. What is the difference between the Now-Reading and Add a Book admin pages? Is it necessary to have two identical pages?
Second, how can I add another status option to my options? I’d like to add a “did not finish” option to the yet to read, currently reading, on hold and read options.
Third, there are more books on my library page than there are in the admin panel Manage Books page. And the extra books that are on the library page are the ones missing cover images. Would that be as a result of upgrading NR? How can I update the entry to include the cover image?
Thanks for your time...
Ben
/ Saturday, July 4th, 20091. Does 4.4.5 work with 2.8.1? There shouldn’t be any changes between 4.5 and 4.6.x that broke the permissions...
2. Right now, the book status is not extensible. In the short term, you’d need to hack at the plugin.
3. To add a cover image, edit the book: there’s a field for a path to an image.
Diane
/ Saturday, July 4th, 2009Ben,
I have a request. Would it be possible to put the currently reading, yet to read and onhold books at the top of the books database? It would be great not have to page thru all the read books to get to the onhold books.
Thanks
Diane
Brian
/ Monday, July 6th, 2009Well this morning is the first time I’ve tried to add a new book since upgrading to the latest version of Now Reading (4.4.6.1).
When I search by ISBN here are the results I get:
Sorry, but amazon.com did not return any results for the ISBN number 0061015733.
Sorry, but amazon.com did not return any results for the ISBN number 9780061015731.
And when I search by title I get this:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 71 bytes) in /home2/lookfou1/public_html/blog.thelifeofbrian.info/wp-content/plugins/now-reading/xml/IsterXmlNode.php on line 234
If you go to Amazon.com and search for either of those ISBNs you’ll see they are valid...
Any ideas what the problem is and how to fix it? :)
ovidiu
/ Monday, July 6th, 2009if you are on your own server edit php.ini and increase max memory size from 33554432 to i.e. 67108864 otherwise ask your hosting company to do that for you.
Brian
/ Monday, July 6th, 2009A couple reactions:
1) why would I need to change anything in my setup? I’ve had Now Reading installed for quite some time and it was working fine before the upgrade.
2) which php.ini? It looks like there’s one in nearly every directory. I tried changing this line:
memory_limit = 32M
inside the php.ini at my blog level (/public_html/blog.thelifeofbrian.info) to 64M, but it had no effect.
Thanks for your help
Ben
/ Monday, July 6th, 2009I’m not sure what’s causing these errors, but I’m getting the “no results” error as well. Possibly something wrong with Amazon?
When I have the time, I’ll try to go back and test against previous versions of the plugin to see if I broke anything.