Advertisement:

Author Topic: MouseOver: topic preview!  (Read 191349 times)

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #20 on: January 17, 2005, 09:13:28 AM »
If you're using 1.0 you definitely don't need that change you quoted.

Are you sure you're searching the MessageIndex template?

-[Unknown]

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,604
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: MouseOver: topic preview!
« Reply #21 on: January 17, 2005, 09:43:03 AM »
Ooops., you are right I was searching in messageindex.php.
Now it works fine, however in Mozilla I can only say one line of tooltip whereas in IE up to 4 lines... It would be interesting if one could adjust the number of lines visible....

If you're using 1.0 you definitely don't need that change you quoted.

Are you sure you're searching the MessageIndex template?

-[Unknown]

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #22 on: January 17, 2005, 09:46:47 AM »
Yeah... this is a bug in Firefox, and one I've tried to help fix too.

-[Unknown]

Offline spiros

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 1,604
  • Gender: Male
  • A different point of view
    • spiros.doikas on Facebook
    • doikas on LinkedIn
    • @greektranslator on Twitter
    • Greek Translation
Re: MouseOver: topic preview!
« Reply #23 on: January 17, 2005, 09:58:31 AM »
Well done! What I meant is perhaps that there is room here for a little mod  through which one could adjust size of tooltip box, colours, lines, etc. There are actually a few nice js scipts out there which do that. (i.e. http://jdstiles.com/java/alttxt/alttxt.html)

Yeah... this is a bug in Firefox, and one I've tried to help fix too.

-[Unknown]

Offline Nidoking

  • Jr. Member
  • **
  • Posts: 141
  • Gender: Male
  • Enlightened
    • Forums
Re: MouseOver: topic preview!
« Reply #24 on: January 17, 2005, 05:29:48 PM »
I cannot find this line in MessageIndex.template.php:
Code: [Select]
', $topic['first_post']['link'];
This is the closest I found:
Code: [Select]
' . $topic['first_post']['link'] . ' ' I am running SMF 1.0.1. What is going wrong?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #25 on: January 18, 2005, 03:04:41 AM »
I cannot find this line in MessageIndex.template.php:
Code: [Select]
', $topic['first_post']['link'];
This is the closest I found:
Code: [Select]
' . $topic['first_post']['link'] . ' ' I am running SMF 1.0.1. What is going wrong?

You're probably using a different template.  That's close enough, just replace  what you found with:

<span title="', $topic['first_post']['preview'], '">', $topic['first_post']['link'], '</span>'

-[Unknown]

Offline double_d

  • Semi-Newbie
  • *
  • Posts: 35
  • More cow bell!
Re: MouseOver: topic preview!
« Reply #26 on: January 25, 2005, 06:07:06 PM »
Just wanted to say, that this mod works sweet with 1.0.1.  I really wanted something like this, started one on my own, then found this thread.

[unknown] you rock!

Offline Anguz

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,430
  • Gender: Male
    • cristianlavaque.com
Re: MouseOver: topic preview!
« Reply #27 on: February 24, 2005, 07:29:14 AM »
Some of you may find this useful: Preview Separator.
Cristián Lávaque http://cristianlavaque.com

Offline mytreo

  • Jr. Member
  • **
  • Posts: 284
    • treo
Re: MouseOver: topic preview!
« Reply #28 on: March 05, 2005, 05:35:53 PM »
Yeah... this is a bug in Firefox, and one I've tried to help fix too.

-[Unknown]

This Popup ALT Attributes Extension solves the Mozilla/Firefox problem, works great with this mod/tip too :)

Chris
Treo forum - Powered by SMF, of course
Treo news - powered by MovableType and integrated with SMF
Treo downloads - hacked from phpNuke and integrated with SMF
Treo knowledge base - powered by Wikka and integrated with SMF
Treo 650 | Treo 700w | Treo 700p

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #29 on: March 06, 2005, 01:38:51 AM »
This Popup ALT Attributes Extension solves the Mozilla/Firefox problem, works great with this mod/tip too :)

I've seen its solution, and even documented a cleaner way of doing it in the Mozilla bug, but it's still not perfect.  Mainly, it doesn't allow for large fonts on the client operating system, which is sorta a show stopper.

-[Unknown]

Offline Louis (CSpotkill)

  • Jr. Member
  • **
  • Posts: 154
  • Gender: Male
  • Geek with Style
    • LSTA
Re: MouseOver: topic preview!
« Reply #30 on: March 06, 2005, 02:01:23 AM »
Oh bleh. Just insert a variation of the nicetitles javascript (or something similar) inside the head of your index.template.php file, so you can have a multi-line rich preview (including images) dynamically made from links with titles (or if you modify it right, from spans with titles, hehe.)

I already did something similar, a week ago. Perhaps I'll finish it up as a mod.
My SMF Mods:

Offline flapper

  • Jr. Member
  • **
  • Posts: 124
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #31 on: March 28, 2005, 04:45:16 AM »
I installed the mouse over code and it works a treat, just one thing, when you click on Show unread posts since last visit.  the mouse over will not work on the threads shown.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #32 on: March 28, 2005, 07:40:15 PM »
You need to, there, do it for Recent.template.php.

-[Unknown]

Offline flapper

  • Jr. Member
  • **
  • Posts: 124
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #33 on: March 29, 2005, 03:11:35 AM »
You need to, there, do it for Recent.template.php.

-[Unknown]


Does this look right:

Quote
<td class="windowbg2" valign="middle" align="center" width="6%">
                                        <img src="' . $settings['images_url'] . '/topic/' . $topic['class'] . '.gif" alt="" /></td>
                                <td class="windowbg2" valign="middle" align="center" width="4%">
                                        <img src="' . $settings['images_url'] . '/post/' . $topic['first_post']['icon'] . '.gif" alt="" border="0" align="middle" /></td>
                                <td class="windowbg" valign="middle" width="48%">
                                        <span title="', $topic['first_post']['preview'], '">', $topic['first_post']['link'], '</span> <a href="' . $scripturl . '?topic=' . $topic['id'] . '.from' . $topic['newtime'] . ';topicseen#new"><img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/new.gif" alt="' . $txt[302] . '" border="0" /></a> <span class="smalltext">' . $topic['pages'] . '</span>
                                        <div class="smalltext"><i>' . $txt['smf88'] . ' ' . $topic['board']['link'] . '</i></div></td>
                                <td class="windowbg2" valign="middle" width="14%">
                                        ' . $topic['first_post']['member']['link'] . '</td>
                                <td class="windowbg" valign="middle" width="4%" align="center">
                                        ' . $topic['replies'] . '</td>
                                <td class="windowbg" valign="middle" width="4%" align="center">
                                        ' . $topic['views'] . '</td>
                                <td class="windowbg2" valign="middle" width="22%">';

Offline 3fifty

  • Jr. Member
  • **
  • Posts: 188
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #34 on: March 29, 2005, 07:10:14 PM »
Im in /forum/Themes/classic/MessageIndex.template.php

Using: SMF 1.0.3

I cant find
Code: [Select]
$row['firstBody'] = substr($row['firstBody'], 128) . '...';
$row['lastBody'] = strip_tags(strtr(doUBBC($row['lastBody'], $row['lastSmileys']), array('<br />' => '&#10;')));
if (strlen($row['lastBody']) > 128)
$row['lastBody'] = substr($row['lastBody'], 128) . '...';

Am I in the right area?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #35 on: March 29, 2005, 08:06:58 PM »
Im in /forum/Themes/classic/MessageIndex.template.php

Using: SMF 1.0.3

I cant find
...

Am I in the right area?

You don't need to make that change in 1.0.3.

Flapper, yes that looks fine.

-[Unknown]

Offline 3fifty

  • Jr. Member
  • **
  • Posts: 188
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #36 on: April 19, 2005, 11:20:40 AM »
I forgot to mention that I got this to work.  Thank you.

Is there a way to do this in the most recent topics as well or no?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #37 on: April 19, 2005, 12:43:39 PM »
Yes.  It's the same thing, but in the Recent template.

How do I modify files?

-[Unknown]

Offline nameless

  • Jr. Member
  • **
  • Posts: 118
  • Gender: Male
    • Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together
Re: MouseOver: topic preview!
« Reply #38 on: May 09, 2005, 10:16:50 PM »
All your suppose to do is replace the code as stated in the first post? If so, this tip and trip isn't working for me. I'm using SMF 1.0.3.

Code: [Select]
', $topic['first_post']['link'];
Replace:

Code: [Select]
<span title="', $topic['first_post']['preview'], '">', $topic['first_post']['link'], '</span>';


Skate, Snow, and Surf - SF Boarders - Bringing San Francisco Bay Area boarders together.

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: MouseOver: topic preview!
« Reply #39 on: May 09, 2005, 11:03:03 PM »
Provide a link to the forum with it enabled, please.

-[Unknown]