WordPress.org

Forums

Events Manager
[resolved] Some placeholders are broken in the 5.4.2 (8 posts)

  1. Christian
    Member
    Posted 1 year ago #

    Hi Marcus & all

    I've upgraded to the 5.4.2 release yesterday night. It seems that some placeholders are now broken (for example #_EVENTTIMES).

    I've also lost some of mines I developed for my purposes.

    See http://gf38.fr.

    Christian

    http://wordpress.org/extend/plugins/events-manager/

  2. angelo
    NetWebLogic Support
    Posted 1 year ago #

    works for me, can I know if this is using events_list shortcode or widget?

  3. Christian
    Member
    Posted 1 year ago #

    Here's my code:

    ob_start();?>
        [events_list order="<?php echo $order ?>" category="<?php echo $category ?>" scope="<?php echo $scope ?>" limit="1"]
            <h2><a href="#_EVENTURL" title="Voir  le détail"><span class="icon-chevron-right"></span>#_EVENTNAME</a></h2>
            <div>
                <p class="thumb">#_CATEGORYIMAGE{100,100}</p>
                <p class="desc">
                    #_CATEGORYNAME<br>
                    {not_long}<span id="date">#_EVENTDATES</span>{/not_long}
                    {is_long}<span id="date">#_EVENTDATES</span>{/is_long}
                    {has_time} #_EVENTTIMES{/has_time}
                    {no_time} #_EVENTTIMES{/no_time}
                    {all_day} {/all_day}
                </p>
                <p class="teams-score">
    	            <span class="logo-home">#_LOGODOMICILE</span>{has_score}#_SCOREMATCH{/has_score}{no_score}<span class="no-score">vs</span>{/no_score}<span class="logo-ext">#_LOGOEXTERIEUR</span>
                </p>
                <p class="location"><span class="icon-map-marker"></span>
    	            {has_location}#_LOCATIONNAME - #_LOCATIONTOWN{/has_location}
    	            {no_location}Lieu de la rencontre à définir{/no_location}
                </p>
            </div>
        [/events_list]
        <?php
           $content=do_shortcode(ob_get_clean());

    May be this has something linked to the conditional placeholders...so I tried some of them to see what happens.

    Here's :
    {has_time} #_EVENTTIMES{/has_time}
    and
    {has_score}#_SCOREMATCH{/has_score}
    do not work

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    thanks for pasting the format, I could reproduce this and will look into fixing it asap.

    It seems to be a problem with conditionals containing a placeholder as the last character, which you can fix right now, so e.g.

    {has_time} #_EVENTTIMES{/has_time}

    changing to

    {has_time} #_EVENTTIMES {/has_time}

    seems to work (note the space at the end.

  5. Christian
    Member
    Posted 1 year ago #

    Thanks Marcus.
    I fixed the code by adding a space aroubd the placeholder.

    But for my own placeholder+conditionals : `

    {has_score}#_SCOREMATCH{/has_score}

    The original code was without any space but adding spaces around fixed the issue.

    {has_score} #_SCOREMATCH {/has_score}

    Seems to be an issue in a Regexp...

  6. angelo
    NetWebLogic Support
    Posted 1 year ago #

    glad it's working now, thanks for updating us.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    yes it is, will fix that next update

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    this is now fixed in the dev version 5.4.2.1, there are a few bugfixes there so upgrading should be safe.

    info on upgrading - http://wp-events-plugin.com/documentation/upgrade-dev-version/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic