[EventCalendar] Events

elhorko elhorko at gmail.com
Sun Jul 8 19:16:15 UTC 2007


note that i was wrong about the below.  i misunderstood what single, range,
and wrapper did.

within template-functions.php i now have

define('EC3_DEFAULT_FORMAT_SINGLE','<tr><td colspan="3"
align="left">%s</td>');
define('EC3_DEFAULT_FORMAT_RANGE','<td class="ec3_start"
align="left">%1$s</td></tr>');
define('EC3_DEFAULT_FORMAT_WRAPPER','<table align="left"
class="ec3_schedule">%s</table>');

this is closer, but i am now seeking a way to create individual ticket links
through metadata


On 7/6/07, elhorko <elhorko at gmail.com> wrote:
>
>
> 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/20070708/b3c1142e/attachment.html


More information about the EventCalendar mailing list