Forum Replies Created
-
AuthorPosts
-
Butch Roy
ParticipantOK I think I figured this one out. I followed your advice and forgot about all the old Agenda view plugin stuff, and basically wrapped all the view registration code (and other stuff) into a class and when from there. And lo and behold, my view shows up on the backend. Thanks!
Butch Roy
ParticipantYup, I was aware that the tutorial was expired, but the Agenda option shows up in the backend once installed, so I figured that would be a good place to start.
What I’m trying to do is build a customized week view. I initially started with the Pro week view, but it got to the point where I was undoing so much of it that making my own made more sense. (Though I will be using some of the existing Pro week view code)
So all I’m trying to do right now is to have my view show up as an option on the backend.
Butch Roy
ParticipantWhoops, I just saw this question has already been answered. It would be awesome if you guys updated that tutorial, though 🙂
Butch Roy
ParticipantCool, that helps. Another question: can I create a custom class file in that folder without it being erased during an upgrade?
Also, where is the Ajax code for the Previous Week/Next Week actions in the Week view?
Butch Roy
ParticipantThat will do, thanks!
Although, a full list of handles and their associated files that lives in the Knowledge Base would be extremely helpful, I think…
December 5, 2014 at 12:46 pm in reply to: tribe_events_week_is_current_today() not returning true #909336Butch Roy
ParticipantThanks so much for looking into this; glad I could help! No frustration on my end; like I said, I just ended up writing my own function 🙂
December 4, 2014 at 7:17 am in reply to: tribe_events_week_is_current_today() not returning true #907621Butch Roy
ParticipantIn the meantime, I wrote my own custom function that did the same thing:
http://pastebin.com/tfJnKbRG
So that’s why the classes are showing up on my site now. Before I plugged my own function in, they weren’t showing up, so tribe_events_week_is_current_today() was still returning false.Butch Roy
ParticipantAn excellent start, thank you. So if I set up my function like this:
http://pastebin.com/827mg9aa
How can I pass it the current day in a while loop (specifically for a Week view)?December 2, 2014 at 1:43 pm in reply to: tribe_events_week_is_current_today() not returning true #905542Butch Roy
ParticipantThe var_dump still returns a FALSE boolean wherever I put it. I tried inside the if statement, outside of it, outside of the while loop, etc.
My timezone is set to Central, which is correct.
I deactivated all of my other plugins, and still get the same result.
Butch Roy
ParticipantOK. Using CSS to hide the stuff I don’t want seems to be the solution here. Thank you.
Butch Roy
ParticipantOK if I were to copy the Week template tags file (specifically public/template-tags/week.php) where would I put it in the “tribe-events” folder in my theme?
Can I declare new template tag functions in my theme’s “functions.php” file?
Butch Roy
ParticipantYes, the fields on the backend:
December 2, 2014 at 6:38 am in reply to: tribe_events_week_is_current_today() not returning true #905159Butch Roy
ParticipantNope, I am modifying files placed into my theme, as directed in the Themers Guide.
Yes I have tried removing the “=== true”, I just put it back in for readability.
Here’s a link to the calendar (its a bit of a mess, sorry):
http://hugestage.bsmallbeck.com/events/So what you are saying is that tribe_events_week_is_current_today() doesn’t just return a boolean?
Butch Roy
ParticipantI meant on the back end. How can I remove the stuff from the “Events” meta box when I am adding a new event?
-
AuthorPosts
