1
suico
I am having some codes showingin my edit avatar page
  • 2005/3/23 18:48

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Where can i edit to make it disapear?

avatars =& $this->getObjects($criteriatrue); $ret =
array(
'blank.gif' => _NONE); foreach (array_keys($avatars) as
$i) { $ret[$avatars[$i]->getVar('avatar_file')] = 
$avatars[$i]->getVar('avatar_name'); } return $ret; } } ?>


Resized Image

2
m0nty
Re: I am having some codes showingin my edit avatar page
  • 2005/3/23 19:30

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


kernel/avatar.php lines 221 - 239 should be:

function &getList($avatar_type null$avatar_display null)
    {
        
$criteria = new CriteriaCompo();
        if (isset(
$avatar_type)) {
            
$avatar_type = ($avatar_type == 'C') ? 'C' 'S';
            
$criteria->add(new Criteria('avatar_type'$avatar_type));
        }
        if (isset(
$avatar_display)) {
            
$criteria->add(new Criteria('avatar_display'intval($avatar_display)));
        }
        
$avatars =& $this->getObjects($criteriatrue);
        
$ret = array('blank.gif' => _NONE);
        foreach (
array_keys($avatars) as $i) {
            
$ret[$avatars[$i]->getVar('avatar_file')] = $avatars[$i]->getVar('avatar_name');
        }
        return 
$ret;
    }
}
?>

3
suico
Re: I am having some codes showingin my edit avatar page
  • 2005/3/23 19:36

  • suico

  • Friend of XOOPS

  • Posts: 374

  • Since: 2003/7/24


Thanks , the error was on the avatar.php page like you said, i don t know why the last lines repeated themselves alone ...

Thanks god now t works smooth!

Login

Who's Online

117 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 117


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits