Mark
Forum Replies Created
-
Forum: Plugins
In reply to: [Zotpress] Getting [download] to work for public group librariesThat’s great! Just to clarify, when you say “linked URLs”, do you mean URLs in the “URL” bibliographic metadata field, or linked attachments added using the “Attach link to URI”? (I hope both, or at least the latter 🙂 )
- This reply was modified 6 years, 3 months ago by Mark.
Forum: Plugins
In reply to: [Zotpress] A glitch in Group Library support?Thanks for your response! Yes I have tried to troubleshoot from there. Private API key works (used 7 minutes ago according to Zotero) and user ID double checked. API key set to Read only and Read/Write permission doesn’t make a difference. (It is also not a local client <> Zotero server syncing issue: the public library shows the collections and tags are present.)
The “Browse” tab on the ZotPress back end does display all items in the library, just like my test page (which precludes a key or ID issue). But the dropdown just has “Top level” (left) and “Loading…” (right) — no collections or tags in sight. On the site it looks exactly the same when using the following shortcode call (ID removed):
[zotpressLib userid="XYZ" sortby="author" type="dropdown"]And when I set a specific top level collection, nothing is displayed at all. It is as if my ZotPress doesn’t know about the collections in the group library.
[zotpressLib userid="XYZ" sortby="author" toplevel="JS8Q8AKB"]- This reply was modified 6 years, 3 months ago by Mark.
I don’t see the problem on the page you linked. Could it be that it only happens when you insert a ZotPress bib in the main text *and* the footer at the same time?
Forum: Plugins
In reply to: [Zotpress] Display of urlThis is something that is handled by the CSL style. You might check whether there are any available CSL styles at zotero.org/styles that would provide a solution, and then select that style in your ZotPress settings.
However, given that ZotPress only allows Zotero-hosted CSL styles, there may not be a style that does what you need. In that case it would indeed be great if ZotPress allowed some degree of customization.
Sure. Change the line above to:
$args = array( 'posts_per_page' => 6, 'cat' => 2 );And change “2” to your category ID. Basically this is just a standard post query so you can change whatever you like. The posts_per_page => 6 thingy will make sure you don’t overfeed the slider – it doesn’t look as good with more than six posts.
Forum: Reviews
In reply to: [Oxygen] DecSounds like you’re holding a grudge, and I have to say that it’s not very tasteful –nor effective!– to communicate that using a single-star review. Oxygen is a high quality theme and it seems pretty wild to post a review like this because the way its mobile version is laid out doesn’t correspond to your personal preferences. In the thread you’re linking to, WPyogi writes:
I would not necessarily make that conclusion – it does work quite well on mobile – just not exactly the way you want. All the page elements are there, visible and functional, right? It’s just the order of them that is the problem?
Which you then confirm.
Please refrain from venting your anger by means of reviews, it’s not the kind of thing that helps anyone and in fact probably decreases your chances of finding a decent solution. I’ve helped out quite a lot of people with Oxygen and HTML/CSS questions on these forums, but I have to say I don’t feel inclined to give you a hand this way — and others probably feel the same.
Forum: Themes and Templates
In reply to: [Oxygen] Removing grey image placeholder if post has no imageIn several of the Oxygen template files (search.php, archive.php, frontpage.php) you’ll find a call to
get_the_image, as follows:<?php if ( current_theme_supports( 'get-the-image' ) ) { get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'archive-thumbnail', 'image_class' => 'featured', 'attachment' => false, 'width' => 470, 'height' => 140, 'default_image' => get_template_directory_uri() . '/images/archive-thumbnail-placeholder.gif' ) ); } ?>What generates the grey placeholder is the last setting in that function call:
'default_image' => get_template_directory_uri() . '/images/archive-thumbnail-placeholder.gif'If you remove that or change it to
'default_image' => FALSE, the placeholder image will not be shown.So what you want to have is this:
<?php if ( current_theme_supports( 'get-the-image' ) ) { get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'archive-thumbnail', 'image_class' => 'featured', 'width' => 470, 'height' => 140, 'default_image' => FALSE ) ); } ?>To apply these changes, do not fiddle with core files, but create a child theme, place copies of all the theme files you want to change in that child theme, and make the changes there.
Forum: Themes and Templates
In reply to: [Clean Retina] Too post-centricLooks pretty good, thank you! I very much like being able to select subpages for the corporate layout main page content, and it even picks the excerpt when I have excerpts enabled for pages.
Forum: Plugins
In reply to: [Download Monitor] Where'd the plugin go?Ah okay it appeared in the repo again.
Forum: Plugins
In reply to: [Co-Authors Plus] Who can add, edit, and assign co-authors?Great, works!
PS It might be useful to add these two pieces of information to the FAQ.
Forum: Plugins
In reply to: [Co-Authors Plus] Who can add, edit, and assign co-authors?Update: To test, I have just given the editor all user-related capabilities except promoting and deleting/removing users. No dice. I can’t get the Guest Authors page to show up for my editor.
Forum: Plugins
In reply to: [Co-Authors Plus] Who can add, edit, and assign co-authors?Thanks, that makes sense. Now my editor role can change authors on posts.
That answers only half of my question so I’m marking the topic as not resolved if you don’t mind. (I see though that my original question wasn’t the clearest formulation.) I’m also looking for the capabilities connected to viewing the list of guest authors via /wp-admin/users.php?page=view-guest-authors and adding new guest authors to it.
I can give my editor capabilities like list_users, add_users, create_users, edit_users, remove_users, delete_users. Which ones do I need to give them the possibility of viewing and adding to the guest author list? (And what’s the difference between add/create, and remove/delete?)
Thanks for your response Griden.
The word “complex” should be a more appropriate though. As a theme developer, my main goal is to make the front-end interface intuitive.
Complex might be more appropriate. However, as an admin explaining others how to maintain a site using this theme, I can report that the “location” box feels not just complex but also inflexible to users. They would much rather simply use known features like “sticky” and various categories to manage what appears where on the front page. (So I made a start with that here.)
The theme doesn’t lock you in in any way. You can replace the Hybrid Core shortcodes with the core WordPress template tags/functions if you need to customise the theme. Hybrid Core is not a “layer”, it consists of optional features – you can choose what to use and what not.
This is true in a literal way, I guess — I’m still free to do whatever I want — but what I mean by lock-in is well exemplified by the case of the Hybrid shortcodes. They are use all over the template files. Customizing that aspect of the theme thus means editing all template files in which, say, [entry-author] occurs. Or it may mean editing the shortcode function itself, but that is not so trivial even given the transparent Hybrid code. (For instance, I find it quite hard to find out how to override the [entry-author] shortcode function with my own version in a child theme.)
You are problably right though that much could be learnt by reading through the Hybrid core code.
Forum: Themes and Templates
In reply to: [Oxygen] How to add a sidebar to Oxygen ThemeThe neater way would probably be to create a custom sidebar-secondary.php (or sidebar-tertiary.php) and to call that only when you need it (removing the generic call from footer.php and avoiding the weird method of disabling it for certain templates via functions.php). That’s what I’m doing anyway.
Forum: Themes and Templates
In reply to: [Oxygen] Get (featured) image captionsHere’s an answer. My goal was to make the Flickr Pick a Picture plugin work with an Oxygen child theme. FPP puts the attribution, including a link to the Flickr photo page, in the image post_excerpt. Alt text can’t include links so I was looking for a way to display the post_excerpt with the featured image in an unobtrusive way. I settled for a div that only appears when you hover over the image.
First, I was able to throw together a function for getting the
post_excerpt()field (what I was calling the caption). Here is the function that I added to my functions.php:function get_the_feature_caption() { global $post; $thumbnail_id = get_post_thumbnail_id($post->ID); $thumbnail_image = get_posts(array('p' => $thumbnail_id, 'post_type' => 'attachment')); if ($thumbnail_image && isset($thumbnail_image[0])) { $caption = '<span>'.$thumbnail_image[0]->post_excerpt.'</span>'; } return $caption; }Then in the post.php template of my Oxygen child theme, I include the following code:
if ( current_theme_supports( 'get-the-image' ) ) $image= get_the_image( array( 'meta_key' => 'Thumbnail', 'size' => 'single-thumbnail', 'link_to_post' => false, 'image_class' => 'featured', 'attachment' => false, 'width' => 470, 'height' => 260, 'echo' => false ) ); $caption = get_the_feature_caption(); if ( !empty( $image ) ) { echo '<div class="img-feature">' . $image ; echo '<div class="feature-caption">' . $caption . '</div></div>'; }Finally, in style.css of my child theme I use the following CSS to display the attribution in the lower right corner of the image — on hover only.
.img-feature { position:relative; } .img-feature .feature-caption { display:none; } .img-feature:hover .feature-caption { display:block; position:absolute; bottom:15px; right:0px; opacity:0.5; background-color:#000; padding:4px 8px; color:#fff; text-align:right; } .feature-caption a { color:#fff; } .feature-caption a:hover { color:#fff; }Hopefully this is helpful for others.