• Resolved Макс Цвет

    (@itdesigner)


    you have “Replace these timestamp variables” in “Variable based modification” section, which is not described well in manual. All information on june 2020 about this is only:

    Replace these timestamp variables: timestamps cannot be identified, as any positive number can be a timestamp, but if you enter the timestamp variable’s name, like “starttime” (without quotemarks), then you can make our code turn them into dates, using the given format.

    About my issues.

    1/
    I have a plugin Modern events calendar and want to select date and time. With date everything is okay, but time of event in this plugin data looks as here on the screenshot: https://prnt.sc/sru4ry 3PM or 10AM and so on. But in my country we use 24 hours format as well. So I need 15:00 or 10:00 instead of 3AM or 10AM. Also here as you can see is another format of a date https://prnt.sc/srvck0. I looked through a generator options carefully and got a functionality associated with datastamps. But this manual is so poor, that I can’t understand will it solve my problem or not, and how to do it, if it can solve. I think this information will be also helpful for another users of Modern event calendar and Smart slider 3, so I publish it here in a hope that you can help to find a solution. With a time format in custom generator.

    2/
    Another issue with a same plugins mix is I don’t know how to choose only events started from today and show future events. For example administrator month ago created 10 events. 5 that already gone, and 5 that will go in this month. In a posts of Modern Event Calendar (MEC) start date has its own row https://prnt.sc/srvjx6. What I need is to showw only posts after today. Now I only can guess how to show all posts. Past ongoing and future. Can I select only future events? Or at least ongoing and future events? I know that in setting of custom post generator has these section https://prnt.sc/srvoub. And I can’t find how can I correctly use it in my case. I tried this: https://prnt.sc/srvvox but it not works(

    Also I wrote similar question to the MEC comunity in wordpress but I’m not totally sure that they can fi it. https://www.ads-software.com/support/topic/24-hours-format-for-smartslider/

    What to do? Do you have any ideas?

Viewing 1 replies (of 1 total)
  • Plugin Support Gabor

    (@nextendweb_gabor)

    Hi @itdesigner!

    1.) Timestamp means the number of seconds happened since 1970, January 1. until the given date:
    https://www.unixtimestamp.com/
    This is commonly used by developers, as only one number stores an entire date. Usually you can identify them by seeing a very big number:
    1591084961
    I checked out Modern events calendar and sadly they are not storing this value, as you see from your example too, this number is much smaller:
    54000
    and you won’t be able to use our “Replace these timestamp variables” feature.

    The main problem with what you would like to do is, that Modern events calendar does not store the starting and ending time as one data. I could create a new feature to change one variable to have the given datetime format, but what you would need is actually to merge 3 variables together and then modify them to the given datetime format. This too specific and for different custom posts wouldn’t be usable, so I’m sorry, but currently we don’t have a feature, that could help you with this. The best I can suggest is, that if this would be very important for you, you could use a plugin like Advanced custom fields and you could create a new field for your events. You could store the time in here with the format you would like to have and then you could display this variable within our slider.

    You could also try to ask Modern events calendar to store the time in one metadata too for the post. Not just Smart Slider, but themes would be able to use this metadata better.

    2.) We have two keywords you can use:
    https://smartslider.helpscoutdocs.com/article/1900-wordpress-custom-posts-generator#keywords

    In here:
    https://prnt.sc/srvvox
    this should work:
    mec_start_date > current_date

    PS.) Alternatively, when you cannot use our custom post generator, because of the limitations it gives and you are a developer, you can write your own generator:
    https://smartslider.helpscoutdocs.com/article/1957-creating-a-custom-generator
    This way you wouldn’t be limited within our options, but you can generate any data for your website.

    If you will have further questions, please rather write to [email protected], because on these forums we are only allowed to support Free version features, but your topics are about Pro version features.

Viewing 1 replies (of 1 total)
  • The topic ‘Replace these timestamp variables. Modern events calendar 24 hours format’ is closed to new replies.