Advertisement:

Author Topic: MouseOver: topic preview!  (Read 191430 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,343
  • 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: 161
  • 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: 3,082
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TwoCentsRadio.net
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!
Doug Hazard
* Web Developer / Operations Analyst for Richweb.com
* Sports Media Personality covering Collegiate Football and Basketball
* CFB Historian (GridironHistory.com)
* Tech Admin for one 1M+ post, one 2M+ post and one 8M+ post sites (last two are powered by 10+ servers)
* SMF Fanatic

Offline ForumACK

  • Semi-Newbie
  • *
  • Posts: 34
  • Gender: Male
  • ForumACK - Doğru ve Güncel
    • forumack.tr on Facebook
    • ForumACK - Doğru ve Güncel
Re: MouseOver: topic preview!
« Reply #108 on: June 02, 2013, 12:58:51 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!

thanks!

Offline rallepralle

  • Newbie
  • *
  • Posts: 3
Re: MouseOver: topic preview!
« Reply #109 on: March 09, 2014, 11:12:04 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!
Thanks it works!

Does anyone know how to display the preview in a bigger window with all elements in the thread displayed, i.e. not only text but also pictures?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,115
  • Gender: Male
    • Kindred-999 on GitHub
Re: MouseOver: topic preview!
« Reply #110 on: March 09, 2014, 01:43:19 PM »
that is getting into some potential use of "real" system resources....   and defeats the purposed of a "preview", IMO.   The preview is just that... a teaser. preview - not the whole message.   Click on the message and open it up if you want to see the whole thing.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,082
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TwoCentsRadio.net
Re: MouseOver: topic preview!
« Reply #111 on: July 30, 2014, 04:26:24 PM »
Bumping an OLD topic... I had forgotten that I posted step by step instructions on this and needed this again today.

ROCK ON! This still works through SMF 2.0.8, guys. :D
Doug Hazard
* Web Developer / Operations Analyst for Richweb.com
* Sports Media Personality covering Collegiate Football and Basketball
* CFB Historian (GridironHistory.com)
* Tech Admin for one 1M+ post, one 2M+ post and one 8M+ post sites (last two are powered by 10+ servers)
* SMF Fanatic

Offline ahrasis

  • SMF Hero
  • ******
  • Posts: 4,921
  • Gender: Male
  • Busy mode is on.
    • ahrasis on GitHub
    • ahrasis on LinkedIn
    • ElkArte Malaysia
Re: MouseOver: topic preview!
« Reply #112 on: July 31, 2014, 05:35:50 AM »
Nice tips Douglas. I will have a go on this soon.