WordPress.org

Ready to get started?Download WordPress

Forums

WP Calendar
[resolved] {event-calendar} not working (14 posts)

  1. oscb
    Member
    Posted 4 years ago #

    Hi there, I'm having a little bit of trouble trying to get the calendar working on my website. I have configured it all already in the Options Page. The fse_print_events works perfectly, but when I put the tag {events-calendar} it just doesn't display anything on any page nor post.
    First I though that it could be a problem with 3.0 but it didn't work on a 2.9 WordPress niether.
    I've disabled any other jquery or Javascript thinking that it could case a problem, with no luck.
    As far i see the tag just adds this to the code:

    <div id="fscal-4c2a2f"></div><script type="text/javascript">jQuery(document).ready(function() {jQuery('#fscal-4c2a2f').fullCalendar({firstDay: 1,timeFormat: "H:mm",monthNames: ["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort: ["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames: ["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort: ["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],titleFormat: {month: "MMMM yyyy",week: "MMMM dd[ yyyy]{ \'—\'[ MMMM] dd yyyy}",day: "dddd, MMMM d, yyyy"},columnFormat: {month: 'dddd',week: 'ddd MM/d',day: 'dddd MM/d'},buttonText: {prev: '&nbsp;◄&nbsp;',next: '&nbsp;►&nbsp;',prevYear: '&nbsp;<<&nbsp;',nextYear: '&nbsp;>>&nbsp;',today: 'today',month: 'month',week: 'week',day: 'day'},eventClick: function(calEvent, jsEvent, view) {document.location.href='http://oscarbazaldua.com/jourdain/prueba/?event='+calEvent.id;},events: function(start, end, callback) {
    					    	jQuery.post(
    					    		WPCalendar.ajaxUrl,
    					    		{
    					    			action: 'wpcal-getevents',
    					                start: Math.round(start.getTime() / 1000),
    					                end: Math.round(end.getTime() / 1000)},
    					    		function(events) {
    					    			var evt = eval(events);
    					    			callback(evt);
    					    		}
    					    	);
    					    }})});</script>

    I guess that's what it should do, but no display anyway.
    Does anybody know what could be causing this? Is there a function to call it from the theme instead?

    http://wordpress.org/extend/plugins/wp-calendar/

  2. oscb
    Member
    Posted 4 years ago #

    Oh, already figured out, there was an issue because I already preloaded jQuery in the wp_head; with a function.

  3. darkmatter661
    Member
    Posted 3 years ago #

    I'm not able to get WP Calendar to work at all by placing {event_calendar} in my pages, just get nothing. What was causing you to load jQuery in the header?

  4. cruxwireweb
    Member
    Posted 3 years ago #

    I've got the same question as darkmatter. I'm using Slideshow gallery Pro as a plug-in, so that may be the culprit. I'm not sure hwo to deal with it yet, though. What did you do darkmatter?

    Thanks,
    Kim

  5. cruxwireweb
    Member
    Posted 3 years ago #

    In case this helps anyone else - what was causing the conflict for me was a subscribe form for Mail Chimp. It's not a plug-in, just code I had added to a sidebar. I haven't found a fix yet.

  6. cruxwireweb
    Member
    Posted 3 years ago #

    And... here's what I did that fixed it. I used the MailChimp List Subscribe Form plug-in. http://wordpress.org/extend/plugins/mailchimp/

  7. dfellows
    Member
    Posted 3 years ago #

    I'm having the same problem too, but NOT using "mailchimp". So the problem must not be that plugin. In fact, "WP Calendar" is the ONLY plugin I have active.

  8. faebu
    Member
    Plugin Author

    Posted 3 years ago #

    can you find the the code fragment from the first post in the source code of your page? if yes, please check in the sourcecode which javascript library are loaded. i could be also a problem of your theme.

  9. dfellows
    Member
    Posted 3 years ago #

    Thanks for responding. I find that code piece, but I have no ides about checking javascript or what to do about it. I've tried the original "twentyten" theme and same problem. One thing I'm wondering is that I've tried several different calandar plugins and since have deactivated/deleted them, but I notice the tables still exest in the db. I'd drop them if I knew when ones to keep. Thanks.

  10. faebu
    Member
    Plugin Author

    Posted 3 years ago #

    Make sure the necessary libraries are loaded by checking the wp calendar general settings. You find there some options at the bottom wether to load the libraries or not. Make sure these checkboxes are checked!

    If you are very sure that these tables arent in use anymore, you can delete them. If you re doing wrong you can break your blog, so be carefull!

  11. dfellows
    Member
    Posted 3 years ago #

    That seemed to work! It was at the bottom of the "global Setting", and there are two drop down select boxes in order to "enable/disable" the libraries.

    I agree about deleting the db tables. it's had to tell which ones belong and which one don't.

    Thank you very much for your help!

  12. faebu
    Member
    Plugin Author

    Posted 3 years ago #

    you're welcome!
    cheers

  13. darkmatter661
    Member
    Posted 3 years ago #

    I'm now having this problem in another theme, namely Quantive by Rockethemes. The tag is on a page, but nothing appears. I checked to make sure that the options were enabled, etc.

    Any other suggestions?

    http://scvsa.org/event-calendar

  14. darkmatter661
    Member
    Posted 3 years ago #

    BTW it's loading jquery.js?ver=1.4.2

    And there's also this, commented out:

    <script type='text/javascript'>
    /* <![CDATA[ */
    var WPCalendar = {
    	ajaxUrl: "http://scvsa.org/wp-admin/admin-ajax.php"
    };
    /* ]]> */
    </script>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic