vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=323048

Enhanced Thread Preview
by MarkFL
18 Jul 2016 06:35

3 Attachment(s)
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.

http://www.vbulletin.org/forum/attac...1&d=1468820031

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.

http://www.vbulletin.org/forum/attac...1&d=1468820031

Support for this product can be found here:

Stratis 20 Jul 2016 19:37

Tested in vb4.2.0 pl4, works with only issue for me, that when I hover and if text field includes bbcodes I see them to.

example:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Thank you

MarkFL 20 Jul 2016 20:19

Hello Stratis,

I will fix that tonight. Thank you for alerting me to this issue. :)

MarkFL 20 Jul 2016 20:44

It turns out vBulletin has an intrinsic function for stripping BB Codes. :D

Update - Version 1.1:
  • Strip BB Codes from preview content.

Stratis 20 Jul 2016 21:19

Yes its ok now, Thank you very much.

MarkFL 20 Jul 2016 21:42

Quote:

Originally Posted by Stratis (Post 2573497)
Yes its ok now, Thank you very much.

As always, thank you my friend for letting me know when I have overlooked some detail...this is very helpful to me and the vBorg community at large. :up:

Stratis 21 Jul 2016 06:31

Nice of you, and double nice for you :)

Please check, if you get error 500
in (search.php?do=getdaily)

Thank you

MarkFL 21 Jul 2016 06:56

Quote:

Originally Posted by Stratis (Post 2573513)
Nice of you, and double nice for you :)

Please check, if you get error 500
in (search.php?do=getdaily)

Thank you

No, I don't get an error there. :)

Stratis 21 Jul 2016 08:16

I identified the issue for me.
Check "Search Results" in Active Areas and test please.
thank you

MarkFL 21 Jul 2016 08:31

I had that checked. :)

Stratis 21 Jul 2016 08:36

Ok and sorry for fuss, i will use it without checking that field :)

MarkFL 21 Jul 2016 09:02

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. :)

babyv0x 23 Jul 2016 08:38

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 !

babyv0x 23 Jul 2016 08:46

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

Thank you & sorry for my bad English

MarkFL 23 Jul 2016 08:54

Quote:

Originally Posted by babyv0x (Post 2573670)
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:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Does that fix the fatal error?


All times are GMT. The time now is 08:24.

Powered by vBulletin® Version 3.8.13
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.