mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Bugtracker #4261 - don't show prev/next user links if not useable
This commit is contained in:
parent
3c1a71d85b
commit
17bc52def7
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_files/shortcode/batch/user_shortcodes.php,v $
|
||||
| $Revision: 1.5 $
|
||||
| $Date: 2007-10-12 20:40:18 $
|
||||
| $Revision: 1.6 $
|
||||
| $Date: 2007-12-19 20:34:47 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -333,7 +333,8 @@ else if(ADMIN && getperms("4") && !$user['user_admin']) {
|
||||
SC_END
|
||||
|
||||
SC_BEGIN USER_JUMP_LINK
|
||||
global $sql, $user;
|
||||
global $sql, $user, $full_perms;
|
||||
if (!$full_perms) return;
|
||||
if(!$userjump = getcachedvars('userjump'))
|
||||
{
|
||||
$sql->db_Select("user", "user_id, user_name", "ORDER BY user_id ASC", "no-where");
|
||||
|
8
user.php
8
user.php
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/user.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-07-21 09:57:33 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-12-19 20:34:47 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -57,7 +57,8 @@ $user_frm = new form;
|
||||
require_once(HEADERF);
|
||||
if (!defined("USER_WIDTH")){ define("USER_WIDTH","width:95%"); }
|
||||
|
||||
if (!getperms("0") && !check_class(varset($pref['memberlist_access'], 253)) && !$self_page)
|
||||
$full_perms = getperms("0") || check_class(varset($pref['memberlist_access'], 253)); // Controls display of info from other users
|
||||
if (!$full_perms && !$self_page)
|
||||
{
|
||||
$ns->tablerender(LAN_20, "<div style='text-align:center'>".USERLAN_2."</div>");
|
||||
require_once(FOOTERF);
|
||||
@ -162,6 +163,7 @@ else
|
||||
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE_START, TRUE, $user_shortcodes);
|
||||
foreach ($userList as $row)
|
||||
{
|
||||
$loop_uid = $row['user_id'];
|
||||
$text .= renderuser($row, "short");
|
||||
}
|
||||
$text .= $tp->parseTemplate($USER_SHORT_TEMPLATE_END, TRUE, $user_shortcodes);
|
||||
|
Loading…
x
Reference in New Issue
Block a user