Jump to content

Tooltips cannot function at whmcs


sheling

Recommended Posts

Why my tooltips code cannot function at whmcs, it work well at normal html website.

 

<script>

$(document).ready(function(){

$('a').tooltip();

});

</script>

 

<a href="#" data-toggle="tooltip" title="text to show in tooltip">tooltips</a>

Link to comment
Share on other sites

  • 4 months later...

What version where you having issues with?

I'm seeing this in the six theme with 6.1.1

 

Trying to add tooltips results in less than desirable behavior.

The tooltip isn't confined to a bubble and once you release the trigger (mouseover or click) the tooltip text drops to the footer and is still visible.

 

I'm doing my own troubleshooting to find a fix, but it would be nice to know if other people see similar behavior and if WHMCS staff know of a quick fix...

 

For the records, creating an example like this doesn't work.

http://getbootstrap.com/javascript/#tooltips

 

- - - Updated - - -

 

Here's my example:

 

tFA.png

 

W3K.png

Link to comment
Share on other sites

Ok, I figured it out.

WHMCS uses jqueryUI for some things.

The version included also defines tooltip.

I created and downloaded a custom version here without tooltip and it works fine.

https://jqueryui.com/download/#!

 

*Note, I cannot guarantee you won't have issues. I couldn't find any legit usages of "tooltip" in any "six" tpl files or scripts that would be impacted by this. I also gave the new file a different name and updated footer.tpl to use the new file.

Link to comment
Share on other sites

Ok, I figured it out.

WHMCS uses jqueryUI for some things.

The version included also defines tooltip.

I created and downloaded a custom version here without tooltip and it works fine.

https://jqueryui.com/download/#!

 

*Note, I cannot guarantee you won't have issues. I couldn't find any legit usages of "tooltip" in any "six" tpl files or scripts that would be impacted by this. I also gave the new file a different name and updated footer.tpl to use the new file.

yes the conflict come from jQueryUI, it has been exist since WHMCS v5+, any of the both functions (Bootstrap or jQuery tooltip) will work, they use the same syntax, anyway the most ugly thing here is the design of jQuery tooltips :lol:

Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated