ericcorbett2
Forum Replies Created
-
Forum: Plugins
In reply to: [Zotpress] Title stylingSorry, this should refer to the author field, not the title.
So an author with the name “St Peter’s, Norwich”, for instance, is rendered as “St Peter’s & Norwich”.Forum: Plugins
In reply to: [Zotpress] Update to 7.3.11 broke my pagesThe problem is that the variable $wpdb needs to be declared globally before line 331 in zotpress/lib/shortcode/shortcodes.functions.php:
global $wpdb;
$zp_account_temp = $wpdb->get_row("SELECT * FROM ".$wpdb->prefix."zotpress LIMIT 1", OBJECT);
Just add the global declaration as above and everything works fine.- This reply was modified 2 months, 1 week ago by ericcorbett2.
- This reply was modified 2 months, 1 week ago by ericcorbett2. Reason: adding necessary detail
Forum: Plugins
In reply to: [Zotpress] Backtrace from warningI had a problem in that area of code as well, not quite the same as yours, but it may be related. I worked around it by adding a check to determine whether $request_items was countable. Might be worth a try?
foreach ( $items as $item ) { if ( is_countable($request_items)) { if ( count($request_items) < 50 ) { $request_items[] = $item; } } else { $requests[] = $request_items; unset( $request_items ); } }
I think your hosting company isn’t correct in saying that you can only have 50 references – you still have 51 anyway – and I’ve certainly got pages with way more than 50 references that work fine, such as https://engole.info/a-christmas-carol
- This reply was modified 1 year, 3 months ago by ericcorbett2.
Forum: Plugins
In reply to: [Zotpress] Another PHP 8.1 issueI have to hold my hand up and say that after looking into this issue more deeply, it was caused by my error in the parameter that I passed to Zotpress.
I do think though that it would be a good idea to check whether a parameter/variable is countable or not before trying to count it.- This reply was modified 1 year, 4 months ago by ericcorbett2.
- This reply was modified 1 year, 4 months ago by ericcorbett2.
- This reply was modified 1 year, 4 months ago by ericcorbett2.
Forum: Plugins
In reply to: [Zotpress] How do I Sort By the citation’s appearance in the text?Whatever works is a win. ??
Forum: Plugins
In reply to: [Zotpress] How do I Sort By the citation’s appearance in the text?I wanted to do something very similar, if I understand you correctly, and so I wrote a plugin that produces output like this, based on the Wikikipedia {{sfnp}} template.
If that’s the kind of thing you’re thinking of, you’re quite welcome to the source code to do with as you will.
Forum: Plugins
In reply to: [Zotpress] Search bar shows no reultsWell, it did, but now it no longer works under Firefox either.
Forum: Plugins
In reply to: [Zotpress] Search bar shows no reultsI’ve subsequently discovered that this problem seems to be related to the Chrome web browser, as when using Firefox and Safari everything works fine.
- This reply was modified 2 years, 1 month ago by ericcorbett2.
Forum: Plugins
In reply to: [Zotpress] Search bar shows no reultsI’ve had exactly the same problem since the recent update.
And reverting to the earlier version of Zotpress has made no difference at all.
- This reply was modified 2 years, 1 month ago by ericcorbett2.
Forum: Plugins
In reply to: [Zotpress] WordPress 5.8.1I’m running that combination, and it works perfectly well with no problems.
Forum: Plugins
In reply to: [Print, PDF, Email by PrintFriendly] How to keep formattingHave you tried adding class=”print-yes” to your <div> tags?
Forum: Plugins
In reply to: [Zotpress] Remove a, b, … prefixes in bibliography?That’s because you haven’t included dates in your Zotero entries.
It’s true that most web sites don’t provide dates for their pages, but I usually use the retrieval date in cases like this.
- This reply was modified 3 years, 7 months ago by ericcorbett2.
- This reply was modified 3 years, 7 months ago by ericcorbett2.
Yes, it works in Chrome under Windows for the URL you submitted. It also works under Edge and Firefox; I haven’t installed Safari.
I’m using the Pro version.
It works fine for me using Chrome under Windows.
Forum: Plugins
In reply to: [Zotpress] Whirling cog when citing the same source twiceThat’s interesting, but I’d be inclined to suspect that it’s a coincidence. The page builder I use also allows the use of templates, but none of the pages I had problems with used templates.
The whirling cog suggests that a request to the server hasn’t completed, so I further suspect that if you’d done nothing at all the whirling cog would also have been gone. Post hoc, ergo propter hoc.
But whatever, it’s good that your problem is now fixed.