Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Using pop-ups with default template
Pages: [1]   Go Down
Print
Author Topic: Using pop-ups with default template  (Read 607 times)
0 Members and 1 Guest are viewing this topic.
malson
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: March 22, 2002, 10:49:00 PM »

I am looking to combine the functionality of two separate templates. I like the layout/feel of the default template but prefer the pop-up window method of displaying event details found in the oldstyle template. Is there any way to combine the two templates into something functional??? I just downloaded the script last night so I haven't had a chance to do much poking around. If anyone has any ideas or possible solutions, please let me know. Thanks...

[This message has been edited by malson (edited March 23, 2002).]

Logged
kayleigh
New Member
*

Karma: 0
Offline Offline

Posts: 0

Computer Analyst


WWW
« Reply #1 on: March 23, 2002, 11:29:00 AM »

Prepare for a few steps to accomplish what you'd like to do...


  1. Copy these HTML files into your default calendar directory:

    • /oldstyle/event_detail.html (actually displays event details)
    • /oldstyle/styles_scripts.html (include file with popup information script)

  2. Add the following line somewhere in the head of the default.html file:

    code:
    <!--#include file="styles_scripts.html"-->

  3. Anywhere there is a hyperlink to the event details, change the link from
    code:
    <A HREF="<%=$CGI_URL_QUERYSTRING%>view=Event&event_id=<%= EVENT FIELD(id) %>" CLASS="gridtext">


    to
    code:
    <A HREF="<%=$CGI_URL_QUERYSTRING%>popup=0&template=event_detail.html&event_id=<%=$EVENT->{'details'}->{'id'}%>" onClick="showDetails('<%=$EVENT->{'details'}->{'id'}%>');return false;">


It worked for me!

------------------
Stephanie Meemken
Webmaster, Minnesota Jaycees http://www.mnjaycees.org/

[This message has been edited by kayleigh (edited March 23, 2002).]

Logged

Stephanie Meemken
Webmaster, Minnesota Jaycees

http://www.mnjaycees.org/
Steven
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: March 23, 2002, 02:35:00 PM »

Kayleigh,
Thanks so much for your reply. Unfortunately I'm at work right now so I'll have to wait until late tonight to try your solution out. I'll post back with the results and any additional questions that might come up.

Steven  

------------------

Logged
dwjngs
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #3 on: September 21, 2004, 04:00:00 PM »

Many thanks to Kayleigh for posting this little hack.  It's been a while since, though, so I'm hoping someone may have and answer for a related question:

Using this has allowed me to have popups with the default template, which is nice since I'd just as soon not use the 'time listing' at all.  However, the popup fix as I've applied it only works on events that have been posted.  If you click on the date (numeral) of an empty day it still opens the time list.

Can anyone suggest a fix for this, perhaps a popup that reads 'no events scheduled' or something similar?

Thanks in advance.

dwjngs

Here's the site:
http://www.bccymca.org/calendar/calendar.pl

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: