mantisbt-plugins / Announce

Announcements plugin for MantisBT, lets privileged accounts create and post announcements that can be shown to users on a global or per-project basis, and allow users to dismiss individual messages.
MIT License
20 stars 14 forks source link

images not showing #24

Closed cs97jjm3 closed 6 years ago

cs97jjm3 commented 6 years ago

non of the images are showing?

link url says http://f1cs97jjm3.ddns.net/mantis/plugin_file.php?file=Announce/delete.png

dregad commented 6 years ago

@cs97jjm3 I don't understand what your problem is. Please provide a more detailed description, explain what you get vs what you expect, maybe a screenshot illustrating.

cs97jjm3 commented 6 years ago

the dismiss.png ,add.png and delete.png don not show when i enable the plugin, i have hard coded for all for now..eg.

<a class="announce_add_context" href="#" value="<?php echo $message_id ?>">
                                        <img src="http://f1cs97jjm3.ddns.net/mantis/plugins/Announce/files/add.png" alt="+" border="0"/>
                                    </a>
                                </td>
dregad commented 6 years ago

I'm sorry but I'm not able to reproduce the problem with the given information.

cs97jjm3 commented 6 years ago

just reinstalled everything and i get following : I think problem is with folder permissions

1 2

dregad commented 6 years ago

As mentioned previously, I can't reproduce the problem on my end.

The link to the image is generated by MantisBT's plugin API, e.g. /mantis/plugin_file.php?file=Announce/delete.png -> http://f1cs97jjm3.ddns.net/mantis/plugin_file.php?file=Announce/delete.png (per your initial report). When I click that URL, I get an error message saying that the image cannot be displayed because it contains errors. Maybe the image files are corrupt on your server ?

If indeed it's a permissions problem, there's not much I can do to help and you'll need to fix your server's config yourself.