![]() |
3.6.8 .. installed . showed NO THUMBNAIL in the forums i defined in array .. and SQL error while going for New post .. so didnt have any option .. uninstalled :( but i like this thingi..
|
usmansabir,
This mod/hack is priceless if you have an art forum. This hack has worked for me from vB3.6.5 through vB3.7.2, but, since vB3.6.8 came out you have to tweak the search.php so new post search works (see page 8, post #112, 114). Also, don't forget you need to turn on thread thumb creation (see page 9, post #121). If you have linked and/or full image (non-thumbnailed) images in a new thread's 1st post then a thumbnail is NOT available, thusly, it won't show up as a thumbnail, regardless. |
@theOZer: have you found a way to make this work also in tag search?
|
FYI: This mod and the search.php tweak work in vB3.7.2.
We're fortunate, once again, this works by bastardizing search.php. Yes, there has got to be a better way. No, Defkalion, I have not worked with adding this to Tags. I'm not a coder but this does intrique me. I would like to, first and foremost, use vB's hooks in the search.php, to "properly" incorporate ThreadThumbnails into New Posts search. Then, maybe, after learning how to do that I can also do this in Tags; it may just fall all into place. There's a vB SDK (I believe) that I can download, read, then take it from there. We will see. P.S. NeverBored also offers good help (page 8 - 10) on how to display 'full page' threads. |
All I did when I upgraded to 3.7.2, was upload the old modified search.php file (after I found that the new 3.7.2 version was generating an SQL error), did you modify your new 3.7.2 version, or just replace it with the old modified one, if you modified it, I'd like to see what you did, as I think I may be missing some features by using the old modified one.
Also, has anyone got it to work when searching for individual posts and not threads? As my main section is photo based and it would look a lot better. |
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. |
Yay! I got Thread Thumbnails to so show up in a TAG Search!!!
I created a Thread Thumbnail Tag Search plugin, copying thread-thumbnail-plugins.xml then tweaking it. I had to make minor changes to Tag.php. I had to add an additonal If statement to the threadbit template to get Tag search thumbnails to display. I need to put together a 'How I Did This' write-up. I'll get this done today. P.S. I plan to post my write-up, soon. |
COOL!!!! Can't wait to implement this! :)
|
Adding Thread Thumbnails to Tag Search
Salute to Jason Merchant the original coder of this excellent Thread Thumbnails mod. Salute to vB.org for hosting this mod's thread. This is a 'How I Did It.' I hope this is ethically correct that I can post this tweak, seeing how I stole the plugin from Jason and tags.php needs to be modified. I have this up-and-running on my forum; it works for me, okay? tags.php needs to be slightly tweaked to make this all happen. You will need to install a plugin. You will need to modify your threadbit template(s). [Note: Before changing your current tags.php file make a backup copy named tags_original.php, for example.] A) Tweak the tags.php file: Change tags.php >>Find: $hook_query_fields = $hook_query_joins = ''; ($hook = vBulletinHook::fetch_hook('tags_list_query_data')) ? eval($hook) : false; >>Change the 1st line to: $hook_query_fields = $hook_query_joins = $hook_query_where = ''; ($hook = vBulletinHook::fetch_hook('tags_list_query_data')) ? eval($hook) : false; At the bottom of the following select statement - >>Find: $hook_query_joins WHERE thread.threadid IN (" . implode(',', $threadids) . ") >>Change the 2nd line to: $hook_query_joins WHERE thread.threadid IN (" . implode(',', $threadids) . ") $hook_query_where B1) Create the plugin .xml file: Copy the following xml code, pasting it into Wordpad or Notepad. Save the file as a .xml. For example, I named mine: thread-thumbnail-plugins-tags.xml Code:
<?xml version="1.0" encoding="ISO-8859-1"?> In Admin Control Panel > Plugins & Products > Download/Upload Plugins > Import Plugin Definitions XML File window, Import the .xml file you just created. C) threadbit template changes: Here's my New & Improved threadbit template change to thread thumbnail both regular searches and Tag searches. Your current TT code may differ from mine, for sure. Code:
<!-- Thread Thumbnails --> Regards, theOZer |
Aaarrrgh!! It works!! :)
I just have to figure out why it's leaving such a big space for the thumbs column now. :P Many thanks man. Any ideas for the thumbs column width? Edit: Don't worry about it, already fixed it, it was an extra </td> making the damage. It's working GREAT! Thankyou so much for your effort theOZer :) |
All times are GMT. The time now is 08:04 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|