Hey modx users

! I need help with a smf ssi thing, what i want to do is displaying the user avatar inside modx. anyone knows how to do please show me.
Ive tried this code it wont work:
<?php
include_once("xxxx/xxxx/xxxx/forums/SSI.php");
if($context[’user’][’is_logged’]) {
$avatar = $context[’user’][’avatar’][’image’];
?>
Thanks, NL.
Mysql 5.1.52
Apache 2.2.17
PHP 5.2.12
Linux
Mysql 5.1.52
Apache 2.2.17
PHP 5.2.12
Linux
-
☆ A M B ☆
- 3,112 Posts
uhm... connected with what? Jot?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Mysql 5.1.52
Apache 2.2.17
PHP 5.2.12
Linux
-
☆ A M B ☆
- 3,112 Posts
<?php
include_once("xxxx/xxxx/xxxx/forums/SSI.php");
if($context['user']['is_logged']) {
$avatar = $context['user']['avatar']['image'];
?>
If I see my SSI.php file,
<?php // highlighting
$query_members[$member]['avatar']['image']
the first array supposed to be a variable, no?
So it might be:
<?php // highlighting
$query_members[$context['user']]['avatar']['image']
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Thx bro. apreciated
Mysql 5.1.52
Apache 2.2.17
PHP 5.2.12
Linux