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

Reply
 
Thread Tools
[SIMPLISTIC] Thread Thumbnails Details »»
[SIMPLISTIC] Thread Thumbnails
Version: 1.00, by andrefedalto andrefedalto is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.0 Rating:
Released: 02-26-2011 Last Update: 02-28-2011 Installs: 28
DB Changes Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

A client asked me to create a simpler Thread Thumbnail for his forums, since the other modification had too many steps for his users, lowering the use of the feature. So here it is a simpler version:
  • The ability to upload a little image for each thread, that will be displayed in forumdisplay.
  • You can set the default width and height for the image through control panel
  • When creating a thread or editing the first post, there is a file input field you can pick the thumbnail you wanna use.
  • The user can upload ANY file with ANY size, but only images will be processed and they will be resized (keeping the proportion) to the previously defined size. The original file will be deleted and only the thumbnail will be stored.
  • You can enable the thumbnails in all forums or only in the ones you specify
  • If the user doesn't upload a thumbnail you can display a default one (settable in admincp) or just don't show it at all. Only display the thumbnail when its uploaded.
  • When editing the thread, the thumbnail can be removed.

So well, its as simple as it can be. Refer to the screenshots for more details. Install instructions are in the zip. I chose to not use auto-template edits since some users may have custom templates and auto-changes shouldn't work. So its just 3 minor templates edits that can be done in a few seconds. Make sure you have set the right permissions for folder ./images/threadthumbnails/.

Before anyones says, yeah i know the included default no-thumbnail image sucks! Just made it in a sec in paint. Feel free to make a better one and send me. I'll add to the modification.

I'll be supporting this modification and fixing bugs, although i think its very functional right now. I try to keep my code as simple as possible, making it low-resource consuming and very user-friendly. Any tips on that would be greatful. If you want a nice new feature added to it, let me know. I'll add it if its a GREAT idea and is a MUST for the modification. If we add a lot of things, it looses its main characteristic: the simplicity.

Did you like this modification? Support me making a donation, and in the future i can release more simplistic modifications.

Arabic translation by Dr.osamA was added as "product-threadthumbnail Arabic by alra7ba.xml". I haven't reviewed the code, so use it at your own risk.

Download Now

File Type: zip product-threadthumbnail.zip (4.1 KB, 272 views)
File Type: xml product-threadthumbnail Arabic by alra7ba.xml (12.5 KB, 55 views)

Screenshots

File Type: jpg ss_admin.jpg (76.7 KB, 0 views)
File Type: png ss_new.png (26.0 KB, 0 views)
File Type: png ss_edit.png (26.3 KB, 0 views)
File Type: jpg ss_forumdisplay.jpg (81.5 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-03-2011, 12:24 AM
hoadiem hoadiem is offline
 
Join Date: Aug 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Baylyns View Post
Hello,

In the template newthread it has to be searched :
PHP Code:
action="newthread.php?do=postthread&f={vb:raw forumid}" 
I am under VB 4.1.2 and I can't find the right place:

PHP Code:
<form class="vbform block" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?do=postthread&amp;f={vb:raw forumid}" method="post" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.subject.value, {vb:raw vboptions.postminchars})"
Where should I place this:
PHP Code:
enctype="multipart/form-data" 
Best regards
i have the same issue
Reply With Quote
  #23  
Old 04-03-2011, 01:04 PM
andrefedalto andrefedalto is offline
 
Join Date: Dec 2005
Location: Brazil
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Baylyns View Post
Hello,

In the template newthread it has to be searched :
PHP Code:
action="newthread.php?do=postthread&amp;f={vb:raw forumid}" 
I am under VB 4.1.2 and I can't find the right place:

PHP Code:
<form class="vbform block" action="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}newthread.php?do=postthread&amp;f={vb:raw forumid}" method="post" name="vbform" onsubmit="return vB_Editor['{vb:raw editorid}'].prepare_submit(this.subject.value, {vb:raw vboptions.postminchars})"
Where should I place this:
PHP Code:
enctype="multipart/form-data" 
Best regards
Right before "action="

Quote:
Originally Posted by interfx View Post
Is there a way to make this work only a specific, defined forum category? vs. all of my forums?

Thanks in advance, this is a very simple solution!
The is an option called Forums to TurnOn. Enter the forumids, separated by a comma, and the system will only work on these forums.
Reply With Quote
  #24  
Old 04-05-2011, 02:47 PM
dnk.it dnk.it is offline
 
Join Date: Aug 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there a way to allow only certain usergroup to upload thumbnail? thanks
Reply With Quote
  #25  
Old 05-30-2011, 03:37 PM
Khriz's Avatar
Khriz Khriz is offline
 
Join Date: Apr 2011
Location: Per?
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Best seen eh I hope that you continue with the project and have compatibility with future versions of vbulletin as far as possible in the case of making a donation.

congratulations!
Reply With Quote
  #26  
Old 05-30-2011, 07:12 PM
PuttsMoBiles PuttsMoBiles is offline
 
Join Date: Feb 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is In "threadbit"

I dont have a file named that.
Reply With Quote
  #27  
Old 06-03-2011, 10:40 PM
LethalGaming LethalGaming is offline
 
Join Date: Jun 2011
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you should edit this addon and make it show users avatars ahead of the thread title .
Reply With Quote
  #28  
Old 05-23-2016, 02:52 PM
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Posts: 878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have 4.1.7 Version but not find manage file to upload when create new thread. Why ?
Reply With Quote
  #29  
Old 02-17-2017, 03:23 PM
oimel28 oimel28 is offline
 
Join Date: Jan 2013
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello if a user forget to upload a thumbnail, than there will be show a "error empty picture" . How can i fix it? I want if you dont choose a thumbnail, that you will see the basic thumbnail symbol ???
Attached Images
File Type: jpg Unbenannt-2.jpg (45.5 KB, 0 views)
Reply With Quote
  #30  
Old 02-19-2017, 11:42 PM
Outlaw Mantis Outlaw Mantis is offline
 
Join Date: Nov 2013
Location: Manchester, UK
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem with no upload option on thread creation. I'd be sure to chuck a donation your way but unfortunately in its current state this mod won't work for me. Like the person who requested it, I only wanted something simple. Apparently the coder hasn't been here in a year, so I'll move onto the fully-fledged mod in a couple of weeks if nobody has anything to add.
Reply With Quote
Благодарность от:
oimel28
  #31  
Old 12-30-2018, 04:52 AM
IggyP IggyP is offline
 
Join Date: May 2012
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oimel28 View Post
Hello if a user forget to upload a thumbnail, than there will be show a "error empty picture" . How can i fix it? I want if you dont choose a thumbnail, that you will see the basic thumbnail symbol ???
idk whats the chances of getting help with this one, but i concur....if a thread is created without uploading an image, rather than the default of "no image" it shows a broken image
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 04:23 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.06575 seconds
  • Memory Usage 2,355KB
  • Queries Executed 27 (?)
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
  • (6)bbcode_php
  • (4)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
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)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
  • (7)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
  • 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
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete