Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons

Reply
 
Thread Tools
Thread Image grabber Details »»
Thread Image grabber
Version: 1.3, by stuie_b stuie_b is offline
Developer Last Online: Aug 2018 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.x.x Rating:
Released: 04-10-2013 Last Update: 05-29-2013 Installs: 17
Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

Thread image grabber is a request by "The Realist" it will enable you to grab all attached images from a thread and display them (as images) on a seperate page.

+ Pulls all attached images from a given thread and displays as images (not links as vb currently does)
+ Adds Link to thread tools bar (under thread tools)
+ Adds icon to forum list

Note: Please be aware although support is provided it is limited. This version is in beta so expect bugs!



As always feature requests are appreciated.

Stuie.

Download Now

File Type: zip Thread Images grabber v1.3.zip (15.1 KB, 82 views)

Screenshots

File Type: png screen1.png (8.7 KB, 0 views)
File Type: png screen2.png (16.2 KB, 0 views)
File Type: jpg screen3.jpg (49.9 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 04-11-2013, 08:24 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<font color="Red">Updated 30/05/2013</font>

1.3
+ Added support for inline/embedded images (Images which aren't attached)
+ Added support for vB 3.x.x (Tested only on vB 3.8.7 PL3)
+ Added template cache (Thanks to GENX2 for the heads up on that one)

1.2
+ Added support for vBulletin versions below 4.0.3

V1.0 First release
Nothing its the first release
Reply With Quote
  #3  
Old 04-11-2013, 08:39 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well done M8 and a big thanks for this.

Regards
Reply With Quote
  #4  
Old 04-11-2013, 08:42 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Woooo just installed and loads of errors:

Quote:
#0 /home/*****/public_html/******/includes/adminfunctions_template.php(2842): vB_TemplateParser->validate(Array)
#1 /home/******/public_html/******/includes/adminfunctions_plugin.php(545): compile_template('{vb:stylevar ht...')
#2 /home/******/public_html/******/admincp/plugin.php(1714): install_product(' #3 {main}


Fatal error: Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1035 in [path]/includes/class_template_parser.php in [path]/vb/vb.php on line 284
#0 vb_error_handler(256, Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1035 in /home/******/public_html/******/includes/class_template_parser.php , /home/******/public_html/******/vb/vb.php, 284, Array ([exception] => Exception Object ([] => Unable to find a class to validate: vB_TemplateParser_Curlycssfile,[] => ,[] => 0,[] => /home/******/public_html/******/includes/class_template_parser.php,[] => 1035,[] => Array ([0] => Array ([file] => /home/******/public_html/******/includes/adminfunctions_template.php,[line] => 2842,[function] => validate,[class] => vB_TemplateParser,[type] => ->,[args] => Array ([0] => Array ())),[1] => Array ([file] => /home/******/public_html/******/includes/adminfunctions_plugin.php,[line] => 545,[function] => compile_template,[args] => Array ([0] => {vb:stylevar htmldoctype} xmlns:fb="http://www.facebook.com/2008/fbml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}"> {vb:raw headinclude} {vb:cssfile faq.css} {vb:raw headinclude_bottom} {vb:raw header} {vb:raw navbar}

{vb:raw mkio_mode}

{vb:raw mkio_mode_description}


{vb:rawphrase attached_thumbnails} {vb:rawphrase attached_files}{vb:raw mkio_threadImages}
{vb:raw footer} )),[2] => Array ([file] => /home/******/public_html/******/admincp/plugin.php,[line] => 1714,[function] => install_product,[args] => Array ([0] => Pulls all the images attached to a thread and displays them in one place 1.0 xmlns:fb="http://www.facebook.com/2008/fbml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}"> {vb:raw headinclude} {vb:cssfile faq.css} {vb:raw headinclude_bottom} {vb:raw header} {vb:raw navbar}

{vb:raw mkio_mode}

{vb:raw mkio_mode_description}


{vb:rawphrase attached_thumbnails} {vb:rawphrase attached_files}{vb:raw mkio_threadImages}
{vb:raw footer} ]]> misc_start db->escape_string($_REQUEST['thread']); if(!$threadId){ standard_error("Missing ThreadID"); } //------------------------- $qh = $vbulletin->db->query_read(" SELECT p.postid,p.threadid,a.contentid,a.attachmentid,a.f iledataid,a.filename,fd.extension,fd.dateline FROM ".TABLE_PREFIX."post AS p LEFT JOIN ".TABLE_PREFIX."attachment AS a ON (p.postid=a.contentid) LEFT JOIN ".TABLE_PREFIX."filedata as fd ON a.filedataid=fd.filedataid WHERE p.threadid='".$threadId."' AND fd.extension IN ('png', 'jpg', 'jpeg', 'gif', 'bmp')"); while($row = $vbulletin->db->fetch_array($qh)) { $html .= "options['bburl'].'/attachment.php?attachmentid='.$row['attachmentid'].'&d='.$row['dateline']."\">options['bburl'].'/attachment.php?attachmentid='.$row['attachmentid'].'&thumb=1&d='.$row['dateline']."\" alt=\"".$row['filename']."\" title=\"".$row['filename']."\"> "; } //------------------------- $navbits = construct_navbits(array('' => "Thread Images")); $navbar = render_navbar_template($navbits); $templater = vB_Template::Create('mkio_threadimg'); $templater->register_page_templates(); $templater->register('navbar', $navbar); $templater->register('mkio_mode', "View Thread Images"); $templater->register('mkio_mode_description', "View all images attached to a given thread"); $templater->register('mkio_threadImages', $html); print_output($templater->render()); }]]> showthread_start Display all images';]]> ,[1] => 0)))),[code] => 256)) called at [(null):0] #1 trigger_error(Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1035 in /home/******/public_html/******/includes/class_template_parser.php , 256) called at [/home/******/public_html/******/vb/vb.php:284] #2 vB::handleException(Exception Object ([] => Unable to find a class to validate: vB_TemplateParser_Curlycssfile,[] => ,[] => 0,[] => /home/******/public_html/******/includes/class_template_parser.php,[] => 1035,[] => Array ([0] => Array ([file] => /home/******/public_html/******/includes/adminfunctions_template.php,[line] => 2842,[function] => validate,[class] => vB_TemplateParser,[type] => ->,[args] => Array ([0] => Array ())),[1] => Array ([file] => /home/******/public_html/******/includes/adminfunctions_plugin.php,[line] => 545,[function] => compile_template,[args] => Array ([0] => {vb:stylevar htmldoctype} xmlns:fb="http://www.facebook.com/2008/fbml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}"> {vb:raw headinclude} {vb:cssfile faq.css} {vb:raw headinclude_bottom} {vb:raw header} {vb:raw navbar}

{vb:raw mkio_mode}
Reply With Quote
  #5  
Old 04-11-2013, 08:57 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
Fatal error: Unable to find a class to validate: vB_TemplateParser_Curlycssfile on line 1035
That error appears to be related to vbulletin it's self and suggests an outdated version of vBulletin, Make sure your running the latest version of VB and try again.


Stuie.
Reply With Quote
  #6  
Old 04-11-2013, 11:59 PM
GENX2 GENX2 is offline
 
Join Date: Jun 2011
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks so much.
I have note one :
there is query one

add new plugin name hook " cache_templates "
this includes :
PHP Code:
{
        
$cache[] = 'mkio_threadimg';

Reply With Quote
  #7  
Old 04-12-2013, 09:59 AM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Curious if this will work with 4.1.12, or are those classes not available until 4.2? If not perhaps a min version check should be in order.
Reply With Quote
  #8  
Old 04-12-2013, 03:13 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It appears any version before VB 4.0.3 will fail to install with the current code.

VB 4.0.2 Fails
VB 4.0.3 Fails
VB 4.0.4 Works
VB 4.0.5 Works
VB 4.0.8 Works
VB 4.1.0 Works

EDIT: Updated package to incorporate VB verions 4.0.3 and below. (import the package in the VB 4.0.0-4.0.3 folder)

Stuie.
Reply With Quote
  #9  
Old 04-12-2013, 10:43 PM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 questions :
1- Do you have a vb 3.7 version compatible?
2- Is it possible to grab images not attached, i mean not on the forum server, just the image url in the first post or so...
Reply With Quote
  #10  
Old 04-17-2013, 04:33 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by abdobasha2004 View Post
2- Is it possible to grab images not attached, i mean not on the forum server, just the image url in the first post or so...
I would also like to see this. anything inside of bb img tags
Reply With Quote
Reply

Thread Tools

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:41 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
  • Page Generation 0.09663 seconds
  • Memory Usage 2,328KB
  • Queries Executed 24 (?)
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_code
  • (1)bbcode_php
  • (2)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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