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


Login with username, password and session length

Search

 
Advanced search

8026 Posts in 1851 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)add TD in ACTUAL DISPLAY AREA to show in event view only?
Pages: [1]   Go Down
Print
Author Topic: add TD in ACTUAL DISPLAY AREA to show in event view only?  (Read 302 times)
0 Members and 1 Guest are viewing this topic.
yullah
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« on: April 01, 2003, 06:11:00 PM »

I'm trying to add a TD cell along the right side of my calendar, to show up ONLY in event view.

ex.
http://www.yullah.com/cgi-local/calendar.pl?template=test2.html

but i DON'T want that column showing up on the main calendar page... ONLY in event view...

here's my latest attempt, but i'm no perl pro & i'm getting errors...
http://www.yullah.com/cgi-local/calendar.pl?template=test.html  

i tried using this:

code:

<% if ($VIEW eq "Event") %>
   <TD WIDTH="100" align="left" valign="top">
      <!-- vertical ad space -->
      <!-- Start Ad Rotation Code -->
<SCRIPT SRC=http://www.yullah.com/cgi-local/adrotate/banners.pl?action=display></SCRIPT>
<!-- Stop Ad Rotation Code -->   
   </TD>
   <% /IF %>


but it gives me errors ... i don't know if this is even how you'd go about this, it's just a guess on my part really... as i said, i'm not a perl pro!

Any help would be greatly appreciated!!! Thanks!!!

can anyone help me out?

[This message has been edited by yullah (edited April 01, 2003).]

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: April 01, 2003, 07:46:00 PM »

Well you have no opening { after the if

<% if ($VIEW eq "Event") %>

It should be

<% if ($VIEW eq "Event") { %>

and forget the <% /IF %> if you're not using <% IF... %> Just end it with a closing brace:

<% } %>

Dan O.

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

Logged
yullah
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #2 on: April 01, 2003, 07:58:00 PM »

ok i made those changes...

code:

!-- END OF VIEWS -->
      <!-- ================================ -->
      <!-- /THIS IS THE ACTUAL DISPLAY AREA -->
      <!-- ================================ -->
   </TD>
   <% if ($VIEW eq "Event") { %>
   <TD WIDTH="100" align="left" valign="top">
      <!-- vertical ad space -->
      <!-- Start Ad Rotation Code -->
<SCRIPT SRC=http://www.yullah.com/cgi-local/adrotate/banners.pl?action=display></SCRIPT>
<!-- Stop Ad Rotation Code -->   
   </TD>
   <% } %>
</TR>

i think the problem here is that i am trying to add this TD outside of the "actual display area"---
this is the only way i can think to add a TD without having the info in that TD repeat for each event field entry...

i'm getting this error message:

syntax error at (eval 1) line 279, near ") print" Unmatched right bracket at (eval 1) line 280, at end of line

and this is highlighted in the error:

   print "
\n   <TD WIDTH=\"100\" align=\"left\" valign=\"top\">
\n      <!-- vertical ad space -->
\n      <!-- Start Ad Rotation Code -->
\n<SCRIPT SRC=http://www.yullah.com/cgi-local/adrotate/banners.pl?action=display></SCRIPT>
\n<!-- Stop Ad Rotation Code -->   
\n   </TD>
\n   ";


thanks

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 221

Please don't PM me. Post in the open forum.


WWW
« Reply #3 on: April 02, 2003, 01:48:00 PM »

** i'm getting this error message: syntax error at (eval 1) line 279, near ") print" Unmatched right bracket at (eval 1) line 280, at end of line **

** i think the problem here is that i am trying to add this TD outside of the "actual display area **

Improper HTML coding will not generate a script error so that is not causing the problem ... but you will likely have to insert proper HTML code for it to display correctly (once you correct whatever is causing the CGI error).

Dan O.

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

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