Facebook 

SMFHacks.com - Celebrating 20 Years!

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4341
Latest: jmac32here
New This Month: 2
New This Week: 0
New Today: 0
Stats
Total Posts: 44306
Total Topics: 7676
Most Online Today: 365
Most Online Ever: 27044
(May 30, 2026, 09:10:16 pm)
Users Online
Members: 0
Guests: 225
Total: 225

Author Topic: [Mod]Topic Preview for SMF 2.1 and SMF 2.0  (Read 21274 times)

0 Members and 1 Guest are viewing this topic.

[Mod]Topic Preview for SMF 2.1 and SMF 2.0
« on: »
Topic Preview for SMF 2.1 and SMF 2.0




https://www.smfhacks.com/index.php?action=downloads;sa=view;down=260

Topic Preview
Version 1.0
by vbgamer45


Description:
Shows a styled popup preview when hovering over topic titles in the message index (board view). The popup displays the topic title, author name, post time, a preview of the first post body, and reply/view counts.

Compatibility:
  • SMF 2.0.x
  • SMF 2.1.x


Features:
  • Hover popup with topic preview on message index pages
  • Shows first post body text (truncated), author, time, reply and view counts
  • Smooth show/hide with configurable delay (no flicker)
  • Viewport-aware positioning (stays within screen bounds)
  • Admin settings panel (SMF 2.1) to enable/disable and set preview length
  • Graceful fallback: when disabled, original tooltip behavior is restored


Installation:
Install via the SMF Package Manager (Admin > Packages > Install).

Settings (SMF 2.1):
After installation, go to Admin > Configuration > Modifications > General to find Topic Preview settings:
  • Enable Topic Preview popup - Turn the mod on or off
  • Preview text length - Number of characters to show in the preview (default: 256)


Settings (SMF 2.0):
The mod is enabled by default when installed. Settings are stored in the database (topic_preview_enabled, topic_preview_length).

Uninstallation:
Uninstall via the SMF Package Manager. All file changes will be reversed and mod files removed.

Author:
vbgamer45 - SMF Hacks

License:
BSD 3-Clause License
« Last Edit: March 22, 2026, 06:28:49 pm by SMFHacks »
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: [Mod]Topic Preview for SMF 2.1 and SMF 2.0
« Reply #1 on: »
Hi VB,

I tested this out and unfortunately when you change the 'Preview text length (characters)' it stays the same. The attached image should only show 10 characters

[ Guests cannot view attachments ]

[ Guests cannot view attachments ]
« Last Edit: March 22, 2026, 07:45:38 am by davejo »

Re: [Mod]Topic Preview for SMF 2.1 and SMF 2.0
« Reply #2 on: »
Just posted a fix that should help
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: [Mod]Topic Preview for SMF 2.1 and SMF 2.0
« Reply #3 on: »
Hi VB

Just installed it on my main site and test site and no change. I changed the limit to 10 cleared the cache on both sites and it still shows as per the attached image in my previous post

Re: [Mod]Topic Preview for SMF 2.1 and SMF 2.0
« Reply #4 on: »
Hmm updated download again, tested on  my test site for 2.1 on smfads.com
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Re: [Mod]Topic Preview for SMF 2.1 and SMF 2.0
« Reply #5 on: »
Hi VB,

Installed and all working as it should now. Thanks for the update
Like Like x 1 View List

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
10822 Views
Last post July 25, 2006, 07:28:35 pm
by SMFHacks
0 Replies
8785 Views
Last post March 03, 2007, 04:51:26 am
by maker
0 Replies
8390 Views
Last post March 15, 2007, 03:14:22 pm
by brent38934
29 Replies
41294 Views
Last post September 02, 2007, 11:22:46 pm
by ApplianceJunk
3 Replies
10520 Views
Last post May 04, 2009, 08:35:32 am
by Vincent Volmer

+- Recent Topics

Registration - anti bot pattern matching by SMFHacks
November 01, 2026, 07:20:17 pm

EZPortal 8 by davejo
October 21, 2026, 01:01:54 pm

Downloads Pro 7.0 Released by SMFHacks
October 07, 2026, 07:35:30 pm

[Mod]ActivityPub Federation for SMF 2.1 by SMFHacks
October 01, 2026, 05:03:45 pm

Newsletter Pro 4.0 Released by SMFHacks
September 23, 2026, 08:08:24 pm

Can't remove or restore any item from the recycle bin by SMFHacks
September 22, 2026, 11:01:51 am

MCP Server for SMF 2.1 - let Claude, ChatGPT or Cursor run your admin chores by SMFHacks
September 12, 2026, 02:50:45 pm

Suggestions for improvements to Ultimate Shoutbox & Chatroom by davejo
September 02, 2026, 01:35:09 am

Automatic Sorting of Categories by Kiwi
August 31, 2026, 12:36:09 am

' appears as ' in Most Viewed (and Recent Items ?) by SMFHacks
August 22, 2026, 11:01:56 pm

Powered by EzPortal