Home › Forums › Calendar Products › Events Calendar PRO › Change Previous/Next Events Tag
- This topic has 6 replies, 2 voices, and was last updated 11 years, 11 months ago by
Casey.
-
AuthorPosts
-
May 19, 2014 at 5:39 pm #166761
astcit
ParticipantG’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/81cafe240a53a78189d1This seems to just break the whole thing…
C’mon guys, work your magic and help a fellow out 🙂May 20, 2014 at 5:52 am #167424Casey
Participantastcit,
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/bf46d8c5cfaab346f9e4Give that a try and let me know if that fixes things. Thanks! 🙂
-Casey-
May 20, 2014 at 7:00 pm #168250astcit
ParticipantAlrighty, 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/440368c2c8d6f11bce4dI 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.”May 20, 2014 at 7:47 pm #168292astcit
Participantwhere as previously; doing with duplication actually changed this to Bookings not Events
May 21, 2014 at 5:46 am #168788Casey
ParticipantSorry, 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-
May 21, 2014 at 4:05 pm #169588astcit
ParticipantCasey 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 😉May 22, 2014 at 6:09 am #170314Casey
ParticipantThanks 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 -
AuthorPosts
- The topic ‘Change Previous/Next Events Tag’ is closed to new replies.
