• Resolved letsnba

    (@letsnba)


    Hello,

    I have two questions. I’ve worked through most of my other issues but I may be too dense to get these ones πŸ™‚

    1. Search:
    what is the syntax in order to keep from getting duplicate results due to output being in multiple categories?

    2. Is there a way to create a “tag cloud” or all the link categories? I simply want a handy visual way for people to examine different categories, to accompany the search function too.

    You can see I am using the link library here: http://letsnba.com/highlights

    But I would prefer to have it work a little more like this: http://letsnba.com/graphics

    Any thoughts?
    Thanks!

    https://wordpress.org/plugins/link-library/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    1. If a link is assigned to multiple categories, it will always be displayed under each of these categories. The alternatives would be to only display under the first where it would be found, which would not likely please everyone, or to find a way to analyze all links and group together the ones that have the same multiple categories, which could take a fair amount of logic after retrieving them from the database.

    2. No, there is currently no tag cloud function at this time. I will investigate adding functionality to generate the category list as a tag cloud.

    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)

    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)

    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)

    On removing the Go button, I found this helpful answer from another poster
    https://wordpress.org/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.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    The thread you found should work. I will probably see about making that an official option down the road.

    For the dropdown menu disappearing after searching, you can get them to stay in place by checking the option ‘Display categories with search results’ under the categories tab.

    Will likely look at multiple category section for submitters over the week-end.

    Please consider rating the plugin or donating to support its ongoing development.

    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.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I will check why you cannot choose a category after doing a search with no results. Did you configure the plugin to switch categories through AJAX or GET requests?

    Thanks for the rating and donation!

    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.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Did you try the option ‘Hide category on start in single cat AJAX mode’ under the Common section of settings page? That should allow you to start with the category shown.

    Thread Starter letsnba

    (@letsnba)

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

    Thanks Yannick!

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    FYI, I have just added an option to be able to hide the Go button without needing to modify any code. Just update and select ‘Drop-down list direct access’ for the ‘Link Categories Display Format’ configuration option under the Categories tab.

    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.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Couple minor questions’ is closed to new replies.