We're pleased to announce the acquisition of
eTicket!
Looking for a better way to talk to your customers? Try eTicket!
Home
Help
Search
Login
Register
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced search
8001
Posts in
1848
Topics- by
2099
Members
- Latest Member:
roi
Calendar Script Community
Customization
Customizing CalendarScript
(Moderators:
scott
,
DanO
,
Marty
)Pop-up window hack works but can it retuen a event title?
« previous
next »
Pages: [
1
]
Go Down
Author
Topic: Pop-up window hack works but can it retuen a event title? (Read 889 times)
0 Members and 1 Guest are viewing this topic.
caputo737
New Member
Karma: 0
Offline
Posts: 14
Pop-up window hack works but can it retuen a event title?
«
on:
November 09, 2007, 05:25:20 PM »
I implemented the hack in the thread
Using pop-ups with default template
Works great but for the title of the pop-up window it says "Event Details. "
Is there anyway to get it to make the title of the pop-up window the actual title of the event? I tried some hack and slash with inserting <%= EVENT FIELD(title) %> but it does not work and is probably a silly attempt. Any help much appreciated!
Jason
[
link corrected
]
«
Last Edit: November 09, 2007, 05:45:42 PM by DanO
»
Logged
DanO
Moderator
Full Member
Karma: 13
Offline
Posts: 212
Please don't PM me. Post in the open forum.
Re: Pop-up window hack works but can it retuen a event title?
«
Reply #1 on:
November 09, 2007, 05:53:03 PM »
** Is there anyway to get it to make the title of the pop-up window the actual title of the event? " **
Edit the
event_detail.html
template and try putting:
<%= $EVENT->{'details'}->{'title'} %>
in place of the other text.
Note: This suggestion is untested.
** I tried inserting <%= EVENT FIELD(title) %> but it does not work **
I would have thought it should... as long as it was entered in the proper place in the template and depending on the version of CalendarScript you're using. I don't know if that tag was recognized in very old CS version 3 installations. It should be in latter versions.
Dan O.
«
Last Edit: November 09, 2007, 05:57:58 PM by DanO
»
Logged
caputo737
New Member
Karma: 0
Offline
Posts: 14
Re: Pop-up window hack works but can it retuen a event title?
«
Reply #2 on:
November 09, 2007, 08:40:51 PM »
Thanks Dan. Did not seem to work. Maybe I am doing something dumb.
Here is code with the new code in yellow which replaced the title text "Event details. "
<TR>
<TD ALIGN="center" BGCOLOR="#000080">
<FONT COLOR="#fffffe">
<FONT SIZE="+3">
<%= $EVENT->{'details'}->{'title'} %>
</FONT>
<BR>
<% if ($in{'popup'}) { %>[ <A HREF="javascript:window. close()" STYLE="color:#fffffe;" >Close</A> ]
<% } else { %>
<!--#include file="_view. html"-->
<% } %>
</FONT>
</TD>
</TR>
Logged
DanO
Moderator
Full Member
Karma: 13
Offline
Posts: 212
Please don't PM me. Post in the open forum.
Re: Do you know HTML code?
«
Reply #3 on:
November 09, 2007, 09:52:24 PM »
Quote from: caputo737 on November 09, 2007, 08:40:51 PM
Maybe I am doing something dumb.
The "title" of a web page
goes between <title>... </title> html tags
on a web page. Isn't that what you said you wanted to change when you stated, "
the title of the pop-up window
says "Event Details." "? ? ? ?
Dan O.
«
Last Edit: November 09, 2007, 09:58:04 PM by DanO
»
Logged
caputo737
New Member
Karma: 0
Offline
Posts: 14
Re: Pop-up window hack works but can it retuen a event title?
«
Reply #4 on:
November 10, 2007, 05:12:51 PM »
No, I was not clear, sorry. I didn't even notice that in the title bar. I am looking to replace the text right above the "close" link. You can see it here:
hxxp: www. juneauhotspot. com/ if you click on one of the calendars on the bottom of the page titled Dance or Theater.
Thanks again for your help Dan O.
Jason
Logged
DanO
Moderator
Full Member
Karma: 13
Offline
Posts: 212
Please don't PM me. Post in the open forum.
Re: Pop-up window hack works but can it retuen a event title?
«
Reply #5 on:
November 10, 2007, 09:44:44 PM »
Than you originally had the right spot but the tag used has to be a little different on that template because of the way it makes the event details available in variable form:
<FONT SIZE="+3">
<%=
$EVENT->{'title'}
%>
</FONT>
Dan O.
Logged
caputo737
New Member
Karma: 0
Offline
Posts: 14
Re: Pop-up window hack works but can it retuen a event title?
«
Reply #6 on:
November 10, 2007, 10:11:03 PM »
Yes! That did it. Thanks once again for your excellent help Dan!
Jason
Logged
Pages: [
1
]
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> FAQS
=> Advertise on CalendarScript
-----------------------------
Setup and Installation
-----------------------------
=> Installation and Setup
=> Problems and Solutions
-----------------------------
Customization
-----------------------------
=> Customizing CalendarScript
=> Hacks and Mods
=> Plugins
-----------------------------
Making CalendarScript Better
-----------------------------
=> Suggestions and Ideas
=> Showcase
-----------------------------
Licensing
-----------------------------
=> Licensing
-----------------------------
Everything Else
-----------------------------
=> General Use