Not sure if anyone has answered this anywhere... but I've added this to my vba cmps.
Here how i did it (I have no idea if this is the BEST way to do it):
1. Edit global.php
Find:
PHP Code:
$specialtemplates = array_merge($specialtemplates,
array(
'adv_modules',
add BELOW:
PHP Code:
'memberoftheday',
Find:
PHP Code:
$globaltemplates = array_merge($globaltemplates,
array(
'adv_portal',
Add BELOW:
PHP Code:
'memberoftheday',
Find:
PHP Code:
/*======================================================================*\
|| ####################################################################
|| # Downloaded: 13:38, Tue Feb 22nd 2005
|| # CVS: $RCSfile: global.php,v $ - $Revision: 1.256.2.5 $
|| ####################################################################
\*======================================================================*/
Add ABOVE:
PHP Code:
$mday = unserialize($datastore['memberoftheday']);
if (!$mday['hascustomavatar'] && $mday['avatarpath'])
{
$avatarurl = $mday['avatarpath'];
}
else
{
$avatarurl = "vboptions[bburl]/image.php?u=$mday[userid]";
}
eval('$memberoftheday .= "' . fetch_template('memberoftheday') . '";');
2. create new template adv_portal_member
Add code:
PHP Code:
$memberoftheday
3. Add a new module:
Module Title:
Member of the Day
Template to Include:
member
Place it wherever you like (left, center, right)
That's it.