The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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.
|
#3
|
|||
|
|||
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) |
#4
|
|||
|
|||
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] 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 |
#5
|
|||
|
|||
Quote:
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:
|
#6
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|