• Resolved coolcheetah1

    (@coolcheetah1)


    Hello fellow developers

    I was trying to get the WPPA Plus plugin to work in all aspects of my website (amazing plugin, btw) and ran into an issue.

    I need to display the search results for a particular search term on a hyperlink.

    For example, I want to link the page http://…./red to the search results for red, etc.

    When I search using the WPPA Album or photo search widgets, the landing page always has the same url that does not change with “q=xyz” like in a search engine like Google, if that makes sense.

    Does anybody have a workaround for this?

    Thanks a ton!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Please explain what you want to happen with these four examples:

    On this page: https://wppa.nl/docs-by-subject/search/regular-search/ enter into the search box:
    1. kimmy
    2. hpim
    3. kimmy hpim
    4. kimmy,hpim

    Thread Starter coolcheetah1

    (@coolcheetah1)

    When I search for ‘kimmy’, I want to see the results on a page called https://wppa.nl/de/docs-by-subject/search/regular-search/kimmy
    similarly, https://wppa.nl/de/docs-by-subject/search/regular-search/hpim
    and so on.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    The problem with this that i do not know how to distinguish ‘kimmy’ and ‘hpim’ from being either a search toker or being a regular wp sub-page.

    Could you use a construction like being used for super-search: (example):
    https://wppa.nl/docs-by-subject/search/super-search/?occur=1&wppa-supersearch=p,t,,organ
    meaning: dsiplay on the page ‘super-search’ photos(p), with in the text(t), the word ‘organ’
    (the extra , is for constructions like: &wppa-supersearch=p,e,EH011A,180/1
    meaning: photos(p), with exiftag(e) 0x011A(EH) having the value ‘180/1’).

    I could perhaps work on making this link more ‘pretty’…

    Thread Starter coolcheetah1

    (@coolcheetah1)

    That is exactly what I wanted. Thanks a ton!

    There is another issue I have been struggling with, namely, how to make the description a constant for every picture.

    I would like something like this:

    <table><tbody>
    <tr><td>w#cc0</td><td>w#cd0</td></tr>
    <tr><td>w#cc1</td><td>w#cd1</td></tr>
    <tr><td>w#cc2</td><td>w#cd2</td></tr>
    <tr><td>w#cc3</td><td>w#cd3</td></tr>
    </table></tbody>

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    for all the photo descriptions. I’m thinking there must be a way to do it once, and set it and forget it. But I have failed to find the location where I can change it.

    Thanks again.

    • This reply was modified 9 years, 1 month ago by bdbrown.
    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    That is easy.
    Put it in Table IX-D5 in the Photo Albums -> Settings admin page, and tick the box in Table IX-D3 to make it work.
    To apply it to existing photos, run Table VIII-B4.2

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Your search request:

    You can do:

    
    https://beta.opajaap.nl/landing/wppaspec/oc1/sslittle
    

    or

    
    https://beta.opajaap.nl/landing/wppaspec/oc1/sskimmy
    

    or

    
    https://beta.opajaap.nl/landing/wppaspec/oc1/sslittle,kimmy
    

    or

    
    https://beta.opajaap.nl/landing/wppaspec/oc1/sslittle kimmy
    

    Where landing is the page,
    wppaspec tells the site that the following are arguments rather than sub-pages,
    oc1 means this is to be placed at the location of the first occurrance of a wppa shortcode (preferrably [wppa type="landing"][/wppa]). You may change it into oc2 if you want the second wppa shortcode to be used etc,
    ss means searchstring,
    in the searchstring, a space or a ; means AND, a comma (,) means OR

    Currently there is an issue on the breadcrumb bar with this construction (it does not show the searchstring), but that will be fixed in the next version; see the example above on my beta site.

    You may expect issues when you combine this with complicated search options like rootsearch and subsearch (see the search widget) because of data stored in the session data, but if you only use this (and possibly supersearch), I do not expect serious issues.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Correction to my previous reply:
    The occurrence can only be one: oc1 in search operations.

    Thread Starter coolcheetah1

    (@coolcheetah1)

    Hi Mr Jacob

    I will try variations of these where applicable. Thanks again.

    One last question – I have been having issues with displaying the photographer name for each picture, and linking to a photographer list/wall of sorts. I know it is possible using WPPA+, but have only been able to implement it using the last uploaded photos widget. Is there any way I could do this with every photo, as a custom field or otherwise?

    • This reply was modified 9 years, 1 month ago by coolcheetah1.
    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You can put w#displayname in the description field of the photo. This will show the display name of the owner of the photo. See this doc page on using keywords

    You can put this in the default description of the photo, see Table IX-D3 and 5, and Table VIII-B4.2

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

The topic ‘Search through URL’ is closed to new replies.