Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #2  
Old 06-16-2005, 05:58 PM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Screenshot?
Reply With Quote
  #3  
Old 06-16-2005, 06:23 PM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 06-16-2005, 06:37 PM
Robert Basil's Avatar
Robert Basil Robert Basil is offline
 
Join Date: Oct 2001
Location: Chandler, Arizona
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I understand now. I thought it was a plugin to change the look of the hover text.

Thanks.
Reply With Quote
  #5  
Old 07-09-2005, 11:09 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

Edit: You have an extra '>' at the end of your </if> Installed and working great.
Reply With Quote
  #6  
Old 07-09-2005, 11:26 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For some reason, the thread info isn't showing. Still seeing the URL instead of the preview.
Reply With Quote
  #7  
Old 07-09-2005, 11:41 PM
Christine's Avatar
Christine Christine is offline
 
Join Date: Oct 2001
Location: PA
Posts: 472
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 07-09-2005, 11:46 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep to both.... I'll go back and triple check.

No joy... Still just showing the URL.
Reply With Quote
  #9  
Old 07-09-2005, 11:52 PM
Biker_GA Biker_GA is offline
 
Join Date: Oct 2004
Location: Where my hat is
Posts: 829
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Interesting.. This works just fine with FireFox, but does NOT work with Opera 8.01.
Reply With Quote
  #10  
Old 07-10-2005, 04:31 AM
zetetic's Avatar
zetetic zetetic is offline
 
Join Date: Apr 2004
Posts: 338
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Christine
Edit: You have an extra '>' at the end of your </if>
That closes the 'td' tag.

Quote:
Installed and working great.
Cool.
Reply With Quote
Reply

Thread Tools

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 01: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.16370 seconds
  • Memory Usage 2,291KB
  • Queries Executed 23 (?)
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
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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