[EventCalendar] Events

elhorko elhorko at gmail.com
Fri Jul 6 18:34:59 UTC 2007


I have been working on something like this, too.  At the moment, it seems to
me that the best way to do this is to modify the default wrapper within
template_functions.php (line
459) to call that metadata, and then to call that function by changing
eventcalendar.php line 519 from

return ec3_get_schedule() . $post_content;

to

return ec3_get_schedule($format_wrapper) . $post_content;


However, I am trying to figure out the write syntax to call the link through
metadata.  Which is probably elementary php, but I don't know it.

After that, I'm going to try to figure out a way to create individual links
(pieces of metadata) for each single showtime.

I hope this is helpful, and I look forward to your and others' responses /
editorials.






On 7/6/07, Daniel Vázquez <dani at make.es> wrote:


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.
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20070706/08e39521/attachment.htm


More information about the EventCalendar mailing list