[EventCalendar] Event list and private post

Linuxale linuxale at libero.it
Tue May 22 13:06:10 UTC 2007


> Subject: Re: [EventCalendar] Event list and private post
> To: "Support for EventCalendar plugin" <eventcalendar at firetree.net>
> Message-ID:
> 	<a4a9d11d0705161024p23b954f6l80b367b1800652ff at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> It has nothing with ec3... you should check out template tags on wordpress
> codex for logged in users and visitors...
> 
> 
> -- 
> ID: c00l2sv

Hi Dear c00l2sv,
I've solved my question creating a new template function (
ec3_get_events_mod ) with the WHERE condition modifies like this:
WHERE ( p.post_status='publish' OR p.post_status='private' )

And then I check if there is some user logged in with: 

<?php
  global $user_ID, $user_identity;
    get_currentuserinfo();
      if ($user_ID):
      ?>
      <h3><?php echo $user_identity; ?></h3>
<?php
                        ec3_get_events_mod( ...
...
...
...);
 ?>
<?php
                  else:
                  ?>

      <?php
                        ec3_get_events(
...
...
...);
<?php
        endif;
        ?>

but I think that a preconfigured option could be useful to choose if
show or not private events too.

Thanks
Bye
Alex



*******************Internet Email Confidentiality Footer*******************
Le informazioni trasmesse sono destinate esclusivamente alla persona o
alla società in indirizzo e sono da intendersi confidenziali e riservate.
Ogni trasmissione, inoltro, diffusione o altro uso di queste
informazioni a persone o società differenti dal destinatario é proibita.
Se ricevete questa comunicazione per errore, contattate il mittente
e cancellate le informazioni da ogni computer. 

Please note that the contents of this email and any attachments are
confidential and for the eyes of the addressee(s) only. If you
are not the intended recipient, you are hereby notified that any use or
dissemination of this communication or any part of it is strictly
prohibited. If you receive this transmission in error, please notify the sender
immediately using the contact details above and then delete this e-mail.
*******************Internet Email Confidentiality Footer*******************




More information about the EventCalendar mailing list