Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 11:47 am EDT

Geeklog Forums

Calendar theme variable


Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
I'm desperately looking for the url of an event. Not the theme of the listed event on the Geeklog site, but the url from the website of the event. The only the event details are now linking tot the url of the event, is through the {event-title} variable.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
{event_url}
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Yeah, that's the same one I figured out. But why doesn't this work in /plugins/calendar/templates/eventdetails.thtml ?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by: beewee

But why doesn't this work in /plugins/calendar/templates/eventdetails.thtml ?


Because it's not set there Confused I was looking in the wrong place, sorry.

Around line 554 of calendar/event.php, it should probably look like this:
Text Formatted Code
if (!empty($A['url'])) {
    $event_title = COM_createLink($event_title, $A['url']);
    $cal_templates->set_var('event_url', $A['url']); // add this
}

bye, Dirk
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Yes, that's correct. I assume I don't have to ask you to add this in the next updates of course, or shall I upload some updated files (event.php and eventdetails.thtml) ?
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Checked in

bye, Dirk
 Quote

All times are EDT. The time is now 11:47 am.

  • 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