Register - Login

user avatar+gallery(i searched)

user avatar+gallery(i searched)

Postby n00bst4r on Tue Feb 05, 2008 2:41 pm

well heres my big problem, i have tried the user_menu fixes aall the fixes i could come across hours surfing the net and still can;t get it to work.and this is after 8-9 installs trying to get the portal and forum working 2gther lol the user avatar in portal doesn't show up.sometimes is just says"user avatar" in text or sometimes just the big gray avatar shows up. also i upload avatars to the gallery and nothing shows up. can someone please tell me whats wrong?or send me the files i need to get this fixed? please help me !

heres the code for the user_menu for my http://mma-links.us/phpbb/portal.php

Code: Select all
<?php
/*
*
* @package phpBB3 Portal  a.k.a canverPortal  ( www.phpbb3portal.com )
* @version $Id: user_menu.php,v 1.2 2007/08/05 09:39:57 angelside Exp $
* @copyright (c) Canver Software - www.canversoft.net
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
if (!defined('IN_PHPBB'))
{
   exit;
}

/**
*/

//
// + new posts since last visit & you post number
//
if ($user->data['is_registered'])
{
   // new posts since last visit
   $sql = "SELECT COUNT(distinct post_id) as total
      FROM " . POSTS_TABLE . "
      WHERE post_time >= " . $user->data['session_last_visit'];
   $result = $db->sql_query($sql);
   $new_posts_count = (int) $db->sql_fetchfield('total');
      
   // your post number
   $sql = "SELECT user_posts
      FROM " . USERS_TABLE . "
      WHERE user_id = " . $user->data['user_id'];
   $result = $db->sql_query($sql);
   $you_posts_count = (int) $db->sql_fetchfield('user_posts');
}
//
// - new posts since last visit & you post number
//


// Get user...
$user_id = $user->data['user_id'];
$username = $user->data['username'];

$sql = 'SELECT *
   FROM ' . USERS_TABLE . '
   WHERE ' . (($username) ? "username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : "user_id = $user_id");
$result = $db->sql_query($sql);
$member = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
      
$avatar_img = get_user_avatar($member['user_avatar'], $member['user_avatar_type'], $member['user_avatar_width'], $member['user_avatar_height']);

$rank_title = $rank_img = '';
get_user_rank($member['user_rank'], $member['user_posts'], $rank_title, $rank_img, $rank_img_src);
      
$username = $member['username'];
$user_id = (int) $member['user_id'];
$colour = $member['user_colour'];

// Assign specific vars
$template->assign_vars(array(
   'L_NEW_POSTS'   => $user->lang['SEARCH_NEW'] . '&nbsp;(' . $new_posts_count . ')',
   'L_SELF_POSTS'   => $user->lang['SEARCH_SELF'] . '&nbsp;(' . $you_posts_count . ')',

   'AVATAR_IMG'   => $avatar_img,
   
   'RANK_TITLE'   => $rank_title,
   'RANK_IMG'      => $rank_img,
   'RANK_IMG_SRC'   => $rank_img_src,

   'USERNAME_FULL'      => get_username_string('full', $user_id, $username, $colour),
   'USERNAME'         => get_username_string('username', $user_id, $username, $colour),
   'USER_COLOR'      => get_username_string('colour', $user_id, $username, $colour),
   'U_VIEW_PROFILE'   => get_username_string('profile', $user_id, $username, $colour),

   'U_NEW_POSTS'         => append_sid($phpbb_root_path . 'search.' . $phpEx . '?search_id=newposts'),
   'U_SELF_POSTS'         => append_sid($phpbb_root_path . 'search.' . $phpEx . '?search_id=egosearch'),
   'U_UM_BOOKMARKS'      => append_sid($phpbb_root_path . 'ucp.' . $phpEx . '?i=main&amp;mode=bookmarks'),
   'U_UM_MAIN_SUBSCRIBED'   => append_sid($phpbb_root_path . 'ucp.' . $phpEx . '?i=main&amp;mode=subscribed'),
   'U_PRIVATE_MESSAGES'   => append_sid($phpbb_root_path . 'ucp.' . $phpEx . '?i=pm&amp;folder=inbox'),
));

?>
n00bst4r
 
Posts: 1
Joined: Mon Feb 04, 2008 1:09 pm

Return to [1.1.x] Support & Help



Who is online

Users browsing this forum: No registered users