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
  #12  
Old 04-18-2013, 05:57 PM
Draffi Draffi is offline
 
Join Date: Oct 2011
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! Good Idea, too!!!
Reply With Quote
  #13  
Old 04-26-2013, 04:28 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with 4.2?
Reply With Quote
  #14  
Old 04-26-2013, 09:05 AM
autoescala autoescala is offline
 
Join Date: Oct 2011
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tpearl5 View Post
I would also like to see this. anything inside of bb img tags
+1
Nice mood, waiting for updates to try it
Regards
Reply With Quote
  #15  
Old 05-30-2013, 12:17 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Apologies for the delay in replying/updates.

Quote:
Originally Posted by RichieBoy67 View Post
Does this work with 4.2?
Yes as far as i can tell, all vB4 versions are supported.

Quote:
Originally Posted by abdobasha2004 View Post
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...
Quote:
Originally Posted by tpearl5 View Post
I would also like to see this. anything inside of bb img tags
V1.3 now supports the pulling of images not attached, As long as there in the form of an image url they will pulled.

vB3 should now also be supported. (Tested only on vB 3.8.7 PL3)


Stuie
Reply With Quote
  #16  
Old 05-30-2013, 02:20 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fantastic! Thanks for the update!

Some suggestions for the next version:
- link to the original post under the image
- thread title in mkio_threadimg
- link back to main thread in mkio_threadimg
Reply With Quote
  #17  
Old 05-30-2013, 03:42 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, some minor bugs

- if there are only images referenced remotely then they will not display because of the <vb:if condition="$show['paperclip']"> around the icon.

- There is no conditional around the link in showthread - so the link shows up regardless of images or not

- If an image URL is enclosed in a url tag, the paths are wrong. Example: http://nikonites.com/misc.php?do=threadImg&thread=13010
Reply With Quote
  #18  
Old 05-30-2013, 07:04 PM
tpearl5's Avatar
tpearl5 tpearl5 is offline
 
Join Date: Nov 2001
Location: PA
Posts: 1,014
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

FYI, I put this code around the images to link back to the post they are from:

Code:
<a href=\"".$vbulletin->options['bburl']."/showthread.php?t=".$row['threadid']."#post".$row['postid']."\">
Reply With Quote
  #19  
Old 05-30-2013, 08:26 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 tpearl5 View Post
- If an image URL is enclosed in a url tag, the paths are wrong. Example: http://nikonites.com/misc.php?do=threadImg&thread=13010
fixed with this regex: https?:\/\/(\w|_|\.|\/)*\/[\w:]+\.(jpe?g|png|gif|bmp)

The original was matching the URL wrapped around the image
Reply With Quote
  #20  
Old 05-31-2013, 02:36 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 tpearl5 View Post
- thread title in mkio_threadimg
To do this I modified the query a bit to get the title:

PHP Code:
$qh $vbulletin->db->query_read(
SELECT p.postid,p.threadid,p.title,p.parentid,p.pagetext,a.contentid,a.attachmentid,a.filedataid,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."'"); 

while(
$row $vbulletin->db->fetch_array($qh)) 

    if(
$row['parentid'] == 0
    { 
        
$title $row['title']; 
    } 
then changed the navbit to

PHP Code:
$navbits construct_navbits(array('' => "Images posted in $title")); 
Reply With Quote
  #21  
Old 06-08-2013, 10:45 AM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good hack but I can't see options for it... how to disable inline images (external) and show only attached? also would be nice to disable it in some forums and have user permissions as well...

another thing - I see if picture exist on X pages it getting multiplied by X on View Thread Images page, so if I have same image in 10 pages - it shows 10 times there!

Thanks!
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 05:19 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.04644 seconds
  • Memory Usage 2,341KB
  • 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_code
  • (2)bbcode_php
  • (6)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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)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
  • 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