Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Barry

    (@barryhughes-1)

    Hi Pascal,

    I’m definitely open to adding more placeholders but – right now – there are none that meet your needs.

    It’s possible to add new ones, though, as described here. Here is a concrete example:

    add_filter( 'eventrocket_embedded_event_placeholders', 'inline_template_tag_cost_field' );
    
    function inline_template_tag_cost_field( $placeholders ) {
        $placeholders['{cost}'] = 'tribe_get_cost';
        return $placeholders;
    }

    This could be added to your theme’s functions.php file and should provide you with a {cost} field you can use … one word of caution though is that I ran out of time to test this, however if you hit problems just let me know.

    I can certainly consider adding this and a {venue} placeholder to the next release.

    Thread Starter pderathe

    (@pderathe)

    Hello Barry

    Thanks for your help.

    Unfortunately what you wrote concerning “Advanced customizations” sounds like chinese to me.

    So, when do you intend to propose the next version of event-rocket plugin , with those new placeholders {cost] and {venue} ?

    If I should wait more than 4 weeks I’d rather go to see a friend who has some abilities in php.

    Best regards

    Pascal

    Plugin Author Barry

    (@barryhughes-1)

    Hi Pascal,

    A range of new venue, organizer and cost placeholders have already been coded (and so they will definitely be available in the next release) – however in all probability the next version of Event Rocket will not be available until The Events Calendar 3.10 is released.

    So, the answer is that the amount of time you will need to wait really hinges on when The Events Calendar itself next updates. I’d offer a guess that this may be slightly more than 4 weeks, but these things are subject to change.

    Thread Starter pderathe

    (@pderathe)

    Hello Barry

    Thanks for thoses good news concerning the future placeholders…

    One good new on my side:
    I took my chinese book and I succeed in writing the “cost”
    see http://swp-wp.com/rhinojazz/ (see the 2 first events below the main menu)

    additionnal help regarding this topic:
    Any help with the same kind of procedure with the “venue” (the location)

    Another question :
    how can I write the date {start_date} with the name of the day usin event-rocket ?
    The date parameter should be someting like “l j M Y” (with the year) or “l j M” (without the year) in http://swp-wp.com/rhinojazz/

    For example the event calendar pro shows the name of the day : see http://swp-wp.com/rhinojazz/concerts/

    Best regards

    Pascal

    Plugin Author Barry

    (@barryhughes-1)

    I took my chinese book and I succeed in writing the “cost”
    see http://swp-wp.com/rhinojazz/ (see the 2 first events below the main menu)

    Awesome!

    Any help with the same kind of procedure with the “venue” (the location)

    You’d basically use a similar approach, but registering existing function tribe_get_venue() for your placeholder – you can see how I handled this in the plugin’s latest development code:

    Thread Starter pderathe

    (@pderathe)

    Hello Barry

    I’m not fluent in “chinese” but it goes better and better !
    Following your advice I succeed in writing the “Venue ID” in the event box see here swp-wp.com/rhinojazz

    As I asked yesterday I have a last question : how can I write the date {start_date} with the name of the day (monday , tuesday.. in french lundi, mardi…) using event-rocket ?
    The date parameter should be someting like “l j M Y” (with the year) or “l j M” (without the year) in http://swp-wp.com/rhinojazz/ .. but I don’t know where to modify this.

    Plugin Author Barry

    (@barryhughes-1)

    If you are using {start_date} etc it should use the date format set for your blog (and if the blog’s language setting is French, it ought to use French).

    If for any reason that isn’t working or you need to use a different format, you could follow a similar strategy as before but setting up a function the returns the result of a call to tribe_get_start_date() … simply specify the format using PHP date() notation:

    return tribe_get_start_date( null, false, 'l j M Y' );

    Thread Starter pderathe

    (@pderathe)

    Thanks for your advice Barry.

    I’ve forgtten to change the date parameter in the WordPress settings.
    Now I use : “l j F Y” and the date shows like ” lundi 20 avril 2015″ which is what I expected.

    Best regards
    Pascal

    Plugin Author Barry

    (@barryhughes-1)

    Awesome 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Embedded Events: Inline Templates : other tags ?’ is closed to new replies.