vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Display Enhancements - Thread Thumbnail (https://vborg.vbsupport.ru/showthread.php?t=158396)

theOZer 07-02-2008 03:26 PM

I'm not experiencing 'a big space for the thumbs column.' My Tag Search screen looks like the current Search Forums/New Posts screen on my forum. Hmmm?

Defkalion 07-02-2008 03:40 PM

No thanks man, see my edit above, it works great.

Just a typo in your template code:

Quote:

<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
nbsp&;
</if>
need to change to

Quote:

<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
&nbsp;
</if>

theOZer 07-02-2008 03:46 PM

Done; I corrected that typo in my code above. And, thank you, Defkalion, for catching that code glitch. Keep me honest, please.

NeverBored 07-02-2008 08:54 PM

Hell yes. Thanks a lot theOZer for working that out with the tags. Much appreciated.

FYI, you can simplify the threadbit by using this conditional instead,
Code:

<if condition="$tt_displaythumbs OR $tt_displaythumbs_tags">

theOZer 07-02-2008 09:08 PM

I segregated the 2 IF statements because Tag Searches that don't have a thumbnail then display the 'default' thread icon and Forum & regular searches that don't have a thumbnail display the 'No Image' gif.
And, for what it's worth, you can tweak the Thread Thumbnail Search plugin, have it use a different temp true/false variable, e.g., $tt_displaythumbs_search, and add an additional IF statement to handle regular searches like I'm handling Tag Search. I've already done this on my forum. Regular searches now display the thumbnail if it exists otherwise it just displays the default thread icon.
Also, like the original Thread Thumbnail mod, you can set up a User Profile Field to Display or Not Display thumbnails for Tag Searches.
Now that I've cracked this, so to speak, there's a lot that can be done with this mod.
I'm now going to see if I can get the mod to also display thumbnails when doing post searches. We will see.
~OZ

NeverBored 07-02-2008 09:46 PM

I see what you mean now after looking at the code. I designed my threadbit differently so the OR conditional works best for me. Anyways, thanks again, happy to have this in tags finally.

unforgotten 07-03-2008 04:11 PM

Is this working on 3.6.5? I installed it but it doesn't seem to be working, should I update to the latest version of Vb 3.7.2 to make it work?

theOZer 07-03-2008 04:29 PM

Do you have thumbnail creation turned on?
Have you added the forums you want thumbnailed to the Thread Thumbnail plugin array?
This mod was written as of vB3.6.8 and the "supplied" search.php may not work in vB3.6.5. You may need to edit and add the thread thumbnail code to your vB3.6.5 search.php.
P.S. Of course, you should be running the most current version of vB, regardless.

rolfw1 07-04-2008 09:02 AM

Quote:

Originally Posted by theOZer (Post 1564126)
rolfw1,
You HAVE TO MODIFY the vB3.7.2 search.php, adding the Thread Thumbnail 'hook' (see page 8, post #112, 114).
I believe that this mod, as it's currently written, only checks for an image attachment on the 1st post of a thread.

Thanks very much theOZer, an easy update, now shows the full search functions. :)

theOZer 07-04-2008 11:43 AM

Hello rolfw1,
Glad I could help.
Since your last visit here I figured out to add thumbnails to tags.php. See post # 169.
~OZ


All times are GMT. The time now is 01:11 AM.

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.01380 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete