1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.2 Attachments with external links turn into attachment-link

Discussion in 'Troubleshooting and Problems' started by Breixo, Dec 4, 2013.

  1. Breixo

    Breixo Active Member

    I was looking for a solution in the forum but couldn't find it.
    Probably it's something related to permissions, I checked Guests permissions are can't find a reason for this problem.

    The problem:
    I attach an image, add a link and get this code:
    A logged in user get the same code and, if he clicks the attachment, goes to the link.
    But, a non-registered user see the following:
    <a href="http://site.com" target="_blank"><img src="http://site.com/data/attachments/29/29123-bbf60dc00eab2662678815360b355949.jpg" alt="attachment-alt" class="bbCodeImage"></a>
    If the non-registered user clicks on the attachment, he gets an error message saying "You must be logged in to do that".

    The example is here:

    If you need it I can provide a test user.
    Thanks for your help!
  2. Jeremy

    Jeremy Well-Known Member

    Can non-registered users download & view attachments?

    If not, unregistered users are given a thumbnail view with a link to the full view, which is a permissions denied -- hence the system. The other a link is not utilized if you look at the source.
    Breixo likes this.
  3. Breixo

    Breixo Active Member

    That's the first thing I checked, but probably I miss something.
    I just found one option to give unregistered users permissions to view attachments under "Forum Permissions" (it's in Spanish: Ver adjuntos = View attachments):
    Is there any other place where I should allow permissions?
    Thanks @Jeremy
  4. Jeremy

    Jeremy Well-Known Member

    Have you attempted to analyze permissions?
    Breixo likes this.
  5. Breixo

    Breixo Active Member

    No... but I looked for a way to do it and can't find how.
    How can I analyze permissions from unregistered users?
    The tool ask for a username, tryed some alternatives but none worked.
  6. Breixo

    Breixo Active Member

    Any other idea?

Share This Page