# Tourcalendar V1

**URL:** <https://forum.phpvms.net/t/tourcalendar-v1/8178>\
**Category:** Releases\
**Created:** [June 7, 2013, 5:42pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178 "2013-06-07T17:42:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 7, 2013, 5:42pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/1 "2013-06-07T17:42:06Z")

</div>

This is just a mod for Simpilots Events module which is required for this to work.

Demo: [http://malaysiava.org/index.php/tourcalendar](http://malaysiava.org/index.php/tourcalendar)

download: [https://github.com/Strider2/Tcal](https://github.com/Strider2/Tcal)

---

<div class="post-metadata">

**Author:** ![hoser70](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@hoser70](https://forum.phpvms.net/u/hoser70)\
**Post date:** [June 7, 2013, 7:50pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/2 "2013-06-07T19:50:17Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![flyalaska](https://forum.phpvms.net/user_avatar/forum.phpvms.net/flyalaska/32/14_2.png) [@flyalaska](https://forum.phpvms.net/u/flyalaska)\
**Post date:** [June 8, 2013, 2:47am UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/3 "2013-06-08T02:47:05Z")

</div>

Looks awesome! I will try it out tonight.

---

<div class="post-metadata">

**Author:** ![servetas](https://forum.phpvms.net/user_avatar/forum.phpvms.net/servetas/32/75_2.png) [@servetas](https://forum.phpvms.net/u/servetas)\
**Post date:** [June 8, 2013, 9:01am UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/4 "2013-06-08T09:01:43Z")

</div>

Is this a tour calendar or an event calendar?

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 8, 2013, 11:10am UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/5 "2013-06-08T11:10:33Z")

</div>

It is an event calendar.

---

<div class="post-metadata">

**Author:** ![hoser70](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@hoser70](https://forum.phpvms.net/u/hoser70)\
**Post date:** [June 12, 2013, 1:43pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/6 "2013-06-12T13:43:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 12, 2013, 4:09pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/7 "2013-06-12T16:09:38Z")

</div>

I will see what I can do with that.

---

<div class="post-metadata">

**Author:** ![hoser70](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/h/f17d59/32.png) [@hoser70](https://forum.phpvms.net/u/hoser70)\
**Post date:** [June 13, 2013, 7:12pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/8 "2013-06-13T19:12:47Z")

</div>

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. 😉

---

<div class="post-metadata">

**Author:** ![Kapitan](https://forum.phpvms.net/user_avatar/forum.phpvms.net/kapitan/32/294_2.png) [@Kapitan](https://forum.phpvms.net/u/Kapitan)\
**Post date:** [June 19, 2013, 8:28pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/9 "2013-06-19T20:28:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 20, 2013, 1:08pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/10 "2013-06-20T13:08:49Z")

</div>

any errors show? Got a link to it?

---

<div class="post-metadata">

**Author:** ![Kapitan](https://forum.phpvms.net/user_avatar/forum.phpvms.net/kapitan/32/294_2.png) [@Kapitan](https://forum.phpvms.net/u/Kapitan)\
**Post date:** [June 20, 2013, 1:26pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/11 "2013-06-20T13:26:51Z")

</div>

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/tourcalendar)

[http://enterairva.pl/index.php/events](http://enterairva.pl/index.php/events)

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 20, 2013, 3:08pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/12 "2013-06-20T15:08:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Kapitan](https://forum.phpvms.net/user_avatar/forum.phpvms.net/kapitan/32/294_2.png) [@Kapitan](https://forum.phpvms.net/u/Kapitan)\
**Post date:** [June 20, 2013, 5:35pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/13 "2013-06-20T17:35:08Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 20, 2013, 8:58pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/14 "2013-06-20T20:58:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kapitan](https://forum.phpvms.net/user_avatar/forum.phpvms.net/kapitan/32/294_2.png) [@Kapitan](https://forum.phpvms.net/u/Kapitan)\
**Post date:** [June 21, 2013, 6:34am UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/15 "2013-06-21T06:34:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 21, 2013, 1:36pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/16 "2013-06-21T13:36:44Z")

</div>

So you do need the little update to the eventsdata.class file. It should work with that code.

---

<div class="post-metadata">

**Author:** ![TAV1702](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tav1702/32/41_2.png) [@TAV1702](https://forum.phpvms.net/u/TAV1702)\
**Post date:** [June 30, 2013, 8:25pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/17 "2013-06-30T20:25:46Z")

</div>

Any luck on linking to previous and up coming months? That would be a great addition to this nice calendar.

---

<div class="post-metadata">

**Author:** ![Strider](https://forum.phpvms.net/user_avatar/forum.phpvms.net/strider/32/17_2.png) [@Strider](https://forum.phpvms.net/u/Strider)\
**Post date:** [June 30, 2013, 11:40pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/18 "2013-06-30T23:40:07Z")

</div>

As of yet no, but still working on it.

---

<div class="post-metadata">

**Author:** ![TAV1702](https://forum.phpvms.net/user_avatar/forum.phpvms.net/tav1702/32/41_2.png) [@TAV1702](https://forum.phpvms.net/u/TAV1702)\
**Post date:** [July 1, 2013, 10:06pm UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/19 "2013-07-01T22:06:31Z")

</div>

Ok sounds good. Thx for the update.

---

<div class="post-metadata">

**Author:** ![Atcarrillo](https://forum.phpvms.net/user_avatar/forum.phpvms.net/atcarrillo/32/208_2.png) [@Atcarrillo](https://forum.phpvms.net/u/Atcarrillo)\
**Post date:** [August 22, 2013, 12:03am UTC](https://forum.phpvms.net/t/tourcalendar-v1/8178/20 "2013-08-22T00:03:51Z")

</div>

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](\< _ **base\_url** _ \>/applications/core/interface/file/attachment.php?id=1191)

[Next page](https://forum.phpvms.net/t/tourcalendar-v1/8178.md?page=2)
