This might come in handy if you are creating a custom home page or a
splash page maybe.
The images below show 3 functions you can call
- Site Logo
- Your username
- Your thumbnail
You can
also display you icon which is smaller than the thumbnail and more.
I
will just show you how to use the listed above.
DISPLAY SITE LOGO
- Create a new .php file
- Require the following files:
- require_once('inc/header.inc.php');
- require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
- Below this we need to check to see if we're logged in, so add this function
- check_logged();
- Now you can display the logo by typing in the getMainLogo function
- echo getMainLogo();
- Upload the file to your root directory and run it, you should now see the site logo displayed
DISPLAY YOUR USERNAME
- while inside the php file still type in the getNickName function which carries only 1 parameter
- echo getNickName($ID);
DISPLAY YOUR THUMBNAIL
- The get_member_thumbnail function takes in 5 parameters and can be used like this
- echo get_member_thumbnail($ID, $float, $bGenProfLink, $sForceSex, $aOnline);
DISPLAY YOUR ICON
- The get_member_icon takes in 3 parameters and can be used like this
- echo get_member_icon($ID, $float, $bGenProfLink);
I have been working on a page and it contains a comments section which has these included except for the member icon.
This shows you what you can expect to see.