ceophoetography
Forum Replies Created
-
Forum: Plugins
In reply to: [Media Library Assistant] MLA attachment page memory leak?Following is the conclusion of the Image template:
</article><!-- #post-## --> <nav id="image-navigation" class="navigation image-navigation"> <div class="nav-links"> <?php previous_image_link( 'thumbnail', '<div class="previous-image">' . __( 'Previous Image', 'ceophoetography-look' ) . '</div>' ); ?> <?php next_image_link( 'thumbnail', '<div class="next-image">' . __( 'Next Image', 'ceophoetography-look' ) . '</div>' ); ?> </div><!-- .nav-links --> </nav><!-- #image-navigation --> <?php comments_template(); ?> <?php endwhile; // end of the loop. ?> </main><!-- .site-main --> </div><!-- .content-area --> <?php get_sidebar(); get_footer();
The MLA UI Elements assigned items count shortcode appears to work perfectly on my test site. As for the “found rows” and “custom markup template” to tell the user the number of items that matched the search, that has me flummoxed. I’ll have to play with that longer to figure it out; it’s a lower priority. Last, for the MLA tag cloud, I’m struggling to get the MLA gallery and the tag cloud to work together — to pass the value of the attachment tag from the tag cloud to the searchable gallery (and perhaps even populate the search form with the attachment tag that was clicked). I’d be surprised if the ability to do that wasn’t already there, but I can’t figure it out.
For the tag cloud, I’m using
[mla_tag_cloud taxonomy=attachment_tag mla_link_href="{+page_url+}?term_slug={+slug+}" number=20]
. Is that correct? Before I tried the MLA link HREF parameter, I got a 404 page; after trying it, I get my page with no gallery.Forum: Plugins
In reply to: [Media Library Assistant] MLA attachment page memory leak?Now I’m ready to try to fix the nav links in my attachment pages. I suspect
image.php
is the template file I’ll need to edit. I would have to replace the two PHP functions,previous_image_link
andnext_image_link
withmla_output
, right? How would I wrap the code for the template file? And wouldn’t I need a conditional (“IF”) in case MLA isn’t active(! mla_...)
, in which case the “ELSE” would lead to the default nav links?I discovered that I was wrong in asserting that the “muie terms search” code you gave me didn’t work. It actually did work once I thought to map the taxonomy terms of my test-site attachments (because they were empty).
Following is the code that I wound up using on my live page:
<form id="mla-search-form" action="." method="post"> Show me all the: [muie_keyword_search mla_search_connector='OR'] in the ProMo-Peace Pix collection! [muie_per_page numberposts=20] per page: <input id="submit" name="submit" type="submit" value="Search" /> </form> <div class="paging-navigation">[mla_gallery orderby=date add_filters_to=any posts_per_page=20 mla_output="paginate_links,prev_next"]</div> [mla_gallery orderby=date add_filters_to=any posts_per_page=20 mla_nolink_text="Enter a term above to see a gallery of ProMo-Peace Pix that match."]
I’m marking this “Resolved.” However, I would like your assistance with some other things related to this discussion. What I want to do now is develop a way with the MLA plugin to replace “over 1,300” in the above linked page with an updated report from a database query that tells how many images there are in my media library that contain any keywords.
In addition, I would like to add a report to the user how many images were returned from their search.
I’m also interested in adding a small tag cloud of attachment tags — perhaps randomly chosen — to help provide users with some ideas of terms to search with. They might also help with SEO — though I wonder if I would then need to have the tag cloud not be random. Or maybe I could have one small cloud of my most frequently-used tags (maybe five randomly-chosen out of the top 20) and one small cloud showcasing some of the rest (like 10 out of the rest of the [apparently] over 2,000 attachment tags). I will play around with it, but I’d appreciate anything you could do to point me in the right direction.
Lastly, the
mla_output="paginate_links,prev_next"
you provided shows links for “Previous” and “Next,” but is there any way of also showing links for “First” and “Last”?I’m grateful for all of the valuable assistance you have provided for me.
I did a search for “muie” in my plugins folder and found the MLA UI Elements Example plugin. Following the instructions you gave me for the MLA Mapping Hook Example plugin in the post you referenced, I activated MLA UI Elements Example and that made the fields appear and the printed shortcodes to disappear. However, there still appears to be no means for the two functions to communicate with one another. Nothing happens when I enter a search term. Does something like the
s="{+template:({+request:search-string+}|a-bad-term)+}"
parameter need to go in the code you gave me?I’ve attempted to follow the instructions you gave me for the code you supplied, but nothing happens. The shortcode appears on the page rather than being replaced by plugin output.
<form id="mla-search-form" action="." method="post"> Tags: [muie_terms_search mla_terms_taxonomies=attachment_tag] Items per page: [muie_per_page numberposts=20] <input id="mla-search-box" name="search-string" type="text" value="" /> <input id="submit" name="submit" type="submit" value="Search" /> </form> <div class="paging-navigation">[mla_gallery orderby=date add_filters_to=any posts_per_page=20 mla_output="paginate_links,prev_next"]</div> [mla_gallery orderby=date add_filters_to=any posts_per_page=20 mla_nolink_text="Enter a term above to see a gallery of ProMo-Peace Pix that match."]
The MLA Mapping Hooks Example plugin and the development version of MLA are both installed and active. Can you figure out what is amiss?
Regarding the earlier issue with the nav links and the fatal error breaking attachment pages when an image is not attached, I still have not found a solution. Nor have I been working at it, because you said that I could substitute MLA’s pagination controls for the WordPress navigation link functions in my attachment pages. I presume that means editing my image.php template page. I’m planning on getting your help with that in the near future, but in a separate topic.
Thank you, David, for your reply.
I’m not following you when you say, “Install the new Development Version.” I have the latest version of the plugin. Is the “new development version” a beta or alpha of a future release? How do I access it? Do the
muie
parameters in the shortcode pertain to the development version? Would I want or need to change the text to something else when you release the new version?You are correct on both counts regarding the item pertaining to reporting to the user the number of items that matched the search out of the total number of items in the media library. I’m perfectly okay with plugging in a query to get that value. In fact, I would need that query in order to filter out a few miscellaneous files that I wouldn’t want to be shown (i.e., they have no attachment tags).
Regarding the formatting, I was hopeful of an elegant solution. In the documentation, you said, “You can combine
[mla_gallery]
data selection with other popular gallery-generating plugins to get the best of both.” Does Collage Gallery not meet the criteria? You’re correct that Collage Gallery requires attaching images to the post in order to generate the gallery. Heretofore, I have not needed to work around that, because I’ve been attaching pictures to posts and using the[collage_gallery]
shortcode in the post, and it works elegantly. As for the shortcodes and source text for the ‘Christian Davidson’s portfolio’ sample page,” that’s something different. It’s a working page based on a single preassigned attachment tag. All of those images are landscape, so there’s no formatting problem. I looked at “Fixed height and Auto width on images displayed via mla_gallery,” and you referred to the plugin, Tiled Gallery Carousel Without Jetpack. Is that better than “PhotoSwipe Masonry Gallery”? (I looked at the latter, and it didn’t jump out at me as a solution.) More significantly, you said in your reply in the aforementioned topic, “You can use MLA to select the images you want and another plugin to display them. I’d be happy to give you more specific guidance if that would work in your application.” That seems like what I’m trying to do. I want MLA to determine what images will appear in a dynamic gallery based on user input and then have Collage Gallery or another plugin that renders galleries as a justified grid to display those images. Is that possible?Thank you for all of your hard work and the development you’ve put into this plugin. I don’t have any money right now, but when I get something that I can spare, I will certainly donate. This plugin is more useful than many premium plugins; I don’t think it would be unfair for you to charge $35 or $50 for it.
Forum: Plugins
In reply to: [Media Library Assistant] MLA attachment page memory leak?Oh, never mind the question in the “Edit” portion of the previous post. I reread your reply and found the answer: the added support for attachment categories and attachment tags — which must add greatly to the database query drag.
Is there any way to prevent the query from including those data in the nav-links while still having them available for MLA itself?
Forum: Plugins
In reply to: [Media Library Assistant] MLA attachment page memory leak?David, thank you for the very thorough response. I’ll have to do some experimenting based on your remarks and get back to you.
You’re certainly correct that the number of images on my localhost test installation is very small compared to the number on my live server.
Also, perhaps you could help in another way. What I’m trying to do is create a page or two that would display a number of my photos without a dedicated post full of text for possible visitors who want to see my portfolio or just see all of my photos with a particular attachment tag. That’s what I’ve been trying to use Photo Gallery for; is MLA able to do something like that?
Eventually I hope to have all of my images attached to a post not too long after uploading, but I’m way behind. If I wanted to show up to, say, 2,000 images on a single page, which a user could narrow down via searching for tags, would that be possible with MLA? Would I run into the same database query problem?
EDIT: Another question: if MLA has nothing to do with nav-links problem, then why does the same database query succeed when MLA is not active? That’s what I can’t understand. With MLA inactive, the same attachment page, querying what I suppose is the same database information succeeds. What’s different when MLA is active and when it is not?
Forum: Plugins
In reply to: [Decon Character Counter] New plugin version breaks pluginThanks. I would have gotten to that, eventually.
When I FTP’ed in, none of the plugin files were present in the Decon_Character_Counter folder, and there were some folders with strange names. I may have been hacked in or around the time that I updated the plugin.
I’m not sure how folks do it, because the folder is 755, which should mean they can’t write to it. And WordFence hasn’t warned me of any malicious code anywhere in my installation.
Everything is working now, for now. I’m going to mark this as resolved. Feel free, though, if you have any additional advice.
Thanks!
Forum: Themes and Templates
In reply to: [Twenty Fifteen] Add the Twenty Fourteen slider to FifteenI would like to do the same thing. It’s disappointing that no one has an answer after so many months.
I created a child theme and copied all of the files and functions that appeared to be related to the slider and to “featured content,” including the customizer, but it doesn’t work.
What files and code are needed to restore the Twenty Fourteen Featured Content Slider to a child theme of Twenty Fifteen? Are there any functions that I need to change or dequeue? And how do I do that?
I’m sorry that I don’t have a link, because I’m testing it on my localhost.
Forum: Plugins
In reply to: [MMWW] Upload dates brokenaviascope, I recommend the Description 2 Caption plugin.
Forum: Plugins
In reply to: [MMWW] Upload dates brokenI downloaded version 1.0.5 to revert to the earlier version on my WP installation. That restored the upload-date functionality.
It’s a good plugin, but I’m disappointed by the lack of a response here. If you figure out what changed between 1.0.5 and 1.0.6 to break the code and release a fix in 1.0.7, I’ll gladly update to that version.
Forum: Plugins
In reply to: [MMWW] Upload dates brokenThe problem persists in WP 4.2.1.
Is the issue being examined?