• Resolved agustynen

    (@agustynen)


    Sow, I have made this:

    <div style="margin: 0 0 30px 15px;"><form id="mla-text-form" class="row" action="." method="post">
    <h4><strong>Type document</strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" child_of=218]
    <h4><strong>Meubellijn</strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" child_of=941 ]
    
    <span style="color: #ffffff;">--</span>
    <div class="fusion-button-wrapper"><input id="text-form-submit" class="fusion-button button-flat fusion-button-square button-xlarge button-default button-1" name="text_form_submit" type="submit" value="Toon selectie" /></div>
    </form></div>

    is the sidebar, en this is the page area:

    [mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}" tax_operator=and link=page mla_target="_blank" mla_nolink_text="Er zijn geen documenten gevonden." post_mime_type=all size=medium tax_include_children=false mla_rollover_text="{+title+}"]

    1. I have some issues that i can’t fix, and i already spent a week on it.
    I would like the title to show over the image on hover. But rollover doesn’t to anything. My titles are still below the image.

    2. I would love it when the selection would be remembers. Now as soon as the page loads it just sets beg to the first value. Is it possible to keep the selected categories visible? If ti is not, is it possible to create a — make your choice — for the first dropdown field and set that selected?

    3. I have 2 pages of this, one for login user, other for visitors. I don’t wound visitors to see some child categories, but exclude and include don’t do anything, or they give a error: invalid taxonomie.

    example of not working: [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" child_of=218 exclude=219 ]

    Can someone help?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter agustynen

    (@agustynen)

    Solved the exclude part. still working on the rollover and the set cookie part.

    <div style="margin: 0 0 30px 15px;">
    
    <form id="mla-text-form" class="row" action="." method="post">
    
    <h4><strong>Type document</strong></h4>
    
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" include=219,405,197 ]
    
    <h4><strong>Meubellijn</strong></h4>
    
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" child_of=941 ]
    
    <div class="fusion-button-wrapper">
    <input id="text-form-submit" class="fusion-button button-flat fusion-button-square button-xlarge button-default button-1" name="text_form_submit" type="submit" value="Toon selectie" />
    </div>
    </form></div>
    • This reply was modified 7 years, 3 months ago by agustynen.
    • This reply was modified 7 years, 3 months ago by agustynen.
    Plugin Author David Lingren

    (@dglingren)

    Good to hear from you again.

    You wrote “ I have 2 pages of this, one for login user, other for visitors.” In researching this topic I discovered that you had asked a similar question a few weeks ago:

    exclude some files for non subcribed users

    It would be great if you can go back to the original topic and answer the questions I posted there so I can finish the work I started and give you a solution.

    You wrote “ I would love it when the selection would be remembers.” I have responded to this part of your questions in the other topic you started:

    keep selected dropdown value after submit (cookie, local storage ???)

    You wrote “I would like the title to show over the image on hover. But rollover doesn’t to anything. My titles are still below the image.” The mla_rollover_text parameter adds a title attribute to the hyperlink around each gallery image. In my testing, adding the parameter does cause the Title to be displayed when the cursor moves over the image (Microsoft Edge browser). This parameter does not remove or alter the Caption displayed under each item. You can use the mla_caption parameter to suppress the caption by adding mla_caption=" " or mla_caption="&nbsp;" to the shortcode. You can also use a custom markup template to change any part of the markup for the gallery.

    WordPress, by the way, actively discourages use of the title= attribute and has removed it from their own [gallery] shortcode. The [mla_gallery] shortcode does this by default but the mla_rollover_text parameter should allow you to add it back in. Is that not working for you? The link to your site doesn’t work for me so I can’t look at your page.

    Thanks for your questions and for the word you have put in to finding solutions. I will leave this topic unresolved until I hear back from you with more information.

    Thread Starter agustynen

    (@agustynen)

    Thank you very much.
    The 2 pages became 1 page.

    I added a code to my functions.php to set [member][/member] and [visitor][/visitor]
    tags. So it doesn’t show for one another. This is the code:

    
    add_shortcode( 'visitor', 'visitor_check_shortcode' );
    
    function visitor_check_shortcode( $atts, $content = null ) {
    	 if ( ( !is_user_logged_in() && !is_null( $content ) ) || is_feed() )
    		return $content;
    	return '';
    }
    
     add_shortcode( 'member', 'member_check_shortcode' );
    
    function member_check_shortcode( $atts, $content = null ) {
    	 if ( is_user_logged_in() && !is_null( $content ) && !is_feed() )
    		return $content;
    	return '';
    }
    

    Credits to : https://justintadlock.com/archives/2009/05/09/using-shortcodes-to-show-members-only-content

    Now i can set [member][/member] and [visitor][/visitor] tags.

    Sow i made the gallery and form twice on one page and put the one in the member tag and the other in the visitor tag. To solve the selection I did the following.

    for subscribers:

    [member]
    <div style="margin: 0 0 30px 15px;"><form id="mla-text-form" class="row" action="." method="post">
    <h4><strong>Type document : </strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" include=1978,219,405,197 current_item=$_COOKIE order=DESC]
    <h4><strong>Meubellijn : </strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" child_of=941 current_item=$_COOKIE]
    
    <span style="color: #ffffff;">---</span>
    <div class="fusion-button-wrapper"><input id="text-form-submit" class="fusion-button button-flat fusion-button-square button-xlarge button-default button-1" name="text_form_submit" type="submit" value="Toon selectie" /></div>
    </form></div>

    for visitors:

    [visitor]
    <div style="margin: 0 0 30px 15px;"><form id="mla-text-form" class="row" action="." method="post">
    <h4><strong>Type document : </strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" include=1978,219,405,197 current_item=$_COOKIE order=DESC]
    <h4><strong>Meubellijn : </strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" child_of=941 current_item=$_COOKIE]
    
    <span style="color: #ffffff;">---</span>
    <div class="fusion-button-wrapper"><input id="text-form-submit" class="fusion-button button-flat fusion-button-square button-xlarge button-default button-1" name="text_form_submit" type="submit" value="Toon selectie" /></div>
    </form></div>

    To be sure that the files are secured i used: it’s old and sometimes a bit buggy but it still does the trick: . I’m open to a alternative plugin that does the same thing but is less buggy.

    Sow, the exclude thing is solved for me and the files for the subscribers are safe.Thanks.

    the current_item cookie thing isn’t working. If anyone is about to use this code. i’m working on that one here: https://www.ads-software.com/support/topic/keep-selected-dropdown-valua-after-submit-cookie-local-storage/

    rollover still doens’t work but it’s ’cause of the theme i’m using.
    Sow it’s a css thing. I’m going to solve it with CSS, once i’m done I come back here and respond.

    • This reply was modified 7 years, 3 months ago by agustynen.
    Plugin Author David Lingren

    (@dglingren)

    Thanks for your update with the current status of your application.

    I have resolved the exclude some files for non subscribed users topic based on your response.

    The keep selected dropdown value after submit (cookie, local storage ???) has been resolved as well.

    Good luck with your rollover text/title attribute fix. I am marking this topic resolved because the MLA-specific issues are complete, but please update it with any problems, questions or comments that come up.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘exclude from dropdown’ is closed to new replies.