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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-07-2013, 09:08 AM
Mike Litvinov Mike Litvinov is offline
 
Join Date: Jul 2013
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Displaying the attachments in the message body

We have problem with displaying the attachment in the message body (eg zip pdf or rar file)
First successfully uploading the file and puting it into a message body (editor is in sourcecode mode); We'll see something like this [ATTACH = CONFIG] 9512 [/ ATTACH] and that is great!
But then, when switching editor to vizual mode,
inplace of file thumb, we will see small broken picture icon (in Firefox)!
Ps After posting message, everything looks ok

Any idea how to fix?
Thnx
Reply With Quote
  #2  
Old 08-07-2013, 04:07 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you click on the broken image and get the image path? Then you can see where it is looking for the image and figure out why it is wrong.
Reply With Quote
  #3  
Old 08-07-2013, 04:21 PM
DF031 DF031 is offline
 
Join Date: Nov 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As far as I know . . . . . All is ok. That is standard. VB does not display pdf inline or below the message. It just displays an icon or text link. Clicking the icon or text link downloads or opens the attachement.

For each of those file types one should upload 2 icons, on questionmark icon and one filetype icon.

If needed I can tell you in detail how to do it later. (In a restaurant now)
Reply With Quote
  #4  
Old 08-08-2013, 07:47 AM
Mike Litvinov Mike Litvinov is offline
 
Join Date: Jul 2013
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for answering and trying to solve my problem, but it still there..
I made some tests of my problem
Examle of code created by inserting:
1) png image
2) rar file
3) horiz line
HTML Code:
[ATTACH=CONFIG]9535[/ATTACH]
[ATTACH=CONFIG]9536[/ATTACH]
screen shot of what i will see when switching to vizual mode
as you can see 2-(rar file) looks like broken picture.
i think problem is with code that is generated when attachment is inserted? it shoud look like this
HTML Code:
[ATTACH]9536[/ATTACH] without "config" part 
Why this happend? how to fix this? how forum understand what is picture attachment and what is file attachment ?
Attached Images
File Type: png err.png (8.6 KB, 0 views)
Reply With Quote
  #5  
Old 08-08-2013, 07:51 AM
Mike Litvinov Mike Litvinov is offline
 
Join Date: Jul 2013
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Can you click on the broken image and get the image path? Then you can see where it is looking for the image and figure out why it is wrong.
This is src url of broken image ..forum/attachment.php?attachmentid=9536&stc=1
But i think it's wrong because forum think it was picture attachement (and actualy it was rar)

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

Quote:
Originally Posted by DF031 View Post
As far as I know . . . . . All is ok. That is standard. VB does not display pdf inline or below the message. It just displays an icon or text link. Clicking the icon or text link downloads or opens the attachement.

For each of those file types one should upload 2 icons, on questionmark icon and one filetype icon.

If needed I can tell you in detail how to do it later. (In a restaurant now)
Yes that will be great if you tell me more. For examp where to find some options about this in admin panel. Or where to put this icons...
Reply With Quote
  #6  
Old 08-08-2013, 02:58 PM
DF031 DF031 is offline
 
Join Date: Nov 2012
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I use the following method . . .

For instace a PDF file

Add 2 icons to the folder ....../images/attach/

The names should be pdf_thumb.gif and pdf.gif

The first one is a question mark which is used in the Manage Attachements window and is the same for all non-image attachements. The second one is a file icon, I use the adobe reader logo.

I use these two:

and

To do this for RAR the file names would be rar_thumb.gif and rar.gif. The first one would be the question mark again (atleast afaik that is the standard VBulletin method) and the second one would be a rar icon.
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 01:38 AM.


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.04081 seconds
  • Memory Usage 2,230KB
  • Queries Executed 12 (?)
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
  • (2)bbcode_html
  • (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_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