vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Images Disappearing (https://vborg.vbsupport.ru/showthread.php?t=324797)

Kane@airrifle 04-05-2017 09:43 AM

Also check your per forum permissions where usergroup settings can be overridden.

RichieBoy67 04-05-2017 12:24 PM

Quote:

Originally Posted by Kane@airrifle (Post 2584756)
Also check your per forum permissions where usergroup settings can be overridden.

Thanks, these are default as well and unregistered users are allowed to download attachments, see thumbnails, etc.. No change there.

--------------- Added [DATE]1491416478[/DATE] at [TIME]1491416478[/TIME] ---------------

Thought I fixed this because it does not seem constant. Some images go up no problem and others just do not show for guests. I just do not understand it.

Lynne 04-05-2017 04:30 PM

The ones that don't show for guests.... do they show if you are logged in?

Can we get a link to an example post that shows an image for guests and a post that isn't showing the image for guests?

RichieBoy67 04-05-2017 05:29 PM

1 Attachment(s)
Quote:

Originally Posted by Lynne (Post 2584784)
The ones that don't show for guests.... do they show if you are logged in?

Can we get a link to an example post that shows an image for guests and a post that isn't showing the image for guests?

Yes, as soon as I log in I see the image.

Sure, I do not want to post the link publically though but I will pm it if ok with you.

--------------- Added 05 Apr 2017 at 16:47 ---------------

A couple other clues..

It is not just unregistered users that cannot see the images. It is other usergroups as well..

I post the images as admin and can only see them using admin..

If the attachment manager is used there are no problems at all..

PS - This was working before I did the 4.2.5 Beta 4

--------------- Added 05 Apr 2017 at 17:06 ---------------

Using debug:

guest:
REPLACE INTO postparsed (postid, dateline, hasimages, pagetext_html, styleid, languageid) VALUES (3201450, 1491425387, 0, 'Nice in this topic.https://vborg.vbsupport.ru/external/2017/04/1.orghttps://vborg.vbsupport.ru/external/2017/04/1.orghttps://vborg.vbsupport.ru/external/2017/04/1.org', 39, 1),(3208226, 1491425387, 2, 'Test
\n[ATTACH=CONFIG]13581[/ATTACH]', 39, 1)



admin
REPLACE INTO postparsed (postid, dateline, hasimages, pagetext_html, styleid, languageid) VALUES (3201450, 1491425387, 0, 'Nice in this topic.https://musclemecca.com/%22http://mu...resent.gif/%22https://musclemecca.com/%22http://mu...ourage.png/%22https://musclemecca.com/%22http://mu.../hello.gif/%22', 39, 1),(3208226, 1491425387, 2, 'Test
\n[ATTACH=CONFIG]13581[/ATTACH]', 39, 1)

RichieBoy67 04-06-2017 12:04 AM

Dave tracked it down to patches/vbforum/attach/post.php:

if ($this->attachmentinfo['contentid'] == 0)
{
if ($this->registry->userinfo['userid'] != $this->attachmentinfo['userid'] AND !can_moderate($postinfo['forumid'], 'caneditposts'))
{
return false;
}
}


All times are GMT. The time now is 05:48 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.02198 seconds
  • Memory Usage 1,725KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete