Strider Posted June 7, 2013 Report Posted June 7, 2013 This is just a mod for Simpilots Events module which is required for this to work. Demo: http://malaysiava.org/index.php/tourcalendar download: https://github.com/Strider2/Tcal Quote
hoser70 Posted June 7, 2013 Report Posted June 7, 2013 OH OH OH!!! I've been looking for something like this... I think I love you man! ;-) Any chance to create navigation buttons to change the month? ;-) Thanks for sharing though! Awesome! Quote
flyalaska Posted June 8, 2013 Report Posted June 8, 2013 Looks awesome! I will try it out tonight. Quote
Moderators servetas Posted June 8, 2013 Moderators Report Posted June 8, 2013 Is this a tour calendar or an event calendar? Quote
hoser70 Posted June 12, 2013 Report Posted June 12, 2013 The only thing I would like to add in would be the ability to have links for the previous and next month as well as highlight the current day table cell. But I sure do appreciate your willingness to share this with us Strider. Quote
Strider Posted June 12, 2013 Author Report Posted June 12, 2013 I will see what I can do with that. Quote
hoser70 Posted June 13, 2013 Report Posted June 13, 2013 Oh no need to do more work on it. I'm plugging away at it as well. If I can get it to work, I'll share the code with you - - unless you beat me to it. ;-) Quote
Kapitan Posted June 19, 2013 Report Posted June 19, 2013 Dont work for me when i upload files and replace EventsData.class.php the event i create dosent show in Admin Panel ( on calendar itself also dont show ) but when i upload oryginal EventsData.class.php from event mod its ok i got all my events but i dont show on calendar. Quote
Strider Posted June 20, 2013 Author Report Posted June 20, 2013 any errors show? Got a link to it? Quote
Kapitan Posted June 20, 2013 Report Posted June 20, 2013 No error just not showing on calendar , with my oryginal file with yours cant add a event http://enterairva.pl/index.php/tourcalendar http://enterairva.pl/index.php/events Quote
Strider Posted June 20, 2013 Author Report Posted June 20, 2013 I am unable to access your events module as I need to be logged in. Try uploading simpilots original file, imy one only has an extra bit of code, which shouldn't hinder the operating of the events module. Quote
Kapitan Posted June 20, 2013 Report Posted June 20, 2013 I am unable to access your events module as I need to be logged in. Try uploading simpilots original file, imy one only has an extra bit of code, which shouldn't hinder the operating of the events module. I will pm you with login details to test account on my page , have a look now is with simpilots original file. Quote
Strider Posted June 20, 2013 Author Report Posted June 20, 2013 I honestly dont know what is going on. The code that is on the github is exactly what I have and mine works fine, it also works for others who have talked to me on skype and here Quote
Kapitan Posted June 21, 2013 Report Posted June 21, 2013 Fatal error: Call to undefined method EventsData::get_upcoming_events_dates() in /home/enterairva/domains/enterairva.pl/public_html/core/templates/TourCalendar.tpl on line 45 Thats with simpilot file Quote
Strider Posted June 21, 2013 Author Report Posted June 21, 2013 So you do need the little update to the eventsdata.class file. It should work with that code. Quote
TAV1702 Posted June 30, 2013 Report Posted June 30, 2013 Any luck on linking to previous and up coming months? That would be a great addition to this nice calendar. Quote
Strider Posted June 30, 2013 Author Report Posted June 30, 2013 As of yet no, but still working on it. Quote
Atcarrillo Posted August 22, 2013 Report Posted August 22, 2013 Here is the updated version of the EventsData.class.php that should work. It should solve the problem with the events disappering. All i did was add ".TABLE_PREFIX."events" between public function get_upcoming_events_dates() { $query = "SELECT * FROM ".TABLE_PREFIX."events"; return DB::get_results($query); } and i basically did that for each function. EventsData.class.php.zip Quote
Sava Posted August 22, 2013 Report Posted August 22, 2013 I saw this at a point and couldn't remember whose code it was so I developed it from the ground up for Delta Virtual with links to new and previous months. I see I've used the same base code you did. http://virtualdelta....ndex.php/events I'll see to submit a pull request and update it with the links Quote
Atcarrillo Posted August 22, 2013 Report Posted August 22, 2013 Sava, I would be very interested in the code for the buttons that allow the next or previous month. Would you be able to share that with me? Quote
magicflyer Posted August 24, 2013 Report Posted August 24, 2013 Oh hey, I see you released that custom module to the public. Was a bit tough trying to code those events to show up in the right date Quote
Strider Posted August 25, 2013 Author Report Posted August 25, 2013 People wanted it when they heard what it does, so instead of keeping it to myself I let others have it too Quote
RocketRod Posted May 23, 2014 Report Posted May 23, 2014 I know the last post in this thread was 2013 but I would like to know if anyone got the previous and next month tabs working? Thanks! Quote
poole3003 Posted October 27, 2014 Report Posted October 27, 2014 Sava did you share any were the code for the next month buttons my friend Quote
gio1961 Posted February 13, 2015 Report Posted February 13, 2015 Hello everyone, as you can put the buttons or links up / down to display the previous or next month? thanks for any response .. best regards Quote
Administrators ProAvia Posted November 5, 2015 Administrators Report Posted November 5, 2015 I have been unable to get any events to display other than those of the current month. When viewing months other than the current month, the current month's events displayed - same current month's events no matter what month I selected. After finding a blog by a gentleman named David Walsh (possible original code for the php calendar) and doing a bit of reading of the comments there, I was able to get all events to show in their correct month. I am not a PHP coder. I only edited one existing file in Strider's original package. There may be a more efficient way to achieve the same outcome I was able to attain. There are just a few minor changes/additions to the code in "TourCalendar.tpl". The attached fie contains my edited file. Of course, the calendar display is specific to my site and the format may not match yours - this includes everything between the <style> </style> tags near the top of the file - so don't change that in your file if your calendar display already fits well with your site. Changes which corrected my issue from above are between " /* keep going with days... */ " and " /** QUERY THE DATABASE ..... " TourCalendar.zip Quote
TAV1702 Posted October 27, 2016 Report Posted October 27, 2016 (edited) Ok so is anyone else getting the calling static error now days? I know this is old news but I have been away from coding for some time and I am out of touch. How did everyone fix this issue? Notice: Undefined index: month in /home/xxxxxx/public_html/xxxxxxx/core/templates/TourCalendar.php on line 24 Notice: Undefined index: year in /home/xxxxxxx/public_html/xxxxxx/core/templates/TourCalendar.php on line 25 Strict Standards: Non-static method EventsData::get_upcoming_events_dates() should not be called statically in /home/xxxxx/public_html/xxxxxx/core/templates/TourCalendar.php on line 83 **EDIT** I fixed the lines 24 and 25 error by using a $month = (int) (!empty($_GET['month']) ? $_GET['month'] : date('m')); $year = (int) (!empty($_GET['year']) ? $_GET['year'] : date('Y')); instead of the supplied $month = (int) ($_GET['month'] ? $_GET['month'] : date('m')); $year = (int) ($_GET['year'] ? $_GET['year'] : date('Y')); I still have the static error going on **EDIT** All fixed Edited October 28, 2016 by TAV1702 Quote
web541 Posted October 28, 2016 Report Posted October 28, 2016 (edited) Try this version https://github.com/web541/Tcal It's just going into the data class and changing public function to public static function EDIT: Now that I look at your post now, not sure where you got the supplied date line from. Edited October 28, 2016 by web541 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.