SimplePortal

Customization => Custom Coding => Topic started by: virsa punjabi on December 27, 2013, 05:05:52 AM

Title: Online color code
Post by: virsa punjabi on December 27, 2013, 05:05:52 AM
Please, if someone can tell me What is the code to show online member color name in custom blocks? Thank you
Title: Re: Online color code
Post by: [SiNaN] on January 06, 2014, 01:10:29 PM
You can use the sp_loadColors() function. You just need to pass the user ids as an array and colored profile links will be loaded in the $color_profile global array. As an example, you can check out the sp_latestMember() function in Sources/PortalBlocks.php file.
SimplePortal 2.3.8 © 2008-2024, SimplePortal