New Plugin: Post Event [Frequently Asked Questions]

Frequently Asked Questions

-> What are the modification in the admin panel after plugin activation?

* A new meta box named ‘PostEventSectionId’ is created in the right sidebar when you edit or create a post. This is where you will be able to edit the event
* A new section “Post Event” is available in the option settings

-> I want to display in my home page the 5 next events of cat “evenementSportif”. Can we do that?!

Of course :-) You just need to call “query_events” function, with the same arguments as the standard query_posts:

<?php query_events(‘category_name=evenementSportif&showposts=5′); ?>
<ul>
<?php if (have_posts()) : while (have_posts()) : the_post();?>
<li><a href=”<?php the_permalink() ?>”><?php the_title(); ?></a><small><?php echo mysql2date(get_option(‘date_format’), get_post_event_end_date(), true) ?></small></li>
<?php endwhile; endif; ?>
</ul>

-> What are the other functions I can call on the front side?

Functions you can call on front-side :
query_events: load event from databases and sort them by start date, by desc as default, Sort order could be change in admin panel.
get_post_event_ical: return event iCal document parametre: void.
get_post_event_start_date: return event start date parametre: void.
get_post_event_end_date: return event end date parametre: void.
get_post_event_start_time: return event start time parametre: void.
get_post_event_end_time: return event end date parametre: void.
get_post_event_place: return event place parametre: void.
get_post_event_as_object: return event as object: void.
the_post_event_html: display event details parametre: void.
the_post_event_map: display event map parametre: void.

-> How can I translate Post Event in my own language? =

To create a language file you have to create a document like: PostEvent-lang_LANG.mo wich is compiled version of lang_LANG.po.
To create a language file you need gettext and the command line to enter is : msgfmt lang_LANG.po -o PostEvent-lang_LANG.mo

Author: admin on 12 August 2009
Category: Post Event
Tags: , , , , ,
21 responses to “New Plugin: Post Event [Frequently Asked Questions]”
  1. Jolo says:

    Hi I like the concept of the plugin
    I am using WP 2.8.4 and I get these errors:

    Warning: krsort() expects parameter 1 to be array, null given in /xxx/xxxx.net/wordpress/wp-content/plugins/post-event/post-event-functions.php on line 504

    Warning: Invalid argument supplied for foreach() in /xxx/xxxx.net/wordpress/wp-content/plugins/post-event/post-event-functions.php on line 508

  2. admin says:

    Thanks to report the problem.
    It’s now solve, and the new version will be soon on the wordpress extend page.

  3. Paul Hockley says:

    Bonjour! J’utilise votre plugin post event, mais le problème c’est que quand un évènement est passé, un est quand même créé, et le résultat, c’est que le “bullet” de la liste est montré sans titre à côté…J’espère que vous arrivez à me fais comprendre…lol, sinon je peux envoyer un exemple en jpg

  4. Paul Hockley says:

    Hmmm, le commentaire n’a pas pris le code…il fallait lire “un (li) (/li) est quand même créé”

  5. Paul Hockley says:

    No answer?

  6. Paul Hockley says:

    Hey! C’est la version que j’utilise déjà…

    Une autre question, est-ce qu’il y a moyen de terminer le “query,” parce qu’il se mêle à mon wordpress loop sur mes pages single.php?

  7. Cliff says:

    Hi – I’ve been testing the plugin – its a very good and useful one. I want to ask – suddenly, after tinkering with the code a bit, inside the admin panel, when I click the little calendar icon and try to select a date in the popup calendar, nothing happens. The input field is not filled in with the selected date and I cannot save the event postmeta / data to the post.

    What to do?

    I am using WP 2.8.4 and your latest (as of today) post-event version.

  8. Very nice blog, your article is interesting, i have bookmarked it for future referrence

  9. suraj says:

    Hi,

    there is the possibility to organize in an archive all events that have expired?

    Thank’s a lot

    Suraj

  10. Chinobling says:

    How the hell do I get the map link to go to the US’s Google Maps site versus France’s?!?!?!?!!!!

  11. Mark says:

    hiho from germany,

    i am using latest WP 2.9.2 and installed your Post Event Plugin. The Backend functioning finde (adding of events etc) but how i can show the calendar in my page? “Post Ident” is not shown in widgetlist. I dont know how to use this. The using of “the_post_event_html();” command in my template was without success. Maybe you can give me some advice?

    greez mark

    • admin says:

      There is no any calendar to display… I don’t really understand your probelm…
      the_post_event_html() is call automatically when a page or post has event… So why do you call it by yourself ?

  12. medusacross says:

    Hi there! I need to display event-start-date and event-end-date like this daymonthyear. Is it possible? Tnx a lot!

  13. medusacross says:

    Sorry… html stripped…
    DAY
    MONTH
    YEAR

    • admin says:

      Hi

      The date format is based on WordPress’s.
      But you can manually change it in the source code, file : post-event-functions.php and modified the function ‘get_date_format’

      function get_date_format($date)
      {
      $date = explode(‘-’, $date);
      return (‘<span class=”day”>’.$date[1].’</span><span class=”month”>’.$date[2].’</span><span class=”year”>’.$date[0].’</span>’);
      }

  14. Medusacross says:

    Hi there! Many compliments for your excelent plugin! It would be great the possibility to apply styles to day month and year like this: span DAY /span span MONTH /span span YEAR /span. Can you help me? I’m not a expert in php / js. Tnx in advance!

  15. medusacross says:

    Thank you very much! It works fine! After adding this code I get a little problem: in my wordpress preference I’ve set a date format like j – F – Y but in Post Event it’s display like j – m – Y. Any idea?

  16. Bonjour,
    Super plugin mais impossible de s’inscrire à un évènement!
    Que dois-je faire?
    Merci de votre assistance

  17. Bonjour,
    Super plugin mais impossible de s’inscrire à l’évènement
    Que dois-je faire?
    Merci

Leave a Reply