vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Manual Attachment Links don't work? (https://vborg.vbsupport.ru/showthread.php?t=212165)

kau 04-25-2009 07:06 PM

Manual Attachment Links don't work?
 
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:

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 [DATE]1240691278[/DATE] at [TIME]1240691278[/TIME] ---------------

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 [DATE]1240691312[/DATE] at [TIME]1240691312[/TIME] ---------------

Thanks for your help always Lynne


All times are GMT. The time now is 02:44 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00984 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete