Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-25-2009, 07:06 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 04-25-2009, 07:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #3  
Old 04-25-2009, 07:14 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-25-2009, 07:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 04-25-2009, 07:20 PM
kau kau is offline
 
Join Date: Jul 2002
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:08 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.04147 seconds
  • Memory Usage 2,201KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (5)postbit_onlinestatus
  • (5)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete