• 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

Breixo

Active member
#1
Hi!
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:
Code:
[URL='http://site.com'][ATTACH=full]34906[/ATTACH][/URL]
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:
Code:
<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:
http://www.movilesdualsim.com/threads/sorteo-de-otoño-v-blackview-jk809-por-geekbuying.50603/

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

Jeremy

Well-known member
#2
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

Active member
#3
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):
2013-12-04_2104.png
Is there any other place where I should allow permissions?
Thanks @Jeremy
 

Breixo

Active member
#5
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.