Welcome to Geeklog, Anonymous Thursday, February 02 2023 @ 11:22 pm EST

Geeklog Forums

Events listing?


Status: offline

tingo

Forum User
Chatty
Registered: 06/05/02
Posts: 57
Location:Oslo, Norway
Has anybody made an "events listing" function or hack for Geeklog? For one of the sites that I'm involved in, what the users really want is a nice listing of events that they can print out, instead of (actually, in addition to) the calendar "view", which doesn't print very well. Preferably sorted by date, maybe with month headings? That would make it easy to generate a pdf file on-the-fly, too.
 Quote

Status: offline

tingo

Forum User
Chatty
Registered: 06/05/02
Posts: 57
Location:Oslo, Norway
Well, since nobody answered (and I really needed this for a site I run), I went ahead and made a quick hack of it. It is called listevents for want of a better name. The file should show up in the download section here (when or if it gets approved).
Currently, it is very basic, it just lists all events in the system (that you have access to) sorted by date. It can also do a 'printable' view, but thats about it for now.
 Quote

Status: offline

qgil

Forum User
Junior
Registered: 05/01/03
Posts: 22
Precisely today a client is asking us the same, if it's possible to have this events list on <a href="http://www.fibrosiquistica.org/~jp50893/">the geeklog hes about to release</a>.<p> So thank you for the hack. We'll wait a bit to make sure you find it stable and maybe we can reuse it.
 Quote

Status: offline

qgil

Forum User
Junior
Registered: 05/01/03
Posts: 22
Sorry for the HTML tags, forgot to put it in HTL formatted. BTW, I also forgot to ask if you have this events listing page in a public URL. Thanks.
 Quote

Status: offline

tingo

Forum User
Chatty
Registered: 06/05/02
Posts: 57
Location:Oslo, Norway
Quote by qgil: Precisely today a client is asking us the same, if it's possible to have this events list on the geeklog hes about to release.



So thank you for the hack. We'll wait a bit to make sure you find it stable and maybe we can reuse it.


The hack is in the downloads section here. If somebody improives it, I would be happy if they released the improved version.
 Quote

Status: offline

tingo

Forum User
Chatty
Registered: 06/05/02
Posts: 57
Location:Oslo, Norway
Quote by qgil:
BTW, I also forgot to ask if you have this events listing page in a public URL. Thanks.


Yes, the events listing page can be a public URL, just like the rest of the site.
 Quote

Status: offline

tingo

Forum User
Chatty
Registered: 06/05/02
Posts: 57
Location:Oslo, Norway
Suggestions for improvement:
- make the script display events from the start of the year
- make the scipt display events from todays date
- add date selection "boxes", that way the user can choose start and end date for the listing
 Quote

Status: offline

ldfoo

Forum User
Junior
Registered: 05/10/04
Posts: 34
I use the ListEvents hack to output a workshop schedule - It works very well except that to limit the events to a single event type, I need to either limit the type of events allowed to this single type or as I have done, edit the listevents hack to only output a specific event. I would love to be able to improve on this hack but my attempts to date have not been successful. A first momentus step would be to be able to use the event type in the url to then output a filtered event list.

Has anyone tried this or have any hints on how I could do this. If it helps, I could quote the code here but thought it may be too long.

Thanks
Laurie
 Quote

Status: offline

Dazzy

Forum User
Full Member
Registered: 07/19/03
Posts: 200
Location:N. Ireland
Has anyone modified this to work with 1.4.1? I have not got the expertise to do this myself unfortunately.
Dazzy
 Quote

ldfoo

Anonymous

I gave up on this and am using the search function on events to output lists - not as good and misses the useful "print" function but does the job. The tricky thing with the search is that it only searches the description field and not include the event category.

rgds
laurie
 Quote

Status: offline

Dazzy

Forum User
Full Member
Registered: 07/19/03
Posts: 200
Location:N. Ireland
Hey

once I sobered up I figured it out, very easy in fact, just modify the listitem.thml file in yourtheme/events folder

Text Formatted Code

                                <tr align="center">
                                    <td>{event_startdate}</td>
                                    <td>{event_enddate}</td>
                                    <td align="left">
                                        <a href="{site_url}/calendar/event.php?eid={event_id}">{event_title}</a>
                                    </td>
                                </tr>
 

Dazzy
 Quote

All times are EST. The time is now 11:22 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content