Advertisement:

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

Offline perro88

  • Jr. Member
  • **
  • Posts: 358
    • techcoreforum
Re: MouseOver: topic preview!
« Reply #100 on: August 24, 2007, 10:33:32 AM »
oh, sorry, I made a mistake, it´s working perfect, thanks for the mod. How I can change the style of the preview?
« Last Edit: August 24, 2007, 10:50:18 AM by perro88 »

Offline bigo

  • Sophist Member
  • *****
  • Posts: 1,344
  • Gender: Male
  • Planetashile.com
    • http://www.simplemachines.org
Devuelta pero sin pagina :P

Mis Mod:
multiples bbcode - Nuevo  MessagePreview - firma por defecto

Offline icon

  • Semi-Newbie
  • *
  • Posts: 20
Re: MouseOver: topic preview!
« Reply #102 on: December 31, 2007, 08:25:25 PM »
i really like this one,
help me so that it would work on 1.1.3 :'(

Offline icon

  • Semi-Newbie
  • *
  • Posts: 20
Re: MouseOver: topic preview!
« Reply #103 on: January 18, 2008, 09:15:12 PM »
Bloody.... grr... find, MessageIndex.php:

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

Replace:

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

Will be resolved in the next release.

-[Unknown]

im using 1.1.3, and i cant find this code, even at my default theme :(

Offline kai920

  • Sr. Member
  • ****
  • Posts: 855
  • Gender: Male
  • its != it's
Re: MouseOver: topic preview!
« Reply #104 on: June 11, 2008, 10:15:41 PM »
this mod works great, but does anyone know how to style the hover tooltip via CSS? It's not showing all the characters (see below:)


 

Offline avf

  • Semi-Newbie
  • *
  • Posts: 79
Re: MouseOver: topic preview!
« Reply #105 on: July 27, 2008, 07:40:02 AM »
love this one !

Does it work on 1.1.5 ?
thanks
avf

Offline ddabcd277

  • Jr. Member
  • **
  • Posts: 157
  • Gender: Male
    • Garmin GPS Club
Re: MouseOver: topic preview!
« Reply #106 on: October 22, 2011, 09:27:05 AM »
Hello,

Don't like to write in very old topics but I love the idea discussed here.  :)

Can someone explain how preview topic can be achived in SMF 2.0.1.?

Many Thanks,

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,934
  • Gender: Male
  • Denizen Derriere Vaculity
    • @BearlyDoug on Twitter
    • Collegiate Football History like you've never seen it!
Re: MouseOver: topic preview!
« Reply #107 on: August 19, 2012, 10:37:37 AM »
Okay, I was looking to get this implemented on my own forums... and figured out how to do this.  This works for both 2.0.1 AND 2.0.2.

First, in index.template.php (must be done for each theme folder separately), find
Code: [Select]
$settings['message_index_preview'] and set false to true.

Next, in MessageIndex.template.php (must be done for each theme folder that has this file), find
Code: [Select]
<span id="msg_' . $topic['first_post']['id'] . '">
Change it to
Code: [Select]
<span id="msg_' . $topic['first_post']['id'] . '" title="', $topic['first_post']['preview'], '">
Congrats, you now have this enabled for your SMF 2.0.1 / 2.0.2 forums!
Resident Old Phart/Old Timer on SMF. Stalk me on Twitter:  http://twitter.com/bearlydoug

Tech Admin/Webmaster for a 6.6 million post Collegiate Sports fan site and a 1.6 million post high school sports fan site.

Collegiate Football Historian:  http://gridironhistory.com Follow @GridironHistory on Twitter to learn a lot of awesome stats.

Currently working on http://NFL.gridironhistory.com. Follow @NFLonGH too!

All sites powered by SMF 2.x