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
|