Why in my phpbb forum no attacment images displayed? - phpbb

Would you, please, help me to understand, why there is no images displayed in my forum as attachments?
phpBB is 3.0.14.
For example, you have a topic and would like to leave a message in this topic. You create a message, and in this message you would like to attach *.jpg image. You upload image. But when message is published in the topic the image is not visible, it shows in rectangle with the name of the image. The link to the image looks like this myurl/forum/download/file.php?id=56&mode=view. When you click on the image as an attachment, you see the error (in Firefox, for example) "The image "myurl/forum/download/file.php?id=56"" cannot be displayed, because has errors.
Screenshot

I've found the problem. The issue was in my functions.php file in wordpress theme. There was ?> <?php elements within the file, so functions.php was separated by two php sections. When I delete it ("?> <?php ") in the middle of my file, images start working correctly! Thank you!

Related

There is a question mark in my prestashop window. It wasn't there before

I just opened my store today. Before hosting firm directed my domain name to my IP there was no problem.
When I the site is activated some people wanted to change some links. I did that in a hurry maybe that caused an error. Later when I check my site I saw a big question mark on the right. I put all of the files back from my backup but the problem still exists. Is there anyone who can help me?
Thank you
FERDA
This is a missing image. Whenever an image (products, categories etc) is missing in prestashop, this question mark image is shown. It is 404.gif (or any other image format) placed in the img folder of the prestashop.
There may be two reasons to this issue:
1) At header section, it seems like you have a missing image (i think one of the social icons). This is the recommended case. Please check your images. I think it is one of the icon for social images.
2) This may be not the reason, but whenever there is some problem in the paths for images, prestashop display the 404 or question mark image. But it seems like paths are fine as other images are shown.
Proposed Solutions : First check in F12 tool (dont know what is it called :P ) that specific element i.e. right click on that question mark image and then select the Inspect Element, you will have the F12 tool opened. Check there and share the HTML code. Also please share some code before and some after that, so that it can be easily checked.

In any web site, the image always downloaded in the background, right?

Just to confirm, the image always downloaded in another thread which is different with the page text loading thread??
I put in my page, refer to a image on internet, the all text always show up firstly.
What do you think?
I think that html file contains all the prose and refers to pictures, so in whatever threads you do that you first download the text. Whether it's rendered before pictures are downloaded is up to UA and they may or may not be the same in this respect.
Depends on the Browser and the website. In most cases the Browser loads the "main html" where there are references to the Pics and other things.
If the Website loads most of the text-content via AJAX it could be kind of the other way round.
.. but in most cases you are right

how to add a pdf file and view it in a Page based application

Actually i want to load a pdf file and view it like similar to page based application.So can anyone suggest me how to do it with sample code.I searched i didnt find any documentation or any sample code.
You want to create eBook type of app. https://github.com/brow/leaves the link example shows how to load pdf file and show. and if you want to add more animation like page curl then refer example here http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html

Display the actual attached file not as a link in Drupal 6?

I enabled File Upload module in Drupal 6, so if I create a content like Page, I would be able to upload a file like an image or a document. I attached an image in the content and when I viewed it, it shows not the image but the link to it. What would I do to display the actual image? Thanks.
you will get the image path in node-contentType.tpl.php and page.tpl.php. In any of the pages you can display image rather than displaying the image path.

How can I give a link to the caption

Hey! I have made an application for iPhone that publishes audio file on Facebook. I used caption and description for that and now want to put link to the caption. Plz tell me how to achieve that.....
Thanx....!!!
http://developers.facebook.com/docs/guides/attachments/ is helpful. I used properties in my attachment dictionary and that worked.