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

VN:F [1.7.9_1023]
Rating: 10.0/10 (1 vote cast)
VN:F [1.7.9_1023]
Rating: 0 (from 0 votes)
New Plugin: Post Event [Frequently Asked Questions]10.0101

Popularity: 34% [?]

Author: admin on 12/08/2009
Category: Post Event
Tags: , , , , ,
8 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

    UN:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.9_1023]
    Rating: 0 (from 0 votes)
  2. admin says:

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

    UA:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UA:F [1.7.9_1023]
    Rating: 0 (from 0 votes)
  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

    UN:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.9_1023]
    Rating: 0 (from 0 votes)
  4. Paul Hockley says:

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

    UN:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.9_1023]
    Rating: 0 (from 0 votes)
  5. Paul Hockley says:

    No answer?

    UN:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.9_1023]
    Rating: 0 (from 0 votes)
  6. admin says:

    Bonjour

    Le problème a été réglé dans la nouvelle version (1.5)
    Mettez à jours et il ne devrais plus y avoir de problème.

    UA:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UA:F [1.7.9_1023]
    Rating: 0 (from 0 votes)
  7. 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?

    UN:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.9_1023]
    Rating: 0 (from 0 votes)
  8. 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.

    UN:F [1.7.9_1023]
    Rating: 0.0/5 (0 votes cast)
    UN:F [1.7.9_1023]
    Rating: 0 (from 0 votes)

Leave a Reply