1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +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

@@ -11,8 +11,8 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/class2.php,v $
| $Revision: 1.38 $
| $Date: 2007-12-30 16:54:31 $
| $Revision: 1.39 $
| $Date: 2008-01-05 22:02:31 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
@@ -1070,6 +1070,7 @@ function get_user_data($uid, $extra = "")
//===========================================================
// Now look up the 'inherited' user classes
global $e_userclass;
if (!isset($e_userclass) && !is_object($e_userclass))
{
require_once(e_HANDLER."userclass_class.php");

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} />";
}