![]() |
Optional Thread Preview Hovertext
There are at least two other hacks around here explaining how to do this in 3.0.x (one I posted), and this 3.5 version isn't much different, but I recently discovered* that both of the old ones involve an unnecessary file edit so this is probably a better choice. It's technically a mini-mod since there are no file edits and it's not a plug-in, but until there's a mini-mod forum for 3.5 I guess this is the logical forum to put it in. :)
Step One Go into the ACP Select User Profile Field Manager from the left menu. Select Add New User Profile Field Profile Field Type --> Single-Selection Radio Buttons Title: Display Thread Preview Description: Select whether to display a thread preview when hovering over the title. Options: Yes No (separated by a carriage return) Set Default: Yes Display Order: Leave at default Field Required: Yes (if you want the option to appear at registration, otherwise No) Field Editable by User: Yes Private Field: Yes Field Searchable on Members List: No Show on Members List: No Leave the Optional Input section as it is. Which page displays this option?: Options: Thread Viewing Click Save, make a note of the new field number! (example: field23) Step Two In the threadbit template, find: HTML Code:
<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]"> HTML Code:
<td class="alt1" id="td_title_$thread[realthreadid]" <if condition="($vbulletin->userinfo['fieldXX'] == 'Yes')">title="$thread[preview]"<else />title=""</if>> Note: If you install this on a populated forum and you had thread previews ON by default, you will need to run this query to ensure that it remains on for all your current members (changing XX to the number of your new profile field and adding your own table prefix if applicable): [sql]UPDATE `userfield` SET `fieldXX`='Yes' WHERE `fieldXX`='';[/sql] *Thanks to a hint in Michael Morris' phpinclude_start Tutorial |
Screenshot?
|
This just controls whether the yellow box that shows a thread preview when you hover over a thread title will appear or not. So a screenshot would just look like a normal forum index. :)
|
Ok, I understand now. I thought it was a plugin to change the look of the hover text.
Thanks. |
Thanks!
I had done this as a phpinclude_start on 3.0 after the members started a riot over it. Half liked it and half didn't, and in 5 years, I can't recall them ever being SO animated about something. Thanks for sharing this -- marked as installed and will go mark it off the ToDo list. :D Edit: You have an extra '>' at the end of your </if> :) Installed and working great. |
For some reason, the thread info isn't showing. Still seeing the URL instead of the preview.
|
Biker_GA -- check 2 things:
1. The field # of the additional profile field in the template 2. Your personal profile to see if you have enabled thread preview |
Yep to both.... I'll go back and triple check.
No joy... Still just showing the URL. |
Interesting.. This works just fine with FireFox, but does NOT work with Opera 8.01. :(
|
Quote:
Quote:
|
All times are GMT. The time now is 01:11 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|