Forum Replies Created

Viewing 15 replies - 1 through 15 (of 16 total)
  • Thread Starter letsnba

    (@letsnba)

    I figured but I wanted to be sure. That worked, thanks.

    Thread Starter letsnba

    (@letsnba)

    You are the best, seriously. This looks even more awesome now.

    I’ve even set up a second library!

    And let me know if you end up figuring out how to let link submitters tag multiple categories, because that would be super cool. It would help with collaborative libraries, as users could tag multiple things and the owner (me, lol) wouldn’t have to do as much additional legwork.

    Also, after using the library for a few days, I have a possible idea for you, let me know what you think. It goes back to question 1 I originally had about duplicate results.

    The search function currently searches both categories AND keywords. Would it be possible to perhaps split out the keyword search part? That way it would only spit out the results with one result. Not sure if my logic is sound here or not, haha.

    Anyways, thanks again.

    Thread Starter letsnba

    (@letsnba)

    YES! It worked!
    And now weirdly enough that page works perfectly.

    Thanks Yannick!

    Thread Starter letsnba

    (@letsnba)

    Thank YOU for your help.

    The switching is set to AJAX. The button is still that loader.gif, I was too chicken to change any source code hahaha.

    I’m sure there is some simple workaround that I haven’t thought through yet. My goal is to keep the links page as clean as possible… ideally I would like to have no links showing until someone uses either the dropdown menu or search, but it seems I have to keep a minimum of 1 category showing to get things working.

    Thread Starter letsnba

    (@letsnba)

    Awesome.

    The dropdown menu does stay in place, which is sweet… But since there are no links below after the empty results are produced, the dropdown menu doesn’t lead anywhere.

    I tried putting in a raw link on the page to see if that would activate the library somehow but it didn’t work.

    Any thoughts would be appreciated.

    Also, not sure if this is possible already, but might want to consider a bulk edit function at some point… adding multiple links to a new category would save plenty of time.

    But I love the plugin and just made a donation, and rated it 5 stars. Much appreciated.

    Thread Starter letsnba

    (@letsnba)

    On removing the Go button, I found this helpful answer from another poster
    https://ww.wp.xz.cn/support/topic/remove-go-button-from-ajax-switching-method

    Haven’t tried it yet though.

    So I’m just wondering about multiple tags for submitters now.

    Interesting quirk… if you search for something, and no results are found, the dropdown menu disappears. I presume because there is no library showing for it to find.

    Thread Starter letsnba

    (@letsnba)

    On question 2…. Wow I’m dumb. I wasn’t pressing the “Go” button hahaha.

    Is there a way to not require the “Go” button? Typically drop-down menus launch once you pick the category.

    Thanks.

    Thread Starter letsnba

    (@letsnba)

    Oh, also is it possible to allow submitters to choose multiple categories? Or can they only pick from the drop down?

    Thread Starter letsnba

    (@letsnba)

    Thanks Yannick.

    1. Okay, fair enough. On second thought this seems to be fine.

    2. I think using the category dropdown is a suitable substitute for my purposes right now. However, because I don’t have the full link library listed below, the categories don’t lead anywhere. Do you know how I resolve that without having to keep all the links displayed below? I want it to work like the search function…. choose a category and have the links pop out.

    Maybe there’s some way to jury rig the search function to pull the category chosen from the category dropdown?

    This is how it looks right now: http://letsnba.com/highlights

    Thanks for your help!

    Thread Starter letsnba

    (@letsnba)

    Don’t worry folks, I am going try and figure this out elsewhere. Thanks!

    Thread Starter letsnba

    (@letsnba)

    Hi David,

    thanks again for your help. You have indeed resolved my issue and I have made a small donation to Fair Trade Judaica in appreciation of your time.

    The colors example would be another good example for your “Dummies Guide” 🙂 Thanks!

    I abandoned the sidebar widget because the output appeared inside the widget instead of on another page, and it was too much hassle to figure out how to code it so the output would be on its own gallery page. I just made a gallery page with “Cloud/Search/Gallery” functions that looks pretty solid to me.

    ………..

    I think that type of functionality would be useful for other objects too. I’m trying to do the same thing for links leading offsite, whereby I tag the links and then create the same kind of “Cloud/Search/Output List”. If you have a second I’d love to hear your thoughts.

    The “Link Library” editor allowed me to attach link_category(ies) to my links, but figuring out how to get the output right is the tricky part again.

    Since you have working code it might be worth considering whether the same functions could be applied to links or anything else. That combination of visual cues from a cloud plus a search form is pretty user-friendly.

    Thanks again for your help, it is very much appreciated.

    Thread Starter letsnba

    (@letsnba)

    Phew, I finally found the relevant code!

    David, this is an amazing plugin and I’m going to make a donation, but I humbly request that you make a Dummies Guide, or at least put the following pieces of code right up front in the FAQ or something.

    <h3>The Cloud</h3>
    Click on a term to populate the gallery below.
    
    [mla_tag_cloud taxonomy=attachment_category number=0 mla_link_href="{+page_url+}?term_slug={+slug+}"]
    
    <h3>The Gallery</h3>
    
    [mla_gallery attachment_category="{+template:({+request:term_slug+}|a-bad-term)+}" mla_nolink_text="Nothing to show."]

    And the search form, which I edited a bit, but you can put a standard one somewhere.

    <form id="mla-search-form" action="." method="post"><input id="mla-search-box" name="search-string" type="text" value="" />
    <input id="submit" name="submit" type="submit" value="GO" /></form>
    
    [mla_gallery post_mime_type=all post_parent=all s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="No pages to show." posts_per_page=12 mla_output="paginate_links,prev_next" mla_link_href="{+page_url+}?search-string={+request:search-string+}"]
    
    [mla_gallery post_mime_type=all post_parent=all s="{+template:({+request:search-string+}|a-bad-term)+}" mla_nolink_text="Enter a search value above to display gallery." posts_per_page=12]

    You’ll save both your users and yourself a TON of time if these two pieces are somewhere everybody can see them.

    I put both these onto my site and they did what I was looking for. I can’t put the tag cloud in my sidebar but that’s not a huge deal.

    Then I installed Responsive Lightbox and it worked perfectly with the above code, such that I literally didn’t have to do anything to have cool lightbox effects for the gallery output! So sweet.

    So basically I have one final question:

    How do I change the color of my tags in my tag cloud? I think it involves style markups but if you could show me an example that’d be great.

    Cheers!

    Thread Starter letsnba

    (@letsnba)

    Sorry, yes, that is the exact theme I am using.

    I would LOVE to be able to figure this out using plugins but I spent most of yesterday and today trying to find one that would do this seemingly simple task. Every media manager I tried out seemed to just use tags, and not attachment tags, which is not at all what I want.

    If there is a simpler solution than adding a new PHP template I am all ears. You can check out the site as it is right now http://www.letsnba.com

    I just want those “graphics” attachment tags to output the right content (the tagged attachments).

    Sorry for hogging your time 🙂

    Thread Starter letsnba

    (@letsnba)

    Hi David, thanks for the post. I posted this just after you….
    I will read through your recommended links right away!

    —————

    Okay… I tried to copy one of your old posts and match the header/footer stuff to the sparkling version of “search results”.

    <?php
    /**
     * The template used to display Attachment Tag Archive pages
     *
     * @package sparkling
     */
    
    get_header(); ?>
    
    		<section id="primary" class="content-area">
    			<main id="main" class="site-main" role="main">
    
    				<header class="page-header">
    					<h1 class="page-title"><?php printf( __( 'Attachment Tag Archives: %s', 'sparkling' ), '<span>' . $_REQUEST['attachment_tag'] . '</span>' );
    					?></h1>
    				</header><!-- .page-header -->
    
    				<?php /* Start the Loop */?>
    				<?php $tag = $_REQUEST['attachment_tag']; echo do_shortcode("[mla_gallery attachment_tag={$tag}]"); ?>
    
    				<?php sparkling_paging_nav(); ?>
    
    		<?php else : ?>
    
    			<?php get_template_part( 'content', 'none' ); ?>
    
    		<?php endif; ?>
    
    		</main><!-- #main -->
    		</section><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thought that would do the trick but no dice.

    Thread Starter letsnba

    (@letsnba)

    I’m slowly honing in on the answer lol.

    So I found this piece of code in a previous thread:

    <?php
            $tag = $_REQUEST['attachment_tag'];
            echo do_shortcode("[mla_gallery attachment_tag={$tag}]");
            ?>
            <form id="attachment-tag-form" method="get" action="">
                <select name="attachment_tag" class="postform">
                    <option value="artisan">artisan</option>
                    <option value="attention">attention</option>
                    <option value="another-tag">another tag</option>
                </select>
                <input type="submit" id="submit" name="submit" value="GO">
            </form>

    I think the option value lines could be deleted… but I’m not sure.

    If I put that on a template with my theme header/footer and call it attachment_tag.php, will that suffice to create the output I require? At this point I don’t really care about anything fancy like lightbox, I just want the attachment tags to output somewhere.

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