We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    I think its about time we updated the MODx blog to the far more powerful Jot commenting platform!

    In order to maintain SMF connectivitiy, I wrote the following Snippet to return the current logged in user’s SMF avatar, fullname, and profile link.

    // SMF SSI by Mark Kaplan
    
    // User Avatar and Full Name Return
    include_once("forums/SSI.php");
    
    // Return can either be username, avatar, or link
    switch($return) {
    	case "username":
    		$output = $context['user']['name'];
    	break;
    	
    	case "avatar":
    		$output = $context['user']['avatar']['image'];
    	break;
    	
    	case "link":
    		$fid = $context['user']['id'];
    		$output = "http://modxcms.com/forums/index.php?action=profile;u=".$fid;
    	break;
    }
    
    return $output;
    


    Now, these values would need to be saved into a Jot custom field so that they would stay with that post. I have no idea how to do that....

    Maybe the SMF API has gained a function to retrieve this information dynamically in 1.1 Final.... I’ll take a look.