1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Image visibility for 'everyone' when usig bbcode

This commit is contained in:
e107steved
2008-01-05 22:02:31 +00:00
parent e032739d40
commit 1fbb22866f
2 changed files with 14 additions and 12 deletions

View File

@@ -38,18 +38,19 @@ if (!$postID || $postID == 'admin')
}
else
{
if(strstr($postID,'class:'))
{
$uc = substr($postID,6);
}
else
{
$uc = $postID;
}
if ($pref['image_post'])
{
if (check_class($pref['image_post_class'],'',$uc))
if(strstr($postID,'class:'))
{
$uc = substr($postID,6).','.e_UC_PUBLIC; // Not ideal, but 'Everyone' class not necessarily present
$can_show = check_class($pref['image_post_class'],$uc);
}
else
{
$uc = $postID;
$can_show = check_class($pref['image_post_class'],'',$uc);
}
if ($can_show)
{
return "<img src='".$code_text."' {$parmStr} />";
}