Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
public-topic
Possible but with bootstrap tooltip integration
Avatar
Roger Martin
Member
Free Members
Offline
Oct 22, 2015 - 11:55 am
Quote

My membership has lapsed and I don't see any official way to submit a bug report, so I hope you don't mind I do it here. I spent a couple hours on this today and I'd like to save others some pain.

I'm running the latest version 5.5.11 (Reboot theme) and I noticed in Chrome and Edge the Add Topic and Add Reply buttons weren't working (nothing would happen when clicking them). When I looked for JavaScript errors I saw this:

`selector` option must be specified when initializing tooltip on the window.document object!

I traced the source to the call to bootstrap's tooltip function in this code:

if (sp_platform_vars.device == 'desktop' && sp_platform_vars.tooltips == true) {
 jspf(document).tooltip( {
  tooltipClass: "ttip",
  position: {
   my: "left+20 top",
   at: "left bottom+10"
  },
 track: false,
 content: function() {
  var element = jspf(this);
  if (element.prop("nodeName") == "IFRAME") {
   return '';
  } else {
   return element.attr( "title" );
  }
 }
 });
 }

The workaround to fix this was to set the tooltips variable to false in spFunctions.php:

if (!defined('SP_TOOLTIPS')) define('SP_TOOLTIPS', false);

If you'd like additional help investigating this, let me know.

Cheers,

Roger Martin
Gallery Server
https://www.galleryserverpro.com

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Oct 22, 2015 - 5:16 pm
Quote

It is certainly thoughtful to stop others having the 'pain' of this issue but the truth is nobody else is having any problem. So there is something at play in your environment that is not playing nicely or is non-standard perhaps.

You mentioned 'BootStrap'... Are you using that? BootStrap is, of course, unsupported by WordPress and does stomp all over jQuery UI controls and make them unavailable... Could that be the issue?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yehonal
Member
Offline
Apr 11, 2016 - 2:30 pm
Quote

I have this problem too, i've the blackfyre theme that uses bootstrap

i've used @rmartin workaround 

Thank you

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
Offline
Apr 11, 2016 - 9:36 pm
Quote

if  you have a theme using conflicting tooltips, yes, you can disable one or the other...  we have often published the method for disabling simple press tooltips...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
Stefano Prete: 325
Carlos: 291
Member Stats:
Guest Posters: 620
Members: 17371
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626