mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Bugtracker #4376 - notice removal
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/user_shortcodes.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/user_shortcodes.php,v $
|
||||||
| $Revision: 1.11 $
|
| $Revision: 1.12 $
|
||||||
| $Date: 2008-03-27 20:42:20 $
|
| $Date: 2008-04-01 19:58:41 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -87,7 +87,7 @@ if(!$chatposts = getcachedvars('total_chatposts'))
|
|||||||
}
|
}
|
||||||
cachevars('total_chatposts', $chatposts);
|
cachevars('total_chatposts', $chatposts);
|
||||||
}
|
}
|
||||||
return round(($user['user_chats']/$chatposts) * 100, 2);
|
return ($chatposts!=0) ? round(($user['user_chats']/$chatposts) * 100, 2): 0;
|
||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN USER_COMMENTPER
|
SC_BEGIN USER_COMMENTPER
|
||||||
@@ -97,17 +97,17 @@ if(!$commentposts = getcachedvars('total_commentposts'))
|
|||||||
$commentposts = $sql->db_Count("comments");
|
$commentposts = $sql->db_Count("comments");
|
||||||
cachevars('total_commentposts', $commentposts);
|
cachevars('total_commentposts', $commentposts);
|
||||||
}
|
}
|
||||||
return round(($user['user_comments']/$commentposts) * 100, 2);
|
return ($commentposts!=0) ? round(($user['user_comments']/$commentposts) * 100, 2): 0;
|
||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN USER_FORUMPER
|
SC_BEGIN USER_FORUMPER
|
||||||
global $sql, $user;
|
global $sql, $user;
|
||||||
if(!$forumposts = getcachedvars('total_forumposts'))
|
if(!$forumposts = getcachedvars('total_forumposts'))
|
||||||
{
|
{
|
||||||
$forumposts = $sql->db_Count("forum_t");
|
$forumposts = (isset($pref['plug_installed']['forum'])) ? $sql->db_Count("forum_t"): 0;
|
||||||
cachevars('total_forumposts', $forumposts);
|
cachevars('total_forumposts', $forumposts);
|
||||||
}
|
}
|
||||||
return round(($user['user_forums']/$forumposts) * 100, 2);
|
return ($forumposts!==0) ? round(($user['user_forums']/$forumposts) * 100, 2): 0;
|
||||||
SC_END
|
SC_END
|
||||||
|
|
||||||
SC_BEGIN USER_LEVEL
|
SC_BEGIN USER_LEVEL
|
||||||
|
6
user.php
6
user.php
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/user.php,v $
|
| $Source: /cvs_backup/e107_0.8/user.php,v $
|
||||||
| $Revision: 1.5 $
|
| $Revision: 1.6 $
|
||||||
| $Date: 2008-01-15 22:16:07 $
|
| $Date: 2008-04-01 19:58:41 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -161,7 +161,7 @@ else
|
|||||||
{
|
{
|
||||||
$userList = $sql->db_getList();
|
$userList = $sql->db_getList();
|
||||||
|
|
||||||
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
|
$text = $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
|
||||||
foreach ($userList as $row)
|
foreach ($userList as $row)
|
||||||
{
|
{
|
||||||
$loop_uid = $row['user_id'];
|
$loop_uid = $row['user_id'];
|
||||||
|
Reference in New Issue
Block a user