NiceTooltips

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

Previous topic - Next topic

pheasant_plucker

The Iphone problem still persists and seems to effect Iphone 4 users. Would it be possible to add a X to clost the tooltip or make it close itself after a few seconds?

Gerry

sledhoe

There's a TIMEOUT command available to the Overlib function that would probably do what you want, so you could display the popup for a defined period. The parameter doesn't seem to be used by the mod but you could include it. See the call to Overlib at the end of the mod to subs.php

See Overlib's command reference, behavior commands

Pete

divecall

Hello ..

.. and thank you for this mod. i was looking at other pages and it looks good.

But i have an error during the installation:
In MessageIndex.php i need to edit this line manually
'link' => '<a href="' . $scripturl . '?topic=' . $row['id_topic'] . '.0">' . $row['nice_tooltip_first_msg'] . ' >' . $row['first_subject'] . '</a>'

Now, my message - index looks like the attached picture.

Can somebody help me, please ?

gbsothere

If you've not sorted this, divecall, you may want to attach your MessageIndex.php, along with information about your version of SMF and whether or not you're using a custom theme.    :)
My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

divecall

thank you for your reply, my friend.

i hope, your grand-daughter (isnt it ?) is well.

at last, i was doing a mistake: i installed first this lovely, good looking mod with XAMPP in my test-board. But i forget that i was deinstall simpleportal befor and the was a few errors. one of them was in the subs.php and this was causes the error.

:-[ :-[ :-[  O:)

sorry and thank you for your good will.

by the way: is there a way to make this mod work with the recent topics-block in simpleportal (SMF 2 RC with 2.3.1) ?
the code for this recent block must be (i think):
{
global $txt, $scripturl, $settings, $context, $color_profile;

$block_parameters = array(
'boards' => 'boards',
'limit' => 'int',
'type' => 'select',
'display' => 'select',
);

if ($return_parameters)
return $block_parameters;

$boards = !empty($parameters['boards']) ? explode('|', $parameters['boards']) : null;
$limit = !empty($parameters['limit']) ? (int) $parameters['limit'] : 5;
$type = 'ssi_recent' . (empty($parameters['type']) ? 'Posts' : 'Topics');
$display = empty($parameters['display']) ? 'compact' : 'full';

$items = $type($limit, null, $boards, 'array');

if (empty($items))
{
echo '
', $txt['error_sp_no_posts_found'];
return;
}
else
$items[count($items) - 1]['is_last'] = true;

$colorids = array();
foreach ($items as $item)
$colorids[] = $item['poster']['id'];

if (!empty($colorids) && sp_loadColors($colorids) !== false)
{
foreach ($items as $k => $p)
{
if (!empty($color_profile[$p['poster']['id']]['link']))
$items[$k]['poster']['link'] = $color_profile[$p['poster']['id']]['link'];
}
}

if ($display == 'compact')
{
foreach ($items as $key => $item)
echo '
<a href="', $item['href'], '">', $item['subject'], '</a> <span class="smalltext">', $txt['by'], ' ', $item['poster']['link'], $item['new'] ? '' : ' <a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new" rel="nofollow"><img src="' . $settings['lang_images_url'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '<br />[', $item['time'], ']</span><br />', empty($item['is_last']) ? '<hr />' : '';
}
elseif ($display == 'full')
{
echo '
<table class="sp_fullwidth">';

foreach ($items as $item)
echo '
<tr>
<td class="sp_recent_icon sp_center">
', sp_embed_image(empty($parameters['type']) ? 'post' : 'topic'), '
</td>
<td class="sp_recent_subject">
<a href="', $item['href'], '">', $item['subject'], '</a>
', $item['new'] ? '' : '<a href="' . $scripturl . '?topic=' . $item['topic'] . '.msg' . $item['new_from'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt['new'] . '" border="0" /></a>', '<br />[', $item['board']['link'], ']
</td>
<td class="sp_recent_info sp_right">
', $item['poster']['link'], '<br />', $item['time'], '
</td>
</tr>';

echo '
</table>';
}
}


Is there a way to make this mod work with this peace of code ?

gbsothere

@ divecall:  my granddaughter's teething, so no one's getting much sleep.   :D

Digger may weigh in on the block code, but in the meantime, I'll install the portal and this mod on my test board and see if I can get them to play nice. 

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

divecall

outch - theething....i know what you mean.

(but sometimes i´m loosing my theeth for problems with coding... ;D)

Maybe you (or somebody) can add the tooltip-code generaly for simpleportal, not only in the code what i was posting.
it is a nice feature for all this portal-blocks.

thank you in advance.

btw: additional i will start a topic in the simpleportal-support-board....

@gbsothere: if you have SP installed, you need to try this code, it is great !
http://simpleportal.net/index.php?topic=5332.0

gbsothere

Good idea, divecall, to post over on SimplePortal's thread.  I did just install both SP and Nice Tooltips on my test board last night and then, as old men do, fell aleep.   :D

I'll take a look at this link you posted and then play around with it, today.

My apologies, but I am taking a break from accepting PM requests for support.  If I am not currently assisting you, please do not ask as long as this notice is posted.  Thank you.

I Don't Want To Grow Old Alone


It has been proven that Steely Dan reduces the occurrence of road rage, according to an independent study.



A reminder about admin / ftp passwords etc.

effex

Absolutely love this mod, running perfectly on 1.1.12!

Great work.

If I could make ONE suggestion, it would be the option to turn off embedded images / videos, etc. Otherwise it's great!

Thank you!

effex

Quote from: Spuds on February 23, 2010, 10:06:22 PM
I've noticed a problem with FF 3.6 ... maybe others?

When I hover over a subject the tool tip appears as expected, then when I click on the subject I'm taken to the message, again as expected.  Now if you hit the browser back button to return to the topic list the last hovered tooltip is still there and follows the mouse pointer all over the page until you re-hover over a topic and then it clears.

I've attached a screen shot of the hovertip on the page but no where near the topic title.

Hmmm...

I just noticed this problem. It's happening on my Firefox 3.6 as well. No other browser.

It's when you hover over the link, let the tooltip pop up and then click the link. When you hit the back button the tool tip is trapped on the cursor.

samurai-lupin

Hello, I have been using this mod for quite some time and it is very good! I wonder if it could also be integrated to work with the Related Topics Mods?

http://custom.simplemachines.org/mods/index.php?mod=189

Thank you for any thoughts

!RFAN

after installation i'm getting this error when i open the board

Fatal error: Call to undefined function nicetooltip() in /public_html/Sources/MessageIndex.php on line 450

Eudemon

thx for the nice mod
i have a question
can i disable the mod for certain boards?
if not will this feature be included in the future release?
or is there any manual edit

thx

TheListener

Quote from: !RFAN on January 23, 2011, 08:52:04 AM
after installation i'm getting this error when i open the board

Fatal error: Call to undefined function nicetooltip() in /public_html/Sources/MessageIndex.php on line 450

What is the text shown on the line itself?

digger

Quote from: Eudemon369 on January 23, 2011, 05:22:13 PM
can i disable the mod for certain boards?
if not will this feature be included in the future release?
Added to my ToDo list for this mod.

Quote from: !RFAN on January 23, 2011, 08:52:04 AM
after installation i'm getting this error when i open the board

Fatal error: Call to undefined function nicetooltip() in /public_html/Sources/MessageIndex.php on line 450
See Manual Install Instruction for this mod and check changes in the Subs.php

Eudemon

QuoteAdded to my ToDo list for this mod.

thx im looking forward for that  :laugh:

shadow82x

Anyway to disable this for iDevice's?
Colin B
Former Spammer, Customize, & Support Team Member

hercululu

Quote from: Shadow82x on February 02, 2011, 12:54:27 PM
Anyway to disable this for iDevice's?

Same question-- iphones and pads seem to have trouble with it. Could we have the options for users to turn on/off? Or at least be able to x out?

hercululu

Also now need it for RC5?

TheCodfather

have installed the mod  but there is nothing in admin panel to activate it ?

im using a custom theme do i have to manually add the settings or something ?

Advertisement: