Change Previous/Next Events Tag

Home Forums Calendar Products Events Calendar PRO Change Previous/Next Events Tag

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #166761
    astcit
    Participant

    G’day Guys!
    got another issue im hoping you can help me with.
    I’ve had a look around the forums as its the ‘in’ thing to do before asking a question 😉

    I’ve successfully changed a few edits with your help previously,
    changing the word ‘events’ to ‘bookings’ for the calendar pages and community event submit page. (thanks, love your work)

    BUT.. now I’ve found that when you do have an event up, the “Previous Event” / “Next Event” buttons haven’t changed across with the previous code.

    I used the code below to previously change the details i needed and it worked a charm:
    https://gist.github.com/anonymous/87f442dd8eb57bdf2ae7″

    I read the forum post “Change Upcoming Events Title Tag” (https://tri.be/support/forums/topic/change-upcoming-events-title-tag/) thinking BRAVO! I’ve found a solution!

    So I added the extra couple lines i needed which then turned out like this;
    https://gist.github.com/anonymous/81cafe240a53a78189d1

    This seems to just break the whole thing…
    C’mon guys, work your magic and help a fellow out 🙂

    #167424
    Casey
    Participant

    astcit,
    Thanks for getting in touch! Looking at your code here, I’m seeing a duplicate function name of ‘theme_filter_text,’ which is a definite no-no. 🙂 You should be able to fix it by combining the functions into one, like this: https://gist.github.com/ckpicker/bf46d8c5cfaab346f9e4

    Give that a try and let me know if that fixes things. Thanks! 🙂

    -Casey-

    #168250
    astcit
    Participant

    Alrighty, so my code is currently like this; https://gist.github.com/anonymous/7f08dbf5c5d67eb69b77
    I did change it so it looked like this;
    https://gist.github.com/anonymous/440368c2c8d6f11bce4d

    I found that it seemed to have done the same thing as what im looking for, But when changing the view to “Day” View,
    it says “No <i>Events</i> scheduled for 21/05/2014. Please try another day.” not “No <i>Bookings</i> scheduled for 21/05/2014. Please try another day.”

    #168292
    astcit
    Participant

    where as previously; doing with duplication actually changed this to Bookings not Events

    #168788
    Casey
    Participant

    Sorry, but you’ll also want to keep the ‘events_to_bookings’ function in there, as that does a general replace on the word ‘bookings.’ The problem you were having before was due to duplicate function names, since you had two functions named ‘theme_filter_text.’ Try putting the ‘events_to_bookings’ function back in and see if it does the trick. Thanks! 🙂

    -Casey-

    #169588
    astcit
    Participant

    Casey my friend,
    great work! Its all working fine now 🙂
    really appreciate your time. And of course, i will review the addon, once ive finished my project. You can count on me to shower you guys with rating stars 😉

    #170314
    Casey
    Participant

    Thanks astcit! Since it looks like you’re all set, I’ll go ahead and close out this thread. Feel free to start a new thread if you have further issues, and thanks again for being a loyal customer! 😀

    Cheers,
    Casey

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Change Previous/Next Events Tag’ is closed to new replies.