Facebook Style Tooltips

Started by AsusRev, December 12, 2013, 03:47:31 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

AsusRev

Search index.template.php:

// RTL languages require an additional stylesheet.
if ($context['right_to_left'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/rtl.css" />';


add after:

    // Tipsy jQuery Plugin style
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/tipsy.css" />';


search:

// Here comes the JavaScript bits!
echo '


add after:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="', $settings['theme_url'], '/scripts/jquery.tipsy.js"></script>
<script type="text/javascript">
  $(function() {
    $("[title]").tipsy({fade: true, gravity: $.fn.tipsy.autoNS});
  });
</script>


Update 2 file:

Theme/default/scriptsjquery.tipsy.js
Theme/default/css/tipsy.css




One thing is unfortunately not good in this code: MinDI theme does not work. Someone will help you with this?

Last Edit: August 20, 2019, 09:24:58 PM by Diego Andrés

EduardO

Gracias por compartir el tiootips. Lo testeare en mi foro y te comento como  me fue.


PD: No funciona! >.<
Last Edit: June 27, 2014, 03:07:23 PM by EduardO
EduardO
AZORAHAI
NerO
EDesign