News:

Wondering if this will always be free?  See why free is better.

Main Menu

NiceTooltips

Started by digger, September 14, 2009, 06:24:52 AM

Previous topic - Next topic

lurkalot

Quote from: natcip on February 24, 2019, 07:00:36 AM

I always install mods manually because the package manager doesn't work with my host.


:o For most people that would be a nightmare every time they wanted to do something.  Have you tried fixing the package manager, or perhaps considered a different host?

digger

Quote from: natcip on February 24, 2019, 07:00:36 AM
Quote from: digger on February 23, 2019, 05:41:20 PM
Quote from: natcip on February 22, 2019, 03:27:50 PM
I tried installing this mod but I get an error message when I'm running add_settings.php
QuoteFatal error: Uncaught Error: Function name must be a string in /home/www/name/add_settings.php:13 Stack trace: #0 {main} thrown in /home/www/name/add_settings.php on line 13

hooks.php worked fine though
You don't need to run php files. Just install mod with package manager.
I always install mods manually because the package manager doesn't work with my host.
Get fixed add_settings.php https://github.com/realdigger/SMF-NiceTooltips/blob/master/add_settings.php

natcip

Quote from: digger on February 24, 2019, 12:00:01 PM
Quote from: natcip on February 24, 2019, 07:00:36 AM
Quote from: digger on February 23, 2019, 05:41:20 PM
Quote from: natcip on February 22, 2019, 03:27:50 PM
I tried installing this mod but I get an error message when I'm running add_settings.php
QuoteFatal error: Uncaught Error: Function name must be a string in /home/www/name/add_settings.php:13 Stack trace: #0 {main} thrown in /home/www/name/add_settings.php on line 13

hooks.php worked fine though
You don't need to run php files. Just install mod with package manager.
I always install mods manually because the package manager doesn't work with my host.
Get fixed add_settings.php https://github.com/realdigger/SMF-NiceTooltips/blob/master/add_settings.php
Thank you very much. This has worked for me. :)

natcip

How can I set up that images show up in the tooltip?

Steve

Not sure what you're asking because images display in my tooltips just fine.
DO NOT pm me for support!

natcip

Sorry, I had the "Max images width" at 0 for some reason which seemed to disable images.

Steve

No worries. Glad you figured it out. :)
DO NOT pm me for support!

natcip

What's the name of the CSS class of the tooltip background color?

digger

Quote from: natcip on March 17, 2019, 09:14:07 AM
What's the name of the CSS class of the tooltip background color?
nice_tooltip_bgclass

natcip

Quote from: digger on March 17, 2019, 04:19:44 PM
Quote from: natcip on March 17, 2019, 09:14:07 AM
What's the name of the CSS class of the tooltip background color?
nice_tooltip_bgclass
Ahh, thanks :)

HerzeleidMeister

The colors are not working. I cannot change the colors to make the tool tip look the way I want. I've tried changing it in the admin panel and nothing happens.

HerzeleidMeister

Never mind it looks like its a global tool tip issue on color. I'll have to look into it and see if I can fix it in the CSS.

shadav

doing some testing and well this doesn't really work out so well on mobile devices

1. as there's no mouse to hover over the link, so one of two things happens
when trying to click on a link, instead of opening the link the tooltip opens
or if able to click on a link, and then use the back arrow, then the tooltip opens
2. the tooltip doesn't resize so it pushes out of the mobile browser size and makes it very difficult to browse

anyway to check if on mobile and not show the nicetooltip?
and how to fix the resizing issue? I see there's an overlib_adaptive_width.min.js but it doesn't seem to be working

digger

Quote from: shadav on July 31, 2020, 06:44:57 PM
doing some testing and well this doesn't really work out so well on mobile devices

1. as there's no mouse to hover over the link, so one of two things happens
when trying to click on a link, instead of opening the link the tooltip opens
or if able to click on a link, and then use the back arrow, then the tooltip opens
2. the tooltip doesn't resize so it pushes out of the mobile browser size and makes it very difficult to browse

anyway to check if on mobile and not show the nicetooltip?
and how to fix the resizing issue? I see there's an overlib_adaptive_width.min.js but it doesn't seem to be working

Just disable tooltips for mobile devices.

shadav

Quote from: digger on August 03, 2020, 06:27:21 AM
Just disable tooltips for mobile devices.
:laugh: :-[ blonde moment, feel like an idiot
I swear I looked and that option was not there before  :laugh:
thank you  :-[

*note to self, time for another eye exam and new glasses*

1.1Nerd

Quote from: roza on May 09, 2016, 02:55:13 PM
Thank you @digger for this useful mod. I just installed it and since my forum language is Persian I would like to make some changes to text style and layout of the tooltips. I tried to add some CSS properties in subs.php file but I just could make the text rtl and had no success in changing the font type to tahoma nor to increase the font size of the title of tooltip box. Would you please guide me how to effectively do these changes? This is the code I tried in subs.php:


// * NiceTooltips mod
function NiceTooltip($body, $caption='', $smileys=true, $cache_id='')
{
   global $context, $settings, $modSettings;


   // Is it disabled or empty? Check permission.
   if ((allowedTo('disable_nicetooltips') && empty($context['user']['is_admin'])) || empty($modSettings['NiceTooltips_lenght']) || empty($body)) return ' title="' . $caption . '" ';


   // Send overlib headers.
   if (empty($context['overlib_loaded']))
   {
     $context['html_headers'] .= '
   <style type="text/css">
   .nice_tooltip_fgclass {
   text-align: right;
        font-family: tahoma, Verdana;
   background-color: ' . $modSettings['NiceTooltips_FGCOLOR'] . ';
   opacity: ' . $modSettings['NiceTooltips_OPACITY'] / 100 . ';
   }
   .nice_tooltip_bgclass {
   background-color: ' . $modSettings['NiceTooltips_BGCOLOR'] . ';
        font-family: tahoma, Verdana;
        font-size: 1em;
   opacity: ' . $modSettings['NiceTooltips_OPACITY'] / 100 . ';
   }
   .nice_tooltip_bgclass img, .nice_tooltip_fgclass img{
   height:auto; max-width: 250px;
   }
   </style>';

Any advice or comment would be appreciated.

I'm having the same issue and would appreciate help. Thank you

Steve

Any plans for an updated for 2.1.1?
DO NOT pm me for support!

digger


Steve

*crosses fingers*
DO NOT pm me for support!

Oldiesmann

Quote from: Steve on April 15, 2022, 08:11:41 AMAny plans for an updated for 2.1.1?

Admin -> Forum -> Posts and Topics -> Topic Settings
Scroll to the bottom
Michael Eshom
Christian Metal Fans

Advertisement: