Advertisement:

Display Signature with SSI Includes

Aloittaja monkey38, joulukuu 03, 2005, 10:55:13 IP

« edellinen - seuraava »

monkey38

How can display member's signature at homepage with SSI includes ?

function ssi_welcome display user name by $context['user']['name']
but, $context['user']['signature'] can't show anything  :-[



Oldiesmann

It's a bit trickier to do because loadUserSettings doesn't include that info.

However, this will get you access to everything (YIM, AIM, etc.)...

<?php
include_once('/path/to/SSI.php');

// Get member data (loadMemberData has to be called prior to loadMemberContext)
loadMemberData($context['user']['id']);
loadMemberContext($context['user']['id']);

// Append all the new info to $context['user']...
$context['user'] = array_merge($context['user'], $themeUser[$context['user']['id']]);

// Now we've got the signature, and all the other goodies :)
echo $context['user']['signature'];
?>


Example: http://smf.oldiesmann.us/test.php
Michael Eshom
Christian Metal Fans

monkey38


Advertisement: