Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes, the same problem here.
    You should turn down the plugins.

    But even with no plugins, the same problem.

    With or without caching, same problem.

    It’s a big problem when you can’t edit the website.
    If anyone knows the solution, please let me know.

    • This reply was modified 1 year, 1 month ago by agustynen.
    Thread Starter agustynen

    (@agustynen)

    YOU ARE MY HERO !!!

    Really, you are. ? ? ?

    <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 order=ASC use_filters=true mla_control_name=docvisitor mla_item_parameter=docvisitor]
    <h4><strong>Meubellijn : </strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown mla_option_value="{+slug+}" child_of=941 use_filters=true mla_control_name=meubelvisitor mla_item_parameter=meubelvisitor ]
    
    <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>

    Yes, it’s the cookie i was looking for. I really hope this code publishing helps future people.

    • This reply was modified 7 years, 3 months ago by agustynen.
    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.
    Thread Starter agustynen

    (@agustynen)

    I solved it trough functions.php

    This is the code :

    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, really, thank you sow much for all the help.

    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/

    • This reply was modified 7 years, 3 months ago by agustynen.
    • This reply was modified 7 years, 3 months ago by agustynen.
    • This reply was modified 7 years, 3 months ago by agustynen.
    • This reply was modified 7 years, 3 months ago by agustynen.
    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.
    Thread Starter agustynen

    (@agustynen)

    I made a category client, when checked I would like to filter is out.

    I also changed the code a bit, ’cause i was getting a lot of categories in filter 2. I also have thumbs for my pdf documents now. It’s looking beautiful.

    
    <form id="mla-text-form" class="row" action="." method="post">
    <h4><strong>filter 1</strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=checklist mla_option_value="{+slug+}" child_of=218 ]
    <h4><strong>filter 2</strong></h4>
    [mla_term_list taxonomy=attachment_category mla_output=dropdown use_filters=true mla_option_value="{+slug+}"  child_of=941 ]
    
    &nbsp;
    
    &nbsp;
    <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="search" /></div>
    </form>
    
    [mla_gallery]
    attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}"
    posts_per_page=20 mla_output="paginate_links,prev_next"
    [/mla_gallery][mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}" tax_operator=and posts_per_page=20 mla_caption="{+title+}" link=file mla_target="_blank" mla_nolink_text="nothing found, make a selection" post_mime_type=all  size=medium tax_include_children=false ]

    Thanks for the link, I will check it out and let you of i can get it to wok. Hope this helps people.

    At the moment I have kind off a solution with media vault, but it’s a old plugin (not updated for 3 years) and it doesn’t work very smooth.

    • This reply was modified 7 years, 4 months ago by agustynen.
    Thread Starter agustynen

    (@agustynen)

    Yes, thank you.

    Thread Starter agustynen

    (@agustynen)

    Found it

    [expand title=”Fiction” rel=”fiction”]
    [expandsub2 title=”Star Wars” rel=”submenu-highlander”]Target Content[/expandsub2]
    [expandsub2 title=”Star Trek” rel=”submenu-highlander”]Target Content[/expandsub2]
    [expandsub2 title=”Battlestar Galactica” rel=”submenu-highlander”]Target Content[/expandsub2]
    [/expand]
    [expand title=”History” rel=”history”]
    [expandsub2 title=”Space Race”]
    [expandsub3 title=”Moon Landing”]Target Content[/expandsub3]
    [/expandsub2]
    [expandsub2 title=”Ansari X Prize”]Target Content[/expandsub2]
    [/expand]

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