Jump to content

  •  

  • Tutorial info Visit support topic

    • Added on: Dec 10 2007 11:56 AM
    • Views: 2541
     


    * * * * *
    6 Ratings

    'Today's Birthdays' userlinks color according to their groups

    This tutorial makes the link of 'Today's Birthdays' colored according to the member's group.

    Posted by Adriano Faria on Dec 10 2007 11:56 AM
    Open sources\lib\func_boardstats.php and find:

    					$birthstring .= "<a href='{$this->ipsclass->base_url}showuser={$user['id']}'>{$user['members_display_name']}</a>";
    Change to:

    					$nomeuser = $this->ipsclass->cache['group_cache'][ $user['mgroup'] ]['prefix'].$user['members_display_name'].$this->ipsclass->cache['group_cache'][ $user['mgroup'] ]['suffix'];
    					 $birthstring .= "<a href='{$this->ipsclass->base_url}showuser={$user['id']}'>{$nomeuser}</a>";
    Results:

    Posted Image


    Powered by Tutorials 1.4.1 © 2012, by Michael McCune