Getting raw data from functions

Home Forums Calendar Products Events Calendar PRO Getting raw data from functions

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1079100
    fifteen15studios
    Participant

    Modern Tribe,

    I would like to take apart a couple functions to get to the root text. One is the date and time display, another is the summary.

    Is there a way I can take the function in single-events.php which displays the date and time in the format like ”
    February 21 @ 7:00 pm – 10:00 pm” and output this as separate variables? I’d rather display the month, then day, then year, then start time, then end time, so I can output this in different tags and also change some of the text inside this. How would I do that?

    By summary, I’d mostly like to remove the inner tags like div and p so that I can output only the contents. I’d also like to remove hyperlinks. Is there a way I can do this?

    Guys, I appreciate all the help you’ve given me (and us) in modifying our interface! It’s come a long way, and if I can send some links privately, I can show you what we’ve done! It’s actually quite surprising!

    Thanks,
    Brendan

    #1080208
    Geoff B.
    Member

    Good evening Brendan and welcome back!

    Thank you for reaching out to us.

    The short answer to your question is yes. You can totally modify the display layer to your liking.
    You might want to read our Themer’s guide to do so (if you haven’t already).

    To summarize, basically you:

    1. Copy the template file from the view you are interested in changing to the tribe-events folder of your WordPress theme
    2. You edit the file to your liking
    3. The edited file will have priority over the built-in view file

    As for the offer to see what you have done so far, we are absolutely interested. Please hit us up when you have a chance!

    Let me know how that goes.

    Best regards,
    Geoff B.

     

    #1080238
    fifteen15studios
    Participant

    Thanks, Geoff. I appreciate the reply, but that’s nooot quiiite what I had in mind. I’m already doing that so I can theme the single-event.php file a certain way. What I’m asking for, mainly, is how I can break the tribe_events_event_schedule_details() function into components so I can display the variables such as date, start time, end time, and such in a separate variable?

    #1080240
    fifteen15studios
    Participant

    This reply is private.

    #1081114
    Geoff B.
    Member

    Good evening Brendan,

    I am sorry I misunderstood what you were asking for, my bad.

    As you probably know, the scope of our support when it comes down to customization is unfortunately limited to getting you started 🙂

    So, with that in mind, here are a couple of links that should totally get you closer to what you are trying to achieve:

    Pretty nice links! Kudos on that!

    Let me know how if that helps.

    Best regards,
    Geoff B.

    #1086690
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Getting raw data from functions’ is closed to new replies.