Advertisement:

have calender events open in a new tab or window when clicked on

Aloittaja darknovember, huhtikuu 27, 2014, 06:04:07 IP

« edellinen - seuraava »

darknovember

just wondering how i would go about getting this done, im thinking its in the calender.templet.php file but as to what to change im unsure  :(

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

darknovember

#2
when someone clicks on an event , it will open the events post in a new window or a new tab, it doesnt matter what one.
rather then in the same window

~update~
steps on what i want it to do
1. when a user clicks on the event
2. it will open a new tab to the events posting

3. just a photo of the events posting inside a new tab


shadow82x

Gotcha. The file you'll actually want to edit is ../Sources/Subs-Calendar.php

Koodi (Find) [Valitse]
'link' => $row['id_board'] == 0 ? $row['title'] : '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['title'] . '</a>',
Koodi (Replace) [Valitse]
'link' => $row['id_board'] == 0 ? $row['title'] : '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0" target="_blank">' . $row['title'] . '</a>',

Hope that helps :)
Colin B
Former Spammer, Customize, & Support Team Member


shadow82x

Colin B
Former Spammer, Customize, & Support Team Member


Advertisement: