r3volution11
Forum Replies Created
-
Oh, gotcha.
Not sure why it’s not working for you as it does on my sites that utilize it.
I’ll have a better opportunity to look into it for you later this evening (at work now).
Not sure what you mean by the “when” div. I don’t see one on any of the sites I use the plugin on. Where is it located?
Forum: Plugins
In reply to: [The Events Calendar] "All Day Event" Bug in WP3.2 [with Solution]By the way, I’m slowly going through and updating everything actually. I’ve currently got a lot of projects on my plate so it will take me a few but hopefully soon I’ll have something together that will work out of box with the Roots theme (https://www.rootstheme.com/).
Forum: Plugins
In reply to: [The Events Calendar] "All Day Event" Bug in WP3.2 [with Solution]Hey guys. I was running into the same issue again with one of my installs so I dove into the jQuery again in events-meta-options.php and changed a couple of things around. It’s 100% working for me now on all installs (4 sites) so hopefully it will be the same for you all.
Hit up rvo.me/dia for the code and please comment if it does or doesn’t do the job. ??
Forum: Plugins
In reply to: [The Events Calendar] "All Day Event" Bug in WP3.2 [with Solution]This should be a solid fix:
https://rvo.me/dia/2011/the-events-calendar-event-options-jquery-fix/
Let me know!
I fixed this guys. You can view details on the fix and grab it here: https://rvo.me/dia/2011/the-events-calendar-event-options-jquery-fix/
Please let me know if it works for you guys!
I figured out a fix. Go here for more information: https://rvo.me/dia/2011/the-events-calendar-event-options-jquery-fix/
Forum: Plugins
In reply to: [The Events Calendar] [Plugin: The Events Calendar] Time for an Update???I believe the issue is that the jQuery javascript code to handle all of that stuff is too old.
I’ll be working on fixing these issues on behalf of clients and will let the forums know when I am done.
Hopefully the author of the plugin won’t have a problem with me offering a fix when I finish. (If he does then he should get off his bum and do it himself then!)
@amp343 You’re welcome! Glad it proved useful for someone else.
I’ll have to check truthfully. I went through so many code revisions getting it to work that afterward I didn’t even try resetting posts_per_page and setting the global amount differently.
That’s great, glad to hear.
I guess it worked out well that I couldn’t get SebAshton’s code to work. ??
Here’s another way of doing it. This limits the post content to 254 characters. I use it for displaying featured events:
<?php query_posts('category_name=Events&eventDisplay=upcoming'); $calender = get_cat_ID( 'Events' ); $calender_link = get_category_link( $calender ); $the_query = new wp_query('meta_key=_EventStartDate&meta_compare=>=&meta_value='.$todaysDate.'&orderby=meta_value&order=ASC'); while ($the_query->have_posts()) : $the_query->the_post(); ?> <li> <?php $category = get_the_category(); $categoryname = $category[1]->cat_name; ?> <?php the_title('<div class="event-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" class="' .$categoryname . ' tectip">', '</a></div>'); ?> <div class="event-date"> <?php echo the_event_start_date(); ?> </div> <?php echo substr($post->post_content, 0, 254); echo '<p><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '" class="' .$categoryname . ' tectip">... Read More About This Event</a></p>'; ?> </li> <?php $alt = ( empty( $alt ) ) ? ' alt' : ''; endwhile; // posts ?>
Hey guys. I actually had to do a variation of SebAshton’s code from the beginning (re: pre 3.1) to get it to work with my sites.
Here’s what I used:
<div id="e-1"> <?php query_posts('category_name=Events&eventDisplay=upcoming&posts_per_page=5'); ?> <div> <?php $calender = get_cat_ID( 'Events' ); $calender_link = get_category_link( $calender );?> <?php global $spEvents; $spEvents->loadDomainStylesScripts();?> <div id="tec-content main" class="upcoming"> <div id="tec-events-loop" class="tec-events post-list clearfix"> <?php date_default_timezone_set('America/New_York'); $todaysDate = date('Y-m-d G:i:s'); $cal_query = new wp_query('category_name=Events&posts_per_page=5&meta_key=_EventStartDate&meta_compare=>=&meta_value='.$todaysDate.'&orderby=meta_value&order=ASC'); ?> <?php while ($cal_query->have_posts()) : $cal_query->the_post(); ?> <div id="post-<?php the_ID() ?>" class="tec-event <?php echo $alt ?>"> <ul> <?php $tit = the_title('','',FALSE); echo '<div class="event-title"><a href="' . get_permalink() . '" title="' . the_title_attribute('echo=0') . '">' . substr($tit, 0, 50) . '</a></div>'; echo the_event_start_date(); ?> </ul> </div> <?php $alt = ( empty( $alt ) ) ? ' alt' : '';?> <?php endwhile; // posts ?> </div> </div> </div> <span id="more"><a href="<?php echo $calender_link;?>">View More Events »</a></span> </div>
I’m going off of memory and to be honest I don’t believe this code properly limits the posts so I limited the overall post amount in the WP admin settings and then added a query_posts in the loop to change the quantity for regular posts.
Just like there’s the_event_start_date there’s also the_event_end_date
Well my fix was actually just to use query_posts and I limited the amount of events listed by setting the amount of posts to be displayed in Admin. I then set another query_posts to a different posts_per_page limited in loop.php to display more regular posts.
I’ve figured out that for some reason the script is only showing one sub-category of the Events category oddly enough. If I put all of the events in that sub-category it works but of course that doesn’t work well at all.