Forum Replies Created

Viewing 15 replies - 1 through 15 (of 57 total)
  • Thread Starter mgreis

    (@mgreis)

    David,

    Thanks for the follow up and the information about ZipArchive. That’s exactly what I needed. Once you explained it was a PHP module, I was able to locate and install it from the EasyApache configuration on cPanel.

    Thread Starter mgreis

    (@mgreis)

    Hi David,

    I installed the Development version (what a well-thought out and easy to use process!) and ran a quick test by uploading a Word document. Worked like a charm.

    Thank you so much!

    Per my previous post, I do still want to address the underlying issue of the ZipArchive class, once I understand how.

    BTW, reading your explanation, I gather that this error only shows up when an office filetype (.DOCX, .XLSX, etc.) is uploaded. Once it occurred, would it then prevent any file type from being uploaded? I think I noted that behavior, but I’m not certain. Not an issue, just something I noted.

    MLA is an incredibly impressive plug-in. The documentation you provide is outstanding and thorough. I confess to having only scratched the surface of what MLA does; I originally installed it simply to bring some order to an unruly collection of uploaded images. The possibilities are eye-opening. I need to spend more time with it.

    Thread Starter mgreis

    (@mgreis)

    David,

    Thanks so much! I will try installing the development version.

    On the ZipArchive class – I have no idea where that would be or why I don’t have it on my system. I have and use ZipArchives, of course, but I haven’t a clue how to go about adding this class to a WP implementation. Can you provide any guidance?

    Thread Starter mgreis

    (@mgreis)

    I think I found the solution.

    Categories with no posts assigned to them (these can be identified by a “0” in the “Items” column on the Categories page) do not appear in the widget selection box.

    Note, however, that a parent category with no assigned items that has a child category which does have assigned items will appear.

    Thank you for finding this problem!

    I have been driving myself crazy trying to figure out why I wasn’t getting the anchor wrap in the title field of an entry. I was working on a custom style, so I assumed it was something deep in Zotero/Zotpress/CSL. Much simpler (but absurdly hard to find…).

    Forum: Plugins
    In reply to: [Zotpress] Display of url

    It is possible to use your own styles with ZotPress – at least with the shortcode.

    The style has to be available – ideally on the site you’re coding for – and specified with a FQDN. For example, I am using the following code to display a bibliography of items from my online Zotero library using the following:

    [zotpress collection="F6X6F522" tags="ESG" showtags="no" urlwrap="title" sortby=”date” order=”desc” style="http://www.riverbendadvisors.com/blog/wp-content/uploads/2019/08/site-resource-list-new-v3.csl" abstract="yes" highlight="Abstract:" ]

    This is a highly customized style, and has been a non-trivial amount of work. The interplay among CSL, Zotero & Zotpress is complex. That said, if you need just a few tweaks, you may be able to implement those fairly easily.

    If you want to see what it looks like, this is my testing page.

    Hi,

    I’m running into the same problem. I really don’t want to set up a local environment. I would rather just reset the timer to let the program do its work. I can run the test overnight as needed.

    I see that there is a custom_timeout.php filter available to override the timeout. How do I use it? Do I simply put it in the plugin’s directory? Is there something else I need to do?

    Thanks for any help you can provide.

    Thread Starter mgreis

    (@mgreis)

    No worries – thanks so much for pointing me in the right direction.

    I cut & pasted the code modifications into the wrong place when I recreated them the first time. I saw the error when I pasted them in the new (correct) location. I take some small satisfaction in having noticed the error before actually trying the code.

    Thread Starter mgreis

    (@mgreis)

    That was easy.

    I did have the current version installed. The front-end.php file was still in the /includes directory. I just assumed that was still where the live code was. Now I know!

    Thanks so much!

    BTW, should anyone want to use this mod, please use the version below (the mods to show the description should come after the tag, not inside it):

    		// loop through found documents
    		// MJG 2019-10-10 - Mods to display custom field "Description"
    		$cf_key = "Description";		
    		foreach ( $documents as $document ) {
    			?>
    			<li class="document document-<?php echo esc_attr( $document->ID ); ?>">
    			<a href="<?php echo esc_url( get_permalink( $document->ID ) ); ?>">
    				<?php echo esc_html( get_the_title( $document->ID ) ); ?>
    			</a>
    		<!-- MJG 2017-02-16 Mods to display custom field "Description" -->
    			<p style="margin:0px; padding: 0px 5px 0px 10px; color: black ; font-size: 0.9em"">
    			<?php echo get_post_meta($document->ID,$cf_key,TRUE); ?>
    			</p>
    		<!-- -->
    Thread Starter mgreis

    (@mgreis)

    Hi Rahesh,

    I created an updated version of my child theme’s header.php using the current version of the parent theme’s header.php. That seems to have done the trick.

    Thanks so much!

    Thread Starter mgreis

    (@mgreis)

    Rajesh,

    Thanks for your reply. I am using a child theme. I’m not sure what you mean by “tally the header.php file in the child theme with the parent theme and manage it”?

    Are you perhaps suggesting that I should recreate my child theme changes in the most current version of the header.php from the parent theme? That certainly seems like something worth doing regardless, but I want to be sure I’m doing what you think will help with this particular problem.

    Let me know – thanks!

    Michael

    Thread Starter mgreis

    (@mgreis)

    I understand. I’m in the same position. I too try to leverage as much as I can from tools as they’re designed. That saves work and is more sustainable. After all, if I’m using a core feature (of Zotero, Zotpress, whatever) to accomplish something custom, it’s more likely to continue to work going forward. I’ll reach out through your form.

    Before we close this item, though, let me recap and make sure I understand what Zotpress is doing and not doing. It may also be helpful for other users.

    A Zotpress shortcode (like the one above) uses the Zotero API to retrieve a set of items from the Zotero library based on the criteria provided.

    The items retrieved are served serially by Zotero in an order specified by the CSL style, unless overriden in the API request based on shortcode parameters.

    Zotpress places these into the WP content stream serially, in the order they are delivered. Formatting is as specified by the CSL style along any CSS from Zotpress.

    (Is that correct? Or do you take the entire response and then process it? I ask because my intent in creating the custom style was that it would do the heavy lifting in presenting the material.)

    Thanks!

    Thread Starter mgreis

    (@mgreis)

    Hi Katie,

    I posted a question on the Zotero forums about this. I got a very quick answer back from Dan Stillman that the API will respond with items in the requested order. He gave me a sample API query to try, and it did work as expected.

    May I ask you to take a look and tell me what you think?

    Thanks!

    Thread Starter mgreis

    (@mgreis)

    Katie,

    I’m talking about a custom CSL style I created. In it, I explicitly request that it sort the items by the CSL “note” field which corresponds to the Zotero “Extra” field. I’m assuming that the style then serves the items in that order. If so, then all I need is to be able to tell Zotpress to display them in the order it receives them. Or am I missing sonething?

    Here’s the link to the CSL style file.

    Here’s a test page using this style.

    Here’s the zotpress shortcode used on the page:

    [zotpress collection=”F6X6F522″ tags=”test” showtags=”no” urlwrap=”title” abstract=”yes” style=”http://www.riverbendadvisors.com/blog/wp-content/uploads/2019/08/site-resource-list-new.csl&#8221; highlight:”Abstract” ]

    Thanks!

    mgreis

    (@mgreis)

    I just ran into the exact same problem (and workaround).

    This occurs with both Zotpress 7.0.3 and 6.2.4 (I am testing before upgrading, so I have an otherwise identical staging site with the newer Zotpress intalled.)

Viewing 15 replies - 1 through 15 (of 57 total)