Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] qtip does not work with wordpress version 3.1.4
1st December, 01:17
Post: #1
[Solved] qtip does not work with wordpress version 3.1.4
It seems to me qtip version 1.0.0-rc3 only works with wordpress version 3.2.1.

I tested above qtip version with wordpress 3.1.4, and it does not work.

Could you guys tell me which version of qtip I need for wordpress 3.1.4 ?


Thanks in adavnce.

Zakir
Find all posts by this user
Quote this message in a reply
1st December, 11:16
Post: #2
RE: qtip does not work with wordpress version 3.1.4
That depends on the version of jQuery being used. Either way I'd suggest using qTip2 as qTip 1.0 isn't updated any longer.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
1st December, 13:13 (This post was last modified: 1st December 13:19 by zakirstage.)
Post: #3
RE: qtip does not work with wordpress version 3.1.4
(1st December 11:16)Craig Wrote:  That depends on the version of jQuery being used. Either way I'd suggest using qTip2 as qTip 1.0 isn't updated any longer.


The jquery version comes with wordpress 3.1.4 is 1.4.4.
I used qtip2 version nightly.

I also tried to use jquery latest version 1.6 but still does not work.

Now I'm just thinking should use other version of qtip which might work on jquery 1.4.4.




/*
* qTip2 - Pretty powerful tooltips
* http://craigsworks.com/projects/qtip2/
*
* Version: nightly
* Copyright 2009-2010 Craig Michael Thompson - http://craigsworks.com
*
* Dual licensed under MIT or GPLv2 licenses
* http://en.wikipedia.org/wiki/MIT_License
* http://en.wikipedia.org/wiki/GNU_General_Public_License
*
* Date: Thu Nov 24 10:05:52.0000000000 2011
*/


this is my code in calendar.php file. I didn't use fullcalendar plugin.

Code
-----

<!-- Event roll over using JSON dictionary -->
<script type="text/javascript" charset="utf-8">
var events = <?php echo json_encode($events) ?>;

jQuery(function() {
// make dropdowns work on change, rather than manual form submission
jQuery('#calform select').change(function() {
this.form.submit();
});
// hide submit button, as it's not needed anymore
jQuery('#calform button').hide();

jQuery("#wp-calendar a.session").each(function(){

var session_id = jQuery(this).attr('data-sessionid');

jQuery(this).qtip({

content: {
title: { text:events[session_id].title, button: 'X' },
text: '<span class="properdate"> '+events[session_id].properdate+' </span><br>'
+ '<span class="stime"> '+ events[session_id].start +' </span>'
+ '<span class="etime"> - '+events[session_id].end+' </span>'
+ '<span class="venuename"> / ' + events[session_id].venue + '</span>' + '<span class="venuecity">, ' + events[session_id].venuecity +' </span><br>'
+ '<span class="eventtitle"> ' + events[session_id].title + ' </span><br>'
+ '<br><span class="excerpt"> ' + events[session_id].excerpt + ' </span><br><br>'
+ '<a href=" '+events[session_id].url+' "><span class="full-details">Full Details <img src="<?php bloginfo('template_url')?>/images/right-arrow.gif"></span><a/>'

},

style: {
width:600,
padding: 12
},

position: {
corner:{
target: 'rightTop',
tooltip: 'bottomCenter'
}
},

hide: {
fixed: true // When set to true, the tooltip will not hide if moused over, allowing the contents to be clicked and interacted with.
}

}); // End qtip
});

});
</script>

The code works in wordpress version 3.2.1 and jquery version 1.6.6 and qtip version 1.0.0.

Some reason it does not work with wp 3.1.4 and jquery version 1.4.4 and with any qtip version.
Find all posts by this user
Quote this message in a reply
1st December, 14:03
Post: #4
RE: qtip does not work with wordpress version 3.1.4
You must be getting an error out somewhere that's preventing it from executing. Otherwise it sounds like hte scripts aren't being included properly.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
1st December, 14:23 (This post was last modified: 1st December 14:30 by zakirstage.)
Post: #5
RE: qtip does not work with wordpress version 3.1.4
yes, in wordpress 3.1.4 i am getting an error: undefined variable events.

But in wordpress 3.2.1 it works perfectly, no error in jquery.


(1st December 14:23)zakirstage Wrote:  yes, in wordpress 3.1.4 i am getting an error: undefined variable events.

But in wordpress 3.2.1 it works perfectly, no error in jquery.


The error shows in this statement:

var events = <?php echo json_encode($events) ?>;

says undefined variable events.

I will send the code now. see the attachment. one is header.php and fullcalendar.php

You will see the jquery code in bottom section of the fullcalendar.php file.

Note: it works perfectly in wp 3.2.1 version with jquery 1.6.1

but in wp 3.1.4 version with either jquery 1.6.1 or jquery 1.4.4, qtip does not display tooltip, it shows error: undefined vaiable events


Attached File(s)
.php  header.php (Size: 9.75 KB / Downloads: 1)
.php  fullcalendar.php (Size: 15.16 KB / Downloads: 0)
Find all posts by this user
Quote this message in a reply
1st December, 15:11
Post: #6
RE: qtip does not work with wordpress version 3.1.4
Is events definitely being output correctly? Check using the console.

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
1st December, 15:30 (This post was last modified: 1st December 15:33 by zakirstage.)
Post: #7
RE: qtip does not work with wordpress version 3.1.4
(1st December 15:11)Craig Wrote:  Is events definitely being output correctly? Check using the console.

In wordpress 3.1.4 with jquery either 1.6.1 or 1.4.4, firebug displays an error:

missing ; before statement

Notice: Undefined variable: events in /Library/WebServer/Documents/StageEvent/wp-content/themes/stage_core/fullcalendar.php on line 411
491null;

I sent the screenshots.

But strangley, in wp 3.2.1 with any version of jquery no error at all and it displays tooltips as I want!


if I check the console in safari, it says

syntax error. unexpected token ':'


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
1st December, 18:01
Post: #8
RE: qtip does not work with wordpress version 3.1.4
"events" isn't defined in your PHP file, hence the error message Smile

Craig Thompson
Web Developer / Designer
Craigsworks
http://www.craigsworks.com
Visit this user's website Find all posts by this user
Quote this message in a reply
2nd December, 12:34
Post: #9
RE: qtip does not work with wordpress version 3.1.4
its related to wordpress version. Nothing to do with qTip.

Finally sorted out. Cheers for your time.
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Step by step instructions to integrate qTip2 with wordpress newbie2012 1 120 16th April 17:36
Last Post: Craig
  the plugin do not work correctly with jquery 1.7? vic906 1 148 12th April 22:09
Last Post: Craig
  [Solved] Cannot get qtip to work on Ruby on Rails kakubei 5 402 3rd March 16:40
Last Post: Craig
  will qtip work in this situation seeker7805 1 243 2nd March 00:28
Last Post: Craig
  [Solved] Can't install or make it work - guide for newbie & donator marz 7 626 25th January 15:52
Last Post: Craig
  [Solved] Multi tips not 100% times work dmhorse 1 273 9th January 18:19
Last Post: Craig
  ajax.once:false option not work in IE sse.michael 2 624 9th December 01:44
Last Post: sse.michael
  [Solved] can't get background to work drm 2 604 21st October 20:33
Last Post: drm
  [Solved] simple test won't work? formaideale 3 540 11th October 12:48
Last Post: Craig
  Cannot make jquery plugin or qtip plugin work anindasen 3 986 8th October 13:49
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)