Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Enhanced Thread Preview Details »»
Enhanced Thread Preview
Version: 1.2.1, by MarkFL MarkFL is offline
Developer Last Online: Jun 2020 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.2.x Rating:
Released: 07-17-2016 Last Update: 07-24-2016 Installs: 21
Uses Plugins
Translations  
No support by the author.

Overview:

In certain areas of vBulletin 4.x, when you hover your mouse over a thread title, you see a tooltip that displays a truncated version of the first post content. This simple product allows you to designate areas in which the tooltip will also contain a truncated version of the last post.



The product settings allow you to enable/disable the product, set how guests are handled, and select the areas in which the product is active. When deciding how to handle guests, you may select for thread previews to be hidden in all areas whether they are selected as active or not, to hide them in the active areas only, to display the default preview or to allow guests to see the enhanced thread preview. I recommend not allowing guests to see the enhanced thread previews to reduce server load, as additional queries are required to get the last post content. Truncation of the last post follows the same setting affecting the default preview.

Updates:

Version 1.1:
  • Strip BB Codes from preview content.

Version 1.2:
  • Resolved fetch_array issue present for some.
  • Phrased the format of the new preview tooltip.

Version 1.2.1:
  • Ignore thread redirects.

Compatibility:

Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin.

Backup/Warning:

This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod.

As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered.

To Install:
  • Download and extract the attached .zip file.
  • Follow AdminCP -> Plugins & Products -> Manage Products -> Add/Import Product.
  • Click on "Choose File" and browse to the product .xml file that was packaged in the .zip file.
  • Click "Import."
  • You MUST enable the product in the settings before it will function.
  • Configure the remaining settings to your liking. Each setting has a detailed explanation of its use.



Support for this product can be found here:

Download Now

File Type: zip MarkFL - Enhanced Thread Preview v1.2.1.zip (4.1 KB, 71 views)

Screenshots

File Type: png markfl_etp_acp.png (33.6 KB, 0 views)
File Type: png markfl_etp_tooltip.png (91.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
bosanci28, RichieBoy67

Comments
  #12  
Old 07-21-2016, 05:36 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok and sorry for fuss, i will use it without checking that field
Reply With Quote
  #13  
Old 07-21-2016, 06:02 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I don't want you to be left out of a feature, it's just that unless I can duplicate the issue I can't do much to fix it.
Reply With Quote
  #14  
Old 07-23-2016, 05:38 AM
babyv0x babyv0x is offline
 
Join Date: Jan 2012
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Test with vBulletin 4.2.2 pl4

Forum Display/Subscriptions --> work fine but some threads the last post only ...

Search Results --> I get Fatal error: Call to a member function fetch_array() on a non-object in /opt/lampp/htdocs/packages/vbforum/search/result/thread.php(197) : eval()'d code on line 27

Who's Online/Profile (Current Activity) --> Not work

please fix !
Reply With Quote
  #15  
Old 07-23-2016, 05:46 AM
babyv0x babyv0x is offline
 
Join Date: Jan 2012
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

in tooltip, if you change "lastpost" become "lastpost -----------------------------" i think it look like better.

Thank you & sorry for my bad English
Reply With Quote
  #16  
Old 07-23-2016, 05:54 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by babyv0x View Post
Test with vBulletin 4.2.2 pl4

Forum Display/Subscriptions --> work fine but some threads the last post only ...

Search Results --> I get Fatal error: Call to a member function fetch_array() on a non-object in /opt/lampp/htdocs/packages/vbforum/search/result/thread.php(197) : eval()'d code on line 27

Who's Online/Profile (Current Activity) --> Not work

please fix !
I just now installed this on a vB 4.2.2 site (which your profle says you are using) and ran the product through all of the areas where thread previews are affected, and everything checked out.

What version of PHP are you running?

In the first line of the product's plugin hooked at "search_results_threadbit" try changing it to:

PHP Code:
global $vbulletin$vbphrase$db
Does that fix the fatal error?
Reply With Quote
  #17  
Old 07-23-2016, 06:11 AM
babyv0x babyv0x is offline
 
Join Date: Jan 2012
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
In the first line of the product's plugin hooked at "search_results_threadbit" try changing it to:

PHP Code:
global $vbulletin$vbphrase$db
Does that fix the fatal error?
Search Results is OK now :up:
Reply With Quote
Благодарность от:
MarkFL
  #18  
Old 07-23-2016, 06:17 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by babyv0x View Post
Search Results is OK now :up:
Okay, I will include that in the next update. I will also use phrasing for the format of the tooltip so you can make it whatever you want.

Look for this update within 24 hours.
Reply With Quote
Благодарность от:
babyv0x
  #19  
Old 07-23-2016, 06:35 AM
babyv0x babyv0x is offline
 
Join Date: Jan 2012
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New bug ?

When i quote short post , "Last post" in tooltip will show both, i mean i will see quote & last post

ex:
when i quote short post
Quote:
Last post z
Last post z
Last post z
Last post z"
This is my post my post My post my post My post my post My post my post

----------------------
i will see in tooltip

First post :
....
.....

Last Post:

Last post z
Last post z
Last post z
Last post z

This is my post my post My post my post ...
Reply With Quote
  #20  
Old 07-23-2016, 06:45 AM
babyv0x babyv0x is offline
 
Join Date: Jan 2012
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by babyv0x View Post
New bug ?

When i quote short post , "Last post" in tooltip will show both, i mean i will see quote & last post

ex:
when i quote short post


This is my post my post My post my post My post my post My post my post

----------------------
i will see in tooltip

First post :
....
.....

Last Post:

Last post z
Last post z
Last post z
Last post z

This is my post my post My post my post ...
when i quote long post, i still get this error. I think your mod conflict with quote BBCODE
Reply With Quote
  #21  
Old 07-24-2016, 12:51 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Update - Version 1.2:
  • Resolved fetch_array issue present for some.
  • Phrased the format of the new preview tooltip.
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:19 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08089 seconds
  • Memory Usage 2,350KB
  • Queries Executed 28 (?)
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_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (4)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete