MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Page 1/2 1 2 >
Forum RSS feedReply
User Block - Avatar problems
AuthorText
PR4Y
Just arrived
Avatar

Posts: 5
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 01/04/2008 19:57
User Block - Avatar problems
#post5583
Hey everyone, I'm a new user here. First off I would like to say thank you to mem for bringing this CMS to the public and opensource communities! I have used 8-9 different CMS sets previously and so far am finding this one of the best I've ever worked with.

I have 8 years web development and programming (PHP / Java / HTML) experience, and am finding myself stumped with the following problem:


I've installed everything properly, set up my site the way I chose, and everything seems to be working except ONE minor problem.

When I uploaded my avatar, it works fine on the forums and shows up correctly in my User Profile page... but in the User Block on the main portal, the avatar still shows as the default "Blank Avatar" picture.

I realize this is a small problem, so no worries about helping me solve this, but I've poked around the code and can't seem to find anything wrong with what I am doing!

Thanks in advance!
Delete Edit Quote
 
PR4Y
Just arrived
Avatar

Posts: 5
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 01/04/2008 20:01
Re: User Block - Avatar problems
#post5584
Forgot to mention:

Website: http://www.pcaward.net
OS: Linux / CentOS
Version: 3.7.5
Edited: 01/04/2008 20:18
Delete Edit Quote
 
PR4Y
Just arrived
Avatar

Posts: 5
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 01/04/2008 20:04
Re: User Block - Avatar problems
#post5585
Ohhh and now that I think about it, last night while I was testing things when setting it up, I noticed in the "Active Guests" column, there were about 15 IP's all in the same 255.255.255.0 range as my home IP, yet none were the same.

Ex.:

73.34.55.3
73.34.55.85
73.34.55.231

You get the picture Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 01/04/2008 20:44
Re: User Block - Avatar problems
#post5586
Welcome Smile

http://www.pcaward.net/users_info_Peter.html

The avatar seems to work fine *_*

For the ip, it could be a spider or someone who changes the ip dinamically
Delete Edit Quote
 
PR4Y
Just arrived
Avatar

Posts: 5
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 02/04/2008 04:01
Re: User Block - Avatar problems
#post5604
http://www.pcaward.net/

Image

^^ As you can see, my avatar is showing as the default avatar here. The profile and forum post avatars work fine, but the avatar in the User Block on the main content page (portal) is still displaying as "default".
Delete Edit Quote
 
sefy
Junior Member
Avatar

Posts: 19
Contributes: 0

Gender: _MALE_
Online: No
Date: 02/04/2008 11:20
Re: User Block - Avatar problems
#post5605
I have the same problem, but not on uploading the first avatar. If i change it ... then it will apear the blank.png avatar.

Soryy for my bad exprimation.

Edited: 02/04/2008 15:21
Thanks MemHT Portal's Dad for you'r support.
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 02/04/2008 15:01
Re: User Block - Avatar problems
#post5608
Could you attach here your inc_readConfig.php file?
Delete Edit Quote
 
baselkanaan
Junior Member
Avatar

Posts: 79
Contributes: 20

Gender: _MALE_
Online: No

Version: 4.0.1
Country: Jordan
Languages: Arabic / English
Date: 03/04/2008 00:51
Re: User Block - Avatar problems
#post5636
I have the same problem.
memht 3.7.5
version: 4.0.1
Home: www.middown.com
Delete Edit Quote
 
PR4Y
Just arrived
Avatar

Posts: 5
Contributes: 0

Gender: _NEUTRAL_
Online: No
Date: 03/04/2008 15:56
Re: User Block - Avatar problems
#post5646
code
<?php

/********************************************************************************
        - MemHT Portal -
       
        Copyright (C) 2007-2008 by Miltenovik Manojlo
        http://www.memht.com
       
        This program is free software; you can redistribute it and/or modify
        it under the terms of the GNU General Public License as published by
        the Free Software Foundation; either version 2 of the License, or
        (at your opinion) any later version.
       
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
        GNU General Public License for more details.
       
        You should have received a copy of the GNU General Public License along
        with this program; if not, see <http://www.gnu.org/licenses/> (GPLv2)
        or write to the Free Software Foundation, Inc., 51 Franklin Street,
        Fifth Floor, Boston, MA02110-1301, USA.
               
********************************************************************************/


if (stristr(htmlentities($_SERVER['PHP_SELF']), "inc_readConfig.php")) {
        die("<table style='padding: 2px; border: 1px solid #999; background-color: #EEE; font-family: Verdana; font-size: 10px;' align='center'><tr><td><b>Error:</b> This file cannot be opened directly!</td></tr></table>");
}

global $dblink,$user;

//==================================
// Site configuration
//==================================
$row_conf = $dblink->get_row("SELECT * FROM memht_config");
$siteConfig['site_name'] = outCode($row_conf['nome']);
$siteConfig['site_url'] = outCode($row_conf['site_url']);
$siteConfig['site_description'] = outCode($row_conf['descrizione']);
$siteConfig['metatags'] = outCode($row_conf['metatags']);
$siteConfig['footmsg'] = outCode($row_conf['footmsg']);
$siteConfig['copyright'] = outCode($row_conf['copyright']);
$siteConfig['site_open'] = intval($row_conf['site_open']);
if (isset($_COOKIE['language'])) { $siteConfig['language'] = inCode($_COOKIE['language']); } else { $siteConfig['language'] = outCode($row_conf['lingua']); }
if (isset($_COOKIE['template'])) { $siteConfig['template'] = inCode($_COOKIE['template']); } else { $siteConfig['template'] = outCode($row_conf['template']); }
if (!file_exists("templates/".$siteConfig['template']."/home.html") AND file_exists("templates/memht/home.html")) { $siteConfig['template'] = "memht"; }
$siteConfig['num_news_home'] = intval($row_conf['num_news_home']);
$siteConfig['num_news_page'] = intval($row_conf['num_news_page']);
$siteConfig['webmaster_mail'] = outCode($row_conf['email']);
$siteConfig['guest_comment'] = intval($row_conf['guest_com']);
$siteConfig['guest_msgbox'] = intval($row_conf['guest_msgbox']);
$siteConfig['guest_download'] = intval($row_conf['guest_download']);
$siteConfig['admin_ghosts'] = intval($row_conf['admin_ghosts']);
$siteConfig['user_max_lunghezza'] = intval($row_conf['user_max_lunghezza']);
$siteConfig['pass_max_lunghezza'] = intval($row_conf['pass_max_lunghezza']);
$siteConfig['defpage'] = outCode($row_conf['defpage']);
$siteConfig['timestamp'] = outCode($row_conf['timestamp']); //%d/%m/%Y %H:%i
$siteConfig['forumattachment'] = intval($row_conf['forumattachment']);
$siteConfig['forumattachmentfolder'] = outCode($row_conf['forumattachmentfolder']);
$siteConfig['avatar_max_w'] = intval($row_conf['avatar_max_w']);
$siteConfig['avatar_max_h'] = intval($row_conf['avatar_max_h']);
$siteConfig['informationbar'] = intval($row_conf['informationbar']);
$siteConfig['graphic_check'] = intval($row_conf['graphic_check']);
$siteConfig['textarea_editor'] = intval($row_conf['textarea_editor']);
$siteConfig['modrewrite'] = intval($row_conf['modrewrite']);
$siteConfig['searchengineinstat'] = intval($row_conf['searchengineinstat']);
$siteConfig['mosaicnews'] = intval($row_conf['mosaicnews']);
$siteConfig['approve_users'] = intval($row_conf['approve_users']);
$siteConfig['user_confirm_email'] = intval($row_conf['user_confirm_email']);
$siteConfig['ftp_server'] = outCode($row_conf['ftp_server']);
$siteConfig['ftp_user'] = outCode($row_conf['ftp_user']);
$siteConfig['ftp_pass'] = outCode($row_conf['ftp_pass']);
$siteConfig['ftp_base'] = outCode($row_conf['ftp_base']);
$siteConfig['usecomments'] = intval($row_conf['usecomments']);
$siteConfig['moderate_comments'] = intval($row_conf['moderate_comments']);
$siteConfig['moderate_comments_onspam'] = intval($row_conf['moderate_comments_onspam']);
$siteConfig['comments_spam_words'] = outCode($row_conf['comments_spam_words']);
$siteConfig['usecronjobs'] = intval($row_conf['usecronjobs']);

//==================================
// Site maintenance
//==================================
$row_maint = $dblink->get_row("SELECT * FROM memht_maintenance");
$siteConfig['maintenance'] = intval($row_maint['maintenance']);
$siteConfig['maintenance_mesboxflood'] = intval($row_maint['maintenance_mesboxflood']);
$siteConfig['maintenance_waitusers'] = intval($row_maint['maintenance_waitusers']);
$siteConfig['maintenance_oldpm'] = intval($row_maint['maintenance_oldpm']);
$siteConfig['maintenance_failedlogin'] = intval($row_maint['maintenance_failedlogin']);
$siteConfig['maintenance_standbygroup'] = intval($row_maint['maintenance_standbygroup']);
$siteConfig['maintenance_loadtime'] = intval($row_maint['maintenance_loadtime']);

//==================================
// User informations
//==================================
if (isUser($user)) {
        $row = $dblink->get_row("SELECT u.email,u.avatar,SUM(p.new) AS newpm,COUNT(p.id) AS totpm FROM memht_utenti AS u JOIN memht_pvtmsg AS p ON u.user=p.recipient WHERE u.user='$user' GROUP BY p.recipient");
        $userInfo['user'] = $user;
        $userInfo['email'] = outCode($row['email']);
        $userInfo['avatar'] = outCode($row['avatar']);
        $userInfo['newpm'] = intval($row['newpm']);
        $userInfo['oldpm'] = intval($row['totpm'])-intval($row['newpm']);
} else {
        $userInfo['user'] = "";
        $userInfo['email'] = "";
        $userInfo['avatar'] = "";
        $userInfo['newpm'] = 0;
        $userInfo['oldpm'] = 0;
}

//==================================
// Update data
//==================================
$siteConfig['versionremotefile'] = "http://www.memht.com/update/lastrelease.txt";
$row_info = $dblink->get_row("SELECT version FROM memht_info");
$siteInfo['version'] = intval($row_info['version']);

//=====================================================================
// MemHT Portal is free, released under a very permissive license as
// GNU/GPL: you can use, modify and distribute it. I'm only asking to
// leave the following copyright piece of code intact according to the
// license policy. Thanks
//=====================================================================
$copytext = "<a href='http://www.memht.com' title='MemHT.com' target='_blank'><b>MemHT Portal</b></a> is a free software released under the GNU/GPL License by <a href='http://www.memht.com' title='MemHT.com' target='_blank'><b>Miltenovik Manojlo</b></a>";

?>
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5130
Contributes: 2473

Gender: _MALE_
Online: No
Date: 03/04/2008 18:46
Re: User Block - Avatar problems
#post5650
I don't know... Everything should work fine (here indeed is ok), i'll check it as soon as i can
Delete Edit Quote
 
Reply
Page 1/2 1 2 >
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo