Navigation: Start Documentation Examples Download Troubleshooting Changelog FORUM

Coding Examples

This part of the website shall help you by giving you example codes to try out and to use within your own project. There is a great variety of examples. From one-liners to small/great projects.If you have a code example yourself, feel free to contact me, so I can put it into this very example site.
Code examples are grouped by topics (such as posts or users).

Examples: Private Messages

Following code examples are associated to private messages of your board.

deletePrivateMessage

- No example yet

deletePrivateMessagesOfUser

- No example yet

getPrivateMessagesOfUser

Example 1:

// Following code returns folders with its private messages
$pm_folders $MyBBI->getPrivateMessagesOfUser(2, array('orderby' => 'pm.dateline''sort' => 'DESC'), true);
foreach (
$pm_folders as $folder_key => $folder)
{
    echo 
'<u>'.$folder_key.'</u><br />';
    foreach (
$folder as $content)
    {
        echo 
'&nbsp;&nbsp;'.$content['subject'].', from '.$content['fromusername'].'<br />';
    }

sendPrivateMessage

- No example yet