Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter wpnh

    (@wpnh)

    ok, thank you

    Thread Starter wpnh

    (@wpnh)

    Hi Frank,
    i´m seeing this in the browser console.
    Uncaught SyntaxError: invalid regular expression flag f

    js/autoptimize_single_xxxxxxxx.js

    after clicking the error message, this part i marked:

    if(this.method===’GET’||this.method===’HEAD’){if(options.cache===’no-store’||options.cache===’no-cache’){var reParamSearch=/([?&])_=[^&]*/if(reParamSearch.test(this.url)){this.url=this.url.replace(reParamSearch,’$1_=’+new Date().getTime())}else{var reQueryString=/\?/this.url+=(reQueryString.test(this.url)?’&’:’?’)+’_=’+new Date().getTime()}}}}

    —————
    LINE 107

    Plugin Version from 2.7.8 (i guess) to Version 2.9.5.1

    Thanks

    Thread Starter wpnh

    (@wpnh)

    Hello,

    thank you. I found it in the meanwhile on the parent page.
    There you can activate the fireall function. Not in the network settings, only in the parent settings.

    Bye, Nico

    Thread Starter wpnh

    (@wpnh)

    Hi, the problem was not a JS error, some plugin did hide the container with CSS. After removing the display:none rule temporarily, i was able to check the function.

    Thanks

    Thread Starter wpnh

    (@wpnh)

    great. Didn´t know there is a $alm_current. Works with it. Thank you 🙂

    Thread Starter wpnh

    (@wpnh)

    the large code here (the first example i´ve posted had the vars $countclass = 1;
    $countclass_wrap = 1; only for testing. This is the code here:

    <?php foreach((get_the_category()) as $category) { 
                     $catoname = $category->cat_name; 
                    };
            ?>        
            <?php  
    
                $bn_badge_name = get_field( "bn_badge_name" );
                $bn_offer_until_date = get_field( "bn_offer_until_date" );
                $bn_special_offer_link = get_field( "bn_special_offer_link" );
            ?>
            <div class="b_overview_itemwrap _<?php echo strtolower($catoname);?> b_ov_wrapitem_<?php echo $countclass_wrap++; ?>">
                <div class="b_overview_item b_ov_item_<?php echo $countclass++; ?>">
                    <div class="b_overview_logo">
                        <?php if($bn_offer_until_date !=""): ?>
                            <div class="b_overview_date"><i class="fa fa-calendar" aria-hidden="true"></i> <?php echo $bn_offer_until_date;?></div>
                        <?php endif;?>
                        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><img src="<?php if($countclass ==1){
            the_post_thumbnail_url("large");
            }else{the_post_thumbnail_url("medium");}?>" alt="<?php echo get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true );?>"/></a>
                    </div>
                    <div class="title_link_wrap">
                        <div class="b_overview_title">
                            <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
                        </div> 
                         <?php if ($countclass == 1):?>
                        <span class="b_excerpt"><?php the_excerpt();?></span>
                        <?php endif;?>
                        <div class="b_overview_linkbar">
                            <div class="b_overview_links">
                                <a class="b_infos" href="<?php the_permalink(); ?>">MORE</a>
                                <?php if($bn_special_offer_link !=""): ?>
                                    <a href="<?php echo $bn_special_offer_link;?>" class="b_ext" target="_blank" rel="nofollow">GET OFFER <i class="fa fa-chevron-right" aria-hidden="true"></i></a>
                                <?php endif;?>
                            </div>                    
                        </div>
                    </div><div class="clear"></div> 
                </div> 
            </div>
    Thread Starter wpnh

    (@wpnh)

    i´ve used the old plugin version for now. That works. maybe in later releases this bug will be fixed. But thanks.

    Short summary

    • Shortcode (in functions.php) includes php file xy
    • file xy has code:
    <?php
    $countclass = 1;
    $countclass_wrap = 1;
    ?>
    <article class="bookienews_overview">
        <div class="b_news_smallfilter">
            <span class="bn_left"><?php echo get_field('sports_betting_news_translation', 'options');?></span>
        </div>
        <div class="bookie_overview_wrap">
            
            <?php echo do_shortcode('
    [ajax_load_more container_type="div" post_type="post" posts_per_page="13" category="'. $category_slug .'" scroll="false" button_label="'. $loadmore_name .'" button_loading_label="Loading"]
    ');?>
            
        </div>
    </article>
    • Repeater template is above (the large code)
    • echo $countclass++; not working

    Thats all. In Version: 5.4.2 it works well.
    Bye, Nico

    • This reply was modified 5 years, 5 months ago by wpnh.
    Thread Starter wpnh

    (@wpnh)

    ah damn. So easy. Thank you very much.

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