[EventCalendar] Events
Daniel Vázquez
dani at make.es
Fri Jul 6 11:47:09 UTC 2007
Hello, my name is Daniel, I writte from Madrid, Spain!
I have a problem with the plugin Event Calendar 3.1.0.
The problem is this:
I have an event in my calendar, when I clicked in the event, it appears to me the post page.
But I want that my link will be the id of meta_value, this is in SQL consult. This is my code:
$sql=
"SELECT DISTINCT
id,
post_title,
meta_value,
meta_key,
GREATEST(start,'$begin_date') AS start_date,
LEAST(end,'$end_date') AS end_date,
allday,
1 AS is_event
FROM $wpdb->posts p
LEFT JOIN $wpdb->postmeta m ON p.id=m.post_id
LEFT JOIN $ec3->schedule s ON p.id=s.post_id
WHERE post_status='publish'
AND meta_key='pag_destino'
AND end>='$begin_date'
AND start<'$end_date'";
This sentence is OK but this is the problem!!!
if(array_key_exists($day_id,$calendar_days))
{
echo ' class="ec3_postday';
if($calendar_days[$day_id]->is_event)
echo ' ec3_eventday';
echo '">';
echo '<a href="' . get_option('home') . '/?p=' . $calendar_days[$day_id]->meta_value .'" title="' . $calendar_days[$day_id]->get_titles() . '"';
if($calendar_days[$day_id]->is_event)
echo ' class="eventday"';
echo ">$date->day_num</a>";
This sentence gives back http://eec.make.es/espanol/?p=
As you can see, it passes the empty variable to him.
Like I can make it to obtain the wished value?
It's very difficult!!!
I hope that you can help me!!!
Thank you very much! And excuses by my English!
Daniel Vázquez
Programador web
Make Marketing y Comunicación, S.L.
Miembros de la red Internacional de Agencias Independientes CommWorld
Príncipe de Vergara, 73 Bajo 28006 Madrid
Tlf.: (+34) 91.309.02.09 - Fax: (+34) 91.309.05.89
www.make.es - www.blog.make.es
P Piense en el medio ambiente. Antes de imprimir este mail pregúntese si es realmente necesario.
Este correo electrónico y la información contenida en el mismo es de carácter confidencial y está sometida al secreto profesional, diriginédose exclusivamente al destinatario mencionado en el encabezamiento, cuyos datos forman parte de un fichero responsabilidad de MAKE MARKETING Y COMUNICACIÓN S.L. y cuya finalidad es canalizar las comunicaciones oportunas entre emisor y destinatario. Le informamos que cuenta con los derechos de acceso, rectificación y cancelación, que podrá ejercitar en la dirección de correo arriba indicada. Si el receptor de la comunicación no fuera el destinatario, le informamos que cualquier divulgación, copia, distribución o utilizacin no autorizada de la información contenida en la misma está prohibida por la legislación vigente.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070706/12edbd2b/attachment.html
More information about the EventCalendar
mailing list