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:
@@ -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} />";
|
||||
}
|
||||
|
Reference in New Issue
Block a user