Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • musicinme Friend
    #187574

    Well, I know it could seem to be very easy for some people to add bootstrap tooltips, but it took me long time to figured it out, so:

    open

    templatesyour_template_foldertplsblockshead.php

    and add code that will trigger tooltip even in 3td apps

    <script>
    jQuery(window).load(function() {
    jQuery('hasTooltip]').tooltip();
    })
    </script>

    Then add, let say in Kunena => your template/html/topic/default_profile_vertical.php


    <?php if (!empty($this->userrankimage)) : ?>
    <li class="kpost-userrank-img hasTooltip" data-placement="right" title="<?php if (!empty($this->userranktitle)) : ?><?php echo $this->escape($this->userranktitle) ?><?php endif ?>">
    <?php echo $this->userrankimage ?>
    </li>
    <?php endif ?>

    and hovering over user rank image it will show nice tooltip.

    musicinme Friend
    #493364

    OK, just found out, that above code maybe is good, but even if I don’t use it, I can have tooltips to. It’s enough to add

    hasTooltip

    to any class (with additional parameters) and it will works. Wee bit strange but it does.

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 1 voice, and was last updated by  musicinme 11 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum