Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Optional Thread Preview Hovertext Details »»
Optional Thread Preview Hovertext
Version: 1.00, by zetetic zetetic is offline
Developer Last Online: May 2015 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-15-2005 Last Update: 06-15-2005 Installs: 14
Template Edits
 
No support by the author.

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]">
Replace with: (changing XX to the number of your new profile field)
HTML Code:
<td class="alt1" id="td_title_$thread[realthreadid]" <if condition="($vbulletin->userinfo['fieldXX'] == 'Yes')">title="$thread[preview]"<else />title=""</if>>
That's it!

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 07-10-2005, 04:32 AM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Biker_GA
Interesting.. This works just fine with FireFox, but does NOT work with Opera 8.01.
Ah, sorry. I had only tested it on Firefox, not Opera. No idea why it wouldn't work.
Reply With Quote
  #13  
Old 07-10-2005, 12:54 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Heh. Good thing FF is forgiving on stuff like that. Bad thing that I am trying to get all of this done late at night because of a pending server move.

Will go close that tag now.
Reply With Quote
  #14  
Old 07-10-2005, 02:43 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just ran into an issue with this one.

FireFox and IE was showing the New Posts screen like this. Was showing fine in Opera, though. Once I removed the field and reverted the template, everything was back to normal.
Reply With Quote
  #15  
Old 07-11-2005, 09:41 AM
sensimilla sensimilla is offline
 
Join Date: Dec 2004
Location: Poland
Posts: 555
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks will give it a try
Reply With Quote
  #16  
Old 10-06-2005, 08:14 PM
The Wise One The Wise One is offline
 
Join Date: Jun 2003
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great with 3.5.0...thanks.

*installed
Reply With Quote
  #17  
Old 01-16-2006, 04:34 PM
S@NL - BlackBik's Avatar
S@NL - BlackBik S@NL - BlackBik is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It came up on our forum and this hack gives people a choice.
Works and thank you.

*Installed*
Reply With Quote
  #18  
Old 04-08-2009, 07:09 PM
S@NL - BlackBik's Avatar
S@NL - BlackBik S@NL - BlackBik is offline
 
Join Date: Jul 2004
Location: Netherlands
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stil works on 3.8.2
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:58 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
  • Page Generation 0.05167 seconds
  • Memory Usage 2,276KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete