![]() |
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 :) |
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?
|
No thanks man, see my edit above, it works great.
Just a typo in your template code: Quote:
Quote:
|
Done; I corrected that typo in my code above. And, thank you, Defkalion, for catching that code glitch. Keep me honest, please.
|
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"> |
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 |
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.
|
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?
|
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. |
Quote:
|
Hello rolfw1,
Glad I could help. Since your last visit here I figured out to add thumbnails to tags.php. See post # 169. ~OZ |
I got it working, thanks bud!! but now I have this problem, in FF I can see the images just fine but under IE I get the no image with a red cross symbol when the image is not working, how can I fix that?
Thanks!! John. |
ok I just noticed that it only happens when I am not logged in but it only happens in IE, any idea how can I fix this?
|
I got it!! It had to do with the forum permissions for unregistered/not logged in users. Thanks anyway!! :)
|
Quote:
|
attachment.php?attachmentid=&stc=1&thumb=1
attachmentid not work help |
bing11,
Help us here. Is this happening in a Tag Search or a New Post/regular search or in one of your forums you've thread thumbnailed? |
theOzer thank you help me.
"<if condition="($thread['attachmentid'])" it's not work . could you tell me what is this? when I remove it attachmentid cannot work, but I active any attachment option |
bing11,
I don't have a clue what you're talking about? Did you already have this hack installed and it worked and now it doesn't? Is this the first time you've tried to install this hack? Did you follow Jason's installation instructions. They are pretty straight-forward, easy to understand and follow? Is this problem you're having because you tried to add thumbnails to Tag Searches (see 02 JUN 2008 Post # 169)? Did you add the forum numbers to the Thread Thumbnail plugin array (see 02 APR 2008 Post # 114)? If you are using the Thread Thumbnail Search plugin did you tweak Search.php (see 02 APR 2008 Post # 112)? Is Thumbnail Creation turned ON? AdminCP > vBulletin Options > Message Attachment Options > Thumbnail Creation I have mine set to 'Yes, with border and dimensions' (which just may be the default, I don't know). Also, in Attachment Manager gif, jpg, jpeg Thumb column all read Yes (Yes?). If you need help you need to ask better questions, detail what your problem is, be a bit more specific. Okay? |
Can someone post a copy of what it looks like in the tag search?
|
Here's a Tag Search that shows both possible situations.
1) Thumbnails are displayed for threads with a thumbnail attachment in the 1st post. 2) Default Thread Icon displays for threads without a thumbnail in the 1st post. As I also note in 02 JUL 2008 Post # 175 "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." Now my New Posts and regular searches also are displayed this way, and only my thumbnailed forums show the 'No Image' icon if there's no thumbnail pic. ~OZ |
Pretty cool, does it do that in the normal search results as well?
Can you point me to the post describing how to install it that way? It seems like there are a lot of them. |
Thank you so much for this plugin. Works great! I was just wondering though, if there is a way to display images as a thumbnail for a thread that are not attachments, but are displayed in the 1st post of a thread?
|
Trana,
In AdminCP > Plugins & Products > Plugin Manager Edit the plugin 'Thread Thumbnail - Search' Change $tt_displaythumbs to $tt_displaythumbs_search Code:
$tt_displaythumbs_search = true; This is the code I'm using. Yes, this is a monster IF statement. It works. It handles displaying thumbnails for Tag Searches, New Posts & regular Searches, Forums that have been added to the Thread Thumbnail plugin. I have also set up User Profile fields to allow the user to turn On/Off thread thumbnail display and have those checks also in the code. Note: And, for poops-N-grins, I wrapped all the img code in href tags so you can click on thread thumbnails or the default thread icon to go to the thread. Code:
<!-- OMAC Thread Thumbnails --> |
iamthemoz,
Check a few posts here submitted by NeverBored. Page 9, post #128 follow-up Page 10, posts #144, #145. Later, ~OZ |
this is to hard to install can someone help me
|
Quote:
|
AdminCP > Plugins & Products > Plugin Manager, then edit Thread Thumbnails, adding your forums that you want thread thumbnailed.
example, $tt_thumbsforums = array(4, 5, 17, 46, 50, 53); |
i had installed everything told by u in the installation..but cant view the thumbnails...whatswrong??my website is www.sportivestudents.com and i want to put in telugu hiquality dvdrips
|
Quote:
What he was trying to was to display linked images as thumbnails too when there are no attachments in the thread. That would be killer. |
I don't understand, where do I put this? In threadbit? If it is to display thumbnails in search results is it the same template?
Thanks. Quote:
|
All times are GMT. The time now is 03:52 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:
|