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

Skaty

Quote from: Old Fossil on May 15, 2013, 09:51:06 PM
Quote from: Skaty on May 15, 2013, 09:48:41 PM
Hi, i have SP Block that shows first images (with link) specific boards like news. I wanna to ask, how can i entegrate this mod to show inside of this topics when mouse is on it ?

like this maybe ?



Are the images provided by a mod?

No, i'm calling the images with codes. for block i'm using simple portal.

these are codes codes i'm using.

global $smcFunc, $scripturl;
$boards = array(2);
$request = $smcFunc['db_query']('', '
   SELECT t.id_topic, m.subject, m.body
   FROM {db_prefix}topics AS t
      INNER JOIN {db_prefix}messages AS m ON (m.id_msg = t.id_first_msg)
   WHERE t.id_board IN ({array_int:boards})
   ORDER BY t.id_topic DESC
        LIMIT {int:limit}',
   array(
      'boards' => $boards,
                'limit' => 25,
   )
);
$topics = array();
while ($row = $smcFunc['db_fetch_assoc']($request))
   $topics[] = array(
      'id_topic' => $row['id_topic'],
      'body' => $row['body'],
      'first_image' => preg_match_all('~\[img[^]]*\]([^]]*)\[\/img\]~i', $row['body'], $images) ? '<img src="' . $images[1][0] . '" alt="' . $row['subject'] . '" height="40" width="80" />' : '',
   );
$smcFunc['db_free_result']($request);
echo '
         <center><table>
            <tr>
               <td>
                  <marquee onmouseover="this.stop()" onmouseout="this.start()"  height="100%" scrollamount="0" scrolldelay="0" direction="left"  loop="infinite">
                  <table></center></tr>';
foreach ($topics as $topic)
   echo '
                        <td><div class="mansetyan">
                        <a href="', $scripturl, '?topic=', $topic['id_topic'], '.0"><font color=red size=1 ALIGN="Center" width="50">', $topic['subject'], '</font>', $topic['first_image'], '</a>
                         </td>';
echo '
                       
                     </table>
                  </marquee>
               </td>
         </tr></table></div>';

kimyaci

This code gives an error.Boards not Open.

      // * NiceTooltips mod
      $row['nice_tooltip_first_msg'] = NiceTooltip($row['first_body'], $row['first_subject'], $row['first_smileys'], $row['id_first_msg']);

Arantor

What error does it give exactly?
Holder of controversial views, all of which my own.



Mick.

I get a server error on that link.

kimyaci

Quote from: Mick. on May 21, 2013, 06:37:18 PM
I get a server error on that link.

Code removed the link opens.server with no problem.

lurkalot

Anyone having problems with this mod using IE10 ?  Tooltips show fine on all browsers, except IE10.  But it does work in IE10 if I switch to compatibility mode. It's a great mod, and have been using it for ages, but would really like to fix this issue.  Any ideas? 

digger

Quote from: lurkalot on September 14, 2013, 02:42:49 PM
Anyone having problems with this mod using IE10 ?  Tooltips show fine on all browsers, except IE10.  But it does work in IE10 if I switch to compatibility mode. It's a great mod, and have been using it for ages, but would really like to fix this issue.  Any ideas?
Mod updated. IE10 support fixed.

lurkalot

Thank you, that was quick.  8) 

By chance, is there a simple file edit I can make to fix this issue? I have several mods installed, and if it's a small edit it would be easier than un-installing all my mods so that I can install this new version.

digger

Quote from: lurkalot on September 14, 2013, 06:48:23 PM
Thank you, that was quick.  8) 

By chance, is there a simple file edit I can make to fix this issue? I have several mods installed, and if it's a small edit it would be easier than un-installing all my mods so that I can install this new version.
extract overlib.js from the NiceTooltips_1.9.zip package
rename overlib.js to overlib_mini.js
replace your Themes/default/scripts/overlib_mini.js with the new one

lurkalot

Brilliant, that worked nicely.  Thank you for the support.  :)

littlenicki

Hello, can you please let me know what needs to be manually edited to add 1.9 Fixed IE10 support. Thank you!
Fomer SMF user. Switched to Invision Power Board and VBulletin

lurkalot

Quote from: littlenicki on September 15, 2013, 10:40:52 AM
Hello, can you please let me know what needs to be manually edited to add 1.9 Fixed IE10 support. Thank you!

Look at digger's last reply, that is the fix for IE10 ;)  Or install the latest version with the fix already included.

Quote from: digger on September 14, 2013, 07:09:37 PM
Quote from: lurkalot on September 14, 2013, 06:48:23 PM
Thank you, that was quick.  8) 

By chance, is there a simple file edit I can make to fix this issue? I have several mods installed, and if it's a small edit it would be easier than un-installing all my mods so that I can install this new version.
extract overlib.js from the NiceTooltips_1.9.zip package
rename overlib.js to overlib_mini.js
replace your Themes/default/scripts/overlib_mini.js with the new one


adapa

i'm having difficulty uninstalling this mod

when i try & uninstall i get an error

Execute Modification   ./Sources/ManageSettings.php   Test failed
   1.   Replace   ./Sources/ManageSettings.php

which is
Quote// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
      // * NiceTooltips mod
      array('int', 'NiceTooltips_lenght'),
      array('check', 'NiceTooltips_censored'),
      array('text', 'NiceTooltips_FGCOLOR'),
      array('text', 'NiceTooltips_BGCOLOR'),
      array('text', 'NiceTooltips_TEXTCOLOR'),
      array('text', 'NiceTooltips_TEXTSIZE'),
      array('text', 'NiceTooltips_CAPCOLOR'),
      array('text', 'NiceTooltips_OPACITY'),
      array('int', 'NiceTooltips_DELAY'),
      '',
      // NiceTooltips mod *
Code: (Replace) [Select]
      // Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

I went to Public/forum/sources/messgesettings.php, Down loaded it, made the changes, saved a copy & uploaded it to my test site.

i tried to uninstall it & those two files still showed 'test failed'

i dont' know what to try next....help & thanks!


digger

Quote from: adapa on November 02, 2013, 02:19:15 PM
i'm having difficulty uninstalling this mod

when i try & uninstall i get an error

Execute Modification   ./Sources/ManageSettings.php   Test failed
   1.   Replace   ./Sources/ManageSettings.php

which is
Quote// Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!
      // * NiceTooltips mod
      array('int', 'NiceTooltips_lenght'),
      array('check', 'NiceTooltips_censored'),
      array('text', 'NiceTooltips_FGCOLOR'),
      array('text', 'NiceTooltips_BGCOLOR'),
      array('text', 'NiceTooltips_TEXTCOLOR'),
      array('text', 'NiceTooltips_TEXTSIZE'),
      array('text', 'NiceTooltips_CAPCOLOR'),
      array('text', 'NiceTooltips_OPACITY'),
      array('int', 'NiceTooltips_DELAY'),
      '',
      // NiceTooltips mod *
Code: (Replace) [Select]
      // Mod authors, add any settings UNDER this line. Include a comma at the end of the line and don't remove this statement!!

I went to Public/forum/sources/messgesettings.php, Down loaded it, made the changes, saved a copy & uploaded it to my test site.

i tried to uninstall it & those two files still showed 'test failed'

i dont' know what to try next....help & thanks!
If you already made the changes, just ignore this "Test failed" while uninstall the mod.

adapa

thanks!

it uninstalled  :)

Master Shake

I am installing this mod manually and I'm having issues with the SQL insertion.  I'm using SMF 2.0.6 and MySQL 5.5.32
I keep getting the following error:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_lenght', '0')' at line 1

INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_lenght', '0')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_censored', '0')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_scripturl', '')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_FGCOLOR', '#F6F6F6')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_BGCOLOR', '#4F7394')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_TEXTCOLOR', '#000000')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_TEXTSIZE', '1')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_CAPCOLOR', '#FFFFFF')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_OPACITY', '90')
INSERT IGNORE INTO {$db_prefix}settings (`variable`, `value`) VALUES ('NiceTooltips_DELAY', '0')


Thanks in advance for any advice or suggestions. :)

Farjo

Are you typing that directly into mysql? If so you need to substitute {$db_prefix}settings for the name of your settings table, which will probably be smf_settings.

Master Shake

Quote from: Farjo on November 20, 2013, 04:08:01 PM
Are you typing that directly into mysql? If so you need to substitute {$db_prefix}settings for the name of your settings table, which will probably be smf_settings.

Thank you, that was exactly the problem.  :) I fixed the prefix names and it worked perfect.   8)

trost

how can i make this mod work with "adk recent topics", this mod show a list of recent post in the index of the forum but "nice tooltips" isn't working there, if you need more info about this don't hesitate in ask, my apologies for my english  ;D

Advertisement: