Titles in EventCalendar?
February 24, 2006 6:05 PM Subscribe
Help with Eventcalendar on my Wordpress blog?
Thanks to Askme, I am happily using Wordpress. I have eventcalendar 3.0.4 installed and I am trying to get the titles of the events to show up in the calendar itself. I followed the instructions in this thread at the WP support site, and you can see the code I am using and a link to my site in the post I left there earlier. Does anyone here know why there is extra code in my calendar?
Thanks to Askme, I am happily using Wordpress. I have eventcalendar 3.0.4 installed and I am trying to get the titles of the events to show up in the calendar itself. I followed the instructions in this thread at the WP support site, and you can see the code I am using and a link to my site in the post I left there earlier. Does anyone here know why there is extra code in my calendar?
Oops, second link should be to the mailing list info page.
posted by al_fresco at 6:31 PM on February 24, 2006
posted by al_fresco at 6:31 PM on February 24, 2006
Are you biblio? If so, there are a couple of lines that look suspicious in that quotes and stuff are confused. PHP functions and variables need to be outside of quotes while the text that you want to echo needs to be inside quotes. Maybe this revised code might help....
// insert day
$day_id = $date->day_id();
echo '
if($calendar_days[$day_id]->is_event)
echo ' ec3_eventday';
//echo '>' . $date->day_num;
echo '">';
echo day_link() . ' title="' . $calendar_days[$day_id]->get_titles() . '"';
if ($calendar_days[$day_id]->is_event)
echo ' class="eventday"';
echo '>' . $date->day_num;
echo $calendar_days[$day_id]->get_titles() ;
}
else
{
echo '>' . $date->day_num;
}
echo ' ';
posted by maxpower at 6:40 AM on February 25, 2006
// insert day
$day_id = $date->day_id();
echo '
echo ' ec3_eventday';
//echo '>' . $date->day_num;
echo '">';
echo day_link() . ' title="' . $calendar_days[$day_id]->get_titles() . '"';
if ($calendar_days[$day_id]->is_event)
echo ' class="eventday"';
echo '>' . $date->day_num;
echo $calendar_days[$day_id]->get_titles() ;
}
else
{
echo '>' . $date->day_num;
}
echo '
posted by maxpower at 6:40 AM on February 25, 2006
Response by poster: Hmm, I tried that but it gives me an "unexpected T_STRING, expecting ',' or ';' " error.
I'll mess around with it some more.
posted by Biblio at 10:16 AM on February 25, 2006
I'll mess around with it some more.
posted by Biblio at 10:16 AM on February 25, 2006
Response by poster: In case anyone else reads this, I've reverted the code back to normal since I do need the calendar to be functional while I figure this out. So if you click the link to my site you won't see the error I described.
posted by Biblio at 10:58 AM on February 25, 2006
posted by Biblio at 10:58 AM on February 25, 2006
« Older Travel Within Italy: The best way to get from Rome... | Please help me find a forgotten sci-fi story. Newer »
This thread is closed to new comments.
posted by al_fresco at 6:29 PM on February 24, 2006