Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Thumbnails Details »»
Thread Thumbnails
Version: 2.20, by Null Parameter Null Parameter is offline
Developer Last Online: Apr 2014 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.8.x Rating:
Released: 05-27-2009 Last Update: 04-08-2010 Installs: 258
DB Changes Uses Plugins Auto-Templates
Re-useable Code Translations  
No support by the author.

Thread Thumbnails
--------------------------------------
Created By: Null Parameter

This mod is officially tested with 3.8.1, but has been reported to work with many other versions.

Please leave any comments, suggestions or bugs.

Description

This mod allows a user, when creating or editing a thread, to specify a Thumbnail image to be used for display next to the thread in the Thread Listing.

With this mod you can define a set of forums that have thumbnails enabled, then in those forums whenever a user creates or edits their thread they can change their thumbnail, based on the method that you choose to allow.

This image is then shown in the Forum Display, in place of the Thread Icon.
The image also appears in Search & Tag Search, and I can add it to the regular Search if somebody requests it. And possibly have options for displaying in each area.

Forum Display:
Forum.jpg

Search:
Search.jpg

ACP Options:
ACP Options.jpg

Installation

Install the Product XML File. That's it!

All Template Edits Are Now Automatic.

If you are Upgrading from the older version, see directions in the README file on how to undo the template edits.

Demo

Possible Future Features (With Request)
  • Additional column instead of replacing Thread Icon
  • Displaying Thumbnail within thread
  • Edit thumbnail through Thread Edit
  • Thumbnail Preview in Edit Window
Fixes
  • Version 2.2
    • Fix Attachment + Default Thumbnail Option Combo
  • Version 2.1
    • Fix DB Error when using First Attachment option
    • Fix issue with New threads not saving thumbnail
  • Version 2
    • Added Features:
      • Automatic Template Edits
      • Thumbnails in Search
      • Thumbnails from First Image/First Attachment
      • Thumbnails on Sticky Threads
    • Fixes:
      • Miscellaneous Fixes

Download Now

File Type: zip product-thread_thumbnails_v22.zip (401.1 KB, 1523 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
chikkoo, vijayninel

Comments
  #52  
Old 06-01-2009, 01:17 AM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Posting 6 times in under an hour isn't going to get me to reply any quicker, I can't be sitting at my computer every minute of every day.

I don't know what to tell you about the edit not working, because it has been working for everybody else. You could try uninstalling and reinstalling it, but besides that I can't really tell you anything else.

You can also try this version, it includes a little change to add the URL differently, more similar to the New Thread way. But besides that, I wouldn't even know where to start.
Reply With Quote
  #53  
Old 06-01-2009, 01:31 AM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry about the multiple posts, Dawned on me kinda late to just edit my thread and add in new info. More info on the problem though, if I create a thread and put in a thumbnail url (which works fine), then decide to edit the thread and change the url, it lets me edit the url and saves it fine. Example of how things are going, http://freeonlinemoviesforum.com/2009-movies-f126.html.


I appreciate any and all help you can give on this. I will try the new file you gave and let you know.
Ok I installed new file and allowed overwrite but appears nothing happened and no difference, also if new thread is moved to another forum i lose the ability to change the url or even add one.

Are there any different template edits I need to make with that new file?
Reply With Quote
  #54  
Old 06-01-2009, 02:17 AM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kalisekj View Post
Ok I installed new file and allowed overwrite but appears nothing happened and no difference, also if new thread is moved to another forum i lose the ability to change the url or even add one.
Moving the thread to a different forum will remove the ability to change the URL because that second forum probably isn't in the list of forums in the ACP.

As far as not saving the information, I'm not sure what's going on. I'll keep looking into it, but at this time I don't have a clue.
Reply With Quote
  #55  
Old 06-01-2009, 02:50 AM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have enabled like 50 forums for the thumbnail, could that be causing the problem? Having too many forums enabled? This mod you made is truly AWESOME and exactly what I have been looking for on my site and works good on new threads made. I appreciate any and all help on this and any upgrades you may make, like if it will bring in the first attached image that will automatically bring in all posters for my site on activated forums. If you can do that then you can surely expect a donation from me for that solves all my problems and will make the site Look so much better. WooHoo!
Reply With Quote
  #56  
Old 06-01-2009, 02:58 AM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could try just enabling it on one and see if that fixes the issue, but I don't think that will do it.

I'll be working on the attachment thing in the very near future, that's been requested a few times, so it's high on the priority list.
Reply With Quote
  #57  
Old 06-01-2009, 01:35 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did a little more digging into this, as I see it you are creating a db table "$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD thumbnailurl varchar(250) NOT NULL");"
I checked my DB and there is not a Table_Prefix , nor a threadinfo, nor a thumbnailurl field

<td><input type="text" class="bginput" name="thumbnailurl" value="$threadinfo[thumbnailurl]

I think the problem is that the table was never created nor the field for the table so the info is not getting saved properly. Can you help me figure this out?

I manually created the Table "threadinfo" and put in the field "thumbnailurl" but it did not seem to make a difference.
http://i42.tinypic.com/29bkl6h.jpg
Reply With Quote
  #58  
Old 06-01-2009, 02:14 PM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You may or may not have a Table Prefix, that depends upon the database, but vBulletin should take care of that, this is how all of the vBulletin code works.

The db code you mentioned above adds the thumbnailurl column to the thread table, which I can see from the image does already exist. The $threadinfo doesn't reference the table itself, but a PHP variable that's defined to hold information retrieved from the thread table.
Reply With Quote
  #59  
Old 06-01-2009, 05:35 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Null where can I go to see if the url values are being written to the db?
I also had to manually add in thumbnailurl field to the Thread Table, still made no difference.
I manually inserted data into the thumbnailurl field for a particular thread and still the system is not bringing in the poster. So I am obviously looking in the wrong place for the db info on these thumbnails.
I also searched the entire db for one of the url's from a new post in which the thumbnail is working and see no results in the DB for that thumbnail, where is the system hiding this info?
Thanks for all your help on this.

MySQL client version: 4.1.22
MySQL charset: UTF-8 Unicode (utf8)
Reply With Quote
  #60  
Old 06-01-2009, 06:02 PM
Null Parameter's Avatar
Null Parameter Null Parameter is offline
 
Join Date: Jun 2008
Location: Minnesota, USA
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From that screenshot you sent earlier, you'll have to search in the thread table using a threadid that you have attempted to set the thumbnail on. Then look for the thumbnail url field, there will either be a url there or there will be nothing.
Reply With Quote
  #61  
Old 06-01-2009, 07:21 PM
kalisekj kalisekj is offline
 
Join Date: Dec 2006
Posts: 250
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Null,
First off the thumbnailurl was not even a field in the Thread Table, I created the field manually in the Thread Table, input a image url on a particular thread and it did not show up when I edited that thread. I then took the url for the thread thumbnail that does work and did a complete search of the entire VB DB and it did not find the url. Although it did find the url I did put in manually. So I am missing something, mostly curious where is it writing the info to if not the Site's DB? Also shouldn't it pull the one thumbnailurl I manually put in the db?

I appreciate you helping me with this,
Maybe you could help me tell it to write and retrieve the url from the Table and field I created, I have created Table = Threadinfo with Field = thumbnailurl, I also put in Table = Thread the Field = thumbnailurl, with the same parameters I believe you intended to use.
I am sorry to be such a bother but this is very important to my website and its users and you would earn the gratitude of me and thousands of people all around the world for your help on this matter.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05276 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete