<?php

$s =& CSubscription::getInstance();
$subscriptions = $s->getSubscriptions($_USER_ID);
$fv = new CFormValidator();
$fv->setForm('_subscriptionsForm');
$fv->addElement('email_1', 'Email', '  - Please enter at least one email address.', 'email');
$fv->setMaxElementsToDisplay(5);
$fv->setDebugOutput(false);
$fv->setFunctionName('_val_registration');
$fv->validate();
if (isset($_GET['message'])) {
    switch ($_GET['message']) {
        case 'added':
            $message = '<img src="images/icons/checkmark_16x16.png" class="png" width="16" height="16" hspace="5" align="absmiddle" />Email addresses have been added';
            break;
        case 'deleted':
            $message = '<img src="images/icons/delete_16x16.png" class="png" width="16" height="16" hspace="5" align="absmiddle" />Email address has been deleted.';
            break;
    }
    if ($message != '') {
        echo '<div class="confirm">' . $message . '</div>';
    }
}
?>

<div class="f_12 bold"><img src="images/icons/network-wireless_22x22.png" class="png" width="22" height="22" align="absmiddle" />&nbsp;Let others know when you add photos or create a slideshow</div>

<div style="margin-left:25px; margin-top:25px;">
  <div style="margin-bottom:5px;">When you add a photo or slideshow to your personal page the following people will receive an email.</div>
  
Example #2
0
$validator = new CFormValidator();
$pID = $_GET['post_id'];
$postData = $board->singlePost($pID);
$boardData = $board->board($postData['BP_BID']);
$profileData = $user->profile($_USER_ID);
$avatarSrc = $profileData['P_AVATAR'] != '' ? PATH_FOTO . $profileData['P_AVATAR'] : 'images/avatar.jpg';
$quoteStr = '';
if (isset($_GET['reply_id'])) {
    $rID = $_GET['reply_id'];
    $quoteData = $board->post($rID);
    $quoteUser = $user->find($quoteData[0]['BP_UID']);
    $quoteStr = "[quote][i]Posted by: " . $quoteUser['U_USERNAME'] . " on " . date('D M j, Y g:i a', $quoteData[0]['BP_DATECREATED']) . "[/i]\n\n" . $quoteData[0]['BP_CONTENT'] . "[/quote]";
}
$validator->setForm('_reply');
$validator->addElement('bpc_content', 'Content', '  - Please enter the content of your post.', 'length');
$validator->setDebugOutput(false);
$validator->setFunctionName('_val_post');
$validator->validate();
?>

<div class="dataSingleContent">
  <div>
    <img src="images/community_welcome.gif" width="300" heihgt="88" border="0" vspace="10" />
  </div>
  
  <div style="padding-bottom:5px;">
    <a href="/?action=board.main">Community</a> >> <a href="/?action=board.board_view&board_id=<?php 
echo $postData['BP_BID'];
?>
"><?php 
echo $boardData['B_TITLE'];