Back to vBulletin 3.0 Add-Ons

vBa CMPS - Member of the Day
Mod Version: 1.00, by restless

This modification is in the archives.
vB Version: 3.0.7 Rating: (0 vote - 0 average) Installs: 8
Released: 09 May 2005 Last Update: Never Downloads: 1
Not Supported  

This adds Kentaurus' "Member of the Day" to your vBa CMPS. I take no credit for his hack whatsoever. You must have his hack installed for this to work.

- Added function to show default avatar for users with no selected avatar.
- Added link to member's Usernotes (in template).
- Added like to member's Friends [vBBuddies hack] (in template).

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:
if (defined('VBA_PORTAL'))
{
    require_once(
'./includes/vba_cmps_include_bottom.php');

Add ABOVE:
PHP Code:
$mday unserialize($datastore['memberoftheday']);
if (
$mday['hascustomavatar'] AND $vboptions['avatarenabled'])
        
            {
             
$avatarurl "$vboptions[bburl]/image.php?u=$mday[userid]";
            }
         else
        {
            
$avatarurl "$stylevar[imgdir_misc]/noavatar.gif";
        }
eval(
'$memberoftheday .= "' fetch_template('memberoftheday') . '";'); 
2. create new template adv_portal_member

Add code:
PHP Code:
$memberoftheday 
or you can make any new template using the templates in the next post below (without having to call the original hack's memberoftheday template)

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.

Download

No files for download.

Similar Mods

vBa CMPS: Dynamic Navigation menu - all your Custom CMPS Pages vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024