Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-14-2009, 10:05 AM
6piston's Avatar
6piston 6piston is offline
 
Join Date: Apr 2005
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default First attachment as post header image

Hi all

thanks for reading

i'd really like to know if it's possible to extract the first attachment (in full size) to be put into the postbit before the message starts?

So, rather than the usual:
-Thread Title
-Post Message
-Attachment Thumbnails

i'd like to have:
-Thread Title
-First Attachment in Full size
-Post Message
-Attachment Thumbnails

Could this be the first attachment image code?

Code:
  	<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&=1" alt="" border="0" />
Thanks!
tom

--------------- Added [DATE]1237111143[/DATE] at [TIME]1237111143[/TIME] ---------------

bump?
Reply With Quote
  #2  
Old 03-15-2009, 09:16 AM
6piston's Avatar
6piston 6piston is offline
 
Join Date: Apr 2005
Posts: 139
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here's the screenshot of what i'd like to achieve. is it possible?
Attached Images
File Type: jpg firstattach.jpg (77.7 KB, 0 views)
Reply With Quote
  #3  
Old 03-24-2009, 04:04 PM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by 6piston View Post
here's the screenshot of what i'd like to achieve. is it possible?
This is what I'm trying to do too. There are many similar options but I haven't been able to find the best method to accomplish this. And I've done a lot of searching.

Actually I would prefer to be able to put it in the header itself (First attachment of first post in thread), rather than in the Msg body, and have the image show up as a thumbnail in the showthreads displays too.

I wish there was a snippit of code that I could place wherever I want, but I understand how difficult it is to identify the particular image/attachment across different placements.
Reply With Quote
  #4  
Old 04-02-2009, 01:56 PM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No one knows? Hmmm.

I realized that the way I'd most like to do this is to somehow find the code to grab the thumb of the first attachment and add it above the first post.

I have the thread title customized to display above the thread (near the top POST REPLY) button, and ideally I'd like to be able to show the first attachment thumb on that line.

Is this going to be possible?
Reply With Quote
  #5  
Old 04-02-2009, 02:51 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anything is possible if you code it. But, what you are talking about is going to take some coding ability on your part. I'm not sure of the best way to go about it - there are a few ways to do it I'm sure. Have you tried to do any of the coding yet?
Reply With Quote
  #6  
Old 04-02-2009, 02:55 PM
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Location: Toronto, Ontario
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Anything is possible if you code it. But, what you are talking about is going to take some coding ability on your part. I'm not sure of the best way to go about it - there are a few ways to do it I'm sure. Have you tried to do any of the coding yet?
Hi Lynne!

No, can't code. I might experiment with on of the thread-image mods here and see if I can move that code around though. I thought it might be a bit easier if someone saw this and said "Hey, sure, just insert this code to the .php file, and add this to the template."

Yeah, I know.. too easy, but a guy can dream.

If I can figure this out I'll post my results here, with full credit to whomever leads me in the right direction.
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:37 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.03810 seconds
  • Memory Usage 2,231KB
  • Queries Executed 14 (?)
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)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete