PDA

View Full Version : Manual Attachment Links don't work?


kau
04-25-2009, 07:06 PM
I know on this one forum I have, the guests can't see attachments

but even logged in as administrator, if I manually put in an image

like using HTML code:

<img src="http://www.sitename.com/directoryname/attachment.php?attachmentid=3&amp;stc=1&amp;d=1240688989">

If I manually put that hyperlink into the browser, an image appears

but I want that image on my forum display and it won't appear with the same hyperlink in the img src ?????

Any help would be appreciated explaining why this happens (keep in mind I have been logged in as admin the entire time) also if you view the pic manually it gets iin your cache so when you refresh the page its viewable the only way to test is to clear the cache of the image first to see what i am talking about

Lynne
04-25-2009, 07:13 PM
Viewing attachments is a per forum permission. So, if you use it in a forum that doesn't have permissions to view the image, you aren't going to see it. Are you putting the exact code above (with the url fixed) into the FORUMDISPLAY template?

kau
04-25-2009, 07:14 PM
Yes, I am getting attachment id's from the posts in that forum then trying to make the image appear as an icon for the forum instead of the regular icon but even logged in admin it doesnt appear even if I put the thumb code into the get statement

Lynne
04-25-2009, 07:17 PM
I just tested it on my board and when I manually input the attachment url into the FORUMDISPLAY template, I could see the image just fine. Have you checked the page source to see what is showing up there?

kau
04-25-2009, 07:20 PM
Yes, the page source is what I pasted, I just changed the site name

I checked the permissions and "can upload attachments" and "can download attachments" is enabled for all the forums I am working with

I have been logged in as administrator the whole time anyway

If you have viewed the image previously, it will be in your browser cache so it will show up in forumdisplay but if you clear the browser cache so the image is no longer there there, and use the img src tag in forumdisplay can it load the image when you refresh?

Btw I am using 3.6.8

--------------- Added 1240691278 at 1240691278 ---------------

Okay, I figured it out

for some reason I was logged into the site only when there is no www. part at the beginning

so when i referred in that hyperlink to the site with www. in it, it didn't think i was logged in and wouldn't serve the image

the cookie domain setting for the site is set to blank however

--------------- Added 1240691312 at 1240691312 ---------------

Thanks for your help always Lynne