WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Integrating with Exec-Php (4 posts)

  1. ElbowRobo
    Member
    Posted 2 years ago #

    So,

    after using a different Events Plugin - I decided to take the plunge and try a different one. The reasoning was that support for the other had been stopped and so even though I had added many features, it seemed more sense to adapt to a new system - this one.

    However, I have come upon a stumbling block... The old system somehow just worked with Exec-Php and I could easily have PHP inside my events' pages. Events-Manager is not so easy to incorporate.

    I have tried a whole mannor of code from:

    add_filter(array('EM_Event_Post','the_content'), array('ExecPhp_Runtime', 'filter_user_content'), 1);

    to

    $execphp = new ExecPhp_Runtime;
    $content = $execphp->eval_php($content);

    However to no success. If anyone knows about Exec-Php and would be able to help me in this area I would be grateful. However, my main appeal is to anyone with knowledge about Events-Manager's system and which functions may need to be modified.

    Most of my modifications are run from my functions.php file in my theme (which I back up - so no upgrade disappointments here :)) however I am perfectly happy to mod the plugin file.

    If anyone has any idea which functions I should look at or which classes or even just which files I would be even happier. I've had a good delve but have as such not been able to replicate what I want.

    What I want in 10 words.

    Php code in events pages should be executed (By Exec-Php??)!

    Many thanks,
    Eliott.

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    hi,

    haven't tried this but check if EM template file can help you out - http://wp-events-plugin.com/documentation/using-template-files/

  3. ElbowRobo
    Member
    Posted 2 years ago #

    Thanks for the reply.

    I am on the move right now but will give this a try when I get back!

    Eliott

  4. ElbowRobo
    Member
    Posted 2 years ago #

    That seems to have done the trick. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic