Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • renzxius

    (@renzxius)

    Simply changing the line towards the bottom that reads tb_show(”, ‘media-upload.php?post_id=0&type=image&TB_iframe=true’); to tb_show(”, ‘media-upload.php?post_ID=0&type=image&TB_iframe=true’); will solve the issue and you won’t have to touch core. The code assumed that the admin would have a hidden field called ‘post_id’ but the WordPress upgrade changed that field so it chokes.

    Thank You Kevin, this definitely solve the issue.
    To have it clearer for other since I was looking for it for sometime

    Find this file inside your “themefolder”/lib/admin/assets/js/admin.js(I’m using elegance theme)

    Then just search the following
    tb_show('', 'media-upload.php?post_id=0&type=image&TB_iframe=true');
    or
    tb_show('', 'media-upload.php?post_id=-629834&type=image&mysite_upload_button=1&TB_iframe=true');

    and then replace it with
    tb_show('', 'media-upload.php?post_ID=0&type=image&TB_iframe=true');

    Hope this solve people issues ??

    ok.. I have found the solution for this problem post_per_page=5&eventDisplay=upcoming to work. I simply limit the while loop with the $counter based on php code.

    This is the opening code for the query for displaying 5 recent upcoming events

    <?php query_posts('category_name=events&eventDisplay=upcoming');?>
     <?php $my_query = new WP_Query('category_name=events'); ?>
     <?php while ( have_posts() & $counter <= 4 ) : the_post(); ?>

    and just before the <?php endwhile; ?> add this code
    <?php $counter = $counter + 1; ?>

    I’m pretty sure this will solve everyone problems here =D

    Laurentius

    I have also the same problem here. I’ve read that the default settings of Event displayed is 10. I’ve looked into the plugin folder and I have found out that this 'post_per_page', 10 included in template-tags.php (under the function get_events)

    It’s also mentioned in the notes of the plugin that the display could be altered by ‘the $count parameter to get_events().’

    Would be happy if some1 could figured this problem, it’s been hours and hours for me to try to find this solution (limit the events displayed while also listing in upcoming display order)

    Hmm… i didn’t really get what you mean, but i’ll make it clear for you.

    The code that I put above it’s not placed inside the template file you have, instead you have to place them in the file inside the events folder. This event folder consists of list.php, grid.php, etc. In those files you place my code there.

    Maybe you might got different case from me, but the thing is this calendar can be positioned in what ever way you want by changing the code structure of the files inside the event folder and the events.css

    hope this help

    I might got an answer to this problem (It works for me).

    Since the page you are viewing is actually another “page template” from the Event Calendar plugin, they might not implement all of the code you need from your original template file.

    the quick fix for me is to add a code just before calling the footer.
    it will look like this

    <div style="clear: both;"></div>
    <?php get_footer();?>

    This code will clear out float properties of the Calendar Plugin page template. (Thats how it works for me)
    Hope it helps =D

Viewing 5 replies - 1 through 5 (of 5 total)